tentative fix for issue 3 (ex 53)
[mplib] / src / texk / kpathsea / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61a.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   echo "#! /bin/sh" >conf$$.sh
75   echo  "exit 0"   >>conf$$.sh
76   chmod +x conf$$.sh
77   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
78     PATH_SEPARATOR=';'
79   else
80     PATH_SEPARATOR=:
81   fi
82   rm -f conf$$.sh
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 for as_var in \
134   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
135   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
136   LC_TELEPHONE LC_TIME
137 do
138   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
139     eval $as_var=C; export $as_var
140   else
141     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
142   fi
143 done
144
145 # Required to use basename.
146 if expr a : '\(a\)' >/dev/null 2>&1 &&
147    test "X`expr 00001 : '.*\(...\)'`" = X001; then
148   as_expr=expr
149 else
150   as_expr=false
151 fi
152
153 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
154   as_basename=basename
155 else
156   as_basename=false
157 fi
158
159
160 # Name of the executable.
161 as_me=`$as_basename -- "$0" ||
162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
163          X"$0" : 'X\(//\)$' \| \
164          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
165 $as_echo X/"$0" |
166     sed '/^.*\/\([^/][^/]*\)\/*$/{
167             s//\1/
168             q
169           }
170           /^X\/\(\/\/\)$/{
171             s//\1/
172             q
173           }
174           /^X\/\(\/\).*/{
175             s//\1/
176             q
177           }
178           s/.*/./; q'`
179
180 # CDPATH.
181 $as_unset CDPATH
182
183
184 if test "x$CONFIG_SHELL" = x; then
185   if (eval ":") 2>/dev/null; then
186   as_have_required=yes
187 else
188   as_have_required=no
189 fi
190
191   if test $as_have_required = yes &&     (eval ":
192 (as_func_return () {
193   (exit \$1)
194 }
195 as_func_success () {
196   as_func_return 0
197 }
198 as_func_failure () {
199   as_func_return 1
200 }
201 as_func_ret_success () {
202   return 0
203 }
204 as_func_ret_failure () {
205   return 1
206 }
207
208 exitcode=0
209 if as_func_success; then
210   :
211 else
212   exitcode=1
213   echo as_func_success failed.
214 fi
215
216 if as_func_failure; then
217   exitcode=1
218   echo as_func_failure succeeded.
219 fi
220
221 if as_func_ret_success; then
222   :
223 else
224   exitcode=1
225   echo as_func_ret_success failed.
226 fi
227
228 if as_func_ret_failure; then
229   exitcode=1
230   echo as_func_ret_failure succeeded.
231 fi
232
233 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
234   :
235 else
236   exitcode=1
237   echo positional parameters were not saved.
238 fi
239
240 test \$exitcode = 0) || { (exit 1); exit 1; }
241
242 (
243   as_lineno_1=\$LINENO
244   as_lineno_2=\$LINENO
245   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
246   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
247 ") 2> /dev/null; then
248   :
249 else
250   as_candidate_shells=
251     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
252 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
253 do
254   IFS=$as_save_IFS
255   test -z "$as_dir" && as_dir=.
256   case $as_dir in
257          /*)
258            for as_base in sh bash ksh sh5; do
259              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
260            done;;
261        esac
262 done
263 IFS=$as_save_IFS
264
265
266       for as_shell in $as_candidate_shells $SHELL; do
267          # Try only shells that exist, to save several forks.
268          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
269                 { ("$as_shell") 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
271   emulate sh
272   NULLCMD=:
273   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
274   # is contrary to our usage.  Disable this feature.
275   alias -g '${1+"$@"}'='"$@"'
276   setopt NO_GLOB_SUBST
277 else
278   case `(set -o) 2>/dev/null` in
279   *posix*) set -o posix ;;
280 esac
281
282 fi
283
284
285 :
286 _ASEOF
287 }; then
288   CONFIG_SHELL=$as_shell
289                as_have_required=yes
290                if { "$as_shell" 2> /dev/null <<\_ASEOF
291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
292   emulate sh
293   NULLCMD=:
294   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
295   # is contrary to our usage.  Disable this feature.
296   alias -g '${1+"$@"}'='"$@"'
297   setopt NO_GLOB_SUBST
298 else
299   case `(set -o) 2>/dev/null` in
300   *posix*) set -o posix ;;
301 esac
302
303 fi
304
305
306 :
307 (as_func_return () {
308   (exit $1)
309 }
310 as_func_success () {
311   as_func_return 0
312 }
313 as_func_failure () {
314   as_func_return 1
315 }
316 as_func_ret_success () {
317   return 0
318 }
319 as_func_ret_failure () {
320   return 1
321 }
322
323 exitcode=0
324 if as_func_success; then
325   :
326 else
327   exitcode=1
328   echo as_func_success failed.
329 fi
330
331 if as_func_failure; then
332   exitcode=1
333   echo as_func_failure succeeded.
334 fi
335
336 if as_func_ret_success; then
337   :
338 else
339   exitcode=1
340   echo as_func_ret_success failed.
341 fi
342
343 if as_func_ret_failure; then
344   exitcode=1
345   echo as_func_ret_failure succeeded.
346 fi
347
348 if ( set x; as_func_ret_success y && test x = "$1" ); then
349   :
350 else
351   exitcode=1
352   echo positional parameters were not saved.
353 fi
354
355 test $exitcode = 0) || { (exit 1); exit 1; }
356
357 (
358   as_lineno_1=$LINENO
359   as_lineno_2=$LINENO
360   test "x$as_lineno_1" != "x$as_lineno_2" &&
361   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
362
363 _ASEOF
364 }; then
365   break
366 fi
367
368 fi
369
370       done
371
372       if test "x$CONFIG_SHELL" != x; then
373   for as_var in BASH_ENV ENV
374         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
375         done
376         export CONFIG_SHELL
377         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
378 fi
379
380
381     if test $as_have_required = no; then
382   echo This script requires a shell more modern than all the
383       echo shells that I found on your system.  Please install a
384       echo modern shell, or manually run the script under such a
385       echo shell if you do have one.
386       { (exit 1); exit 1; }
387 fi
388
389
390 fi
391
392 fi
393
394
395
396 (eval "as_func_return () {
397   (exit \$1)
398 }
399 as_func_success () {
400   as_func_return 0
401 }
402 as_func_failure () {
403   as_func_return 1
404 }
405 as_func_ret_success () {
406   return 0
407 }
408 as_func_ret_failure () {
409   return 1
410 }
411
412 exitcode=0
413 if as_func_success; then
414   :
415 else
416   exitcode=1
417   echo as_func_success failed.
418 fi
419
420 if as_func_failure; then
421   exitcode=1
422   echo as_func_failure succeeded.
423 fi
424
425 if as_func_ret_success; then
426   :
427 else
428   exitcode=1
429   echo as_func_ret_success failed.
430 fi
431
432 if as_func_ret_failure; then
433   exitcode=1
434   echo as_func_ret_failure succeeded.
435 fi
436
437 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
438   :
439 else
440   exitcode=1
441   echo positional parameters were not saved.
442 fi
443
444 test \$exitcode = 0") || {
445   echo No shell found that supports shell functions.
446   echo Please tell autoconf@gnu.org about your system,
447   echo including any error possibly output before this
448   echo message
449 }
450
451
452
453   as_lineno_1=$LINENO
454   as_lineno_2=$LINENO
455   test "x$as_lineno_1" != "x$as_lineno_2" &&
456   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
457
458   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
459   # uniformly replaced by the line number.  The first 'sed' inserts a
460   # line-number line after each line using $LINENO; the second 'sed'
461   # does the real work.  The second script uses 'N' to pair each
462   # line-number line with the line containing $LINENO, and appends
463   # trailing '-' during substitution so that $LINENO is not a special
464   # case at line end.
465   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
466   # scripts with optimization help from Paolo Bonzini.  Blame Lee
467   # E. McMahon (1931-1989) for sed's syntax.  :-)
468   sed -n '
469     p
470     /[$]LINENO/=
471   ' <$as_myself |
472     sed '
473       s/[$]LINENO.*/&-/
474       t lineno
475       b
476       :lineno
477       N
478       :loop
479       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
480       t loop
481       s/-\n.*//
482     ' >$as_me.lineno &&
483   chmod +x "$as_me.lineno" ||
484     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
485    { (exit 1); exit 1; }; }
486
487   # Don't try to exec as it changes $[0], causing all sort of problems
488   # (the dirname of $[0] is not the place where we might find the
489   # original and so on.  Autoconf is especially sensitive to this).
490   . "./$as_me.lineno"
491   # Exit status is that of the last command.
492   exit
493 }
494
495
496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
497   as_dirname=dirname
498 else
499   as_dirname=false
500 fi
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in
504 -n*)
505   case `echo 'x\c'` in
506   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
507   *)   ECHO_C='\c';;
508   esac;;
509 *)
510   ECHO_N='-n';;
511 esac
512 if expr a : '\(a\)' >/dev/null 2>&1 &&
513    test "X`expr 00001 : '.*\(...\)'`" = X001; then
514   as_expr=expr
515 else
516   as_expr=false
517 fi
518
519 rm -f conf$$ conf$$.exe conf$$.file
520 if test -d conf$$.dir; then
521   rm -f conf$$.dir/conf$$.file
522 else
523   rm -f conf$$.dir
524   mkdir conf$$.dir
525 fi
526 echo >conf$$.file
527 if ln -s conf$$.file conf$$ 2>/dev/null; then
528   as_ln_s='ln -s'
529   # ... but there are two gotchas:
530   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532   # In both cases, we have to default to `cp -p'.
533   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534     as_ln_s='cp -p'
535 elif ln conf$$.file conf$$ 2>/dev/null; then
536   as_ln_s=ln
537 else
538   as_ln_s='cp -p'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p=:
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 if test -x / >/dev/null 2>&1; then
551   as_test_x='test -x'
552 else
553   if ls -dL / >/dev/null 2>&1; then
554     as_ls_L_option=L
555   else
556     as_ls_L_option=
557   fi
558   as_test_x='
559     eval sh -c '\''
560       if test -d "$1"; then
561         test -d "$1/.";
562       else
563         case $1 in
564         -*)set "./$1";;
565         esac;
566         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
567         ???[sx]*):;;*)false;;esac;fi
568     '\'' sh
569   '
570 fi
571 as_executable_p=$as_test_x
572
573 # Sed expression to map a string onto a valid CPP name.
574 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
575
576 # Sed expression to map a string onto a valid variable name.
577 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578
579
580
581 # Find the correct PATH separator.  Usually this is `:', but
582 # DJGPP uses `;' like DOS.
583 if test "X${PATH_SEPARATOR+set}" != Xset; then
584   UNAME=${UNAME-`uname 2>/dev/null`}
585   case X$UNAME in
586     *-DOS) lt_cv_sys_path_separator=';' ;;
587     *)     lt_cv_sys_path_separator=':' ;;
588   esac
589   PATH_SEPARATOR=$lt_cv_sys_path_separator
590 fi
591
592
593 # Check that we are running under the correct shell.
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 case X$ECHO in
597 X*--fallback-echo)
598   # Remove one level of quotation (which was required for Make).
599   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
600   ;;
601 esac
602
603 echo=${ECHO-echo}
604 if test "X$1" = X--no-reexec; then
605   # Discard the --no-reexec flag, and continue.
606   shift
607 elif test "X$1" = X--fallback-echo; then
608   # Avoid inline document here, it may be left over
609   :
610 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
611   # Yippee, $echo works!
612   :
613 else
614   # Restart under the correct shell.
615   exec $SHELL "$0" --no-reexec ${1+"$@"}
616 fi
617
618 if test "X$1" = X--fallback-echo; then
619   # used as fallback echo
620   shift
621   cat <<EOF
622
623 EOF
624   exit 0
625 fi
626
627 # The HP-UX ksh and POSIX shell print the target directory to stdout
628 # if CDPATH is set.
629 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
630
631 if test -z "$ECHO"; then
632 if test "X${echo_test_string+set}" != Xset; then
633 # find a string as large as possible, as long as the shell can cope with it
634   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
635     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
636     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
637        echo_test_string="`eval $cmd`" &&
638        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
639     then
640       break
641     fi
642   done
643 fi
644
645 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
646    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
647    test "X$echo_testing_string" = "X$echo_test_string"; then
648   :
649 else
650   # The Solaris, AIX, and Digital Unix default echo programs unquote
651   # backslashes.  This makes it impossible to quote backslashes using
652   #   echo "$something" | sed 's/\\/\\\\/g'
653   #
654   # So, first we look for a working echo in the user's PATH.
655
656   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
657   for dir in $PATH /usr/ucb; do
658     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
659        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
660        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
661        test "X$echo_testing_string" = "X$echo_test_string"; then
662       echo="$dir/echo"
663       break
664     fi
665   done
666   IFS="$save_ifs"
667
668   if test "X$echo" = Xecho; then
669     # We didn't find a better echo, so look for alternatives.
670     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
671        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
672        test "X$echo_testing_string" = "X$echo_test_string"; then
673       # This shell has a builtin print -r that does the trick.
674       echo='print -r'
675     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
676          test "X$CONFIG_SHELL" != X/bin/ksh; then
677       # If we have ksh, try running configure again with it.
678       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
679       export ORIGINAL_CONFIG_SHELL
680       CONFIG_SHELL=/bin/ksh
681       export CONFIG_SHELL
682       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
683     else
684       # Try using printf.
685       echo='printf %s\n'
686       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
687          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
688          test "X$echo_testing_string" = "X$echo_test_string"; then
689         # Cool, printf works
690         :
691       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
692            test "X$echo_testing_string" = 'X\t' &&
693            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
694            test "X$echo_testing_string" = "X$echo_test_string"; then
695         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
696         export CONFIG_SHELL
697         SHELL="$CONFIG_SHELL"
698         export SHELL
699         echo="$CONFIG_SHELL $0 --fallback-echo"
700       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
701            test "X$echo_testing_string" = 'X\t' &&
702            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
703            test "X$echo_testing_string" = "X$echo_test_string"; then
704         echo="$CONFIG_SHELL $0 --fallback-echo"
705       else
706         # maybe with a smaller string...
707         prev=:
708
709         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
710           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
711           then
712             break
713           fi
714           prev="$cmd"
715         done
716
717         if test "$prev" != 'sed 50q "$0"'; then
718           echo_test_string=`eval $prev`
719           export echo_test_string
720           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
721         else
722           # Oops.  We lost completely, so just stick with echo.
723           echo=echo
724         fi
725       fi
726     fi
727   fi
728 fi
729 fi
730
731 # Copy echo and quote the copy suitably for passing to libtool from
732 # the Makefile, instead of quoting the original, which is used later.
733 ECHO=$echo
734 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
735    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
736 fi
737
738
739
740 exec 7<&0 </dev/null 6>&1
741
742 # Name of the host.
743 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
744 # so uname gets run too.
745 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
746
747 #
748 # Initializations.
749 #
750 ac_default_prefix=/usr/local
751 ac_clean_files=
752 ac_config_libobj_dir=.
753 LIBOBJS=
754 cross_compiling=no
755 subdirs=
756 MFLAGS=
757 MAKEFLAGS=
758 SHELL=${CONFIG_SHELL-/bin/sh}
759
760 # Identity of this package.
761 PACKAGE_NAME=
762 PACKAGE_TARNAME=
763 PACKAGE_VERSION=
764 PACKAGE_STRING=
765 PACKAGE_BUGREPORT=
766
767 ac_unique_file="pathsearch.c"
768 # Factoring default headers for most tests.
769 ac_includes_default="\
770 #include <stdio.h>
771 #ifdef HAVE_SYS_TYPES_H
772 # include <sys/types.h>
773 #endif
774 #ifdef HAVE_SYS_STAT_H
775 # include <sys/stat.h>
776 #endif
777 #ifdef STDC_HEADERS
778 # include <stdlib.h>
779 # include <stddef.h>
780 #else
781 # ifdef HAVE_STDLIB_H
782 #  include <stdlib.h>
783 # endif
784 #endif
785 #ifdef HAVE_STRING_H
786 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
787 #  include <memory.h>
788 # endif
789 # include <string.h>
790 #endif
791 #ifdef HAVE_STRINGS_H
792 # include <strings.h>
793 #endif
794 #ifdef HAVE_INTTYPES_H
795 # include <inttypes.h>
796 #endif
797 #ifdef HAVE_STDINT_H
798 # include <stdint.h>
799 #endif
800 #ifdef HAVE_UNISTD_H
801 # include <unistd.h>
802 #endif"
803
804 ac_subst_vars='SHELL
805 PATH_SEPARATOR
806 PACKAGE_NAME
807 PACKAGE_TARNAME
808 PACKAGE_VERSION
809 PACKAGE_STRING
810 PACKAGE_BUGREPORT
811 exec_prefix
812 prefix
813 program_transform_name
814 bindir
815 sbindir
816 libexecdir
817 datarootdir
818 datadir
819 sysconfdir
820 sharedstatedir
821 localstatedir
822 includedir
823 oldincludedir
824 docdir
825 infodir
826 htmldir
827 dvidir
828 pdfdir
829 psdir
830 libdir
831 localedir
832 mandir
833 DEFS
834 ECHO_C
835 ECHO_N
836 ECHO_T
837 LIBS
838 build_alias
839 host_alias
840 target_alias
841 KPSEVERSION
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 INSTALL_PROGRAM
850 INSTALL_SCRIPT
851 INSTALL_DATA
852 LN_S
853 SET_MAKE
854 build
855 build_cpu
856 build_vendor
857 build_os
858 host
859 host_cpu
860 host_vendor
861 host_os
862 ECHO
863 RANLIB
864 STRIP
865 CPP
866 GREP
867 EGREP
868 LIBTOOL
869 LTLIBOBJS
870 MAINT
871 LD
872 AR
873 ARFLAGS
874 texmfmain
875 BUILDCC
876 BUILDCFLAGS
877 BUILDCPPFLAGS
878 BUILDLDFLAGS
879 BUILDCCLD
880 LIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP'
891
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943   # If the previous option needs an argument, assign it.
944   if test -n "$ac_prev"; then
945     eval $ac_prev=\$ac_option
946     ac_prev=
947     continue
948   fi
949
950   case $ac_option in
951   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998    { (exit 1); exit 1; }; }
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1000     eval enable_$ac_useropt=no ;;
1001
1002   -docdir | --docdir | --docdi | --doc | --do)
1003     ac_prev=docdir ;;
1004   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005     docdir=$ac_optarg ;;
1006
1007   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008     ac_prev=dvidir ;;
1009   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010     dvidir=$ac_optarg ;;
1011
1012   -enable-* | --enable-*)
1013     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1017    { (exit 1); exit 1; }; }
1018     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1019     eval enable_$ac_useropt=\$ac_optarg ;;
1020
1021   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023   | --exec | --exe | --ex)
1024     ac_prev=exec_prefix ;;
1025   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027   | --exec=* | --exe=* | --ex=*)
1028     exec_prefix=$ac_optarg ;;
1029
1030   -gas | --gas | --ga | --g)
1031     # Obsolete; use --with-gas.
1032     with_gas=yes ;;
1033
1034   -help | --help | --hel | --he | -h)
1035     ac_init_help=long ;;
1036   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037     ac_init_help=recursive ;;
1038   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039     ac_init_help=short ;;
1040
1041   -host | --host | --hos | --ho)
1042     ac_prev=host_alias ;;
1043   -host=* | --host=* | --hos=* | --ho=*)
1044     host_alias=$ac_optarg ;;
1045
1046   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047     ac_prev=htmldir ;;
1048   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049   | --ht=*)
1050     htmldir=$ac_optarg ;;
1051
1052   -includedir | --includedir | --includedi | --included | --include \
1053   | --includ | --inclu | --incl | --inc)
1054     ac_prev=includedir ;;
1055   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056   | --includ=* | --inclu=* | --incl=* | --inc=*)
1057     includedir=$ac_optarg ;;
1058
1059   -infodir | --infodir | --infodi | --infod | --info | --inf)
1060     ac_prev=infodir ;;
1061   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062     infodir=$ac_optarg ;;
1063
1064   -libdir | --libdir | --libdi | --libd)
1065     ac_prev=libdir ;;
1066   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067     libdir=$ac_optarg ;;
1068
1069   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070   | --libexe | --libex | --libe)
1071     ac_prev=libexecdir ;;
1072   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073   | --libexe=* | --libex=* | --libe=*)
1074     libexecdir=$ac_optarg ;;
1075
1076   -localedir | --localedir | --localedi | --localed | --locale)
1077     ac_prev=localedir ;;
1078   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079     localedir=$ac_optarg ;;
1080
1081   -localstatedir | --localstatedir | --localstatedi | --localstated \
1082   | --localstate | --localstat | --localsta | --localst | --locals)
1083     ac_prev=localstatedir ;;
1084   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086     localstatedir=$ac_optarg ;;
1087
1088   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089     ac_prev=mandir ;;
1090   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091     mandir=$ac_optarg ;;
1092
1093   -nfp | --nfp | --nf)
1094     # Obsolete; use --without-fp.
1095     with_fp=no ;;
1096
1097   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098   | --no-cr | --no-c | -n)
1099     no_create=yes ;;
1100
1101   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103     no_recursion=yes ;;
1104
1105   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107   | --oldin | --oldi | --old | --ol | --o)
1108     ac_prev=oldincludedir ;;
1109   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112     oldincludedir=$ac_optarg ;;
1113
1114   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115     ac_prev=prefix ;;
1116   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117     prefix=$ac_optarg ;;
1118
1119   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120   | --program-pre | --program-pr | --program-p)
1121     ac_prev=program_prefix ;;
1122   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124     program_prefix=$ac_optarg ;;
1125
1126   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127   | --program-suf | --program-su | --program-s)
1128     ac_prev=program_suffix ;;
1129   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131     program_suffix=$ac_optarg ;;
1132
1133   -program-transform-name | --program-transform-name \
1134   | --program-transform-nam | --program-transform-na \
1135   | --program-transform-n | --program-transform- \
1136   | --program-transform | --program-transfor \
1137   | --program-transfo | --program-transf \
1138   | --program-trans | --program-tran \
1139   | --progr-tra | --program-tr | --program-t)
1140     ac_prev=program_transform_name ;;
1141   -program-transform-name=* | --program-transform-name=* \
1142   | --program-transform-nam=* | --program-transform-na=* \
1143   | --program-transform-n=* | --program-transform-=* \
1144   | --program-transform=* | --program-transfor=* \
1145   | --program-transfo=* | --program-transf=* \
1146   | --program-trans=* | --program-tran=* \
1147   | --progr-tra=* | --program-tr=* | --program-t=*)
1148     program_transform_name=$ac_optarg ;;
1149
1150   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151     ac_prev=pdfdir ;;
1152   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153     pdfdir=$ac_optarg ;;
1154
1155   -psdir | --psdir | --psdi | --psd | --ps)
1156     ac_prev=psdir ;;
1157   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158     psdir=$ac_optarg ;;
1159
1160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161   | -silent | --silent | --silen | --sile | --sil)
1162     silent=yes ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1214    { (exit 1); exit 1; }; }
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1216     eval with_$ac_useropt=\$ac_optarg ;;
1217
1218   -without-* | --without-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1225     eval with_$ac_useropt=no ;;
1226
1227   --x)
1228     # Obsolete; use --with-x.
1229     with_x=yes ;;
1230
1231   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232   | --x-incl | --x-inc | --x-in | --x-i)
1233     ac_prev=x_includes ;;
1234   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236     x_includes=$ac_optarg ;;
1237
1238   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240     ac_prev=x_libraries ;;
1241   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243     x_libraries=$ac_optarg ;;
1244
1245   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247    { (exit 1); exit 1; }; }
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255    { (exit 1); exit 1; }; }
1256     eval $ac_envvar=\$ac_optarg
1257     export $ac_envvar ;;
1258
1259   *)
1260     # FIXME: should be removed in autoconf 3.0.
1261     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265     ;;
1266
1267   esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 # Be sure to have absolute directory names.
1277 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278                 datadir sysconfdir sharedstatedir localstatedir includedir \
1279                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280                 libdir localedir mandir
1281 do
1282   eval ac_val=\$$ac_var
1283   case $ac_val in
1284     [\\/$]* | ?:[\\/]* )  continue;;
1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286   esac
1287   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288    { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1319    { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1322    { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327   ac_srcdir_defaulted=yes
1328   # Try the directory containing this script, then the parent directory.
1329   ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331          X"$0" : 'X\(//\)[^/]' \| \
1332          X"$0" : 'X\(//\)$' \| \
1333          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$0" |
1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)[^/].*/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\).*/{
1348             s//\1/
1349             q
1350           }
1351           s/.*/./; q'`
1352   srcdir=$ac_confdir
1353   if test ! -r "$srcdir/$ac_unique_file"; then
1354     srcdir=..
1355   fi
1356 else
1357   ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362    { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1367    { (exit 1); exit 1; }; }
1368         pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371   srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR           user executables [EPREFIX/bin]
1428   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR       program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1433   --libdir=DIR           object code libraries [EPREFIX/lib]
1434   --includedir=DIR       C header files [PREFIX/include]
1435   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR          info documentation [DATAROOTDIR/info]
1439   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR           man documentation [DATAROOTDIR/man]
1441   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1442   --htmldir=DIR          html documentation [DOCDIR]
1443   --dvidir=DIR           dvi documentation [DOCDIR]
1444   --pdfdir=DIR           pdf documentation [DOCDIR]
1445   --psdir=DIR            ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 System types:
1451   --build=BUILD     configure for building on BUILD [guessed]
1452   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --enable-shared=PKGS  build shared libraries default=yes
1464   --enable-static=PKGS  build static libraries default=yes
1465   --enable-fast-install=PKGS  optimize for fast installation default=yes
1466   --disable-libtool-lock  avoid locking (might break parallel builds)
1467   --enable-maintainer-mode  enable make rules and dependencies not useful
1468                           (and sometimes confusing) to the casual installer
1469
1470 Optional Packages:
1471   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1472   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1473   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1474   --with-pic              try to use only PIC/non-PIC objects default=use both
1475   --without-mktexmf-default    do not run mktexmf if MF source missing
1476   --without-mktexpk-default    do not run mktexpk if PK font missing
1477   --without-mktextfm-default   do not run mktextfm if TFM file missing
1478   --without-mkocp-default      do not run mkocp if OCP file missing
1479   --without-mkofm-default      do not run mkofm if OFM file missing
1480   --with-mktexfmt-default      run mktexfmt if format file missing
1481   --with-mktextex-default      run mktextex if TeX source missing
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   LIBS        libraries to pass to the linker, e.g. -l<library>
1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CPP         C preprocessor
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 _ACEOF
1497 ac_status=$?
1498 fi
1499
1500 if test "$ac_init_help" = "recursive"; then
1501   # If there are subdirs, report their specific --help.
1502   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503     test -d "$ac_dir" || continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 configure
1557 generated by GNU Autoconf 2.61a
1558
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1563 _ACEOF
1564   exit
1565 fi
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1569
1570 It was created by $as_me, which was
1571 generated by GNU Autoconf 2.61a.  Invocation command line was
1572
1573   $ $0 $@
1574
1575 _ACEOF
1576 exec 5>>config.log
1577 {
1578 cat <<_ASUNAME
1579 ## --------- ##
1580 ## Platform. ##
1581 ## --------- ##
1582
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1591
1592 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1593 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1596 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1597 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1598 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1599
1600 _ASUNAME
1601
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   $as_echo "PATH: $as_dir"
1608 done
1609 IFS=$as_save_IFS
1610
1611 } >&5
1612
1613 cat >&5 <<_ACEOF
1614
1615
1616 ## ----------- ##
1617 ## Core tests. ##
1618 ## ----------- ##
1619
1620 _ACEOF
1621
1622
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_configure_args=
1629 ac_configure_args0=
1630 ac_configure_args1=
1631 ac_must_keep_next=false
1632 for ac_pass in 1 2
1633 do
1634   for ac_arg
1635   do
1636     case $ac_arg in
1637     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639     | -silent | --silent | --silen | --sile | --sil)
1640       continue ;;
1641     *\'*)
1642       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643     esac
1644     case $ac_pass in
1645     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646     2)
1647       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1648       if test $ac_must_keep_next = true; then
1649         ac_must_keep_next=false # Got value, back to normal.
1650       else
1651         case $ac_arg in
1652           *=* | --config-cache | -C | -disable-* | --disable-* \
1653           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655           | -with-* | --with-* | -without-* | --without-* | --x)
1656             case "$ac_configure_args0 " in
1657               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658             esac
1659             ;;
1660           -* ) ac_must_keep_next=true ;;
1661         esac
1662       fi
1663       ac_configure_args="$ac_configure_args '$ac_arg'"
1664       ;;
1665     esac
1666   done
1667 done
1668 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log.  We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677   # Save into config.log some information that might help in debugging.
1678   {
1679     echo
1680
1681     cat <<\_ASBOX
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1685 _ASBOX
1686     echo
1687     # The following way of writing the cache mishandles newlines in values,
1688 (
1689   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690     eval ac_val=\$$ac_var
1691     case $ac_val in #(
1692     *${as_nl}*)
1693       case $ac_var in #(
1694       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1696       esac
1697       case $ac_var in #(
1698       _ | IFS | as_nl) ;; #(
1699       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1700       *) $as_unset $ac_var ;;
1701       esac ;;
1702     esac
1703   done
1704   (set) 2>&1 |
1705     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706     *${as_nl}ac_space=\ *)
1707       sed -n \
1708         "s/'\''/'\''\\\\'\'''\''/g;
1709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710       ;; #(
1711     *)
1712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713       ;;
1714     esac |
1715     sort
1716 )
1717     echo
1718
1719     cat <<\_ASBOX
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1723 _ASBOX
1724     echo
1725     for ac_var in $ac_subst_vars
1726     do
1727       eval ac_val=\$$ac_var
1728       case $ac_val in
1729       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730       esac
1731       $as_echo "$ac_var='\''$ac_val'\''"
1732     done | sort
1733     echo
1734
1735     if test -n "$ac_subst_files"; then
1736       cat <<\_ASBOX
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1740 _ASBOX
1741       echo
1742       for ac_var in $ac_subst_files
1743       do
1744         eval ac_val=\$$ac_var
1745         case $ac_val in
1746         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747         esac
1748         $as_echo "$ac_var='\''$ac_val'\''"
1749       done | sort
1750       echo
1751     fi
1752
1753     if test -s confdefs.h; then
1754       cat <<\_ASBOX
1755 ## ----------- ##
1756 ## confdefs.h. ##
1757 ## ----------- ##
1758 _ASBOX
1759       echo
1760       cat confdefs.h
1761       echo
1762     fi
1763     test "$ac_signal" != 0 &&
1764       $as_echo "$as_me: caught signal $ac_signal"
1765     $as_echo "$as_me: exit $exit_status"
1766   } >&5
1767   rm -f core *.core core.conftest.* &&
1768     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769     exit $exit_status
1770 ' 0
1771 for ac_signal in 1 2 13 15; do
1772   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 done
1774 ac_signal=0
1775
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1778
1779 # Predefined preprocessor variables.
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809   set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 else
1813   set x "$ac_default_prefix/share/config.site" \
1814         "$ac_default_prefix/etc/config.site"
1815 fi
1816 shift
1817 for ac_site_file
1818 do
1819   if test -r "$ac_site_file"; then
1820     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1822     sed 's/^/| /' "$ac_site_file" >&5
1823     . "$ac_site_file"
1824   fi
1825 done
1826
1827 if test -r "$cache_file"; then
1828   # Some versions of bash will fail to source /dev/null (special
1829   # files actually), so we avoid doing that.
1830   if test -f "$cache_file"; then
1831     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 $as_echo "$as_me: loading cache $cache_file" >&6;}
1833     case $cache_file in
1834       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835       *)                      . "./$cache_file";;
1836     esac
1837   fi
1838 else
1839   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 $as_echo "$as_me: creating cache $cache_file" >&6;}
1841   >$cache_file
1842 fi
1843
1844 # Check that the precious variables saved in the cache have kept the same
1845 # value.
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849   eval ac_new_set=\$ac_env_${ac_var}_set
1850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851   eval ac_new_val=\$ac_env_${ac_var}_value
1852   case $ac_old_set,$ac_new_set in
1853     set,)
1854       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,set)
1858       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,);;
1862     *)
1863       if test "x$ac_old_val" != "x$ac_new_val"; then
1864         { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866         { $as_echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1867 $as_echo "$as_me:   former value:  $ac_old_val" >&2;}
1868         { $as_echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1869 $as_echo "$as_me:   current value: $ac_new_val" >&2;}
1870         ac_cache_corrupted=:
1871       fi;;
1872   esac
1873   # Pass precious variables to config.status.
1874   if test "$ac_new_set" = set; then
1875     case $ac_new_val in
1876     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877     *) ac_arg=$ac_var=$ac_new_val ;;
1878     esac
1879     case " $ac_configure_args " in
1880       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1881       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882     esac
1883   fi
1884 done
1885 if $ac_cache_corrupted; then
1886   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916
1917 KPSEVERSION=3.5.6dev
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define KPSEVERSION "kpathsea version $KPSEVERSION"
1921 _ACEOF
1922
1923
1924
1925
1926
1927 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 if test -n "$ac_tool_prefix"; then
1936   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 $as_echo_n "checking for $ac_word... " >&6; }
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941   $as_echo_n "(cached) " >&6
1942 else
1943   if test -n "$CC"; then
1944   ac_cv_prog_CC="$CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1953     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1954     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959 IFS=$as_save_IFS
1960
1961 fi
1962 fi
1963 CC=$ac_cv_prog_CC
1964 if test -n "$CC"; then
1965   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1966 $as_echo "$CC" >&6; }
1967 else
1968   { $as_echo "$as_me:$LINENO: result: no" >&5
1969 $as_echo "no" >&6; }
1970 fi
1971
1972
1973 fi
1974 if test -z "$ac_cv_prog_CC"; then
1975   ac_ct_CC=$CC
1976   # Extract the first word of "gcc", so it can be a program name with args.
1977 set dummy gcc; ac_word=$2
1978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 $as_echo_n "checking for $ac_word... " >&6; }
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981   $as_echo_n "(cached) " >&6
1982 else
1983   if test -n "$ac_ct_CC"; then
1984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993     ac_cv_prog_ac_ct_CC="gcc"
1994     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995     break 2
1996   fi
1997 done
1998 done
1999 IFS=$as_save_IFS
2000
2001 fi
2002 fi
2003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004 if test -n "$ac_ct_CC"; then
2005   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006 $as_echo "$ac_ct_CC" >&6; }
2007 else
2008   { $as_echo "$as_me:$LINENO: result: no" >&5
2009 $as_echo "no" >&6; }
2010 fi
2011
2012   if test "x$ac_ct_CC" = x; then
2013     CC=""
2014   else
2015     case $cross_compiling:$ac_tool_warned in
2016 yes:)
2017 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2018 whose name does not start with the host triplet.  If you think this
2019 configuration is useful to you, please write to autoconf@gnu.org." >&5
2020 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2021 whose name does not start with the host triplet.  If you think this
2022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2023 ac_tool_warned=yes ;;
2024 esac
2025     CC=$ac_ct_CC
2026   fi
2027 else
2028   CC="$ac_cv_prog_CC"
2029 fi
2030
2031 if test -z "$CC"; then
2032           if test -n "$ac_tool_prefix"; then
2033     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}cc; ac_word=$2
2035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 $as_echo_n "checking for $ac_word... " >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   $as_echo_n "(cached) " >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050     ac_cv_prog_CC="${ac_tool_prefix}cc"
2051     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056 IFS=$as_save_IFS
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2063 $as_echo "$CC" >&6; }
2064 else
2065   { $as_echo "$as_me:$LINENO: result: no" >&5
2066 $as_echo "no" >&6; }
2067 fi
2068
2069
2070   fi
2071 fi
2072 if test -z "$CC"; then
2073   # Extract the first word of "cc", so it can be a program name with args.
2074 set dummy cc; ac_word=$2
2075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 $as_echo_n "checking for $ac_word... " >&6; }
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078   $as_echo_n "(cached) " >&6
2079 else
2080   if test -n "$CC"; then
2081   ac_cv_prog_CC="$CC" # Let the user override the test.
2082 else
2083   ac_prog_rejected=no
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2092        ac_prog_rejected=yes
2093        continue
2094      fi
2095     ac_cv_prog_CC="cc"
2096     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101 IFS=$as_save_IFS
2102
2103 if test $ac_prog_rejected = yes; then
2104   # We found a bogon in the path, so make sure we never use it.
2105   set dummy $ac_cv_prog_CC
2106   shift
2107   if test $# != 0; then
2108     # We chose a different compiler from the bogus one.
2109     # However, it has the same basename, so the bogon will be chosen
2110     # first if we set CC to just the basename; use the full file name.
2111     shift
2112     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2113   fi
2114 fi
2115 fi
2116 fi
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2120 $as_echo "$CC" >&6; }
2121 else
2122   { $as_echo "$as_me:$LINENO: result: no" >&5
2123 $as_echo "no" >&6; }
2124 fi
2125
2126
2127 fi
2128 if test -z "$CC"; then
2129   if test -n "$ac_tool_prefix"; then
2130   for ac_prog in cl.exe
2131   do
2132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 $as_echo_n "checking for $ac_word... " >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137   $as_echo_n "(cached) " >&6
2138 else
2139   if test -n "$CC"; then
2140   ac_cv_prog_CC="$CC" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147   for ac_exec_ext in '' $ac_executable_extensions; do
2148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2150     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151     break 2
2152   fi
2153 done
2154 done
2155 IFS=$as_save_IFS
2156
2157 fi
2158 fi
2159 CC=$ac_cv_prog_CC
2160 if test -n "$CC"; then
2161   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2162 $as_echo "$CC" >&6; }
2163 else
2164   { $as_echo "$as_me:$LINENO: result: no" >&5
2165 $as_echo "no" >&6; }
2166 fi
2167
2168
2169     test -n "$CC" && break
2170   done
2171 fi
2172 if test -z "$CC"; then
2173   ac_ct_CC=$CC
2174   for ac_prog in cl.exe
2175 do
2176   # Extract the first word of "$ac_prog", so it can be a program name with args.
2177 set dummy $ac_prog; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181   $as_echo_n "(cached) " >&6
2182 else
2183   if test -n "$ac_ct_CC"; then
2184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     ac_cv_prog_ac_ct_CC="$ac_prog"
2194     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 fi
2202 fi
2203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204 if test -n "$ac_ct_CC"; then
2205   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206 $as_echo "$ac_ct_CC" >&6; }
2207 else
2208   { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2210 fi
2211
2212
2213   test -n "$ac_ct_CC" && break
2214 done
2215
2216   if test "x$ac_ct_CC" = x; then
2217     CC=""
2218   else
2219     case $cross_compiling:$ac_tool_warned in
2220 yes:)
2221 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet.  If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet.  If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2228 esac
2229     CC=$ac_ct_CC
2230   fi
2231 fi
2232
2233 fi
2234
2235
2236 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&5
2238 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&2;}
2240    { (exit 1); exit 1; }; }
2241
2242 # Provide some information about the compiler.
2243 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2244 set X $ac_compile
2245 ac_compiler=$2
2246 { (ac_try="$ac_compiler --version >&5"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2252 $as_echo "$ac_try_echo") >&5
2253   (eval "$ac_compiler --version >&5") 2>&5
2254   ac_status=$?
2255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); }
2257 { (ac_try="$ac_compiler -v >&5"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2263 $as_echo "$ac_try_echo") >&5
2264   (eval "$ac_compiler -v >&5") 2>&5
2265   ac_status=$?
2266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }
2268 { (ac_try="$ac_compiler -V >&5"
2269 case "(($ac_try" in
2270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271   *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2274 $as_echo "$ac_try_echo") >&5
2275   (eval "$ac_compiler -V >&5") 2>&5
2276   ac_status=$?
2277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }
2279
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h.  */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h.  */
2286
2287 int
2288 main ()
2289 {
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 ac_clean_files_save=$ac_clean_files
2296 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2297 # Try to create an executable without -o first, disregard a.out.
2298 # It will help us diagnose broken compilers, and finding out an intuition
2299 # of exeext.
2300 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2301 $as_echo_n "checking for C compiler default output file name... " >&6; }
2302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2303 #
2304 # List of possible output files, starting from the most likely.
2305 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2306 # only as a last resort.  b.out is created by i960 compilers.
2307 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2308 #
2309 # The IRIX 6 linker writes into existing files which may not be
2310 # executable, retaining their permissions.  Remove them first so a
2311 # subsequent execution test works.
2312 ac_rmfiles=
2313 for ac_file in $ac_files
2314 do
2315   case $ac_file in
2316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2317     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2318   esac
2319 done
2320 rm -f $ac_rmfiles
2321
2322 if { (ac_try="$ac_link_default"
2323 case "(($ac_try" in
2324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325   *) ac_try_echo=$ac_try;;
2326 esac
2327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2328 $as_echo "$ac_try_echo") >&5
2329   (eval "$ac_link_default") 2>&5
2330   ac_status=$?
2331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2335 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2336 # so that the user can short-circuit this test for compilers unknown to
2337 # Autoconf.
2338 for ac_file in $ac_files ''
2339 do
2340   test -f "$ac_file" || continue
2341   case $ac_file in
2342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2343         ;;
2344     [ab].out )
2345         # We found the default executable, but exeext='' is most
2346         # certainly right.
2347         break;;
2348     *.* )
2349         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2350         then :; else
2351            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2352         fi
2353         # We set ac_cv_exeext here because the later test for it is not
2354         # safe: cross compilers may not add the suffix if given an `-o'
2355         # argument, so we may need to know it at that point already.
2356         # Even if this section looks crufty: it has the advantage of
2357         # actually working.
2358         break;;
2359     * )
2360         break;;
2361   esac
2362 done
2363 test "$ac_cv_exeext" = no && ac_cv_exeext=
2364
2365 else
2366   ac_file=''
2367 fi
2368
2369 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2370 $as_echo "$ac_file" >&6; }
2371 if test -z "$ac_file"; then
2372   $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2376 See \`config.log' for more details." >&5
2377 $as_echo "$as_me: error: C compiler cannot create executables
2378 See \`config.log' for more details." >&2;}
2379    { (exit 77); exit 77; }; }
2380 fi
2381
2382 ac_exeext=$ac_cv_exeext
2383
2384 # Check that the compiler produces executables we can run.  If not, either
2385 # the compiler is broken, or we cross compile.
2386 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2387 $as_echo_n "checking whether the C compiler works... " >&6; }
2388 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2389 # If not cross compiling, check that we can run a simple program.
2390 if test "$cross_compiling" != yes; then
2391   if { ac_try='./$ac_file'
2392   { (case "(($ac_try" in
2393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394   *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2397 $as_echo "$ac_try_echo") >&5
2398   (eval "$ac_try") 2>&5
2399   ac_status=$?
2400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; }; then
2402     cross_compiling=no
2403   else
2404     if test "$cross_compiling" = maybe; then
2405         cross_compiling=yes
2406     else
2407         { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2408 If you meant to cross compile, use \`--host'.
2409 See \`config.log' for more details." >&5
2410 $as_echo "$as_me: error: cannot run C compiled programs.
2411 If you meant to cross compile, use \`--host'.
2412 See \`config.log' for more details." >&2;}
2413    { (exit 1); exit 1; }; }
2414     fi
2415   fi
2416 fi
2417 { $as_echo "$as_me:$LINENO: result: yes" >&5
2418 $as_echo "yes" >&6; }
2419
2420 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2421 ac_clean_files=$ac_clean_files_save
2422 # Check that the compiler produces executables we can run.  If not, either
2423 # the compiler is broken, or we cross compile.
2424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2425 $as_echo_n "checking whether we are cross compiling... " >&6; }
2426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2427 $as_echo "$cross_compiling" >&6; }
2428
2429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2430 $as_echo_n "checking for suffix of executables... " >&6; }
2431 if { (ac_try="$ac_link"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2437 $as_echo "$ac_try_echo") >&5
2438   (eval "$ac_link") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; then
2442   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2443 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2444 # work properly (i.e., refer to `conftest.exe'), while it won't with
2445 # `rm'.
2446 for ac_file in conftest.exe conftest conftest.*; do
2447   test -f "$ac_file" || continue
2448   case $ac_file in
2449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2450     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2451           break;;
2452     * ) break;;
2453   esac
2454 done
2455 else
2456   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457 See \`config.log' for more details." >&5
2458 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459 See \`config.log' for more details." >&2;}
2460    { (exit 1); exit 1; }; }
2461 fi
2462
2463 rm -f conftest$ac_cv_exeext
2464 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465 $as_echo "$ac_cv_exeext" >&6; }
2466
2467 rm -f conftest.$ac_ext
2468 EXEEXT=$ac_cv_exeext
2469 ac_exeext=$EXEEXT
2470 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471 $as_echo_n "checking for suffix of object files... " >&6; }
2472 if test "${ac_cv_objext+set}" = set; then
2473   $as_echo_n "(cached) " >&6
2474 else
2475   cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 rm -f conftest.o conftest.obj
2491 if { (ac_try="$ac_compile"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498   (eval "$ac_compile") 2>&5
2499   ac_status=$?
2500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; then
2502   for ac_file in conftest.o conftest.obj conftest.*; do
2503   test -f "$ac_file" || continue;
2504   case $ac_file in
2505     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2506     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2507        break;;
2508   esac
2509 done
2510 else
2511   $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2515 See \`config.log' for more details." >&5
2516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2517 See \`config.log' for more details." >&2;}
2518    { (exit 1); exit 1; }; }
2519 fi
2520
2521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2522 fi
2523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2524 $as_echo "$ac_cv_objext" >&6; }
2525 OBJEXT=$ac_cv_objext
2526 ac_objext=$OBJEXT
2527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2530   $as_echo_n "(cached) " >&6
2531 else
2532   cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h.  */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h.  */
2538
2539 int
2540 main ()
2541 {
2542 #ifndef __GNUC__
2543        choke me
2544 #endif
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2552 case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 $as_echo "$ac_try_echo") >&5
2558   (eval "$ac_compile") 2>conftest.er1
2559   ac_status=$?
2560   grep -v '^ *+' conftest.er1 >conftest.err
2561   rm -f conftest.er1
2562   cat conftest.err >&5
2563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); } && {
2565          test -z "$ac_c_werror_flag" ||
2566          test ! -s conftest.err
2567        } && test -s conftest.$ac_objext; then
2568   ac_compiler_gnu=yes
2569 else
2570   $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573         ac_compiler_gnu=no
2574 fi
2575
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2578
2579 fi
2580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2582 if test $ac_compiler_gnu = yes; then
2583   GCC=yes
2584 else
2585   GCC=
2586 fi
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592   $as_echo_n "(cached) " >&6
2593 else
2594   ac_save_c_werror_flag=$ac_c_werror_flag
2595    ac_c_werror_flag=yes
2596    ac_cv_prog_cc_g=no
2597    CFLAGS="-g"
2598    cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2620 $as_echo "$ac_try_echo") >&5
2621   (eval "$ac_compile") 2>conftest.er1
2622   ac_status=$?
2623   grep -v '^ *+' conftest.er1 >conftest.err
2624   rm -f conftest.er1
2625   cat conftest.err >&5
2626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } && {
2628          test -z "$ac_c_werror_flag" ||
2629          test ! -s conftest.err
2630        } && test -s conftest.$ac_objext; then
2631   ac_cv_prog_cc_g=yes
2632 else
2633   $as_echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636         CFLAGS=""
2637       cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643
2644 int
2645 main ()
2646 {
2647
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (ac_try="$ac_compile"
2654 case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2659 $as_echo "$ac_try_echo") >&5
2660   (eval "$ac_compile") 2>conftest.er1
2661   ac_status=$?
2662   grep -v '^ *+' conftest.er1 >conftest.err
2663   rm -f conftest.er1
2664   cat conftest.err >&5
2665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); } && {
2667          test -z "$ac_c_werror_flag" ||
2668          test ! -s conftest.err
2669        } && test -s conftest.$ac_objext; then
2670   :
2671 else
2672   $as_echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675         ac_c_werror_flag=$ac_save_c_werror_flag
2676          CFLAGS="-g"
2677          cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2699 $as_echo "$ac_try_echo") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } && {
2707          test -z "$ac_c_werror_flag" ||
2708          test ! -s conftest.err
2709        } && test -s conftest.$ac_objext; then
2710   ac_cv_prog_cc_g=yes
2711 else
2712   $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715
2716 fi
2717
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725    ac_c_werror_flag=$ac_save_c_werror_flag
2726 fi
2727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2728 $as_echo "$ac_cv_prog_cc_g" >&6; }
2729 if test "$ac_test_CFLAGS" = set; then
2730   CFLAGS=$ac_save_CFLAGS
2731 elif test $ac_cv_prog_cc_g = yes; then
2732   if test "$GCC" = yes; then
2733     CFLAGS="-g -O2"
2734   else
2735     CFLAGS="-g"
2736   fi
2737 else
2738   if test "$GCC" = yes; then
2739     CFLAGS="-O2"
2740   else
2741     CFLAGS=
2742   fi
2743 fi
2744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2746 if test "${ac_cv_prog_cc_c89+set}" = set; then
2747   $as_echo_n "(cached) " >&6
2748 else
2749   ac_cv_prog_cc_c89=no
2750 ac_save_CC=$CC
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757 #include <stdarg.h>
2758 #include <stdio.h>
2759 #include <sys/types.h>
2760 #include <sys/stat.h>
2761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2762 struct buf { int x; };
2763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2764 static char *e (p, i)
2765      char **p;
2766      int i;
2767 {
2768   return p[i];
2769 }
2770 static char *f (char * (*g) (char **, int), char **p, ...)
2771 {
2772   char *s;
2773   va_list v;
2774   va_start (v,p);
2775   s = g (p, va_arg (v,int));
2776   va_end (v);
2777   return s;
2778 }
2779
2780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2781    function prototypes and stuff, but not '\xHH' hex character constants.
2782    These don't provoke an error unfortunately, instead are silently treated
2783    as 'x'.  The following induces an error, until -std is added to get
2784    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2785    array size at least.  It's necessary to write '\x00'==0 to get something
2786    that's true only with -std.  */
2787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2788
2789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2790    inside strings and character constants.  */
2791 #define FOO(x) 'x'
2792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2793
2794 int test (int i, double x);
2795 struct s1 {int (*f) (int a);};
2796 struct s2 {int (*f) (double a);};
2797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2798 int argc;
2799 char **argv;
2800 int
2801 main ()
2802 {
2803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2809         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2810 do
2811   CC="$ac_save_CC $ac_arg"
2812   rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2814 case "(($ac_try" in
2815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816   *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819 $as_echo "$ac_try_echo") >&5
2820   (eval "$ac_compile") 2>conftest.er1
2821   ac_status=$?
2822   grep -v '^ *+' conftest.er1 >conftest.err
2823   rm -f conftest.er1
2824   cat conftest.err >&5
2825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); } && {
2827          test -z "$ac_c_werror_flag" ||
2828          test ! -s conftest.err
2829        } && test -s conftest.$ac_objext; then
2830   ac_cv_prog_cc_c89=$ac_arg
2831 else
2832   $as_echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835
2836 fi
2837
2838 rm -f core conftest.err conftest.$ac_objext
2839   test "x$ac_cv_prog_cc_c89" != "xno" && break
2840 done
2841 rm -f conftest.$ac_ext
2842 CC=$ac_save_CC
2843
2844 fi
2845 # AC_CACHE_VAL
2846 case "x$ac_cv_prog_cc_c89" in
2847   x)
2848     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2849 $as_echo "none needed" >&6; } ;;
2850   xno)
2851     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2852 $as_echo "unsupported" >&6; } ;;
2853   *)
2854     CC="$CC $ac_cv_prog_cc_c89"
2855     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2857 esac
2858
2859
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866 ac_aux_dir=
2867 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2868   if test -f "$ac_dir/install-sh"; then
2869     ac_aux_dir=$ac_dir
2870     ac_install_sh="$ac_aux_dir/install-sh -c"
2871     break
2872   elif test -f "$ac_dir/install.sh"; then
2873     ac_aux_dir=$ac_dir
2874     ac_install_sh="$ac_aux_dir/install.sh -c"
2875     break
2876   elif test -f "$ac_dir/shtool"; then
2877     ac_aux_dir=$ac_dir
2878     ac_install_sh="$ac_aux_dir/shtool install -c"
2879     break
2880   fi
2881 done
2882 if test -z "$ac_aux_dir"; then
2883   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2884 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2885    { (exit 1); exit 1; }; }
2886 fi
2887
2888 # These three variables are undocumented and unsupported,
2889 # and are intended to be withdrawn in a future Autoconf release.
2890 # They can cause serious problems if a builder's source tree is in a directory
2891 # whose full name contains unusual characters.
2892 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2893 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2894 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2895
2896
2897 # Find a good install program.  We prefer a C program (faster),
2898 # so one script is as good as another.  But avoid the broken or
2899 # incompatible versions:
2900 # SysV /etc/install, /usr/sbin/install
2901 # SunOS /usr/etc/install
2902 # IRIX /sbin/install
2903 # AIX /bin/install
2904 # AmigaOS /C/install, which installs bootblocks on floppy discs
2905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2908 # OS/2's system install, which has a completely different semantic
2909 # ./install, which can be erroneously created by make from ./install.sh.
2910 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2911 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2912 if test -z "$INSTALL"; then
2913 if test "${ac_cv_path_install+set}" = set; then
2914   $as_echo_n "(cached) " >&6
2915 else
2916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921   # Account for people who put trailing slashes in PATH elements.
2922 case $as_dir/ in
2923   ./ | .// | /cC/* | \
2924   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2925   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2926   /usr/ucb/* ) ;;
2927   *)
2928     # OSF1 and SCO ODT 3.0 have their own names for install.
2929     # Don't use installbsd from OSF since it installs stuff as root
2930     # by default.
2931     for ac_prog in ginstall scoinst install; do
2932       for ac_exec_ext in '' $ac_executable_extensions; do
2933         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2934           if test $ac_prog = install &&
2935             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936             # AIX install.  It has an incompatible calling convention.
2937             :
2938           elif test $ac_prog = install &&
2939             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940             # program-specific install script used by HP pwplus--don't use.
2941             :
2942           else
2943             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2944             break 3
2945           fi
2946         fi
2947       done
2948     done
2949     ;;
2950 esac
2951 done
2952 IFS=$as_save_IFS
2953
2954
2955 fi
2956   if test "${ac_cv_path_install+set}" = set; then
2957     INSTALL=$ac_cv_path_install
2958   else
2959     # As a last resort, use the slow shell script.  Don't cache a
2960     # value for INSTALL within a source directory, because that will
2961     # break other packages using the cache if that directory is
2962     # removed, or if the value is a relative name.
2963     INSTALL=$ac_install_sh
2964   fi
2965 fi
2966 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2967 $as_echo "$INSTALL" >&6; }
2968
2969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2970 # It thinks the first close brace ends the variable substitution.
2971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2972
2973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2974
2975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2976
2977 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2978 $as_echo_n "checking whether ln -s works... " >&6; }
2979 LN_S=$as_ln_s
2980 if test "$LN_S" = "ln -s"; then
2981   { $as_echo "$as_me:$LINENO: result: yes" >&5
2982 $as_echo "yes" >&6; }
2983 else
2984   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2985 $as_echo "no, using $LN_S" >&6; }
2986 fi
2987
2988 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2990 set x ${MAKE-make}
2991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2992 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2993   $as_echo_n "(cached) " >&6
2994 else
2995   cat >conftest.make <<\_ACEOF
2996 SHELL = /bin/sh
2997 all:
2998         @echo '@@@%%%=$(MAKE)=@@@%%%'
2999 _ACEOF
3000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3002   *@@@%%%=?*=@@@%%%*)
3003     eval ac_cv_prog_make_${ac_make}_set=yes;;
3004   *)
3005     eval ac_cv_prog_make_${ac_make}_set=no;;
3006 esac
3007 rm -f conftest.make
3008 fi
3009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3010   { $as_echo "$as_me:$LINENO: result: yes" >&5
3011 $as_echo "yes" >&6; }
3012   SET_MAKE=
3013 else
3014   { $as_echo "$as_me:$LINENO: result: no" >&5
3015 $as_echo "no" >&6; }
3016   SET_MAKE="MAKE=${MAKE-make}"
3017 fi
3018
3019
3020 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
3021 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
3022 ## Free Software Foundation, Inc.
3023 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3024 ##
3025 ## This program is free software; you can redistribute it and/or modify
3026 ## it under the terms of the GNU General Public License as published by
3027 ## the Free Software Foundation; either version 2 of the License, or
3028 ## (at your option) any later version.
3029 ##
3030 ## This program is distributed in the hope that it will be useful, but
3031 ## WITHOUT ANY WARRANTY; without even the implied warranty of
3032 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3033 ## General Public License for more details.
3034 ##
3035 ## You should have received a copy of the GNU General Public License
3036 ## along with this program; if not, write to the Free Software
3037 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3038 ##
3039 ## As a special exception to the GNU General Public License, if you
3040 ## distribute this file as part of a program that contains a
3041 ## configuration script generated by Autoconf, you may include it under
3042 ## the same distribution terms that you use for the rest of that program.
3043
3044 # serial 46 AC_PROG_LIBTOOL
3045
3046
3047
3048
3049
3050 # AC_LIBTOOL_HEADER_ASSERT
3051 # ------------------------
3052 # AC_LIBTOOL_HEADER_ASSERT
3053
3054 # _LT_AC_CHECK_DLFCN
3055 # --------------------
3056 # _LT_AC_CHECK_DLFCN
3057
3058 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3059 # ---------------------------------
3060  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3061
3062 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3063 # ---------------------------------
3064 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3065
3066 # _LT_AC_PROG_ECHO_BACKSLASH
3067 # --------------------------
3068 # Add some code to the start of the generated configure script which
3069 # will find an echo command which doesn't interpret backslashes.
3070 # _LT_AC_PROG_ECHO_BACKSLASH
3071
3072 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3073 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3074 # ------------------------------------------------------------------
3075 # _LT_AC_TRY_DLOPEN_SELF
3076
3077 # AC_LIBTOOL_DLOPEN_SELF
3078 # -------------------
3079 # AC_LIBTOOL_DLOPEN_SELF
3080
3081 # _LT_AC_LTCONFIG_HACK
3082
3083 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3084
3085
3086 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3087
3088
3089 # AC_ENABLE_SHARED - implement the --enable-shared flag
3090 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
3091 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3092 #   `yes'.
3093
3094
3095 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3096
3097
3098 # AC_ENABLE_STATIC - implement the --enable-static flag
3099 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
3100 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3101 #   `yes'.
3102
3103
3104 # AC_DISABLE_STATIC - set the default static flag to --disable-static
3105
3106
3107
3108 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3109 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3110 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3111 #   `yes'.
3112
3113
3114 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3115
3116
3117 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
3118 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
3119 #   Where MODE is either `yes' or `no'.  If omitted, it defaults to
3120 #   `both'.
3121
3122
3123
3124 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3125
3126
3127
3128 # AC_PATH_MAGIC - find a file program which can recognise a shared library
3129
3130
3131
3132 # AC_PROG_LD - find the path to the GNU or non-GNU linker
3133
3134
3135 # AC_PROG_LD_GNU -
3136
3137
3138 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3139 #   -- PORTME Some linkers may need a different reload flag.
3140
3141
3142 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3143 #  -- PORTME fill in with the dynamic library characteristics
3144
3145
3146
3147 # AC_PROG_NM - find the path to a BSD-compatible name lister
3148
3149
3150 # AC_CHECK_LIBM - check for math library
3151
3152
3153 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3154 # the libltdl convenience library and LTDLINCL to the include flags for
3155 # the libltdl header and adds --enable-ltdl-convenience to the
3156 # configure arguments.  Note that LIBLTDL and LTDLINCL are not
3157 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
3158 # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
3159 # with '${top_builddir}/' and LTDLINCL will be prefixed with
3160 # '${top_srcdir}/' (note the single quotes!).  If your package is not
3161 # flat and you're not using automake, define top_builddir and
3162 # top_srcdir appropriately in the Makefiles.
3163
3164
3165 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3166 # the libltdl installable library and LTDLINCL to the include flags for
3167 # the libltdl header and adds --enable-ltdl-install to the configure
3168 # arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
3169 # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
3170 # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
3171 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
3172 # with '${top_srcdir}/' (note the single quotes!).  If your package is
3173 # not flat and you're not using automake, define top_builddir and
3174 # top_srcdir appropriately in the Makefiles.
3175 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3176
3177
3178 # old names
3179
3180
3181
3182
3183
3184
3185
3186
3187 # This is just to silence aclocal about the macro not being used
3188
3189
3190 ############################################################
3191 # NOTE: This macro has been submitted for inclusion into   #
3192 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3193 #  a released version of Autoconf we should remove this    #
3194 #  macro and use it instead.                               #
3195 ############################################################
3196 # LT_AC_PROG_SED
3197 # --------------
3198 # Check for a fully-functional sed program, that truncates
3199 # as few characters as possible.  Prefer GNU sed if found.
3200
3201
3202
3203 # Check whether --enable-shared was given.
3204 if test "${enable_shared+set}" = set; then
3205   enableval=$enable_shared; p=${PACKAGE-default}
3206 case $enableval in
3207 yes) enable_shared=yes ;;
3208 no) enable_shared=no ;;
3209 *)
3210   enable_shared=no
3211   # Look at the argument we got.  We use all the common list separators.
3212   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3213   for pkg in $enableval; do
3214     if test "X$pkg" = "X$p"; then
3215       enable_shared=yes
3216     fi
3217   done
3218   IFS="$ac_save_ifs"
3219   ;;
3220 esac
3221 else
3222   enable_shared=yes
3223 fi
3224
3225 # Check whether --enable-static was given.
3226 if test "${enable_static+set}" = set; then
3227   enableval=$enable_static; p=${PACKAGE-default}
3228 case $enableval in
3229 yes) enable_static=yes ;;
3230 no) enable_static=no ;;
3231 *)
3232   enable_static=no
3233   # Look at the argument we got.  We use all the common list separators.
3234   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3235   for pkg in $enableval; do
3236     if test "X$pkg" = "X$p"; then
3237       enable_static=yes
3238     fi
3239   done
3240   IFS="$ac_save_ifs"
3241   ;;
3242 esac
3243 else
3244   enable_static=yes
3245 fi
3246
3247 # Check whether --enable-fast-install was given.
3248 if test "${enable_fast_install+set}" = set; then
3249   enableval=$enable_fast_install; p=${PACKAGE-default}
3250 case $enableval in
3251 yes) enable_fast_install=yes ;;
3252 no) enable_fast_install=no ;;
3253 *)
3254   enable_fast_install=no
3255   # Look at the argument we got.  We use all the common list separators.
3256   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3257   for pkg in $enableval; do
3258     if test "X$pkg" = "X$p"; then
3259       enable_fast_install=yes
3260     fi
3261   done
3262   IFS="$ac_save_ifs"
3263   ;;
3264 esac
3265 else
3266   enable_fast_install=yes
3267 fi
3268
3269 # Make sure we can run config.sub.
3270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3271   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3272 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3273    { (exit 1); exit 1; }; }
3274
3275 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3276 $as_echo_n "checking build system type... " >&6; }
3277 if test "${ac_cv_build+set}" = set; then
3278   $as_echo_n "(cached) " >&6
3279 else
3280   ac_build_alias=$build_alias
3281 test "x$ac_build_alias" = x &&
3282   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3283 test "x$ac_build_alias" = x &&
3284   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3285 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3286    { (exit 1); exit 1; }; }
3287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3288   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3289 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3290    { (exit 1); exit 1; }; }
3291
3292 fi
3293 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3294 $as_echo "$ac_cv_build" >&6; }
3295 case $ac_cv_build in
3296 *-*-*) ;;
3297 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3298 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3299    { (exit 1); exit 1; }; };;
3300 esac
3301 build=$ac_cv_build
3302 ac_save_IFS=$IFS; IFS='-'
3303 set x $ac_cv_build
3304 shift
3305 build_cpu=$1
3306 build_vendor=$2
3307 shift; shift
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3310 build_os=$*
3311 IFS=$ac_save_IFS
3312 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3313
3314
3315 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3316 $as_echo_n "checking host system type... " >&6; }
3317 if test "${ac_cv_host+set}" = set; then
3318   $as_echo_n "(cached) " >&6
3319 else
3320   if test "x$host_alias" = x; then
3321   ac_cv_host=$ac_cv_build
3322 else
3323   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3324     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3325 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3326    { (exit 1); exit 1; }; }
3327 fi
3328
3329 fi
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3331 $as_echo "$ac_cv_host" >&6; }
3332 case $ac_cv_host in
3333 *-*-*) ;;
3334 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3335 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3336    { (exit 1); exit 1; }; };;
3337 esac
3338 host=$ac_cv_host
3339 ac_save_IFS=$IFS; IFS='-'
3340 set x $ac_cv_host
3341 shift
3342 host_cpu=$1
3343 host_vendor=$2
3344 shift; shift
3345 # Remember, the first character of IFS is used to create $*,
3346 # except with old shells:
3347 host_os=$*
3348 IFS=$ac_save_IFS
3349 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3350
3351
3352 # Find the correct PATH separator.  Usually this is `:', but
3353 # DJGPP uses `;' like DOS.
3354 if test "X${PATH_SEPARATOR+set}" != Xset; then
3355   UNAME=${UNAME-`uname 2>/dev/null`}
3356   case X$UNAME in
3357     *-DOS) lt_cv_sys_path_separator=';' ;;
3358     *)     lt_cv_sys_path_separator=':' ;;
3359   esac
3360   PATH_SEPARATOR=$lt_cv_sys_path_separator
3361 fi
3362
3363
3364 # Check whether --with-gnu-ld was given.
3365 if test "${with_gnu_ld+set}" = set; then
3366   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3367 else
3368   with_gnu_ld=no
3369 fi
3370
3371 ac_prog=ld
3372 if test "$GCC" = yes; then
3373   # Check if gcc -print-prog-name=ld gives a path.
3374   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3375 $as_echo_n "checking for ld used by GCC... " >&6; }
3376   case $host in
3377   *-*-mingw*)
3378     # gcc leaves a trailing carriage return which upsets mingw
3379     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3380   *)
3381     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3382   esac
3383   case $ac_prog in
3384     # Accept absolute paths.
3385     [\\/]* | [A-Za-z]:[\\/]*)
3386       re_direlt='/[^/][^/]*/\.\./'
3387       # Canonicalize the path of ld
3388       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3389       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3390         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3391       done
3392       test -z "$LD" && LD="$ac_prog"
3393       ;;
3394   "")
3395     # If it fails, then pretend we aren't using GCC.
3396     ac_prog=ld
3397     ;;
3398   *)
3399     # If it is relative, then search for the first ld in PATH.
3400     with_gnu_ld=unknown
3401     ;;
3402   esac
3403 elif test "$with_gnu_ld" = yes; then
3404   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3405 $as_echo_n "checking for GNU ld... " >&6; }
3406 else
3407   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3408 $as_echo_n "checking for non-GNU ld... " >&6; }
3409 fi
3410 if test "${lt_cv_path_LD+set}" = set; then
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -z "$LD"; then
3414   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3415   for ac_dir in $PATH; do
3416     test -z "$ac_dir" && ac_dir=.
3417     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3418       lt_cv_path_LD="$ac_dir/$ac_prog"
3419       # Check to see if the program is GNU ld.  I'd rather use --version,
3420       # but apparently some GNU ld's only accept -v.
3421       # Break only if it was the GNU/non-GNU ld that we prefer.
3422       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3423         test "$with_gnu_ld" != no && break
3424       else
3425         test "$with_gnu_ld" != yes && break
3426       fi
3427     fi
3428   done
3429   IFS="$ac_save_ifs"
3430 else
3431   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3432 fi
3433 fi
3434
3435 LD="$lt_cv_path_LD"
3436 if test -n "$LD"; then
3437   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3438 $as_echo "$LD" >&6; }
3439 else
3440   { $as_echo "$as_me:$LINENO: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3444 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3445    { (exit 1); exit 1; }; }
3446 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3449   $as_echo_n "(cached) " >&6
3450 else
3451   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3452 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3453   lt_cv_prog_gnu_ld=yes
3454 else
3455   lt_cv_prog_gnu_ld=no
3456 fi
3457 fi
3458 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3459 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3460 with_gnu_ld=$lt_cv_prog_gnu_ld
3461
3462
3463 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3464 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3465 if test "${lt_cv_ld_reload_flag+set}" = set; then
3466   $as_echo_n "(cached) " >&6
3467 else
3468   lt_cv_ld_reload_flag='-r'
3469 fi
3470 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3471 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3472 reload_flag=$lt_cv_ld_reload_flag
3473 test -n "$reload_flag" && reload_flag=" $reload_flag"
3474
3475 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3476 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3477 if test "${lt_cv_path_NM+set}" = set; then
3478   $as_echo_n "(cached) " >&6
3479 else
3480   if test -n "$NM"; then
3481   # Let the user override the test.
3482   lt_cv_path_NM="$NM"
3483 else
3484   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3485   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3486     test -z "$ac_dir" && ac_dir=.
3487     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3488     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3489       # Check to see if the nm accepts a BSD-compat flag.
3490       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3491       #   nm: unknown option "B" ignored
3492       # Tru64's nm complains that /dev/null is an invalid object file
3493       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3494         lt_cv_path_NM="$tmp_nm -B"
3495         break
3496       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3497         lt_cv_path_NM="$tmp_nm -p"
3498         break
3499       else
3500         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3501         continue # so that we can try to find one that supports BSD flags
3502       fi
3503     fi
3504   done
3505   IFS="$ac_save_ifs"
3506   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3507 fi
3508 fi
3509
3510 NM="$lt_cv_path_NM"
3511 { $as_echo "$as_me:$LINENO: result: $NM" >&5
3512 $as_echo "$NM" >&6; }
3513
3514 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3515 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3516 if test "${lt_cv_path_SED+set}" = set; then
3517   $as_echo_n "(cached) " >&6
3518 else
3519   # Loop through the user's path and test for sed and gsed.
3520 # Then use that list of sed's as ones to test for truncation.
3521 as_executable_p="test -f"
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_prog in sed gsed; do
3528     for ac_exec_ext in '' $ac_executable_extensions; do
3529       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3530         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3531       fi
3532     done
3533   done
3534 done
3535
3536   # Create a temporary directory, and hook for its removal unless debugging.
3537 $debug ||
3538 {
3539   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3540   trap '{ (exit 1); exit 1; }' 1 2 13 15
3541 }
3542
3543 # Create a (secure) tmp directory for tmp files.
3544 : ${TMPDIR=/tmp}
3545 {
3546   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3547   test -n "$tmp" && test -d "$tmp"
3548 }  ||
3549 {
3550   tmp=$TMPDIR/sed$$-$RANDOM
3551   (umask 077 && mkdir $tmp)
3552 } ||
3553 {
3554    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3555    { (exit 1); exit 1; }
3556 }
3557   _max=0
3558   _count=0
3559   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3560   # along with /bin/sed that truncates output.
3561   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3562     test ! -f ${_sed} && break
3563     cat /dev/null > "$tmp/sed.in"
3564     _count=0
3565     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3566     # Check for GNU sed and select it if it is found.
3567     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3568       lt_cv_path_SED=${_sed}
3569       break
3570     fi
3571     while true; do
3572       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3573       mv "$tmp/sed.tmp" "$tmp/sed.in"
3574       cp "$tmp/sed.in" "$tmp/sed.nl"
3575       echo >>"$tmp/sed.nl"
3576       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3577       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3578       # 40000 chars as input seems more than enough
3579       test $_count -gt 10 && break
3580       _count=`expr $_count + 1`
3581       if test $_count -gt $_max; then
3582         _max=$_count
3583         lt_cv_path_SED=$_sed
3584       fi
3585     done
3586   done
3587   rm -rf "$tmp"
3588
3589 fi
3590
3591 if test "X$SED" != "X"; then
3592   lt_cv_path_SED=$SED
3593 else
3594   SED=$lt_cv_path_SED
3595 fi
3596 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3597 $as_echo "$SED" >&6; }
3598
3599 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3600 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3601 if test "${lt_cv_deplibs_check_method+set}" = set; then
3602   $as_echo_n "(cached) " >&6
3603 else
3604   lt_cv_file_magic_cmd='$MAGIC_CMD'
3605 lt_cv_file_magic_test_file=
3606 lt_cv_deplibs_check_method='unknown'
3607 # Need to set the preceding variable on all platforms that support
3608 # interlibrary dependencies.
3609 # 'none' -- dependencies not supported.
3610 # `unknown' -- same as none, but documents that we really don't know.
3611 # 'pass_all' -- all dependencies passed with no checks.
3612 # 'test_compile' -- check by making test program.
3613 # 'file_magic [[regex]]' -- check by looking for files in library path
3614 # which responds to the $file_magic_cmd with a given egrep regex.
3615 # If you have `file' or equivalent on your system and you're not sure
3616 # whether `pass_all' will *always* work, you probably want this one.
3617
3618 case $host_os in
3619 aix4* | aix5*)
3620   lt_cv_deplibs_check_method=pass_all
3621   ;;
3622
3623 beos*)
3624   lt_cv_deplibs_check_method=pass_all
3625   ;;
3626
3627 bsdi4*)
3628   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3629   lt_cv_file_magic_cmd='/usr/bin/file -L'
3630   lt_cv_file_magic_test_file=/shlib/libc.so
3631   ;;
3632
3633 cygwin* | mingw* | pw32*)
3634   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3635   lt_cv_file_magic_cmd='$OBJDUMP -f'
3636   ;;
3637
3638 darwin* | rhapsody*)
3639   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3640   lt_cv_file_magic_cmd='/usr/bin/file -L'
3641   case "$host_os" in
3642   rhapsody* | darwin1.[012])
3643     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3644     ;;
3645   *) # Darwin 1.3 on
3646     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3647     ;;
3648   esac
3649   ;;
3650
3651 freebsd* | kfreebsd*-gnu)
3652   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3653     case $host_cpu in
3654     i*86 )
3655       # Not sure whether the presence of OpenBSD here was a mistake.
3656       # Let's accept both of them until this is cleared up.
3657       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3658       lt_cv_file_magic_cmd=/usr/bin/file
3659       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3660       ;;
3661     esac
3662   else
3663     lt_cv_deplibs_check_method=pass_all
3664   fi
3665   ;;
3666
3667 gnu*)
3668   lt_cv_deplibs_check_method=pass_all
3669   ;;
3670
3671 hpux10.20*|hpux11*)
3672   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3673   lt_cv_file_magic_cmd=/usr/bin/file
3674   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3675   ;;
3676
3677 irix5* | irix6* | nonstopux*)
3678   case $host_os in
3679   irix5* | nonstopux*)
3680     # this will be overridden with pass_all, but let us keep it just in case
3681     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3682     ;;
3683   *)
3684     case $LD in
3685     *-32|*"-32 ") libmagic=32-bit;;
3686     *-n32|*"-n32 ") libmagic=N32;;
3687     *-64|*"-64 ") libmagic=64-bit;;
3688     *) libmagic=never-match;;
3689     esac
3690     # this will be overridden with pass_all, but let us keep it just in case
3691     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3692     ;;
3693   esac
3694   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3695   lt_cv_deplibs_check_method=pass_all
3696   ;;
3697
3698 # This must be Linux ELF.
3699 linux-gnu*)
3700   case $host_cpu in
3701   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3702     lt_cv_deplibs_check_method=pass_all ;;
3703   *)
3704     # glibc up to 2.1.1 does not perform some relocations on ARM
3705     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3706   esac
3707   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3708   ;;
3709
3710 netbsd*)
3711   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3712     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3713   else
3714     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3715   fi
3716   ;;
3717
3718 newos6*)
3719   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3720   lt_cv_file_magic_cmd=/usr/bin/file
3721   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3722   ;;
3723
3724 openbsd*)
3725   lt_cv_file_magic_cmd=/usr/bin/file
3726   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3727   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3728     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3729   else
3730     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3731   fi
3732   ;;
3733
3734 osf3* | osf4* | osf5*)
3735   # this will be overridden with pass_all, but let us keep it just in case
3736   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3737   lt_cv_file_magic_test_file=/shlib/libc.so
3738   lt_cv_deplibs_check_method=pass_all
3739   ;;
3740
3741 sco3.2v5*)
3742   lt_cv_deplibs_check_method=pass_all
3743   ;;
3744
3745 solaris*)
3746   lt_cv_deplibs_check_method=pass_all
3747   lt_cv_file_magic_test_file=/lib/libc.so
3748   ;;
3749
3750 sysv5uw[78]* | sysv4*uw2*)
3751   lt_cv_deplibs_check_method=pass_all
3752   ;;
3753
3754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3755   case $host_vendor in
3756   motorola)
3757     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]'
3758     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3759     ;;
3760   ncr)
3761     lt_cv_deplibs_check_method=pass_all
3762     ;;
3763   sequent)
3764     lt_cv_file_magic_cmd='/bin/file'
3765     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3766     ;;
3767   sni)
3768     lt_cv_file_magic_cmd='/bin/file'
3769     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3770     lt_cv_file_magic_test_file=/lib/libc.so
3771     ;;
3772   siemens)
3773     lt_cv_deplibs_check_method=pass_all
3774     ;;
3775   esac
3776   ;;
3777 esac
3778
3779 fi
3780 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3781 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3782 file_magic_cmd=$lt_cv_file_magic_cmd
3783 deplibs_check_method=$lt_cv_deplibs_check_method
3784
3785
3786
3787
3788
3789
3790
3791
3792 # Check for command to grab the raw symbol name followed by C symbol from nm.
3793 { $as_echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3794 $as_echo_n "checking command to parse $NM output... " >&6; }
3795 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3796   $as_echo_n "(cached) " >&6
3797 else
3798
3799 # These are sane defaults that work on at least a few old systems.
3800 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3801
3802 # Character class describing NM global symbol codes.
3803 symcode='[BCDEGRST]'
3804
3805 # Regexp to match symbols that can be accessed directly from C.
3806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3807
3808 # Transform the above into a raw symbol and a C symbol.
3809 symxfrm='\1 \2\3 \3'
3810
3811 # Transform an extracted symbol line into a proper C declaration
3812 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3813
3814 # Transform an extracted symbol line into symbol name and symbol address
3815 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'"
3816
3817 # Define system-specific variables.
3818 case $host_os in
3819 aix*)
3820   symcode='[BCDT]'
3821   ;;
3822 cygwin* | mingw* | pw32*)
3823   symcode='[ABCDGISTW]'
3824   ;;
3825 hpux*) # Its linker distinguishes data from code symbols
3826   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3827   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'"
3828   ;;
3829 irix* | nonstopux*)
3830   symcode='[BCDEGRST]'
3831   ;;
3832 osf*)
3833   symcode='[BCDEGQRST]'
3834   ;;
3835 solaris* | sysv5*)
3836   symcode='[BDT]'
3837   ;;
3838 sysv4)
3839   symcode='[DFNSTU]'
3840   ;;
3841 esac
3842
3843 # Handle CRLF in mingw tool chain
3844 opt_cr=
3845 case $host_os in
3846 mingw*)
3847   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3848   ;;
3849 esac
3850
3851 # If we're using GNU nm, then use its standard symbol codes.
3852 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3853   symcode='[ABCDGISTW]'
3854 fi
3855
3856 # Try without a prefix undercore, then with it.
3857 for ac_symprfx in "" "_"; do
3858
3859   # Write the raw and C identifiers.
3860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3861
3862   # Check to see that the pipe works correctly.
3863   pipe_works=no
3864   rm -f conftest*
3865   cat > conftest.$ac_ext <<EOF
3866 #ifdef __cplusplus
3867 extern "C" {
3868 #endif
3869 char nm_test_var;
3870 void nm_test_func(){}
3871 #ifdef __cplusplus
3872 }
3873 #endif
3874 int main(){nm_test_var='a';nm_test_func();return(0);}
3875 EOF
3876
3877   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878   (eval $ac_compile) 2>&5
3879   ac_status=$?
3880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); }; then
3882     # Now try to grab the symbols.
3883     nlist=conftest.nm
3884     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3885   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3886   ac_status=$?
3887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888   (exit $ac_status); } && test -s "$nlist"; then
3889       # Try sorting and uniquifying the output.
3890       if sort "$nlist" | uniq > "$nlist"T; then
3891         mv -f "$nlist"T "$nlist"
3892       else
3893         rm -f "$nlist"T
3894       fi
3895
3896       # Make sure that we snagged all the symbols we need.
3897       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3898         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3899           cat <<EOF > conftest.$ac_ext
3900 #ifdef __cplusplus
3901 extern "C" {
3902 #endif
3903
3904 EOF
3905           # Now generate the symbol file.
3906           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3907
3908           cat <<EOF >> conftest.$ac_ext
3909 #if defined (__STDC__) && __STDC__
3910 # define lt_ptr void *
3911 #else
3912 # define lt_ptr char *
3913 # define const
3914 #endif
3915
3916 /* The mapping between symbol names and symbols. */
3917 const struct {
3918   const char *name;
3919   lt_ptr address;
3920 }
3921 lt_preloaded_symbols[] =
3922 {
3923 EOF
3924           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3925           cat <<\EOF >> conftest.$ac_ext
3926   {0, (lt_ptr) 0}
3927 };
3928
3929 #ifdef __cplusplus
3930 }
3931 #endif
3932 EOF
3933           # Now try linking the two files.
3934           mv conftest.$ac_objext conftstm.$ac_objext
3935           save_LIBS="$LIBS"
3936           save_CFLAGS="$CFLAGS"
3937           LIBS="conftstm.$ac_objext"
3938           CFLAGS="$CFLAGS$no_builtin_flag"
3939           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940   (eval $ac_link) 2>&5
3941   ac_status=$?
3942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } && test -s conftest$ac_exeext; then
3944             pipe_works=yes
3945           fi
3946           LIBS="$save_LIBS"
3947           CFLAGS="$save_CFLAGS"
3948         else
3949           echo "cannot find nm_test_func in $nlist" >&5
3950         fi
3951       else
3952         echo "cannot find nm_test_var in $nlist" >&5
3953       fi
3954     else
3955       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3956     fi
3957   else
3958     echo "$progname: failed program was:" >&5
3959     cat conftest.$ac_ext >&5
3960   fi
3961   rm -f conftest* conftst*
3962
3963   # Do not use the global_symbol_pipe unless it works.
3964   if test "$pipe_works" = yes; then
3965     break
3966   else
3967     lt_cv_sys_global_symbol_pipe=
3968   fi
3969 done
3970
3971 fi
3972
3973 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3975   global_symbol_to_cdecl=
3976   global_symbol_to_c_name_address=
3977 else
3978   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3979   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3980 fi
3981 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3982 then
3983   { $as_echo "$as_me:$LINENO: result: failed" >&5
3984 $as_echo "failed" >&6; }
3985 else
3986   { $as_echo "$as_me:$LINENO: result: ok" >&5
3987 $as_echo "ok" >&6; }
3988 fi
3989
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3997 # On Suns, sometimes $CPP names a directory.
3998 if test -n "$CPP" && test -d "$CPP"; then
3999   CPP=
4000 fi
4001 if test -z "$CPP"; then
4002   if test "${ac_cv_prog_CPP+set}" = set; then
4003   $as_echo_n "(cached) " >&6
4004 else
4005       # Double quotes because CPP needs to be expanded
4006     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4007     do
4008       ac_preproc_ok=false
4009 for ac_c_preproc_warn_flag in '' yes
4010 do
4011   # Use a header file that comes with gcc, so configuring glibc
4012   # with a fresh cross-compiler works.
4013   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014   # <limits.h> exists even on freestanding compilers.
4015   # On the NeXT, cc -E runs the code through the compiler's parser,
4016   # not just through cpp. "Syntax error" is here to catch this case.
4017   cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h.  */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h.  */
4023 #ifdef __STDC__
4024 # include <limits.h>
4025 #else
4026 # include <assert.h>
4027 #endif
4028                      Syntax error
4029 _ACEOF
4030 if { (ac_try="$ac_cpp conftest.$ac_ext"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4036 $as_echo "$ac_try_echo") >&5
4037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4038   ac_status=$?
4039   grep -v '^ *+' conftest.er1 >conftest.err
4040   rm -f conftest.er1
4041   cat conftest.err >&5
4042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); } >/dev/null && {
4044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4045          test ! -s conftest.err
4046        }; then
4047   :
4048 else
4049   $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4051
4052   # Broken: fails on valid input.
4053 continue
4054 fi
4055
4056 rm -f conftest.err conftest.$ac_ext
4057
4058   # OK, works on sane cases.  Now check whether nonexistent headers
4059   # can be detected and how.
4060   cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066 #include <ac_nonexistent.h>
4067 _ACEOF
4068 if { (ac_try="$ac_cpp conftest.$ac_ext"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } >/dev/null && {
4082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083          test ! -s conftest.err
4084        }; then
4085   # Broken: success on invalid input.
4086 continue
4087 else
4088   $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091   # Passes both tests.
4092 ac_preproc_ok=:
4093 break
4094 fi
4095
4096 rm -f conftest.err conftest.$ac_ext
4097
4098 done
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then
4102   break
4103 fi
4104
4105     done
4106     ac_cv_prog_CPP=$CPP
4107
4108 fi
4109   CPP=$ac_cv_prog_CPP
4110 else
4111   ac_cv_prog_CPP=$CPP
4112 fi
4113 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4114 $as_echo "$CPP" >&6; }
4115 ac_preproc_ok=false
4116 for ac_c_preproc_warn_flag in '' yes
4117 do
4118   # Use a header file that comes with gcc, so configuring glibc
4119   # with a fresh cross-compiler works.
4120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121   # <limits.h> exists even on freestanding compilers.
4122   # On the NeXT, cc -E runs the code through the compiler's parser,
4123   # not just through cpp. "Syntax error" is here to catch this case.
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 #ifdef __STDC__
4131 # include <limits.h>
4132 #else
4133 # include <assert.h>
4134 #endif
4135                      Syntax error
4136 _ACEOF
4137 if { (ac_try="$ac_cpp conftest.$ac_ext"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } >/dev/null && {
4151          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4152          test ! -s conftest.err
4153        }; then
4154   :
4155 else
4156   $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4158
4159   # Broken: fails on valid input.
4160 continue
4161 fi
4162
4163 rm -f conftest.err conftest.$ac_ext
4164
4165   # OK, works on sane cases.  Now check whether nonexistent headers
4166   # can be detected and how.
4167   cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h.  */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h.  */
4173 #include <ac_nonexistent.h>
4174 _ACEOF
4175 if { (ac_try="$ac_cpp conftest.$ac_ext"
4176 case "(($ac_try" in
4177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178   *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4183   ac_status=$?
4184   grep -v '^ *+' conftest.er1 >conftest.err
4185   rm -f conftest.er1
4186   cat conftest.err >&5
4187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); } >/dev/null && {
4189          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4190          test ! -s conftest.err
4191        }; then
4192   # Broken: success on invalid input.
4193 continue
4194 else
4195   $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198   # Passes both tests.
4199 ac_preproc_ok=:
4200 break
4201 fi
4202
4203 rm -f conftest.err conftest.$ac_ext
4204
4205 done
4206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4207 rm -f conftest.err conftest.$ac_ext
4208 if $ac_preproc_ok; then
4209   :
4210 else
4211   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4212 See \`config.log' for more details." >&5
4213 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4214 See \`config.log' for more details." >&2;}
4215    { (exit 1); exit 1; }; }
4216 fi
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227 if test "${ac_cv_path_GREP+set}" = set; then
4228   $as_echo_n "(cached) " >&6
4229 else
4230   # Extract the first word of "grep ggrep" to use in msg output
4231 if test -z "$GREP"; then
4232 set dummy grep ggrep; ac_prog_name=$2
4233 if test "${ac_cv_path_GREP+set}" = set; then
4234   $as_echo_n "(cached) " >&6
4235 else
4236   ac_path_GREP_found=false
4237 # Loop through the user's path and test for each of PROGNAME-LIST
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240 do
4241   IFS=$as_save_IFS
4242   test -z "$as_dir" && as_dir=.
4243   for ac_prog in grep ggrep; do
4244   for ac_exec_ext in '' $ac_executable_extensions; do
4245     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4246     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4247     # Check for GNU ac_path_GREP and select it if it is found.
4248   # Check for GNU $ac_path_GREP
4249 case `"$ac_path_GREP" --version 2>&1` in
4250 *GNU*)
4251   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4252 *)
4253   ac_count=0
4254   $as_echo_n 0123456789 >"conftest.in"
4255   while :
4256   do
4257     cat "conftest.in" "conftest.in" >"conftest.tmp"
4258     mv "conftest.tmp" "conftest.in"
4259     cp "conftest.in" "conftest.nl"
4260     $as_echo 'GREP' >> "conftest.nl"
4261     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263     ac_count=`expr $ac_count + 1`
4264     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4265       # Best one so far, save it but keep looking for a better one
4266       ac_cv_path_GREP="$ac_path_GREP"
4267       ac_path_GREP_max=$ac_count
4268     fi
4269     # 10*(2^10) chars as input seems more than enough
4270     test $ac_count -gt 10 && break
4271   done
4272   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273 esac
4274
4275
4276     $ac_path_GREP_found && break 3
4277   done
4278 done
4279
4280 done
4281 IFS=$as_save_IFS
4282
4283
4284 fi
4285
4286 GREP="$ac_cv_path_GREP"
4287 if test -z "$GREP"; then
4288   { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4289 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4290    { (exit 1); exit 1; }; }
4291 fi
4292
4293 else
4294   ac_cv_path_GREP=$GREP
4295 fi
4296
4297
4298 fi
4299 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4300 $as_echo "$ac_cv_path_GREP" >&6; }
4301  GREP="$ac_cv_path_GREP"
4302
4303
4304 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4305 $as_echo_n "checking for egrep... " >&6; }
4306 if test "${ac_cv_path_EGREP+set}" = set; then
4307   $as_echo_n "(cached) " >&6
4308 else
4309   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310    then ac_cv_path_EGREP="$GREP -E"
4311    else
4312      # Extract the first word of "egrep" to use in msg output
4313 if test -z "$EGREP"; then
4314 set dummy egrep; ac_prog_name=$2
4315 if test "${ac_cv_path_EGREP+set}" = set; then
4316   $as_echo_n "(cached) " >&6
4317 else
4318   ac_path_EGREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323   IFS=$as_save_IFS
4324   test -z "$as_dir" && as_dir=.
4325   for ac_prog in egrep; do
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4329     # Check for GNU ac_path_EGREP and select it if it is found.
4330   # Check for GNU $ac_path_EGREP
4331 case `"$ac_path_EGREP" --version 2>&1` in
4332 *GNU*)
4333   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334 *)
4335   ac_count=0
4336   $as_echo_n 0123456789 >"conftest.in"
4337   while :
4338   do
4339     cat "conftest.in" "conftest.in" >"conftest.tmp"
4340     mv "conftest.tmp" "conftest.in"
4341     cp "conftest.in" "conftest.nl"
4342     $as_echo 'EGREP' >> "conftest.nl"
4343     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345     ac_count=`expr $ac_count + 1`
4346     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347       # Best one so far, save it but keep looking for a better one
4348       ac_cv_path_EGREP="$ac_path_EGREP"
4349       ac_path_EGREP_max=$ac_count
4350     fi
4351     # 10*(2^10) chars as input seems more than enough
4352     test $ac_count -gt 10 && break
4353   done
4354   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357
4358     $ac_path_EGREP_found && break 3
4359   done
4360 done
4361
4362 done
4363 IFS=$as_save_IFS
4364
4365
4366 fi
4367
4368 EGREP="$ac_cv_path_EGREP"
4369 if test -z "$EGREP"; then
4370   { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4371 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4372    { (exit 1); exit 1; }; }
4373 fi
4374
4375 else
4376   ac_cv_path_EGREP=$EGREP
4377 fi
4378
4379
4380    fi
4381 fi
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4383 $as_echo "$ac_cv_path_EGREP" >&6; }
4384  EGREP="$ac_cv_path_EGREP"
4385
4386
4387 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4388 $as_echo_n "checking for ANSI C header files... " >&6; }
4389 if test "${ac_cv_header_stdc+set}" = set; then
4390   $as_echo_n "(cached) " >&6
4391 else
4392   cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 #include <stdlib.h>
4399 #include <stdarg.h>
4400 #include <string.h>
4401 #include <float.h>
4402
4403 int
4404 main ()
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419   (eval "$ac_compile") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } && {
4426          test -z "$ac_c_werror_flag" ||
4427          test ! -s conftest.err
4428        } && test -s conftest.$ac_objext; then
4429   ac_cv_header_stdc=yes
4430 else
4431   $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434         ac_cv_header_stdc=no
4435 fi
4436
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438
4439 if test $ac_cv_header_stdc = yes; then
4440   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 #include <string.h>
4448
4449 _ACEOF
4450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451   $EGREP "memchr" >/dev/null 2>&1; then
4452   :
4453 else
4454   ac_cv_header_stdc=no
4455 fi
4456 rm -f conftest*
4457
4458 fi
4459
4460 if test $ac_cv_header_stdc = yes; then
4461   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4462   cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 #include <stdlib.h>
4469
4470 _ACEOF
4471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4472   $EGREP "free" >/dev/null 2>&1; then
4473   :
4474 else
4475   ac_cv_header_stdc=no
4476 fi
4477 rm -f conftest*
4478
4479 fi
4480
4481 if test $ac_cv_header_stdc = yes; then
4482   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4483   if test "$cross_compiling" = yes; then
4484   :
4485 else
4486   cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492 #include <ctype.h>
4493 #include <stdlib.h>
4494 #if ((' ' & 0x0FF) == 0x020)
4495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4497 #else
4498 # define ISLOWER(c) \
4499                    (('a' <= (c) && (c) <= 'i') \
4500                      || ('j' <= (c) && (c) <= 'r') \
4501                      || ('s' <= (c) && (c) <= 'z'))
4502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4503 #endif
4504
4505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4506 int
4507 main ()
4508 {
4509   int i;
4510   for (i = 0; i < 256; i++)
4511     if (XOR (islower (i), ISLOWER (i))
4512         || toupper (i) != TOUPPER (i))
4513       return 2;
4514   return 0;
4515 }
4516 _ACEOF
4517 rm -f conftest$ac_exeext
4518 if { (ac_try="$ac_link"
4519 case "(($ac_try" in
4520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521   *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4524 $as_echo "$ac_try_echo") >&5
4525   (eval "$ac_link") 2>&5
4526   ac_status=$?
4527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4529   { (case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535   (eval "$ac_try") 2>&5
4536   ac_status=$?
4537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); }; }; then
4539   :
4540 else
4541   $as_echo "$as_me: program exited with status $ac_status" >&5
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ( exit $ac_status )
4546 ac_cv_header_stdc=no
4547 fi
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4549 fi
4550
4551
4552 fi
4553 fi
4554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4555 $as_echo "$ac_cv_header_stdc" >&6; }
4556 if test $ac_cv_header_stdc = yes; then
4557
4558 cat >>confdefs.h <<\_ACEOF
4559 #define STDC_HEADERS 1
4560 _ACEOF
4561
4562 fi
4563
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575                   inttypes.h stdint.h unistd.h
4576 do
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 $as_echo_n "checking for $ac_header... " >&6; }
4580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581   $as_echo_n "(cached) " >&6
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 $ac_includes_default
4590
4591 #include <$ac_header>
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601   (eval "$ac_compile") 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && {
4608          test -z "$ac_c_werror_flag" ||
4609          test ! -s conftest.err
4610        } && test -s conftest.$ac_objext; then
4611   eval "$as_ac_Header=yes"
4612 else
4613   $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616         eval "$as_ac_Header=no"
4617 fi
4618
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 fi
4621 ac_res=`eval 'as_val=${'$as_ac_Header'}
4622                  $as_echo "$as_val"'`
4623                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4624 $as_echo "$ac_res" >&6; }
4625 if test `eval 'as_val=${'$as_ac_Header'}
4626                  $as_echo "$as_val"'` = yes; then
4627   cat >>confdefs.h <<_ACEOF
4628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4629 _ACEOF
4630
4631 fi
4632
4633 done
4634
4635
4636
4637 for ac_header in dlfcn.h
4638 do
4639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4641   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4642 $as_echo_n "checking for $ac_header... " >&6; }
4643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4644   $as_echo_n "(cached) " >&6
4645 fi
4646 ac_res=`eval 'as_val=${'$as_ac_Header'}
4647                  $as_echo "$as_val"'`
4648                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4649 $as_echo "$ac_res" >&6; }
4650 else
4651   # Is the header compilable?
4652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4653 $as_echo_n "checking $ac_header usability... " >&6; }
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660 $ac_includes_default
4661 #include <$ac_header>
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4665 case "(($ac_try" in
4666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667   *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671   (eval "$ac_compile") 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } && {
4678          test -z "$ac_c_werror_flag" ||
4679          test ! -s conftest.err
4680        } && test -s conftest.$ac_objext; then
4681   ac_header_compiler=yes
4682 else
4683   $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686         ac_header_compiler=no
4687 fi
4688
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4691 $as_echo "$ac_header_compiler" >&6; }
4692
4693 # Is the header present?
4694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4695 $as_echo_n "checking $ac_header presence... " >&6; }
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 #include <$ac_header>
4703 _ACEOF
4704 if { (ac_try="$ac_cpp conftest.$ac_ext"
4705 case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710 $as_echo "$ac_try_echo") >&5
4711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4712   ac_status=$?
4713   grep -v '^ *+' conftest.er1 >conftest.err
4714   rm -f conftest.er1
4715   cat conftest.err >&5
4716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } >/dev/null && {
4718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4719          test ! -s conftest.err
4720        }; then
4721   ac_header_preproc=yes
4722 else
4723   $as_echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726   ac_header_preproc=no
4727 fi
4728
4729 rm -f conftest.err conftest.$ac_ext
4730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4731 $as_echo "$ac_header_preproc" >&6; }
4732
4733 # So?  What about this header?
4734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4735   yes:no: )
4736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4740     ac_header_preproc=yes
4741     ;;
4742   no:yes:* )
4743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4746 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4747     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4749     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4750 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4755
4756     ;;
4757 esac
4758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 $as_echo_n "checking for $ac_header... " >&6; }
4760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4761   $as_echo_n "(cached) " >&6
4762 else
4763   eval "$as_ac_Header=\$ac_header_preproc"
4764 fi
4765 ac_res=`eval 'as_val=${'$as_ac_Header'}
4766                  $as_echo "$as_val"'`
4767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4768 $as_echo "$ac_res" >&6; }
4769
4770 fi
4771 if test `eval 'as_val=${'$as_ac_Header'}
4772                  $as_echo "$as_val"'` = yes; then
4773   cat >>confdefs.h <<_ACEOF
4774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4775 _ACEOF
4776
4777 fi
4778
4779 done
4780
4781
4782
4783
4784
4785
4786 # Only perform the check for file, if the check method requires it
4787 case $deplibs_check_method in
4788 file_magic*)
4789   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4790     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4791 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
4792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4793   $as_echo_n "(cached) " >&6
4794 else
4795   case $MAGIC_CMD in
4796   /*)
4797   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4798   ;;
4799   ?:/*)
4800   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4801   ;;
4802   *)
4803   ac_save_MAGIC_CMD="$MAGIC_CMD"
4804   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4805   ac_dummy="/usr/bin:$PATH"
4806   for ac_dir in $ac_dummy; do
4807     test -z "$ac_dir" && ac_dir=.
4808     if test -f $ac_dir/${ac_tool_prefix}file; then
4809       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4810       if test -n "$file_magic_test_file"; then
4811         case $deplibs_check_method in
4812         "file_magic "*)
4813           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4814           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4815           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4816             egrep "$file_magic_regex" > /dev/null; then
4817             :
4818           else
4819             cat <<EOF 1>&2
4820
4821 *** Warning: the command libtool uses to detect shared libraries,
4822 *** $file_magic_cmd, produces output that libtool cannot recognize.
4823 *** The result is that libtool may fail to recognize shared libraries
4824 *** as such.  This will affect the creation of libtool libraries that
4825 *** depend on shared libraries, but programs linked with such libtool
4826 *** libraries will work regardless of this problem.  Nevertheless, you
4827 *** may want to report the problem to your system manager and/or to
4828 *** bug-libtool@gnu.org
4829
4830 EOF
4831           fi ;;
4832         esac
4833       fi
4834       break
4835     fi
4836   done
4837   IFS="$ac_save_ifs"
4838   MAGIC_CMD="$ac_save_MAGIC_CMD"
4839   ;;
4840 esac
4841 fi
4842
4843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4844 if test -n "$MAGIC_CMD"; then
4845   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4846 $as_echo "$MAGIC_CMD" >&6; }
4847 else
4848   { $as_echo "$as_me:$LINENO: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852 if test -z "$lt_cv_path_MAGIC_CMD"; then
4853   if test -n "$ac_tool_prefix"; then
4854     { $as_echo "$as_me:$LINENO: checking for file" >&5
4855 $as_echo_n "checking for file... " >&6; }
4856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4857   $as_echo_n "(cached) " >&6
4858 else
4859   case $MAGIC_CMD in
4860   /*)
4861   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4862   ;;
4863   ?:/*)
4864   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4865   ;;
4866   *)
4867   ac_save_MAGIC_CMD="$MAGIC_CMD"
4868   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4869   ac_dummy="/usr/bin:$PATH"
4870   for ac_dir in $ac_dummy; do
4871     test -z "$ac_dir" && ac_dir=.
4872     if test -f $ac_dir/file; then
4873       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4874       if test -n "$file_magic_test_file"; then
4875         case $deplibs_check_method in
4876         "file_magic "*)
4877           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4878           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4879           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4880             egrep "$file_magic_regex" > /dev/null; then
4881             :
4882           else
4883             cat <<EOF 1>&2
4884
4885 *** Warning: the command libtool uses to detect shared libraries,
4886 *** $file_magic_cmd, produces output that libtool cannot recognize.
4887 *** The result is that libtool may fail to recognize shared libraries
4888 *** as such.  This will affect the creation of libtool libraries that
4889 *** depend on shared libraries, but programs linked with such libtool
4890 *** libraries will work regardless of this problem.  Nevertheless, you
4891 *** may want to report the problem to your system manager and/or to
4892 *** bug-libtool@gnu.org
4893
4894 EOF
4895           fi ;;
4896         esac
4897       fi
4898       break
4899     fi
4900   done
4901   IFS="$ac_save_ifs"
4902   MAGIC_CMD="$ac_save_MAGIC_CMD"
4903   ;;
4904 esac
4905 fi
4906
4907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4908 if test -n "$MAGIC_CMD"; then
4909   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4910 $as_echo "$MAGIC_CMD" >&6; }
4911 else
4912   { $as_echo "$as_me:$LINENO: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916   else
4917     MAGIC_CMD=:
4918   fi
4919 fi
4920
4921   fi
4922   ;;
4923 esac
4924
4925 if test -n "$ac_tool_prefix"; then
4926   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_RANLIB+set}" = set; then
4931   $as_echo_n "(cached) " >&6
4932 else
4933   if test -n "$RANLIB"; then
4934   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 $as_echo "$RANLIB" >&6; }
4957 else
4958   { $as_echo "$as_me:$LINENO: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 fi
4964 if test -z "$ac_cv_prog_RANLIB"; then
4965   ac_ct_RANLIB=$RANLIB
4966   # Extract the first word of "ranlib", so it can be a program name with args.
4967 set dummy ranlib; ac_word=$2
4968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971   $as_echo_n "(cached) " >&6
4972 else
4973   if test -n "$ac_ct_RANLIB"; then
4974   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981   for ac_exec_ext in '' $ac_executable_extensions; do
4982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983     ac_cv_prog_ac_ct_RANLIB="ranlib"
4984     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994 if test -n "$ac_ct_RANLIB"; then
4995   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996 $as_echo "$ac_ct_RANLIB" >&6; }
4997 else
4998   { $as_echo "$as_me:$LINENO: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002   if test "x$ac_ct_RANLIB" = x; then
5003     RANLIB=":"
5004   else
5005     case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008 whose name does not start with the host triplet.  If you think this
5009 configuration is useful to you, please write to autoconf@gnu.org." >&5
5010 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the host triplet.  If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015     RANLIB=$ac_ct_RANLIB
5016   fi
5017 else
5018   RANLIB="$ac_cv_prog_RANLIB"
5019 fi
5020
5021 if test -n "$ac_tool_prefix"; then
5022   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}strip; ac_word=$2
5024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_STRIP+set}" = set; then
5027   $as_echo_n "(cached) " >&6
5028 else
5029   if test -n "$STRIP"; then
5030   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5040     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 STRIP=$ac_cv_prog_STRIP
5050 if test -n "$STRIP"; then
5051   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5052 $as_echo "$STRIP" >&6; }
5053 else
5054   { $as_echo "$as_me:$LINENO: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 fi
5060 if test -z "$ac_cv_prog_STRIP"; then
5061   ac_ct_STRIP=$STRIP
5062   # Extract the first word of "strip", so it can be a program name with args.
5063 set dummy strip; ac_word=$2
5064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$ac_ct_STRIP"; then
5070   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077   for ac_exec_ext in '' $ac_executable_extensions; do
5078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079     ac_cv_prog_ac_ct_STRIP="strip"
5080     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5090 if test -n "$ac_ct_STRIP"; then
5091   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5092 $as_echo "$ac_ct_STRIP" >&6; }
5093 else
5094   { $as_echo "$as_me:$LINENO: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098   if test "x$ac_ct_STRIP" = x; then
5099     STRIP=":"
5100   else
5101     case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet.  If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet.  If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     STRIP=$ac_ct_STRIP
5112   fi
5113 else
5114   STRIP="$ac_cv_prog_STRIP"
5115 fi
5116
5117
5118 enable_dlopen=no
5119 enable_win32_dll=no
5120
5121 # Check whether --enable-libtool-lock was given.
5122 if test "${enable_libtool_lock+set}" = set; then
5123   enableval=$enable_libtool_lock;
5124 fi
5125
5126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5127
5128 # Some flags need to be propagated to the compiler or linker for good
5129 # libtool support.
5130 case $host in
5131 *-*-irix6*)
5132   # Find out which ABI we are using.
5133   echo '#line 5133 "configure"' > conftest.$ac_ext
5134   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135   (eval $ac_compile) 2>&5
5136   ac_status=$?
5137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; then
5139     case `/usr/bin/file conftest.$ac_objext` in
5140     *32-bit*)
5141       LD="${LD-ld} -32"
5142       ;;
5143     *N32*)
5144       LD="${LD-ld} -n32"
5145       ;;
5146     *64-bit*)
5147       LD="${LD-ld} -64"
5148       ;;
5149     esac
5150   fi
5151   rm -rf conftest*
5152   ;;
5153
5154 *-*-sco3.2v5*)
5155   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5156   SAVE_CFLAGS="$CFLAGS"
5157   CFLAGS="$CFLAGS -belf"
5158   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5159 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5160 if test "${lt_cv_cc_needs_belf+set}" = set; then
5161   $as_echo_n "(cached) " >&6
5162 else
5163
5164      ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169
5170      cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h.  */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h.  */
5176
5177 int
5178 main ()
5179 {
5180
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (ac_try="$ac_link"
5187 case "(($ac_try" in
5188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189   *) ac_try_echo=$ac_try;;
5190 esac
5191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5192 $as_echo "$ac_try_echo") >&5
5193   (eval "$ac_link") 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } && {
5200          test -z "$ac_c_werror_flag" ||
5201          test ! -s conftest.err
5202        } && test -s conftest$ac_exeext &&
5203        $as_test_x conftest$ac_exeext; then
5204   lt_cv_cc_needs_belf=yes
5205 else
5206   $as_echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209         lt_cv_cc_needs_belf=no
5210 fi
5211
5212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5213       conftest$ac_exeext conftest.$ac_ext
5214      ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219
5220 fi
5221 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5222 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5223   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5224     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5225     CFLAGS="$SAVE_CFLAGS"
5226   fi
5227   ;;
5228
5229
5230 esac
5231
5232 # Sed substitution that helps us do robust quoting.  It backslashifies
5233 # metacharacters that are still active within double-quoted strings.
5234 Xsed='sed -e s/^X//'
5235 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5236
5237 # Same as above, but do not quote variable references.
5238 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5239
5240 # Sed substitution to delay expansion of an escaped shell variable in a
5241 # double_quote_subst'ed string.
5242 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5243
5244 # Constants:
5245 rm="rm -f"
5246
5247 # Global variables:
5248 default_ofile=libtool
5249 can_build_shared=yes
5250
5251 # All known linkers require a `.a' archive for static linking (except M$VC,
5252 # which needs '.lib').
5253 libext=a
5254 ltmain="$ac_aux_dir/ltmain.sh"
5255 ofile="$default_ofile"
5256 with_gnu_ld="$lt_cv_prog_gnu_ld"
5257 need_locks="$enable_libtool_lock"
5258
5259 old_CC="$CC"
5260 old_CFLAGS="$CFLAGS"
5261
5262 # Set sane defaults for various variables
5263 test -z "$AR" && AR=ar
5264 test -z "$AR_FLAGS" && AR_FLAGS=cru
5265 test -z "$AS" && AS=as
5266 test -z "$CC" && CC=cc
5267 test -z "$DLLTOOL" && DLLTOOL=dlltool
5268 test -z "$LD" && LD=ld
5269 test -z "$LN_S" && LN_S="ln -s"
5270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5271 test -z "$NM" && NM=nm
5272 test -z "$OBJDUMP" && OBJDUMP=objdump
5273 test -z "$RANLIB" && RANLIB=:
5274 test -z "$STRIP" && STRIP=:
5275 test -z "$ac_objext" && ac_objext=o
5276
5277 if test x"$host" != x"$build"; then
5278   ac_tool_prefix=${host_alias}-
5279 else
5280   ac_tool_prefix=
5281 fi
5282
5283 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5284 case $host_os in
5285 linux-gnu*) ;;
5286 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5287 esac
5288
5289 case $host_os in
5290 aix3*)
5291   # AIX sometimes has problems with the GCC collect2 program.  For some
5292   # reason, if we set the COLLECT_NAMES environment variable, the problems
5293   # vanish in a puff of smoke.
5294   if test "X${COLLECT_NAMES+set}" != Xset; then
5295     COLLECT_NAMES=
5296     export COLLECT_NAMES
5297   fi
5298   ;;
5299 esac
5300
5301 # Determine commands to create old-style static archives.
5302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5303 old_postinstall_cmds='chmod 644 $oldlib'
5304 old_postuninstall_cmds=
5305
5306 if test -n "$RANLIB"; then
5307   case $host_os in
5308   openbsd*)
5309     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5310     ;;
5311   *)
5312     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5313     ;;
5314   esac
5315   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5316 fi
5317
5318 # Allow CC to be a program name with arguments.
5319 set dummy $CC
5320 compiler="$2"
5321
5322 ## FIXME: this should be a separate macro
5323 ##
5324 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5325 $as_echo_n "checking for objdir... " >&6; }
5326 rm -f .libs 2>/dev/null
5327 mkdir .libs 2>/dev/null
5328 if test -d .libs; then
5329   objdir=.libs
5330 else
5331   # MS-DOS does not allow filenames that begin with a dot.
5332   objdir=_libs
5333 fi
5334 rmdir .libs 2>/dev/null
5335 { $as_echo "$as_me:$LINENO: result: $objdir" >&5
5336 $as_echo "$objdir" >&6; }
5337 ##
5338 ## END FIXME
5339
5340
5341 ## FIXME: this should be a separate macro
5342 ##
5343
5344 # Check whether --with-pic was given.
5345 if test "${with_pic+set}" = set; then
5346   withval=$with_pic; pic_mode="$withval"
5347 else
5348   pic_mode=default
5349 fi
5350
5351 test -z "$pic_mode" && pic_mode=default
5352
5353 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5354 # in isolation, and that seeing it set (from the cache) indicates that
5355 # the associated values are set (in the cache) correctly too.
5356 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
5358 if test "${lt_cv_prog_cc_pic+set}" = set; then
5359   $as_echo_n "(cached) " >&6
5360 else
5361    lt_cv_prog_cc_pic=
5362   lt_cv_prog_cc_shlib=
5363   lt_cv_prog_cc_wl=
5364   lt_cv_prog_cc_static=
5365   lt_cv_prog_cc_no_builtin=
5366   lt_cv_prog_cc_can_build_shared=$can_build_shared
5367
5368   if test "$GCC" = yes; then
5369     lt_cv_prog_cc_wl='-Wl,'
5370     lt_cv_prog_cc_static='-static'
5371
5372     case $host_os in
5373     aix*)
5374       # Below there is a dirty hack to force normal static linking with -ldl
5375       # The problem is because libdl dynamically linked with both libc and
5376       # libC (AIX C++ library), which obviously doesn't included in libraries
5377       # list by gcc. This cause undefined symbols with -static flags.
5378       # This hack allows C programs to be linked with "-static -ldl", but
5379       # not sure about C++ programs.
5380       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5381       ;;
5382     amigaos*)
5383       # FIXME: we need at least 68020 code to build shared libraries, but
5384       # adding the `-m68020' flag to GCC prevents building anything better,
5385       # like `-m68040'.
5386       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5387       ;;
5388     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5389       # PIC is the default for these OSes.
5390       ;;
5391     darwin* | rhapsody*)
5392       # PIC is the default on this platform
5393       # Common symbols not allowed in MH_DYLIB files
5394       lt_cv_prog_cc_pic='-fno-common'
5395       ;;
5396     cygwin* | mingw* | pw32* | os2*)
5397       # This hack is so that the source file can tell whether it is being
5398       # built for inclusion in a dll (and should export symbols for example).
5399       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5400       ;;
5401     sysv4*MP*)
5402       if test -d /usr/nec; then
5403          lt_cv_prog_cc_pic=-Kconform_pic
5404       fi
5405       ;;
5406     *)
5407       lt_cv_prog_cc_pic='-fPIC'
5408       ;;
5409     esac
5410   else
5411     # PORTME Check for PIC flags for the system compiler.
5412     case $host_os in
5413     aix3* | aix4* | aix5*)
5414       lt_cv_prog_cc_wl='-Wl,'
5415       # All AIX code is PIC.
5416       if test "$host_cpu" = ia64; then
5417         # AIX 5 now supports IA64 processor
5418         lt_cv_prog_cc_static='-Bstatic'
5419       else
5420         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5421       fi
5422       ;;
5423
5424     hpux9* | hpux10* | hpux11*)
5425       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5426       lt_cv_prog_cc_wl='-Wl,'
5427       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5428       lt_cv_prog_cc_pic='+Z'
5429       ;;
5430
5431     irix5* | irix6* | nonstopux*)
5432       lt_cv_prog_cc_wl='-Wl,'
5433       lt_cv_prog_cc_static='-non_shared'
5434       # PIC (with -KPIC) is the default.
5435       ;;
5436
5437     cygwin* | mingw* | pw32* | os2*)
5438       # This hack is so that the source file can tell whether it is being
5439       # built for inclusion in a dll (and should export symbols for example).
5440       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5441       ;;
5442
5443     newsos6)
5444       lt_cv_prog_cc_pic='-KPIC'
5445       lt_cv_prog_cc_static='-Bstatic'
5446       ;;
5447
5448     osf3* | osf4* | osf5*)
5449       # All OSF/1 code is PIC.
5450       lt_cv_prog_cc_wl='-Wl,'
5451       lt_cv_prog_cc_static='-non_shared'
5452       ;;
5453
5454     sco3.2v5*)
5455       lt_cv_prog_cc_pic='-Kpic'
5456       lt_cv_prog_cc_static='-dn'
5457       lt_cv_prog_cc_shlib='-belf'
5458       ;;
5459
5460     solaris*)
5461       lt_cv_prog_cc_pic='-KPIC'
5462       lt_cv_prog_cc_static='-Bstatic'
5463       lt_cv_prog_cc_wl='-Wl,'
5464       ;;
5465
5466     sunos4*)
5467       lt_cv_prog_cc_pic='-PIC'
5468       lt_cv_prog_cc_static='-Bstatic'
5469       lt_cv_prog_cc_wl='-Qoption ld '
5470       ;;
5471
5472     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5473       lt_cv_prog_cc_pic='-KPIC'
5474       lt_cv_prog_cc_static='-Bstatic'
5475       lt_cv_prog_cc_wl='-Wl,'
5476       ;;
5477
5478     uts4*)
5479       lt_cv_prog_cc_pic='-pic'
5480       lt_cv_prog_cc_static='-Bstatic'
5481       ;;
5482
5483     sysv4*MP*)
5484       if test -d /usr/nec ;then
5485         lt_cv_prog_cc_pic='-Kconform_pic'
5486         lt_cv_prog_cc_static='-Bstatic'
5487       fi
5488       ;;
5489
5490     *)
5491       lt_cv_prog_cc_can_build_shared=no
5492       ;;
5493     esac
5494   fi
5495
5496 fi
5497
5498 if test -z "$lt_cv_prog_cc_pic"; then
5499   { $as_echo "$as_me:$LINENO: result: none" >&5
5500 $as_echo "none" >&6; }
5501 else
5502   { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5503 $as_echo "$lt_cv_prog_cc_pic" >&6; }
5504
5505   # Check to make sure the pic_flag actually works.
5506   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5507 $as_echo_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... " >&6; }
5508   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5509   $as_echo_n "(cached) " >&6
5510 else
5511       save_CFLAGS="$CFLAGS"
5512     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5513     cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519
5520 int
5521 main ()
5522 {
5523
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532   *) ac_try_echo=$ac_try;;
5533 esac
5534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5535 $as_echo "$ac_try_echo") >&5
5536   (eval "$ac_compile") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && {
5543          test -z "$ac_c_werror_flag" ||
5544          test ! -s conftest.err
5545        } && test -s conftest.$ac_objext; then
5546         case $host_os in
5547       hpux9* | hpux10* | hpux11*)
5548         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5549         # they create non-PIC objects.  So, if there were any warnings, we
5550         # assume that PIC is not supported.
5551         if test -s conftest.err; then
5552           lt_cv_prog_cc_pic_works=no
5553         else
5554           lt_cv_prog_cc_pic_works=yes
5555         fi
5556         ;;
5557       *)
5558         lt_cv_prog_cc_pic_works=yes
5559         ;;
5560       esac
5561
5562 else
5563   $as_echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566               lt_cv_prog_cc_pic_works=no
5567
5568 fi
5569
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571     CFLAGS="$save_CFLAGS"
5572
5573 fi
5574
5575
5576   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5577     lt_cv_prog_cc_pic=
5578     lt_cv_prog_cc_can_build_shared=no
5579   else
5580     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5581   fi
5582
5583   { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5584 $as_echo "$lt_cv_prog_cc_pic_works" >&6; }
5585 fi
5586 ##
5587 ## END FIXME
5588
5589 # Check for any special shared library compilation flags.
5590 if test -n "$lt_cv_prog_cc_shlib"; then
5591   { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5592 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5593   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5594   else
5595    { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5596 $as_echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5597     lt_cv_prog_cc_can_build_shared=no
5598   fi
5599 fi
5600
5601 ## FIXME: this should be a separate macro
5602 ##
5603 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5604 $as_echo_n "checking if $compiler static flag $lt_cv_prog_cc_static works... " >&6; }
5605 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5606   $as_echo_n "(cached) " >&6
5607 else
5608     lt_cv_prog_cc_static_works=no
5609   save_LDFLAGS="$LDFLAGS"
5610   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5611   cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617
5618 int
5619 main ()
5620 {
5621
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 rm -f conftest.$ac_objext conftest$ac_exeext
5627 if { (ac_try="$ac_link"
5628 case "(($ac_try" in
5629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630   *) ac_try_echo=$ac_try;;
5631 esac
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634   (eval "$ac_link") 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } && {
5641          test -z "$ac_c_werror_flag" ||
5642          test ! -s conftest.err
5643        } && test -s conftest$ac_exeext &&
5644        $as_test_x conftest$ac_exeext; then
5645   lt_cv_prog_cc_static_works=yes
5646 else
5647   $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650
5651 fi
5652
5653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5654       conftest$ac_exeext conftest.$ac_ext
5655   LDFLAGS="$save_LDFLAGS"
5656
5657 fi
5658
5659
5660 # Belt *and* braces to stop my trousers falling down:
5661 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5662 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5663 $as_echo "$lt_cv_prog_cc_static_works" >&6; }
5664
5665 pic_flag="$lt_cv_prog_cc_pic"
5666 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5667 wl="$lt_cv_prog_cc_wl"
5668 link_static_flag="$lt_cv_prog_cc_static"
5669 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5670 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5671 ##
5672 ## END FIXME
5673
5674
5675 ## FIXME: this should be a separate macro
5676 ##
5677 # Check to see if options -o and -c are simultaneously supported by compiler
5678 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5679 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5680 if test "${lt_cv_compiler_c_o+set}" = set; then
5681   $as_echo_n "(cached) " >&6
5682 else
5683
5684 $rm -r conftest 2>/dev/null
5685 mkdir conftest
5686 cd conftest
5687 echo "int some_variable = 0;" > conftest.$ac_ext
5688 mkdir out
5689 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5690 # that will create temporary files in the current directory regardless of
5691 # the output directory.  Thus, making CWD read-only will cause this test
5692 # to fail, enabling locking or at least warning the user not to do parallel
5693 # builds.
5694 chmod -w .
5695 save_CFLAGS="$CFLAGS"
5696 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5697 compiler_c_o=no
5698 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5699   # The compiler can only warn and ignore the option if not recognized
5700   # So say no if there are warnings
5701   if test -s out/conftest.err; then
5702     lt_cv_compiler_c_o=no
5703   else
5704     lt_cv_compiler_c_o=yes
5705   fi
5706 else
5707   # Append any errors to the config.log.
5708   cat out/conftest.err 1>&5
5709   lt_cv_compiler_c_o=no
5710 fi
5711 CFLAGS="$save_CFLAGS"
5712 chmod u+w .
5713 $rm conftest* out/*
5714 rmdir out
5715 cd ..
5716 rmdir conftest
5717 $rm -r conftest 2>/dev/null
5718
5719 fi
5720
5721 compiler_c_o=$lt_cv_compiler_c_o
5722 { $as_echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5723 $as_echo "$compiler_c_o" >&6; }
5724
5725 if test x"$compiler_c_o" = x"yes"; then
5726   # Check to see if we can write to a .lo
5727   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5728 $as_echo_n "checking if $compiler supports -c -o file.lo... " >&6; }
5729   if test "${lt_cv_compiler_o_lo+set}" = set; then
5730   $as_echo_n "(cached) " >&6
5731 else
5732
5733   lt_cv_compiler_o_lo=no
5734   save_CFLAGS="$CFLAGS"
5735   CFLAGS="$CFLAGS -c -o conftest.lo"
5736   save_objext="$ac_objext"
5737   ac_objext=lo
5738   cat >conftest.$ac_ext <<_ACEOF
5739 /* confdefs.h.  */
5740 _ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h.  */
5744
5745 int
5746 main ()
5747 {
5748 int some_variable = 0;
5749   ;
5750   return 0;
5751 }
5752 _ACEOF
5753 rm -f conftest.$ac_objext
5754 if { (ac_try="$ac_compile"
5755 case "(($ac_try" in
5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757   *) ac_try_echo=$ac_try;;
5758 esac
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761   (eval "$ac_compile") 2>conftest.er1
5762   ac_status=$?
5763   grep -v '^ *+' conftest.er1 >conftest.err
5764   rm -f conftest.er1
5765   cat conftest.err >&5
5766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); } && {
5768          test -z "$ac_c_werror_flag" ||
5769          test ! -s conftest.err
5770        } && test -s conftest.$ac_objext; then
5771       # The compiler can only warn and ignore the option if not recognized
5772     # So say no if there are warnings
5773     if test -s conftest.err; then
5774       lt_cv_compiler_o_lo=no
5775     else
5776       lt_cv_compiler_o_lo=yes
5777     fi
5778
5779 else
5780   $as_echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783
5784 fi
5785
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787   ac_objext="$save_objext"
5788   CFLAGS="$save_CFLAGS"
5789
5790 fi
5791
5792   compiler_o_lo=$lt_cv_compiler_o_lo
5793   { $as_echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5794 $as_echo "$compiler_o_lo" >&6; }
5795 else
5796   compiler_o_lo=no
5797 fi
5798 ##
5799 ## END FIXME
5800
5801 ## FIXME: this should be a separate macro
5802 ##
5803 # Check to see if we can do hard links to lock some files if needed
5804 hard_links="nottested"
5805 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5806   # do not overwrite the value of need_locks provided by the user
5807   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5808 $as_echo_n "checking if we can lock with hard links... " >&6; }
5809   hard_links=yes
5810   $rm conftest*
5811   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5812   touch conftest.a
5813   ln conftest.a conftest.b 2>&5 || hard_links=no
5814   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5815   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
5816 $as_echo "$hard_links" >&6; }
5817   if test "$hard_links" = no; then
5818     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5819 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5820     need_locks=warn
5821   fi
5822 else
5823   need_locks=no
5824 fi
5825 ##
5826 ## END FIXME
5827
5828 ## FIXME: this should be a separate macro
5829 ##
5830 if test "$GCC" = yes; then
5831   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5832   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5833 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5834   echo "int some_variable = 0;" > conftest.$ac_ext
5835   save_CFLAGS="$CFLAGS"
5836   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5837   compiler_rtti_exceptions=no
5838   cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844
5845 int
5846 main ()
5847 {
5848 int some_variable = 0;
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5860 $as_echo "$ac_try_echo") >&5
5861   (eval "$ac_compile") 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } && {
5868          test -z "$ac_c_werror_flag" ||
5869          test ! -s conftest.err
5870        } && test -s conftest.$ac_objext; then
5871       # The compiler can only warn and ignore the option if not recognized
5872     # So say no if there are warnings
5873     if test -s conftest.err; then
5874       compiler_rtti_exceptions=no
5875     else
5876       compiler_rtti_exceptions=yes
5877     fi
5878
5879 else
5880   $as_echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883
5884 fi
5885
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887   CFLAGS="$save_CFLAGS"
5888   { $as_echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5889 $as_echo "$compiler_rtti_exceptions" >&6; }
5890
5891   if test "$compiler_rtti_exceptions" = "yes"; then
5892     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5893   else
5894     no_builtin_flag=' -fno-builtin'
5895   fi
5896 fi
5897 ##
5898 ## END FIXME
5899
5900 ## FIXME: this should be a separate macro
5901 ##
5902 # See if the linker supports building shared libraries.
5903 { $as_echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5904 $as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; }
5905
5906 allow_undefined_flag=
5907 no_undefined_flag=
5908 need_lib_prefix=unknown
5909 need_version=unknown
5910 # when you set need_version to no, make sure it does not cause -set_version
5911 # flags to be left without arguments
5912 archive_cmds=
5913 archive_expsym_cmds=
5914 old_archive_from_new_cmds=
5915 old_archive_from_expsyms_cmds=
5916 export_dynamic_flag_spec=
5917 whole_archive_flag_spec=
5918 thread_safe_flag_spec=
5919 hardcode_into_libs=no
5920 hardcode_libdir_flag_spec=
5921 hardcode_libdir_separator=
5922 hardcode_direct=no
5923 hardcode_minus_L=no
5924 hardcode_shlibpath_var=unsupported
5925 runpath_var=
5926 link_all_deplibs=unknown
5927 always_export_symbols=no
5928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5929 # include_expsyms should be a list of space-separated symbols to be *always*
5930 # included in the symbol list
5931 include_expsyms=
5932 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5934 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5935 # as well as any symbol that contains `d'.
5936 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5938 # platforms (ab)use it in PIC code, but their linkers get confused if
5939 # the symbol is explicitly referenced.  Since portable code cannot
5940 # rely on this symbol name, it's probably fine to never include it in
5941 # preloaded symbol tables.
5942 extract_expsyms_cmds=
5943
5944 case $host_os in
5945 cygwin* | mingw* | pw32*)
5946   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5947   # When not using gcc, we currently assume that we are using
5948   # Microsoft Visual C++.
5949   if test "$GCC" != yes; then
5950     with_gnu_ld=no
5951   fi
5952   ;;
5953 openbsd*)
5954   with_gnu_ld=no
5955   ;;
5956 esac
5957
5958 ld_shlibs=yes
5959 if test "$with_gnu_ld" = yes; then
5960   # If archive_cmds runs LD, not CC, wlarc should be empty
5961   wlarc='${wl}'
5962
5963   # See if GNU ld supports shared libraries.
5964   case $host_os in
5965   aix3* | aix4* | aix5*)
5966     # On AIX, the GNU linker is very broken
5967     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5968     ld_shlibs=no
5969     cat <<EOF 1>&2
5970
5971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5972 *** to be unable to reliably create shared libraries on AIX.
5973 *** Therefore, libtool is disabling shared libraries support.  If you
5974 *** really care for shared libraries, you may want to modify your PATH
5975 *** so that a non-GNU linker is found, and then restart.
5976
5977 EOF
5978     ;;
5979
5980   amigaos*)
5981     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)'
5982     hardcode_libdir_flag_spec='-L$libdir'
5983     hardcode_minus_L=yes
5984
5985     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5986     # that the semantics of dynamic libraries on AmigaOS, at least up
5987     # to version 4, is to share data among multiple programs linked
5988     # with the same dynamic library.  Since this doesn't match the
5989     # behavior of shared libraries on other platforms, we can use
5990     # them.
5991     ld_shlibs=no
5992     ;;
5993
5994   beos*)
5995     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5996       allow_undefined_flag=unsupported
5997       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5998       # support --undefined.  This deserves some investigation.  FIXME
5999       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6000     else
6001       ld_shlibs=no
6002     fi
6003     ;;
6004
6005   cygwin* | mingw* | pw32*)
6006     # hardcode_libdir_flag_spec is actually meaningless, as there is
6007     # no search path for DLLs.
6008     hardcode_libdir_flag_spec='-L$libdir'
6009     allow_undefined_flag=unsupported
6010     always_export_symbols=yes
6011
6012     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6013       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6014       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6015       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6016       else $CC -o impgen impgen.c ; fi)~
6017       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6018
6019     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6020
6021     # cygwin and mingw dlls have different entry points and sets of symbols
6022     # to exclude.
6023     # FIXME: what about values for MSVC?
6024     dll_entry=__cygwin_dll_entry@12
6025     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6026     case $host_os in
6027     mingw*)
6028       # mingw values
6029       dll_entry=_DllMainCRTStartup@12
6030       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6031       ;;
6032     esac
6033
6034     # mingw and cygwin differ, and it's simplest to just exclude the union
6035     # of the two symbol sets.
6036     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6037
6038     # recent cygwin and mingw systems supply a stub DllMain which the user
6039     # can override, but on older systems we have to supply one (in ltdll.c)
6040     if test "x$lt_cv_need_dllmain" = "xyes"; then
6041       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6042       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~
6043         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6044     else
6045       ltdll_obj=
6046       ltdll_cmds=
6047     fi
6048
6049     # Extract the symbol export list from an `--export-all' def file,
6050     # then regenerate the def file from the symbol export list, so that
6051     # the compiled dll only exports the symbol export list.
6052     # Be careful not to strip the DATA tag left be newer dlltools.
6053     export_symbols_cmds="$ltdll_cmds"'
6054       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6055       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6056
6057     # If the export-symbols file already is a .def file (1st line
6058     # is EXPORTS), use it as is.
6059     # If DATA tags from a recent dlltool are present, honour them!
6060     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6061         cp $export_symbols $output_objdir/$soname-def;
6062       else
6063         echo EXPORTS > $output_objdir/$soname-def;
6064         _lt_hint=1;
6065         cat $export_symbols | while read symbol; do
6066          set dummy \$symbol;
6067          case \$# in
6068            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6069            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6070            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6071          esac;
6072          _lt_hint=`expr 1 + \$_lt_hint`;
6073         done;
6074       fi~
6075       '"$ltdll_cmds"'
6076       $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~
6077       $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~
6078       $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~
6079       $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~
6080       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6081     ;;
6082
6083   netbsd*)
6084     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6085       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6086       wlarc=
6087     else
6088       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6089       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6090     fi
6091     ;;
6092
6093   solaris* | sysv5*)
6094     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6095       ld_shlibs=no
6096       cat <<EOF 1>&2
6097
6098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6099 *** create shared libraries on Solaris systems.  Therefore, libtool
6100 *** is disabling shared libraries support.  We urge you to upgrade GNU
6101 *** binutils to release 2.9.1 or newer.  Another option is to modify
6102 *** your PATH or compiler configuration so that the native linker is
6103 *** used, and then restart.
6104
6105 EOF
6106     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6107       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6108       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6109     else
6110       ld_shlibs=no
6111     fi
6112     ;;
6113
6114   sunos4*)
6115     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6116     wlarc=
6117     hardcode_direct=yes
6118     hardcode_shlibpath_var=no
6119     ;;
6120
6121   *)
6122     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6123       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6124       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6125     else
6126       ld_shlibs=no
6127     fi
6128     ;;
6129   esac
6130
6131   if test "$ld_shlibs" = yes; then
6132     runpath_var=LD_RUN_PATH
6133     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6134     export_dynamic_flag_spec='${wl}--export-dynamic'
6135     case $host_os in
6136     cygwin* | mingw* | pw32*)
6137       # dlltool doesn't understand --whole-archive et. al.
6138       whole_archive_flag_spec=
6139       ;;
6140     *)
6141       # ancient GNU ld didn't support --whole-archive et. al.
6142       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6143         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6144       else
6145         whole_archive_flag_spec=
6146       fi
6147       ;;
6148     esac
6149   fi
6150 else
6151   # PORTME fill in a description of your system's linker (not GNU ld)
6152   case $host_os in
6153   aix3*)
6154     allow_undefined_flag=unsupported
6155     always_export_symbols=yes
6156     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'
6157     # Note: this linker hardcodes the directories in LIBPATH if there
6158     # are no directories specified by -L.
6159     hardcode_minus_L=yes
6160     if test "$GCC" = yes && test -z "$link_static_flag"; then
6161       # Neither direct hardcoding nor static linking is supported with a
6162       # broken collect2.
6163       hardcode_direct=unsupported
6164     fi
6165     ;;
6166
6167   aix4* | aix5*)
6168     if test "$host_cpu" = ia64; then
6169       # On IA64, the linker does run time linking by default, so we don't
6170       # have to do anything special.
6171       aix_use_runtimelinking=no
6172       exp_sym_flag='-Bexport'
6173       no_entry_flag=""
6174     else
6175       aix_use_runtimelinking=no
6176
6177       # Test if we are trying to use run time linking or normal
6178       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6179       # need to do runtime linking.
6180       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6181         for ld_flag in $LDFLAGS; do
6182           case $ld_flag in
6183           *-brtl*)
6184             aix_use_runtimelinking=yes
6185             break
6186           ;;
6187           esac
6188         done
6189       esac
6190
6191       exp_sym_flag='-bexport'
6192       no_entry_flag='-bnoentry'
6193     fi
6194
6195     # When large executables or shared objects are built, AIX ld can
6196     # have problems creating the table of contents.  If linking a library
6197     # or program results in "error TOC overflow" add -mminimal-toc to
6198     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6199     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6200
6201     hardcode_direct=yes
6202     archive_cmds=''
6203     hardcode_libdir_separator=':'
6204     if test "$GCC" = yes; then
6205       case $host_os in aix4.[012]|aix4.[012].*)
6206         collect2name=`${CC} -print-prog-name=collect2`
6207         if test -f "$collect2name" && \
6208           strings "$collect2name" | grep resolve_lib_name >/dev/null
6209         then
6210           # We have reworked collect2
6211           hardcode_direct=yes
6212         else
6213           # We have old collect2
6214           hardcode_direct=unsupported
6215           # It fails to find uninstalled libraries when the uninstalled
6216           # path is not listed in the libpath.  Setting hardcode_minus_L
6217           # to unsupported forces relinking
6218           hardcode_minus_L=yes
6219           hardcode_libdir_flag_spec='-L$libdir'
6220           hardcode_libdir_separator=
6221         fi
6222       esac
6223
6224       shared_flag='-shared'
6225     else
6226       # not using gcc
6227       if test "$host_cpu" = ia64; then
6228         shared_flag='${wl}-G'
6229       else
6230         if test "$aix_use_runtimelinking" = yes; then
6231           shared_flag='${wl}-G'
6232         else
6233           shared_flag='${wl}-bM:SRE'
6234         fi
6235       fi
6236     fi
6237
6238     # It seems that -bexpall can do strange things, so it is better to
6239     # generate a list of symbols to export.
6240     always_export_symbols=yes
6241     if test "$aix_use_runtimelinking" = yes; then
6242       # Warning - without using the other runtime loading flags (-brtl),
6243       # -berok will link without error, but may produce a broken library.
6244       allow_undefined_flag='-berok'
6245       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6246       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"
6247     else
6248       if test "$host_cpu" = ia64; then
6249         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6250         allow_undefined_flag="-z nodefs"
6251         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"
6252       else
6253         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6254         # Warning - without using the other run time loading flags,
6255         # -berok will link without error, but may produce a broken library.
6256         allow_undefined_flag='${wl}-berok'
6257         # This is a bit strange, but is similar to how AIX traditionally builds
6258         # it's shared libraries.
6259         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'
6260       fi
6261     fi
6262     ;;
6263
6264   amigaos*)
6265     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)'
6266     hardcode_libdir_flag_spec='-L$libdir'
6267     hardcode_minus_L=yes
6268     # see comment about different semantics on the GNU ld section
6269     ld_shlibs=no
6270     ;;
6271
6272   cygwin* | mingw* | pw32*)
6273     # When not using gcc, we currently assume that we are using
6274     # Microsoft Visual C++.
6275     # hardcode_libdir_flag_spec is actually meaningless, as there is
6276     # no search path for DLLs.
6277     hardcode_libdir_flag_spec=' '
6278     allow_undefined_flag=unsupported
6279     # Tell ltmain to make .lib files, not .a files.
6280     libext=lib
6281     # FIXME: Setting linknames here is a bad hack.
6282     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6283     # The linker will automatically build a .lib file if we build a DLL.
6284     old_archive_from_new_cmds='true'
6285     # FIXME: Should let the user specify the lib program.
6286     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6287     fix_srcfile_path='`cygpath -w "$srcfile"`'
6288     ;;
6289
6290   darwin* | rhapsody*)
6291     case "$host_os" in
6292     rhapsody* | darwin1.[012])
6293       allow_undefined_flag='-undefined suppress'
6294       ;;
6295     *) # Darwin 1.3 on
6296       allow_undefined_flag='-flat_namespace -undefined suppress'
6297       ;;
6298     esac
6299     # FIXME: Relying on posixy $() will cause problems for
6300     #        cross-compilation, but unfortunately the echo tests do not
6301     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6302     #        `"' quotes if we put them in here... so don't!
6303     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)'
6304     # We need to add '_' to the symbols in $export_symbols first
6305     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6306     hardcode_direct=yes
6307     hardcode_shlibpath_var=no
6308     whole_archive_flag_spec='-all_load $convenience'
6309     ;;
6310
6311   freebsd1*)
6312     ld_shlibs=no
6313     ;;
6314
6315   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6316   # support.  Future versions do this automatically, but an explicit c++rt0.o
6317   # does not break anything, and helps significantly (at the cost of a little
6318   # extra space).
6319   freebsd2.2*)
6320     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6321     hardcode_libdir_flag_spec='-R$libdir'
6322     hardcode_direct=yes
6323     hardcode_shlibpath_var=no
6324     ;;
6325
6326   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6327   freebsd2*)
6328     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6329     hardcode_direct=yes
6330     hardcode_minus_L=yes
6331     hardcode_shlibpath_var=no
6332     ;;
6333
6334   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6335   freebsd* | kfreebsd*-gnu)
6336     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6337     hardcode_libdir_flag_spec='-R$libdir'
6338     hardcode_direct=yes
6339     hardcode_shlibpath_var=no
6340     ;;
6341
6342   hpux9* | hpux10* | hpux11*)
6343     case $host_os in
6344     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' ;;
6345     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6346     esac
6347     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6348     hardcode_libdir_separator=:
6349     hardcode_direct=yes
6350     hardcode_minus_L=yes # Not in the search PATH, but as the default
6351                          # location of the library.
6352     export_dynamic_flag_spec='${wl}-E'
6353     ;;
6354
6355   irix5* | irix6* | nonstopux*)
6356     if test "$GCC" = yes; then
6357       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'
6358       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6359     else
6360       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'
6361       hardcode_libdir_flag_spec='-rpath $libdir'
6362     fi
6363     hardcode_libdir_separator=:
6364     link_all_deplibs=yes
6365     ;;
6366
6367   netbsd*)
6368     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6369       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6370     else
6371       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6372     fi
6373     hardcode_libdir_flag_spec='-R$libdir'
6374     hardcode_direct=yes
6375     hardcode_shlibpath_var=no
6376     ;;
6377
6378   newsos6)
6379     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6380     hardcode_direct=yes
6381     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6382     hardcode_libdir_separator=:
6383     hardcode_shlibpath_var=no
6384     ;;
6385
6386   openbsd*)
6387     hardcode_direct=yes
6388     hardcode_shlibpath_var=no
6389     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6390       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6391       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6392       export_dynamic_flag_spec='${wl}-E'
6393     else
6394       case "$host_os" in
6395       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6396         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6397         hardcode_libdir_flag_spec='-R$libdir'
6398         ;;
6399       *)
6400         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6401         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6402         ;;
6403       esac
6404     fi
6405     ;;
6406
6407   os2*)
6408     hardcode_libdir_flag_spec='-L$libdir'
6409     hardcode_minus_L=yes
6410     allow_undefined_flag=unsupported
6411     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'
6412     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6413     ;;
6414
6415   osf3*)
6416     if test "$GCC" = yes; then
6417       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6418       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'
6419     else
6420       allow_undefined_flag=' -expect_unresolved \*'
6421       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'
6422     fi
6423     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6424     hardcode_libdir_separator=:
6425     ;;
6426
6427   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6428     if test "$GCC" = yes; then
6429       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6430       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'
6431       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6432     else
6433       allow_undefined_flag=' -expect_unresolved \*'
6434       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'
6435       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6436       $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'
6437
6438       #Both c and cxx compiler support -rpath directly
6439       hardcode_libdir_flag_spec='-rpath $libdir'
6440     fi
6441     hardcode_libdir_separator=:
6442     ;;
6443
6444   sco3.2v5*)
6445     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446     hardcode_shlibpath_var=no
6447     runpath_var=LD_RUN_PATH
6448     hardcode_runpath_var=yes
6449     export_dynamic_flag_spec='${wl}-Bexport'
6450     ;;
6451
6452   solaris*)
6453     # gcc --version < 3.0 without binutils cannot create self contained
6454     # shared libraries reliably, requiring libgcc.a to resolve some of
6455     # the object symbols generated in some cases.  Libraries that use
6456     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6457     # a copy of libgcc.a into every shared library to guarantee resolving
6458     # such symbols causes other problems:  According to Tim Van Holder
6459     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6460     # (to the application) exception stack for one thing.
6461     no_undefined_flag=' -z defs'
6462     if test "$GCC" = yes; then
6463       case `$CC --version 2>/dev/null` in
6464       [12].*)
6465         cat <<EOF 1>&2
6466
6467 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6468 *** create self contained shared libraries on Solaris systems, without
6469 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6470 *** -no-undefined support, which will at least allow you to build shared
6471 *** libraries.  However, you may find that when you link such libraries
6472 *** into an application without using GCC, you have to manually add
6473 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6474 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6475 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6476
6477 EOF
6478         no_undefined_flag=
6479         ;;
6480       esac
6481     fi
6482     # $CC -shared without GNU ld will not create a library from C++
6483     # object files and a static libstdc++, better avoid it by now
6484     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6485     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6486                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6487     hardcode_libdir_flag_spec='-R$libdir'
6488     hardcode_shlibpath_var=no
6489     case $host_os in
6490     solaris2.[0-5] | solaris2.[0-5].*) ;;
6491     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6492       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6493     esac
6494     link_all_deplibs=yes
6495     ;;
6496
6497   sunos4*)
6498     if test "x$host_vendor" = xsequent; then
6499       # Use $CC to link under sequent, because it throws in some extra .o
6500       # files that make .init and .fini sections work.
6501       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6502     else
6503       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6504     fi
6505     hardcode_libdir_flag_spec='-L$libdir'
6506     hardcode_direct=yes
6507     hardcode_minus_L=yes
6508     hardcode_shlibpath_var=no
6509     ;;
6510
6511   sysv4)
6512     case $host_vendor in
6513       sni)
6514         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6515         hardcode_direct=yes # is this really true???
6516         ;;
6517       siemens)
6518         ## LD is ld it makes a PLAMLIB
6519         ## CC just makes a GrossModule.
6520         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6521         reload_cmds='$CC -r -o $output$reload_objs'
6522         hardcode_direct=no
6523         ;;
6524       motorola)
6525         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6526         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6527         ;;
6528     esac
6529     runpath_var='LD_RUN_PATH'
6530     hardcode_shlibpath_var=no
6531     ;;
6532
6533   sysv4.3*)
6534     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6535     hardcode_shlibpath_var=no
6536     export_dynamic_flag_spec='-Bexport'
6537     ;;
6538
6539   sysv5*)
6540     no_undefined_flag=' -z text'
6541     # $CC -shared without GNU ld will not create a library from C++
6542     # object files and a static libstdc++, better avoid it by now
6543     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6545                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6546     hardcode_libdir_flag_spec=
6547     hardcode_shlibpath_var=no
6548     runpath_var='LD_RUN_PATH'
6549     ;;
6550
6551   uts4*)
6552     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6553     hardcode_libdir_flag_spec='-L$libdir'
6554     hardcode_shlibpath_var=no
6555     ;;
6556
6557   dgux*)
6558     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6559     hardcode_libdir_flag_spec='-L$libdir'
6560     hardcode_shlibpath_var=no
6561     ;;
6562
6563   sysv4*MP*)
6564     if test -d /usr/nec; then
6565       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6566       hardcode_shlibpath_var=no
6567       runpath_var=LD_RUN_PATH
6568       hardcode_runpath_var=yes
6569       ld_shlibs=yes
6570     fi
6571     ;;
6572
6573   sysv4.2uw2*)
6574     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6575     hardcode_direct=yes
6576     hardcode_minus_L=no
6577     hardcode_shlibpath_var=no
6578     hardcode_runpath_var=yes
6579     runpath_var=LD_RUN_PATH
6580     ;;
6581
6582   sysv5uw7* | unixware7*)
6583     no_undefined_flag='${wl}-z ${wl}text'
6584     if test "$GCC" = yes; then
6585       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6586     else
6587       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6588     fi
6589     runpath_var='LD_RUN_PATH'
6590     hardcode_shlibpath_var=no
6591     ;;
6592
6593   *)
6594     ld_shlibs=no
6595     ;;
6596   esac
6597 fi
6598 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6599 $as_echo "$ld_shlibs" >&6; }
6600 test "$ld_shlibs" = no && can_build_shared=no
6601 ##
6602 ## END FIXME
6603
6604 ## FIXME: this should be a separate macro
6605 ##
6606 # Check hardcoding attributes.
6607 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
6609 hardcode_action=
6610 if test -n "$hardcode_libdir_flag_spec" || \
6611    test -n "$runpath_var"; then
6612
6613   # We can hardcode non-existant directories.
6614   if test "$hardcode_direct" != no &&
6615      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6616      # have to relink, otherwise we might link with an installed library
6617      # when we should be linking with a yet-to-be-installed one
6618      ## test "$hardcode_shlibpath_var" != no &&
6619      test "$hardcode_minus_L" != no; then
6620     # Linking always hardcodes the temporary library directory.
6621     hardcode_action=relink
6622   else
6623     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6624     hardcode_action=immediate
6625   fi
6626 else
6627   # We cannot hardcode anything, or else we can only hardcode existing
6628   # directories.
6629   hardcode_action=unsupported
6630 fi
6631 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
6632 $as_echo "$hardcode_action" >&6; }
6633 ##
6634 ## END FIXME
6635
6636 ## FIXME: this should be a separate macro
6637 ##
6638 striplib=
6639 old_striplib=
6640 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
6642 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6643   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6644   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6645   { $as_echo "$as_me:$LINENO: result: yes" >&5
6646 $as_echo "yes" >&6; }
6647 else
6648   { $as_echo "$as_me:$LINENO: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651 ##
6652 ## END FIXME
6653
6654 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6656
6657 ## FIXME: this should be a separate macro
6658 ##
6659 # PORTME Fill in your ld.so characteristics
6660 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6662 library_names_spec=
6663 libname_spec='lib$name'
6664 soname_spec=
6665 postinstall_cmds=
6666 postuninstall_cmds=
6667 finish_cmds=
6668 finish_eval=
6669 shlibpath_var=
6670 shlibpath_overrides_runpath=unknown
6671 version_type=none
6672 dynamic_linker="$host_os ld.so"
6673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6675
6676 case $host_os in
6677 aix3*)
6678   version_type=linux
6679   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6680   shlibpath_var=LIBPATH
6681
6682   # AIX has no versioning support, so we append a major version to the name.
6683   soname_spec='${libname}${release}.so$major'
6684   ;;
6685
6686 aix4* | aix5*)
6687   version_type=linux
6688   need_lib_prefix=no
6689   need_version=no
6690   hardcode_into_libs=yes
6691   if test "$host_cpu" = ia64; then
6692     # AIX 5 supports IA64
6693     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6694     shlibpath_var=LD_LIBRARY_PATH
6695   else
6696     # With GCC up to 2.95.x, collect2 would create an import file
6697     # for dependence libraries.  The import file would start with
6698     # the line `#! .'.  This would cause the generated library to
6699     # depend on `.', always an invalid library.  This was fixed in
6700     # development snapshots of GCC prior to 3.0.
6701     case $host_os in
6702       aix4 | aix4.[01] | aix4.[01].*)
6703         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6704              echo ' yes '
6705              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6706           :
6707         else
6708           can_build_shared=no
6709         fi
6710         ;;
6711     esac
6712     # AIX (on Power*) has no versioning support, so currently we can
6713     # not hardcode correct soname into executable. Probably we can
6714     # add versioning support to collect2, so additional links can
6715     # be useful in future.
6716     if test "$aix_use_runtimelinking" = yes; then
6717       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6718       # instead of lib<name>.a to let people know that these are not
6719       # typical AIX shared libraries.
6720       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6721     else
6722       # We preserve .a as extension for shared libraries through AIX4.2
6723       # and later when we are not doing run time linking.
6724       library_names_spec='${libname}${release}.a $libname.a'
6725       soname_spec='${libname}${release}.so$major'
6726     fi
6727     shlibpath_var=LIBPATH
6728   fi
6729   hardcode_into_libs=yes
6730   ;;
6731
6732 amigaos*)
6733   library_names_spec='$libname.ixlibrary $libname.a'
6734   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6735   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'
6736   ;;
6737
6738 beos*)
6739   library_names_spec='${libname}.so'
6740   dynamic_linker="$host_os ld.so"
6741   shlibpath_var=LIBRARY_PATH
6742   ;;
6743
6744 bsdi4*)
6745   version_type=linux
6746   need_version=no
6747   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6748   soname_spec='${libname}${release}.so$major'
6749   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6750   shlibpath_var=LD_LIBRARY_PATH
6751   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6752   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6753   export_dynamic_flag_spec=-rdynamic
6754   # the default ld.so.conf also contains /usr/contrib/lib and
6755   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6756   # libtool to hard-code these into programs
6757   ;;
6758
6759 cygwin* | mingw* | pw32*)
6760   version_type=windows
6761   need_version=no
6762   need_lib_prefix=no
6763   case $GCC,$host_os in
6764   yes,cygwin*)
6765     library_names_spec='$libname.dll.a'
6766     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6767     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6768       dldir=$destdir/`dirname \$dlpath`~
6769       test -d \$dldir || mkdir -p \$dldir~
6770       $install_prog .libs/$dlname \$dldir/$dlname'
6771     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6772       dlpath=$dir/\$dldll~
6773        $rm \$dlpath'
6774     ;;
6775   yes,mingw*)
6776     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6777     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6778     ;;
6779   yes,pw32*)
6780     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6781     ;;
6782   *)
6783     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6784     ;;
6785   esac
6786   dynamic_linker='Win32 ld.exe'
6787   # FIXME: first we should search . and the directory the executable is in
6788   shlibpath_var=PATH
6789   ;;
6790
6791 darwin* | rhapsody*)
6792   dynamic_linker="$host_os dyld"
6793   version_type=darwin
6794   need_lib_prefix=no
6795   need_version=no
6796   # FIXME: Relying on posixy $() will cause problems for
6797   #        cross-compilation, but unfortunately the echo tests do not
6798   #        yet detect zsh echo's removal of \ escapes.
6799   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)'
6800   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6801   shlibpath_overrides_runpath=yes
6802   shlibpath_var=DYLD_LIBRARY_PATH
6803   ;;
6804
6805 freebsd1*)
6806   dynamic_linker=no
6807   ;;
6808
6809 kfreebsd*-gnu)
6810   version_type=linux
6811   need_lib_prefix=no
6812   need_version=no
6813   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6814   soname_spec='${libname}${release}.so$major'
6815   shlibpath_var=LD_LIBRARY_PATH
6816   shlibpath_overrides_runpath=no
6817   hardcode_into_libs=yes
6818   dynamic_linker='GNU/FreeBSD ld.so'
6819   ;;
6820
6821 freebsd*)
6822   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6823   version_type=freebsd-$objformat
6824   case $version_type in
6825     freebsd-elf*)
6826       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6827       need_version=no
6828       need_lib_prefix=no
6829       ;;
6830     freebsd-*)
6831       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6832       need_version=yes
6833       ;;
6834   esac
6835   shlibpath_var=LD_LIBRARY_PATH
6836   case $host_os in
6837   freebsd2*)
6838     shlibpath_overrides_runpath=yes
6839     ;;
6840   *)
6841     shlibpath_overrides_runpath=no
6842     hardcode_into_libs=yes
6843     ;;
6844   esac
6845   ;;
6846
6847 gnu*)
6848   version_type=linux
6849   need_lib_prefix=no
6850   need_version=no
6851   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6852   soname_spec='${libname}${release}.so$major'
6853   shlibpath_var=LD_LIBRARY_PATH
6854   hardcode_into_libs=yes
6855   ;;
6856
6857 hpux9* | hpux10* | hpux11*)
6858   # Give a soname corresponding to the major version so that dld.sl refuses to
6859   # link against other versions.
6860   dynamic_linker="$host_os dld.sl"
6861   version_type=sunos
6862   need_lib_prefix=no
6863   need_version=no
6864   shlibpath_var=SHLIB_PATH
6865   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6866   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6867   soname_spec='${libname}${release}.sl$major'
6868   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6869   postinstall_cmds='chmod 555 $lib'
6870   ;;
6871
6872 irix5* | irix6* | nonstopux*)
6873   case $host_os in
6874     nonstopux*) version_type=nonstopux ;;
6875     *)          version_type=irix ;;
6876   esac
6877   need_lib_prefix=no
6878   need_version=no
6879   soname_spec='${libname}${release}.so$major'
6880   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6881   case $host_os in
6882   irix5* | nonstopux*)
6883     libsuff= shlibsuff=
6884     ;;
6885   *)
6886     case $LD in # libtool.m4 will add one of these switches to LD
6887     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6888     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6889     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6890     *) libsuff= shlibsuff= libmagic=never-match;;
6891     esac
6892     ;;
6893   esac
6894   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6895   shlibpath_overrides_runpath=no
6896   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6897   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6898   ;;
6899
6900 # No shared lib support for Linux oldld, aout, or coff.
6901 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6902   dynamic_linker=no
6903   ;;
6904
6905 # This must be Linux ELF.
6906 linux-gnu*)
6907   version_type=linux
6908   need_lib_prefix=no
6909   need_version=no
6910   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6911   soname_spec='${libname}${release}.so$major'
6912   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6913   shlibpath_var=LD_LIBRARY_PATH
6914   shlibpath_overrides_runpath=no
6915   # This implies no fast_install, which is unacceptable.
6916   # Some rework will be needed to allow for fast_install
6917   # before this can be enabled.
6918   hardcode_into_libs=yes
6919
6920   # We used to test for /lib/ld.so.1 and disable shared libraries on
6921   # powerpc, because MkLinux only supported shared libraries with the
6922   # GNU dynamic linker.  Since this was broken with cross compilers,
6923   # most powerpc-linux boxes support dynamic linking these days and
6924   # people can always --disable-shared, the test was removed, and we
6925   # assume the GNU/Linux dynamic linker is in use.
6926   dynamic_linker='GNU/Linux ld.so'
6927   ;;
6928
6929 netbsd*)
6930   version_type=sunos
6931   need_lib_prefix=no
6932   need_version=no
6933   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6934     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6935     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6936     dynamic_linker='NetBSD (a.out) ld.so'
6937   else
6938     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6939     soname_spec='${libname}${release}.so$major'
6940     dynamic_linker='NetBSD ld.elf_so'
6941   fi
6942   shlibpath_var=LD_LIBRARY_PATH
6943   shlibpath_overrides_runpath=yes
6944   hardcode_into_libs=yes
6945   ;;
6946
6947 newsos6)
6948   version_type=linux
6949   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6950   shlibpath_var=LD_LIBRARY_PATH
6951   shlibpath_overrides_runpath=yes
6952   ;;
6953
6954 openbsd*)
6955   version_type=sunos
6956   need_lib_prefix=no
6957   need_version=no
6958   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6959     case "$host_os" in
6960     openbsd2.[89] | openbsd2.[89].*)
6961       shlibpath_overrides_runpath=no
6962       ;;
6963     *)
6964       shlibpath_overrides_runpath=yes
6965       ;;
6966     esac
6967   else
6968     shlibpath_overrides_runpath=yes
6969   fi
6970   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6971   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6972   shlibpath_var=LD_LIBRARY_PATH
6973   ;;
6974
6975 os2*)
6976   libname_spec='$name'
6977   need_lib_prefix=no
6978   library_names_spec='$libname.dll $libname.a'
6979   dynamic_linker='OS/2 ld.exe'
6980   shlibpath_var=LIBPATH
6981   ;;
6982
6983 osf3* | osf4* | osf5*)
6984   version_type=osf
6985   need_version=no
6986   need_lib_prefix=no
6987   soname_spec='${libname}${release}.so$major'
6988   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6989   shlibpath_var=LD_LIBRARY_PATH
6990   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6991   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6992   hardcode_into_libs=yes
6993   ;;
6994
6995 sco3.2v5*)
6996   version_type=osf
6997   soname_spec='${libname}${release}.so$major'
6998   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6999   shlibpath_var=LD_LIBRARY_PATH
7000   ;;
7001
7002 solaris*)
7003   version_type=linux
7004   need_lib_prefix=no
7005   need_version=no
7006   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7007   soname_spec='${libname}${release}.so$major'
7008   shlibpath_var=LD_LIBRARY_PATH
7009   shlibpath_overrides_runpath=yes
7010   hardcode_into_libs=yes
7011   # ldd complains unless libraries are executable
7012   postinstall_cmds='chmod +x $lib'
7013   ;;
7014
7015 sunos4*)
7016   version_type=sunos
7017   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7018   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7019   shlibpath_var=LD_LIBRARY_PATH
7020   shlibpath_overrides_runpath=yes
7021   if test "$with_gnu_ld" = yes; then
7022     need_lib_prefix=no
7023   fi
7024   need_version=yes
7025   ;;
7026
7027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7028   version_type=linux
7029   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7030   soname_spec='${libname}${release}.so$major'
7031   shlibpath_var=LD_LIBRARY_PATH
7032   case $host_vendor in
7033     sni)
7034       shlibpath_overrides_runpath=no
7035       need_lib_prefix=no
7036       export_dynamic_flag_spec='${wl}-Blargedynsym'
7037       runpath_var=LD_RUN_PATH
7038       ;;
7039     siemens)
7040       need_lib_prefix=no
7041       ;;
7042     motorola)
7043       need_lib_prefix=no
7044       need_version=no
7045       shlibpath_overrides_runpath=no
7046       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7047       ;;
7048   esac
7049   ;;
7050
7051 uts4*)
7052   version_type=linux
7053   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7054   soname_spec='${libname}${release}.so$major'
7055   shlibpath_var=LD_LIBRARY_PATH
7056   ;;
7057
7058 dgux*)
7059   version_type=linux
7060   need_lib_prefix=no
7061   need_version=no
7062   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7063   soname_spec='${libname}${release}.so$major'
7064   shlibpath_var=LD_LIBRARY_PATH
7065   ;;
7066
7067 sysv4*MP*)
7068   if test -d /usr/nec ;then
7069     version_type=linux
7070     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7071     soname_spec='$libname.so.$major'
7072     shlibpath_var=LD_LIBRARY_PATH
7073   fi
7074   ;;
7075
7076 *)
7077   dynamic_linker=no
7078   ;;
7079 esac
7080 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7081 $as_echo "$dynamic_linker" >&6; }
7082 test "$dynamic_linker" = no && can_build_shared=no
7083 ##
7084 ## END FIXME
7085
7086 ## FIXME: this should be a separate macro
7087 ##
7088 # Report the final consequences.
7089 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7090 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
7091 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
7092 $as_echo "$can_build_shared" >&6; }
7093 ##
7094 ## END FIXME
7095
7096 ## FIXME: this should be a separate macro
7097 ##
7098 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7099 $as_echo_n "checking whether to build shared libraries... " >&6; }
7100 test "$can_build_shared" = "no" && enable_shared=no
7101
7102 # On AIX, shared libraries and static libraries use the same namespace, and
7103 # are all built from PIC.
7104 case "$host_os" in
7105 aix3*)
7106   test "$enable_shared" = yes && enable_static=no
7107   if test -n "$RANLIB"; then
7108     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7109     postinstall_cmds='$RANLIB $lib'
7110   fi
7111   ;;
7112
7113 aix4*)
7114   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7115     test "$enable_shared" = yes && enable_static=no
7116   fi
7117   ;;
7118 esac
7119 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
7120 $as_echo "$enable_shared" >&6; }
7121 ##
7122 ## END FIXME
7123
7124 ## FIXME: this should be a separate macro
7125 ##
7126 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7127 $as_echo_n "checking whether to build static libraries... " >&6; }
7128 # Make sure either enable_shared or enable_static is yes.
7129 test "$enable_shared" = yes || enable_static=yes
7130 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
7131 $as_echo "$enable_static" >&6; }
7132 ##
7133 ## END FIXME
7134
7135 if test "$hardcode_action" = relink; then
7136   # Fast installation is not supported
7137   enable_fast_install=no
7138 elif test "$shlibpath_overrides_runpath" = yes ||
7139      test "$enable_shared" = no; then
7140   # Fast installation is not necessary
7141   enable_fast_install=needless
7142 fi
7143
7144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7145 if test "$GCC" = yes; then
7146   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7147 fi
7148
7149 if test "x$enable_dlopen" != xyes; then
7150   enable_dlopen=unknown
7151   enable_dlopen_self=unknown
7152   enable_dlopen_self_static=unknown
7153 else
7154   lt_cv_dlopen=no
7155   lt_cv_dlopen_libs=
7156
7157   case $host_os in
7158   beos*)
7159     lt_cv_dlopen="load_add_on"
7160     lt_cv_dlopen_libs=
7161     lt_cv_dlopen_self=yes
7162     ;;
7163
7164   cygwin* | mingw* | pw32*)
7165     lt_cv_dlopen="LoadLibrary"
7166     lt_cv_dlopen_libs=
7167    ;;
7168
7169   *)
7170     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
7171 $as_echo_n "checking for shl_load... " >&6; }
7172 if test "${ac_cv_func_shl_load+set}" = set; then
7173   $as_echo_n "(cached) " >&6
7174 else
7175   cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h.  */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h.  */
7181 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7182    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7183 #define shl_load innocuous_shl_load
7184
7185 /* System header to define __stub macros and hopefully few prototypes,
7186     which can conflict with char shl_load (); below.
7187     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188     <limits.h> exists even on freestanding compilers.  */
7189
7190 #ifdef __STDC__
7191 # include <limits.h>
7192 #else
7193 # include <assert.h>
7194 #endif
7195
7196 #undef shl_load
7197
7198 /* Override any GCC internal prototype to avoid an error.
7199    Use char because int might match the return type of a GCC
7200    builtin and then its argument prototype would still apply.  */
7201 #ifdef __cplusplus
7202 extern "C"
7203 #endif
7204 char shl_load ();
7205 /* The GNU C library defines this for functions which it implements
7206     to always fail with ENOSYS.  Some functions are actually named
7207     something starting with __ and the normal name is an alias.  */
7208 #if defined __stub_shl_load || defined __stub___shl_load
7209 choke me
7210 #endif
7211
7212 int
7213 main ()
7214 {
7215 return shl_load ();
7216   ;
7217   return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext conftest$ac_exeext
7221 if { (ac_try="$ac_link"
7222 case "(($ac_try" in
7223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224   *) ac_try_echo=$ac_try;;
7225 esac
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228   (eval "$ac_link") 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } && {
7235          test -z "$ac_c_werror_flag" ||
7236          test ! -s conftest.err
7237        } && test -s conftest$ac_exeext &&
7238        $as_test_x conftest$ac_exeext; then
7239   ac_cv_func_shl_load=yes
7240 else
7241   $as_echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7243
7244         ac_cv_func_shl_load=no
7245 fi
7246
7247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7248       conftest$ac_exeext conftest.$ac_ext
7249 fi
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7251 $as_echo "$ac_cv_func_shl_load" >&6; }
7252 if test $ac_cv_func_shl_load = yes; then
7253   lt_cv_dlopen="shl_load"
7254 else
7255   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7256 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7258   $as_echo_n "(cached) " >&6
7259 else
7260   ac_check_lib_save_LIBS=$LIBS
7261 LIBS="-ldld  $LIBS"
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h.  */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h.  */
7268
7269 /* Override any GCC internal prototype to avoid an error.
7270    Use char because int might match the return type of a GCC
7271    builtin and then its argument prototype would still apply.  */
7272 #ifdef __cplusplus
7273 extern "C"
7274 #endif
7275 char shl_load ();
7276 int
7277 main ()
7278 {
7279 return shl_load ();
7280   ;
7281   return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7286 case "(($ac_try" in
7287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288   *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292   (eval "$ac_link") 2>conftest.er1
7293   ac_status=$?
7294   grep -v '^ *+' conftest.er1 >conftest.err
7295   rm -f conftest.er1
7296   cat conftest.err >&5
7297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); } && {
7299          test -z "$ac_c_werror_flag" ||
7300          test ! -s conftest.err
7301        } && test -s conftest$ac_exeext &&
7302        $as_test_x conftest$ac_exeext; then
7303   ac_cv_lib_dld_shl_load=yes
7304 else
7305   $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308         ac_cv_lib_dld_shl_load=no
7309 fi
7310
7311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312       conftest$ac_exeext conftest.$ac_ext
7313 LIBS=$ac_check_lib_save_LIBS
7314 fi
7315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7316 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7317 if test $ac_cv_lib_dld_shl_load = yes; then
7318   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7319 else
7320   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
7321 $as_echo_n "checking for dlopen... " >&6; }
7322 if test "${ac_cv_func_dlopen+set}" = set; then
7323   $as_echo_n "(cached) " >&6
7324 else
7325   cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h.  */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h.  */
7331 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7333 #define dlopen innocuous_dlopen
7334
7335 /* System header to define __stub macros and hopefully few prototypes,
7336     which can conflict with char dlopen (); below.
7337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338     <limits.h> exists even on freestanding compilers.  */
7339
7340 #ifdef __STDC__
7341 # include <limits.h>
7342 #else
7343 # include <assert.h>
7344 #endif
7345
7346 #undef dlopen
7347
7348 /* Override any GCC internal prototype to avoid an error.
7349    Use char because int might match the return type of a GCC
7350    builtin and then its argument prototype would still apply.  */
7351 #ifdef __cplusplus
7352 extern "C"
7353 #endif
7354 char dlopen ();
7355 /* The GNU C library defines this for functions which it implements
7356     to always fail with ENOSYS.  Some functions are actually named
7357     something starting with __ and the normal name is an alias.  */
7358 #if defined __stub_dlopen || defined __stub___dlopen
7359 choke me
7360 #endif
7361
7362 int
7363 main ()
7364 {
7365 return dlopen ();
7366   ;
7367   return 0;
7368 }
7369 _ACEOF
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7372 case "(($ac_try" in
7373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374   *) ac_try_echo=$ac_try;;
7375 esac
7376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378   (eval "$ac_link") 2>conftest.er1
7379   ac_status=$?
7380   grep -v '^ *+' conftest.er1 >conftest.err
7381   rm -f conftest.er1
7382   cat conftest.err >&5
7383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); } && {
7385          test -z "$ac_c_werror_flag" ||
7386          test ! -s conftest.err
7387        } && test -s conftest$ac_exeext &&
7388        $as_test_x conftest$ac_exeext; then
7389   ac_cv_func_dlopen=yes
7390 else
7391   $as_echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7393
7394         ac_cv_func_dlopen=no
7395 fi
7396
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398       conftest$ac_exeext conftest.$ac_ext
7399 fi
7400 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7401 $as_echo "$ac_cv_func_dlopen" >&6; }
7402 if test $ac_cv_func_dlopen = yes; then
7403   lt_cv_dlopen="dlopen"
7404 else
7405   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7406 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7407 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7408   $as_echo_n "(cached) " >&6
7409 else
7410   ac_check_lib_save_LIBS=$LIBS
7411 LIBS="-ldl  $LIBS"
7412 cat >conftest.$ac_ext <<_ACEOF
7413 /* confdefs.h.  */
7414 _ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h.  */
7418
7419 /* Override any GCC internal prototype to avoid an error.
7420    Use char because int might match the return type of a GCC
7421    builtin and then its argument prototype would still apply.  */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 char dlopen ();
7426 int
7427 main ()
7428 {
7429 return dlopen ();
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (ac_try="$ac_link"
7436 case "(($ac_try" in
7437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438   *) ac_try_echo=$ac_try;;
7439 esac
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442   (eval "$ac_link") 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } && {
7449          test -z "$ac_c_werror_flag" ||
7450          test ! -s conftest.err
7451        } && test -s conftest$ac_exeext &&
7452        $as_test_x conftest$ac_exeext; then
7453   ac_cv_lib_dl_dlopen=yes
7454 else
7455   $as_echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458         ac_cv_lib_dl_dlopen=no
7459 fi
7460
7461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7462       conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7464 fi
7465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7466 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7467 if test $ac_cv_lib_dl_dlopen = yes; then
7468   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7469 else
7470   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7471 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7472 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7473   $as_echo_n "(cached) " >&6
7474 else
7475   ac_check_lib_save_LIBS=$LIBS
7476 LIBS="-lsvld  $LIBS"
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h.  */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h.  */
7483
7484 /* Override any GCC internal prototype to avoid an error.
7485    Use char because int might match the return type of a GCC
7486    builtin and then its argument prototype would still apply.  */
7487 #ifdef __cplusplus
7488 extern "C"
7489 #endif
7490 char dlopen ();
7491 int
7492 main ()
7493 {
7494 return dlopen ();
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7501 case "(($ac_try" in
7502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503   *) ac_try_echo=$ac_try;;
7504 esac
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507   (eval "$ac_link") 2>conftest.er1
7508   ac_status=$?
7509   grep -v '^ *+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } && {
7514          test -z "$ac_c_werror_flag" ||
7515          test ! -s conftest.err
7516        } && test -s conftest$ac_exeext &&
7517        $as_test_x conftest$ac_exeext; then
7518   ac_cv_lib_svld_dlopen=yes
7519 else
7520   $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523         ac_cv_lib_svld_dlopen=no
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7527       conftest$ac_exeext conftest.$ac_ext
7528 LIBS=$ac_check_lib_save_LIBS
7529 fi
7530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7531 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7532 if test $ac_cv_lib_svld_dlopen = yes; then
7533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7534 else
7535   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7536 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7537 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7538   $as_echo_n "(cached) " >&6
7539 else
7540   ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-ldld  $LIBS"
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h.  */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h.  */
7548
7549 /* Override any GCC internal prototype to avoid an error.
7550    Use char because int might match the return type of a GCC
7551    builtin and then its argument prototype would still apply.  */
7552 #ifdef __cplusplus
7553 extern "C"
7554 #endif
7555 char dld_link ();
7556 int
7557 main ()
7558 {
7559 return dld_link ();
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 rm -f conftest.$ac_objext conftest$ac_exeext
7565 if { (ac_try="$ac_link"
7566 case "(($ac_try" in
7567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568   *) ac_try_echo=$ac_try;;
7569 esac
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572   (eval "$ac_link") 2>conftest.er1
7573   ac_status=$?
7574   grep -v '^ *+' conftest.er1 >conftest.err
7575   rm -f conftest.er1
7576   cat conftest.err >&5
7577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } && {
7579          test -z "$ac_c_werror_flag" ||
7580          test ! -s conftest.err
7581        } && test -s conftest$ac_exeext &&
7582        $as_test_x conftest$ac_exeext; then
7583   ac_cv_lib_dld_dld_link=yes
7584 else
7585   $as_echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         ac_cv_lib_dld_dld_link=no
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7592       conftest$ac_exeext conftest.$ac_ext
7593 LIBS=$ac_check_lib_save_LIBS
7594 fi
7595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7596 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7597 if test $ac_cv_lib_dld_dld_link = yes; then
7598   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7599 fi
7600
7601
7602 fi
7603
7604
7605 fi
7606
7607
7608 fi
7609
7610
7611 fi
7612
7613
7614 fi
7615
7616     ;;
7617   esac
7618
7619   if test "x$lt_cv_dlopen" != xno; then
7620     enable_dlopen=yes
7621   else
7622     enable_dlopen=no
7623   fi
7624
7625   case $lt_cv_dlopen in
7626   dlopen)
7627     save_CPPFLAGS="$CPPFLAGS"
7628         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7629
7630     save_LDFLAGS="$LDFLAGS"
7631     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7632
7633     save_LIBS="$LIBS"
7634     LIBS="$lt_cv_dlopen_libs $LIBS"
7635
7636     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7637 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
7638 if test "${lt_cv_dlopen_self+set}" = set; then
7639   $as_echo_n "(cached) " >&6
7640 else
7641           if test "$cross_compiling" = yes; then :
7642   lt_cv_dlopen_self=cross
7643 else
7644     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7645   lt_status=$lt_dlunknown
7646   cat > conftest.$ac_ext <<EOF
7647 #line 7647 "configure"
7648 #include "confdefs.h"
7649
7650 #if HAVE_DLFCN_H
7651 #include <dlfcn.h>
7652 #endif
7653
7654 #include <stdio.h>
7655
7656 #ifdef RTLD_GLOBAL
7657 #  define LT_DLGLOBAL           RTLD_GLOBAL
7658 #else
7659 #  ifdef DL_GLOBAL
7660 #    define LT_DLGLOBAL         DL_GLOBAL
7661 #  else
7662 #    define LT_DLGLOBAL         0
7663 #  endif
7664 #endif
7665
7666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7667    find out it does not work in some platform. */
7668 #ifndef LT_DLLAZY_OR_NOW
7669 #  ifdef RTLD_LAZY
7670 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7671 #  else
7672 #    ifdef DL_LAZY
7673 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7674 #    else
7675 #      ifdef RTLD_NOW
7676 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7677 #      else
7678 #        ifdef DL_NOW
7679 #          define LT_DLLAZY_OR_NOW      DL_NOW
7680 #        else
7681 #          define LT_DLLAZY_OR_NOW      0
7682 #        endif
7683 #      endif
7684 #    endif
7685 #  endif
7686 #endif
7687
7688 #ifdef __cplusplus
7689 extern "C" void exit (int);
7690 #endif
7691
7692 void fnord() { int i=42;}
7693 int main ()
7694 {
7695   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7696   int status = $lt_dlunknown;
7697
7698   if (self)
7699     {
7700       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7701       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7702       /* dlclose (self); */
7703     }
7704
7705     exit (status);
7706 }
7707 EOF
7708   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709   (eval $ac_link) 2>&5
7710   ac_status=$?
7711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7713     (./conftest; exit; ) 2>/dev/null
7714     lt_status=$?
7715     case x$lt_status in
7716       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7717       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7718       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7719     esac
7720   else :
7721     # compilation failed
7722     lt_cv_dlopen_self=no
7723   fi
7724 fi
7725 rm -fr conftest*
7726
7727
7728 fi
7729 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7730 $as_echo "$lt_cv_dlopen_self" >&6; }
7731
7732     if test "x$lt_cv_dlopen_self" = xyes; then
7733       LDFLAGS="$LDFLAGS $link_static_flag"
7734       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7735 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
7736 if test "${lt_cv_dlopen_self_static+set}" = set; then
7737   $as_echo_n "(cached) " >&6
7738 else
7739           if test "$cross_compiling" = yes; then :
7740   lt_cv_dlopen_self_static=cross
7741 else
7742     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7743   lt_status=$lt_dlunknown
7744   cat > conftest.$ac_ext <<EOF
7745 #line 7745 "configure"
7746 #include "confdefs.h"
7747
7748 #if HAVE_DLFCN_H
7749 #include <dlfcn.h>
7750 #endif
7751
7752 #include <stdio.h>
7753
7754 #ifdef RTLD_GLOBAL
7755 #  define LT_DLGLOBAL           RTLD_GLOBAL
7756 #else
7757 #  ifdef DL_GLOBAL
7758 #    define LT_DLGLOBAL         DL_GLOBAL
7759 #  else
7760 #    define LT_DLGLOBAL         0
7761 #  endif
7762 #endif
7763
7764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7765    find out it does not work in some platform. */
7766 #ifndef LT_DLLAZY_OR_NOW
7767 #  ifdef RTLD_LAZY
7768 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7769 #  else
7770 #    ifdef DL_LAZY
7771 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7772 #    else
7773 #      ifdef RTLD_NOW
7774 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7775 #      else
7776 #        ifdef DL_NOW
7777 #          define LT_DLLAZY_OR_NOW      DL_NOW
7778 #        else
7779 #          define LT_DLLAZY_OR_NOW      0
7780 #        endif
7781 #      endif
7782 #    endif
7783 #  endif
7784 #endif
7785
7786 #ifdef __cplusplus
7787 extern "C" void exit (int);
7788 #endif
7789
7790 void fnord() { int i=42;}
7791 int main ()
7792 {
7793   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7794   int status = $lt_dlunknown;
7795
7796   if (self)
7797     {
7798       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7799       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7800       /* dlclose (self); */
7801     }
7802
7803     exit (status);
7804 }
7805 EOF
7806   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807   (eval $ac_link) 2>&5
7808   ac_status=$?
7809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7811     (./conftest; exit; ) 2>/dev/null
7812     lt_status=$?
7813     case x$lt_status in
7814       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7815       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7816       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7817     esac
7818   else :
7819     # compilation failed
7820     lt_cv_dlopen_self_static=no
7821   fi
7822 fi
7823 rm -fr conftest*
7824
7825
7826 fi
7827 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7828 $as_echo "$lt_cv_dlopen_self_static" >&6; }
7829     fi
7830
7831     CPPFLAGS="$save_CPPFLAGS"
7832     LDFLAGS="$save_LDFLAGS"
7833     LIBS="$save_LIBS"
7834     ;;
7835   esac
7836
7837   case $lt_cv_dlopen_self in
7838   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7839   *) enable_dlopen_self=unknown ;;
7840   esac
7841
7842   case $lt_cv_dlopen_self_static in
7843   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7844   *) enable_dlopen_self_static=unknown ;;
7845   esac
7846 fi
7847
7848
7849 ## FIXME: this should be a separate macro
7850 ##
7851 if test "$enable_shared" = yes && test "$GCC" = yes; then
7852   case $archive_cmds in
7853   *'~'*)
7854     # FIXME: we may have to deal with multi-command sequences.
7855     ;;
7856   '$CC '*)
7857     # Test whether the compiler implicitly links with -lc since on some
7858     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7859     # to ld, don't add -lc before -lgcc.
7860     { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7862     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7863   $as_echo_n "(cached) " >&6
7864 else
7865   $rm conftest*
7866     echo 'static int dummy;' > conftest.$ac_ext
7867
7868     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869   (eval $ac_compile) 2>&5
7870   ac_status=$?
7871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); }; then
7873       soname=conftest
7874       lib=conftest
7875       libobjs=conftest.$ac_objext
7876       deplibs=
7877       wl=$lt_cv_prog_cc_wl
7878       compiler_flags=-v
7879       linker_flags=-v
7880       verstring=
7881       output_objdir=.
7882       libname=conftest
7883       save_allow_undefined_flag=$allow_undefined_flag
7884       allow_undefined_flag=
7885       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7886   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7887   ac_status=$?
7888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }
7890       then
7891         lt_cv_archive_cmds_need_lc=no
7892       else
7893         lt_cv_archive_cmds_need_lc=yes
7894       fi
7895       allow_undefined_flag=$save_allow_undefined_flag
7896     else
7897       cat conftest.err 1>&5
7898     fi
7899 fi
7900
7901     { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7902 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
7903     ;;
7904   esac
7905 fi
7906 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7907 ##
7908 ## END FIXME
7909
7910 ## FIXME: this should be a separate macro
7911 ##
7912 # The second clause should only fire when bootstrapping the
7913 # libtool distribution, otherwise you forgot to ship ltmain.sh
7914 # with your package, and you will get complaints that there are
7915 # no rules to generate ltmain.sh.
7916 if test -f "$ltmain"; then
7917   :
7918 else
7919   # If there is no Makefile yet, we rely on a make rule to execute
7920   # `config.status --recheck' to rerun these tests and create the
7921   # libtool script then.
7922   test -f Makefile && make "$ltmain"
7923 fi
7924
7925 if test -f "$ltmain"; then
7926   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7927   $rm -f "${ofile}T"
7928
7929   echo creating $ofile
7930
7931   # Now quote all the things that may contain metacharacters while being
7932   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7933   # variables and quote the copies for generation of the libtool script.
7934   for var in echo old_CC old_CFLAGS SED \
7935     AR AR_FLAGS CC LD LN_S NM SHELL \
7936     reload_flag reload_cmds wl \
7937     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7938     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7939     library_names_spec soname_spec \
7940     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7941     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7942     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7943     old_striplib striplib file_magic_cmd export_symbols_cmds \
7944     deplibs_check_method allow_undefined_flag no_undefined_flag \
7945     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7946     global_symbol_to_c_name_address \
7947     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7949     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7950
7951     case $var in
7952     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7953     old_postinstall_cmds | old_postuninstall_cmds | \
7954     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7955     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7956     postinstall_cmds | postuninstall_cmds | \
7957     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7958       # Double-quote double-evaled strings.
7959       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7960       ;;
7961     *)
7962       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7963       ;;
7964     esac
7965   done
7966
7967   cat <<__EOF__ > "${ofile}T"
7968 #! $SHELL
7969
7970 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7971 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7972 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7973 #
7974 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7975 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7976 #
7977 # This program is free software; you can redistribute it and/or modify
7978 # it under the terms of the GNU General Public License as published by
7979 # the Free Software Foundation; either version 2 of the License, or
7980 # (at your option) any later version.
7981 #
7982 # This program is distributed in the hope that it will be useful, but
7983 # WITHOUT ANY WARRANTY; without even the implied warranty of
7984 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7985 # General Public License for more details.
7986 #
7987 # You should have received a copy of the GNU General Public License
7988 # along with this program; if not, write to the Free Software
7989 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7990 #
7991 # As a special exception to the GNU General Public License, if you
7992 # distribute this file as part of a program that contains a
7993 # configuration script generated by Autoconf, you may include it under
7994 # the same distribution terms that you use for the rest of that program.
7995
7996 # A sed that does not truncate output.
7997 SED=$lt_SED
7998
7999 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8000 Xsed="${SED} -e s/^X//"
8001
8002 # The HP-UX ksh and POSIX shell print the target directory to stdout
8003 # if CDPATH is set.
8004 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8005
8006 # ### BEGIN LIBTOOL CONFIG
8007
8008 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8009
8010 # Shell to use when invoking shell scripts.
8011 SHELL=$lt_SHELL
8012
8013 # Whether or not to build shared libraries.
8014 build_libtool_libs=$enable_shared
8015
8016 # Whether or not to build static libraries.
8017 build_old_libs=$enable_static
8018
8019 # Whether or not to add -lc for building shared libraries.
8020 build_libtool_need_lc=$need_lc
8021
8022 # Whether or not to optimize for fast installation.
8023 fast_install=$enable_fast_install
8024
8025 # The host system.
8026 host_alias=$host_alias
8027 host=$host
8028
8029 # An echo program that does not interpret backslashes.
8030 echo=$lt_echo
8031
8032 # The archiver.
8033 AR=$lt_AR
8034 AR_FLAGS=$lt_AR_FLAGS
8035
8036 # The default C compiler.
8037 CC=$lt_CC
8038
8039 # Is the compiler the GNU C compiler?
8040 with_gcc=$GCC
8041
8042 # The linker used to build libraries.
8043 LD=$lt_LD
8044
8045 # Whether we need hard or soft links.
8046 LN_S=$lt_LN_S
8047
8048 # A BSD-compatible nm program.
8049 NM=$lt_NM
8050
8051 # A symbol stripping program
8052 STRIP=$STRIP
8053
8054 # Used to examine libraries when file_magic_cmd begins "file"
8055 MAGIC_CMD=$MAGIC_CMD
8056
8057 # Used on cygwin: DLL creation program.
8058 DLLTOOL="$DLLTOOL"
8059
8060 # Used on cygwin: object dumper.
8061 OBJDUMP="$OBJDUMP"
8062
8063 # Used on cygwin: assembler.
8064 AS="$AS"
8065
8066 # The name of the directory that contains temporary libtool files.
8067 objdir=$objdir
8068
8069 # How to create reloadable object files.
8070 reload_flag=$lt_reload_flag
8071 reload_cmds=$lt_reload_cmds
8072
8073 # How to pass a linker flag through the compiler.
8074 wl=$lt_wl
8075
8076 # Object file suffix (normally "o").
8077 objext="$ac_objext"
8078
8079 # Old archive suffix (normally "a").
8080 libext="$libext"
8081
8082 # Executable file suffix (normally "").
8083 exeext="$exeext"
8084
8085 # Additional compiler flags for building library objects.
8086 pic_flag=$lt_pic_flag
8087 pic_mode=$pic_mode
8088
8089 # Does compiler simultaneously support -c and -o options?
8090 compiler_c_o=$lt_compiler_c_o
8091
8092 # Can we write directly to a .lo ?
8093 compiler_o_lo=$lt_compiler_o_lo
8094
8095 # Must we lock files when doing compilation ?
8096 need_locks=$lt_need_locks
8097
8098 # Do we need the lib prefix for modules?
8099 need_lib_prefix=$need_lib_prefix
8100
8101 # Do we need a version for libraries?
8102 need_version=$need_version
8103
8104 # Whether dlopen is supported.
8105 dlopen_support=$enable_dlopen
8106
8107 # Whether dlopen of programs is supported.
8108 dlopen_self=$enable_dlopen_self
8109
8110 # Whether dlopen of statically linked programs is supported.
8111 dlopen_self_static=$enable_dlopen_self_static
8112
8113 # Compiler flag to prevent dynamic linking.
8114 link_static_flag=$lt_link_static_flag
8115
8116 # Compiler flag to turn off builtin functions.
8117 no_builtin_flag=$lt_no_builtin_flag
8118
8119 # Compiler flag to allow reflexive dlopens.
8120 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8121
8122 # Compiler flag to generate shared objects directly from archives.
8123 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8124
8125 # Compiler flag to generate thread-safe objects.
8126 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8127
8128 # Library versioning type.
8129 version_type=$version_type
8130
8131 # Format of library name prefix.
8132 libname_spec=$lt_libname_spec
8133
8134 # List of archive names.  First name is the real one, the rest are links.
8135 # The last name is the one that the linker finds with -lNAME.
8136 library_names_spec=$lt_library_names_spec
8137
8138 # The coded name of the library, if different from the real name.
8139 soname_spec=$lt_soname_spec
8140
8141 # Commands used to build and install an old-style archive.
8142 RANLIB=$lt_RANLIB
8143 old_archive_cmds=$lt_old_archive_cmds
8144 old_postinstall_cmds=$lt_old_postinstall_cmds
8145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8146
8147 # Create an old-style archive from a shared archive.
8148 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8149
8150 # Create a temporary old-style archive to link instead of a shared archive.
8151 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8152
8153 # Commands used to build and install a shared archive.
8154 archive_cmds=$lt_archive_cmds
8155 archive_expsym_cmds=$lt_archive_expsym_cmds
8156 postinstall_cmds=$lt_postinstall_cmds
8157 postuninstall_cmds=$lt_postuninstall_cmds
8158
8159 # Commands to strip libraries.
8160 old_striplib=$lt_old_striplib
8161 striplib=$lt_striplib
8162
8163 # Method to check whether dependent libraries are shared objects.
8164 deplibs_check_method=$lt_deplibs_check_method
8165
8166 # Command to use when deplibs_check_method == file_magic.
8167 file_magic_cmd=$lt_file_magic_cmd
8168
8169 # Flag that allows shared libraries with undefined symbols to be built.
8170 allow_undefined_flag=$lt_allow_undefined_flag
8171
8172 # Flag that forces no undefined symbols.
8173 no_undefined_flag=$lt_no_undefined_flag
8174
8175 # Commands used to finish a libtool library installation in a directory.
8176 finish_cmds=$lt_finish_cmds
8177
8178 # Same as above, but a single script fragment to be evaled but not shown.
8179 finish_eval=$lt_finish_eval
8180
8181 # Take the output of nm and produce a listing of raw symbols and C names.
8182 global_symbol_pipe=$lt_global_symbol_pipe
8183
8184 # Transform the output of nm in a proper C declaration
8185 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8186
8187 # Transform the output of nm in a C name address pair
8188 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8189
8190 # This is the shared library runtime path variable.
8191 runpath_var=$runpath_var
8192
8193 # This is the shared library path variable.
8194 shlibpath_var=$shlibpath_var
8195
8196 # Is shlibpath searched before the hard-coded library search path?
8197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8198
8199 # How to hardcode a shared library path into an executable.
8200 hardcode_action=$hardcode_action
8201
8202 # Whether we should hardcode library paths into libraries.
8203 hardcode_into_libs=$hardcode_into_libs
8204
8205 # Flag to hardcode \$libdir into a binary during linking.
8206 # This must work even if \$libdir does not exist.
8207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8208
8209 # Whether we need a single -rpath flag with a separated argument.
8210 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8211
8212 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8213 # resulting binary.
8214 hardcode_direct=$hardcode_direct
8215
8216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8217 # resulting binary.
8218 hardcode_minus_L=$hardcode_minus_L
8219
8220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8221 # the resulting binary.
8222 hardcode_shlibpath_var=$hardcode_shlibpath_var
8223
8224 # Variables whose values should be saved in libtool wrapper scripts and
8225 # restored at relink time.
8226 variables_saved_for_relink="$variables_saved_for_relink"
8227
8228 # Whether libtool must link a program against all its dependency libraries.
8229 link_all_deplibs=$link_all_deplibs
8230
8231 # Compile-time system search path for libraries
8232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8233
8234 # Run-time system search path for libraries
8235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8236
8237 # Fix the shell variable \$srcfile for the compiler.
8238 fix_srcfile_path="$fix_srcfile_path"
8239
8240 # Set to yes if exported symbols are required.
8241 always_export_symbols=$always_export_symbols
8242
8243 # The commands to list exported symbols.
8244 export_symbols_cmds=$lt_export_symbols_cmds
8245
8246 # The commands to extract the exported symbol list from a shared archive.
8247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8248
8249 # Symbols that should not be listed in the preloaded symbols.
8250 exclude_expsyms=$lt_exclude_expsyms
8251
8252 # Symbols that must always be exported.
8253 include_expsyms=$lt_include_expsyms
8254
8255 # ### END LIBTOOL CONFIG
8256
8257 __EOF__
8258
8259   case $host_os in
8260   aix3*)
8261     cat <<\EOF >> "${ofile}T"
8262
8263 # AIX sometimes has problems with the GCC collect2 program.  For some
8264 # reason, if we set the COLLECT_NAMES environment variable, the problems
8265 # vanish in a puff of smoke.
8266 if test "X${COLLECT_NAMES+set}" != Xset; then
8267   COLLECT_NAMES=
8268   export COLLECT_NAMES
8269 fi
8270 EOF
8271     ;;
8272   esac
8273
8274   case $host_os in
8275   cygwin* | mingw* | pw32* | os2*)
8276     cat <<'EOF' >> "${ofile}T"
8277       # This is a source program that is used to create dlls on Windows
8278       # Don't remove nor modify the starting and closing comments
8279 # /* ltdll.c starts here */
8280 # #define WIN32_LEAN_AND_MEAN
8281 # #include <windows.h>
8282 # #undef WIN32_LEAN_AND_MEAN
8283 # #include <stdio.h>
8284 #
8285 # #ifndef __CYGWIN__
8286 # #  ifdef __CYGWIN32__
8287 # #    define __CYGWIN__ __CYGWIN32__
8288 # #  endif
8289 # #endif
8290 #
8291 # #ifdef __cplusplus
8292 # extern "C" {
8293 # #endif
8294 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8295 # #ifdef __cplusplus
8296 # }
8297 # #endif
8298 #
8299 # #ifdef __CYGWIN__
8300 # #include <cygwin/cygwin_dll.h>
8301 # DECLARE_CYGWIN_DLL( DllMain );
8302 # #endif
8303 # HINSTANCE __hDllInstance_base;
8304 #
8305 # BOOL APIENTRY
8306 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8307 # {
8308 #   __hDllInstance_base = hInst;
8309 #   return TRUE;
8310 # }
8311 # /* ltdll.c ends here */
8312         # This is a source program that is used to create import libraries
8313         # on Windows for dlls which lack them. Don't remove nor modify the
8314         # starting and closing comments
8315 # /* impgen.c starts here */
8316 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8317 #
8318 #  This file is part of GNU libtool.
8319 #
8320 #  This program is free software; you can redistribute it and/or modify
8321 #  it under the terms of the GNU General Public License as published by
8322 #  the Free Software Foundation; either version 2 of the License, or
8323 #  (at your option) any later version.
8324 #
8325 #  This program is distributed in the hope that it will be useful,
8326 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8327 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8328 #  GNU General Public License for more details.
8329 #
8330 #  You should have received a copy of the GNU General Public License
8331 #  along with this program; if not, write to the Free Software
8332 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8333 #  */
8334 #
8335 # #include <stdio.h>            /* for printf() */
8336 # #include <unistd.h>           /* for open(), lseek(), read() */
8337 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8338 # #include <string.h>           /* for strdup() */
8339 #
8340 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8341 # #ifndef O_BINARY
8342 # #define O_BINARY 0
8343 # #endif
8344 #
8345 # static unsigned int
8346 # pe_get16 (fd, offset)
8347 #      int fd;
8348 #      int offset;
8349 # {
8350 #   unsigned char b[2];
8351 #   lseek (fd, offset, SEEK_SET);
8352 #   read (fd, b, 2);
8353 #   return b[0] + (b[1]<<8);
8354 # }
8355 #
8356 # static unsigned int
8357 # pe_get32 (fd, offset)
8358 #     int fd;
8359 #     int offset;
8360 # {
8361 #   unsigned char b[4];
8362 #   lseek (fd, offset, SEEK_SET);
8363 #   read (fd, b, 4);
8364 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8365 # }
8366 #
8367 # static unsigned int
8368 # pe_as32 (ptr)
8369 #      void *ptr;
8370 # {
8371 #   unsigned char *b = ptr;
8372 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8373 # }
8374 #
8375 # int
8376 # main (argc, argv)
8377 #     int argc;
8378 #     char *argv[];
8379 # {
8380 #     int dll;
8381 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8382 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8383 #     unsigned long name_rvas, nexp;
8384 #     unsigned char *expdata, *erva;
8385 #     char *filename, *dll_name;
8386 #
8387 #     filename = argv[1];
8388 #
8389 #     dll = open(filename, O_RDONLY|O_BINARY);
8390 #     if (dll < 1)
8391 #       return 1;
8392 #
8393 #     dll_name = filename;
8394 #
8395 #     for (i=0; filename[i]; i++)
8396 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8397 #           dll_name = filename + i +1;
8398 #
8399 #     pe_header_offset = pe_get32 (dll, 0x3c);
8400 #     opthdr_ofs = pe_header_offset + 4 + 20;
8401 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8402 #
8403 #     if (num_entries < 1) /* no exports */
8404 #       return 1;
8405 #
8406 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8407 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8408 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8409 #     secptr = (pe_header_offset + 4 + 20 +
8410 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8411 #
8412 #     expptr = 0;
8413 #     for (i = 0; i < nsections; i++)
8414 #     {
8415 #       char sname[8];
8416 #       unsigned long secptr1 = secptr + 40 * i;
8417 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8418 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8419 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8420 #       lseek(dll, secptr1, SEEK_SET);
8421 #       read(dll, sname, 8);
8422 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8423 #       {
8424 #           expptr = fptr + (export_rva - vaddr);
8425 #           if (export_rva + export_size > vaddr + vsize)
8426 #               export_size = vsize - (export_rva - vaddr);
8427 #           break;
8428 #       }
8429 #     }
8430 #
8431 #     expdata = (unsigned char*)malloc(export_size);
8432 #     lseek (dll, expptr, SEEK_SET);
8433 #     read (dll, expdata, export_size);
8434 #     erva = expdata - export_rva;
8435 #
8436 #     nexp = pe_as32 (expdata+24);
8437 #     name_rvas = pe_as32 (expdata+32);
8438 #
8439 #     printf ("EXPORTS\n");
8440 #     for (i = 0; i<nexp; i++)
8441 #     {
8442 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8443 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8444 #     }
8445 #
8446 #     return 0;
8447 # }
8448 # /* impgen.c ends here */
8449
8450 EOF
8451     ;;
8452   esac
8453
8454   # We use sed instead of cat because bash on DJGPP gets confused if
8455   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8456   # text mode, it properly converts lines to CR/LF.  This bash problem
8457   # is reportedly fixed, but why not run on old versions too?
8458   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8459
8460   mv -f "${ofile}T" "$ofile" || \
8461     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8462   chmod +x "$ofile"
8463 fi
8464 ##
8465 ## END FIXME
8466
8467
8468
8469
8470
8471 # This can be used to rebuild libtool when needed
8472 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8473
8474 # Always use our own libtool.
8475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8476
8477 # Prevent multiple expansion
8478
8479
8480
8481
8482
8483
8484
8485
8486 ac_header_dirent=no
8487 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8488   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8489 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8490 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492   $as_echo_n "(cached) " >&6
8493 else
8494   cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500 #include <sys/types.h>
8501 #include <$ac_hdr>
8502
8503 int
8504 main ()
8505 {
8506 if ((DIR *) 0)
8507 return 0;
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8514 case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_c_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest.$ac_objext; then
8530   eval "$as_ac_Header=yes"
8531 else
8532   $as_echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535         eval "$as_ac_Header=no"
8536 fi
8537
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 fi
8540 ac_res=`eval 'as_val=${'$as_ac_Header'}
8541                  $as_echo "$as_val"'`
8542                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8543 $as_echo "$ac_res" >&6; }
8544 if test `eval 'as_val=${'$as_ac_Header'}
8545                  $as_echo "$as_val"'` = yes; then
8546   cat >>confdefs.h <<_ACEOF
8547 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8548 _ACEOF
8549
8550 ac_header_dirent=$ac_hdr; break
8551 fi
8552
8553 done
8554 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8555 if test $ac_header_dirent = dirent.h; then
8556   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
8557 $as_echo_n "checking for library containing opendir... " >&6; }
8558 if test "${ac_cv_search_opendir+set}" = set; then
8559   $as_echo_n "(cached) " >&6
8560 else
8561   ac_func_search_save_LIBS=$LIBS
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568
8569 /* Override any GCC internal prototype to avoid an error.
8570    Use char because int might match the return type of a GCC
8571    builtin and then its argument prototype would still apply.  */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 char opendir ();
8576 int
8577 main ()
8578 {
8579 return opendir ();
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 for ac_lib in '' dir; do
8585   if test -z "$ac_lib"; then
8586     ac_res="none required"
8587   else
8588     ac_res=-l$ac_lib
8589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8590   fi
8591   rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (ac_try="$ac_link"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599   (eval "$ac_link") 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } && {
8606          test -z "$ac_c_werror_flag" ||
8607          test ! -s conftest.err
8608        } && test -s conftest$ac_exeext &&
8609        $as_test_x conftest$ac_exeext; then
8610   ac_cv_search_opendir=$ac_res
8611 else
8612   $as_echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615
8616 fi
8617
8618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8619       conftest$ac_exeext
8620   if test "${ac_cv_search_opendir+set}" = set; then
8621   break
8622 fi
8623 done
8624 if test "${ac_cv_search_opendir+set}" = set; then
8625   :
8626 else
8627   ac_cv_search_opendir=no
8628 fi
8629 rm conftest.$ac_ext
8630 LIBS=$ac_func_search_save_LIBS
8631 fi
8632 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8633 $as_echo "$ac_cv_search_opendir" >&6; }
8634 ac_res=$ac_cv_search_opendir
8635 if test "$ac_res" != no; then
8636   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8637
8638 fi
8639
8640 else
8641   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
8642 $as_echo_n "checking for library containing opendir... " >&6; }
8643 if test "${ac_cv_search_opendir+set}" = set; then
8644   $as_echo_n "(cached) " >&6
8645 else
8646   ac_func_search_save_LIBS=$LIBS
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653
8654 /* Override any GCC internal prototype to avoid an error.
8655    Use char because int might match the return type of a GCC
8656    builtin and then its argument prototype would still apply.  */
8657 #ifdef __cplusplus
8658 extern "C"
8659 #endif
8660 char opendir ();
8661 int
8662 main ()
8663 {
8664 return opendir ();
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 for ac_lib in '' x; do
8670   if test -z "$ac_lib"; then
8671     ac_res="none required"
8672   else
8673     ac_res=-l$ac_lib
8674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8675   fi
8676   rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8678 case "(($ac_try" in
8679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680   *) ac_try_echo=$ac_try;;
8681 esac
8682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683 $as_echo "$ac_try_echo") >&5
8684   (eval "$ac_link") 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } && {
8691          test -z "$ac_c_werror_flag" ||
8692          test ! -s conftest.err
8693        } && test -s conftest$ac_exeext &&
8694        $as_test_x conftest$ac_exeext; then
8695   ac_cv_search_opendir=$ac_res
8696 else
8697   $as_echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700
8701 fi
8702
8703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8704       conftest$ac_exeext
8705   if test "${ac_cv_search_opendir+set}" = set; then
8706   break
8707 fi
8708 done
8709 if test "${ac_cv_search_opendir+set}" = set; then
8710   :
8711 else
8712   ac_cv_search_opendir=no
8713 fi
8714 rm conftest.$ac_ext
8715 LIBS=$ac_func_search_save_LIBS
8716 fi
8717 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8718 $as_echo "$ac_cv_search_opendir" >&6; }
8719 ac_res=$ac_cv_search_opendir
8720 if test "$ac_res" != no; then
8721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8722
8723 fi
8724
8725 fi
8726
8727 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8728 $as_echo_n "checking for ANSI C header files... " >&6; }
8729 if test "${ac_cv_header_stdc+set}" = set; then
8730   $as_echo_n "(cached) " >&6
8731 else
8732   cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738 #include <stdlib.h>
8739 #include <stdarg.h>
8740 #include <string.h>
8741 #include <float.h>
8742
8743 int
8744 main ()
8745 {
8746
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8753 case "(($ac_try" in
8754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755   *) ac_try_echo=$ac_try;;
8756 esac
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759   (eval "$ac_compile") 2>conftest.er1
8760   ac_status=$?
8761   grep -v '^ *+' conftest.er1 >conftest.err
8762   rm -f conftest.er1
8763   cat conftest.err >&5
8764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } && {
8766          test -z "$ac_c_werror_flag" ||
8767          test ! -s conftest.err
8768        } && test -s conftest.$ac_objext; then
8769   ac_cv_header_stdc=yes
8770 else
8771   $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774         ac_cv_header_stdc=no
8775 fi
8776
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778
8779 if test $ac_cv_header_stdc = yes; then
8780   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8781   cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h.  */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h.  */
8787 #include <string.h>
8788
8789 _ACEOF
8790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8791   $EGREP "memchr" >/dev/null 2>&1; then
8792   :
8793 else
8794   ac_cv_header_stdc=no
8795 fi
8796 rm -f conftest*
8797
8798 fi
8799
8800 if test $ac_cv_header_stdc = yes; then
8801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8802   cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 #include <stdlib.h>
8809
8810 _ACEOF
8811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812   $EGREP "free" >/dev/null 2>&1; then
8813   :
8814 else
8815   ac_cv_header_stdc=no
8816 fi
8817 rm -f conftest*
8818
8819 fi
8820
8821 if test $ac_cv_header_stdc = yes; then
8822   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8823   if test "$cross_compiling" = yes; then
8824   :
8825 else
8826   cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h.  */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h.  */
8832 #include <ctype.h>
8833 #include <stdlib.h>
8834 #if ((' ' & 0x0FF) == 0x020)
8835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8837 #else
8838 # define ISLOWER(c) \
8839                    (('a' <= (c) && (c) <= 'i') \
8840                      || ('j' <= (c) && (c) <= 'r') \
8841                      || ('s' <= (c) && (c) <= 'z'))
8842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8843 #endif
8844
8845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8846 int
8847 main ()
8848 {
8849   int i;
8850   for (i = 0; i < 256; i++)
8851     if (XOR (islower (i), ISLOWER (i))
8852         || toupper (i) != TOUPPER (i))
8853       return 2;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest$ac_exeext
8858 if { (ac_try="$ac_link"
8859 case "(($ac_try" in
8860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861   *) ac_try_echo=$ac_try;;
8862 esac
8863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8864 $as_echo "$ac_try_echo") >&5
8865   (eval "$ac_link") 2>&5
8866   ac_status=$?
8867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8869   { (case "(($ac_try" in
8870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871   *) ac_try_echo=$ac_try;;
8872 esac
8873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8874 $as_echo "$ac_try_echo") >&5
8875   (eval "$ac_try") 2>&5
8876   ac_status=$?
8877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   :
8880 else
8881   $as_echo "$as_me: program exited with status $ac_status" >&5
8882 $as_echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 ( exit $ac_status )
8886 ac_cv_header_stdc=no
8887 fi
8888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8889 fi
8890
8891
8892 fi
8893 fi
8894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8895 $as_echo "$ac_cv_header_stdc" >&6; }
8896 if test $ac_cv_header_stdc = yes; then
8897
8898 cat >>confdefs.h <<\_ACEOF
8899 #define STDC_HEADERS 1
8900 _ACEOF
8901
8902 fi
8903
8904 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8905 $as_echo_n "checking whether closedir returns void... " >&6; }
8906 if test "${ac_cv_func_closedir_void+set}" = set; then
8907   $as_echo_n "(cached) " >&6
8908 else
8909   if test "$cross_compiling" = yes; then
8910   ac_cv_func_closedir_void=yes
8911 else
8912   cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918 $ac_includes_default
8919 #include <$ac_header_dirent>
8920 #ifndef __cplusplus
8921 int closedir ();
8922 #endif
8923
8924 int
8925 main ()
8926 {
8927 return closedir (opendir (".")) != 0;
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8934 case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8939 $as_echo "$ac_try_echo") >&5
8940   (eval "$ac_link") 2>&5
8941   ac_status=$?
8942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944   { (case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8949 $as_echo "$ac_try_echo") >&5
8950   (eval "$ac_try") 2>&5
8951   ac_status=$?
8952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); }; }; then
8954   ac_cv_func_closedir_void=no
8955 else
8956   $as_echo "$as_me: program exited with status $ac_status" >&5
8957 $as_echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 ( exit $ac_status )
8961 ac_cv_func_closedir_void=yes
8962 fi
8963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964 fi
8965
8966
8967 fi
8968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8969 $as_echo "$ac_cv_func_closedir_void" >&6; }
8970 if test $ac_cv_func_closedir_void = yes; then
8971
8972 cat >>confdefs.h <<\_ACEOF
8973 #define CLOSEDIR_VOID 1
8974 _ACEOF
8975
8976 fi
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 for ac_header in assert.h float.h limits.h memory.h pwd.h stdlib.h \
8989                  string.h strings.h sys/param.h unistd.h
8990 do
8991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8993   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 $as_echo_n "checking for $ac_header... " >&6; }
8995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8996   $as_echo_n "(cached) " >&6
8997 fi
8998 ac_res=`eval 'as_val=${'$as_ac_Header'}
8999                  $as_echo "$as_val"'`
9000                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9001 $as_echo "$ac_res" >&6; }
9002 else
9003   # Is the header compilable?
9004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9005 $as_echo_n "checking $ac_header usability... " >&6; }
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012 $ac_includes_default
9013 #include <$ac_header>
9014 _ACEOF
9015 rm -f conftest.$ac_objext
9016 if { (ac_try="$ac_compile"
9017 case "(($ac_try" in
9018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019   *) ac_try_echo=$ac_try;;
9020 esac
9021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9022 $as_echo "$ac_try_echo") >&5
9023   (eval "$ac_compile") 2>conftest.er1
9024   ac_status=$?
9025   grep -v '^ *+' conftest.er1 >conftest.err
9026   rm -f conftest.er1
9027   cat conftest.err >&5
9028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } && {
9030          test -z "$ac_c_werror_flag" ||
9031          test ! -s conftest.err
9032        } && test -s conftest.$ac_objext; then
9033   ac_header_compiler=yes
9034 else
9035   $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038         ac_header_compiler=no
9039 fi
9040
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9043 $as_echo "$ac_header_compiler" >&6; }
9044
9045 # Is the header present?
9046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9047 $as_echo_n "checking $ac_header presence... " >&6; }
9048 cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054 #include <$ac_header>
9055 _ACEOF
9056 if { (ac_try="$ac_cpp conftest.$ac_ext"
9057 case "(($ac_try" in
9058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059   *) ac_try_echo=$ac_try;;
9060 esac
9061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9062 $as_echo "$ac_try_echo") >&5
9063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } >/dev/null && {
9070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9071          test ! -s conftest.err
9072        }; then
9073   ac_header_preproc=yes
9074 else
9075   $as_echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078   ac_header_preproc=no
9079 fi
9080
9081 rm -f conftest.err conftest.$ac_ext
9082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9083 $as_echo "$ac_header_preproc" >&6; }
9084
9085 # So?  What about this header?
9086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9087   yes:no: )
9088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9092     ac_header_preproc=yes
9093     ;;
9094   no:yes:* )
9095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9098 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9099     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9101     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9102 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9105     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9107
9108     ;;
9109 esac
9110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9111 $as_echo_n "checking for $ac_header... " >&6; }
9112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9113   $as_echo_n "(cached) " >&6
9114 else
9115   eval "$as_ac_Header=\$ac_header_preproc"
9116 fi
9117 ac_res=`eval 'as_val=${'$as_ac_Header'}
9118                  $as_echo "$as_val"'`
9119                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9120 $as_echo "$ac_res" >&6; }
9121
9122 fi
9123 if test `eval 'as_val=${'$as_ac_Header'}
9124                  $as_echo "$as_val"'` = yes; then
9125   cat >>confdefs.h <<_ACEOF
9126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 _ACEOF
9128
9129 fi
9130
9131 done
9132
9133
9134
9135 for ac_func in putenv
9136 do
9137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9138 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9139 $as_echo_n "checking for $ac_func... " >&6; }
9140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9141   $as_echo_n "(cached) " >&6
9142 else
9143   cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9151 #define $ac_func innocuous_$ac_func
9152
9153 /* System header to define __stub macros and hopefully few prototypes,
9154     which can conflict with char $ac_func (); below.
9155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9156     <limits.h> exists even on freestanding compilers.  */
9157
9158 #ifdef __STDC__
9159 # include <limits.h>
9160 #else
9161 # include <assert.h>
9162 #endif
9163
9164 #undef $ac_func
9165
9166 /* Override any GCC internal prototype to avoid an error.
9167    Use char because int might match the return type of a GCC
9168    builtin and then its argument prototype would still apply.  */
9169 #ifdef __cplusplus
9170 extern "C"
9171 #endif
9172 char $ac_func ();
9173 /* The GNU C library defines this for functions which it implements
9174     to always fail with ENOSYS.  Some functions are actually named
9175     something starting with __ and the normal name is an alias.  */
9176 #if defined __stub_$ac_func || defined __stub___$ac_func
9177 choke me
9178 #endif
9179
9180 int
9181 main ()
9182 {
9183 return $ac_func ();
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (ac_try="$ac_link"
9190 case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196   (eval "$ac_link") 2>conftest.er1
9197   ac_status=$?
9198   grep -v '^ *+' conftest.er1 >conftest.err
9199   rm -f conftest.er1
9200   cat conftest.err >&5
9201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } && {
9203          test -z "$ac_c_werror_flag" ||
9204          test ! -s conftest.err
9205        } && test -s conftest$ac_exeext &&
9206        $as_test_x conftest$ac_exeext; then
9207   eval "$as_ac_var=yes"
9208 else
9209   $as_echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212         eval "$as_ac_var=no"
9213 fi
9214
9215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9216       conftest$ac_exeext conftest.$ac_ext
9217 fi
9218 ac_res=`eval 'as_val=${'$as_ac_var'}
9219                  $as_echo "$as_val"'`
9220                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9221 $as_echo "$ac_res" >&6; }
9222 if test `eval 'as_val=${'$as_ac_var'}
9223                  $as_echo "$as_val"'` = yes; then
9224   cat >>confdefs.h <<_ACEOF
9225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9226 _ACEOF
9227
9228 else
9229   LTLIBOBJS="$LTLIBOBJS putenv.lo"
9230 fi
9231 done
9232
9233
9234 for ac_func in strcasecmp
9235 do
9236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9238 $as_echo_n "checking for $ac_func... " >&6; }
9239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9240   $as_echo_n "(cached) " >&6
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9250 #define $ac_func innocuous_$ac_func
9251
9252 /* System header to define __stub macros and hopefully few prototypes,
9253     which can conflict with char $ac_func (); below.
9254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9255     <limits.h> exists even on freestanding compilers.  */
9256
9257 #ifdef __STDC__
9258 # include <limits.h>
9259 #else
9260 # include <assert.h>
9261 #endif
9262
9263 #undef $ac_func
9264
9265 /* Override any GCC internal prototype to avoid an error.
9266    Use char because int might match the return type of a GCC
9267    builtin and then its argument prototype would still apply.  */
9268 #ifdef __cplusplus
9269 extern "C"
9270 #endif
9271 char $ac_func ();
9272 /* The GNU C library defines this for functions which it implements
9273     to always fail with ENOSYS.  Some functions are actually named
9274     something starting with __ and the normal name is an alias.  */
9275 #if defined __stub_$ac_func || defined __stub___$ac_func
9276 choke me
9277 #endif
9278
9279 int
9280 main ()
9281 {
9282 return $ac_func ();
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9289 case "(($ac_try" in
9290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291   *) ac_try_echo=$ac_try;;
9292 esac
9293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294 $as_echo "$ac_try_echo") >&5
9295   (eval "$ac_link") 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } && {
9302          test -z "$ac_c_werror_flag" ||
9303          test ! -s conftest.err
9304        } && test -s conftest$ac_exeext &&
9305        $as_test_x conftest$ac_exeext; then
9306   eval "$as_ac_var=yes"
9307 else
9308   $as_echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311         eval "$as_ac_var=no"
9312 fi
9313
9314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9315       conftest$ac_exeext conftest.$ac_ext
9316 fi
9317 ac_res=`eval 'as_val=${'$as_ac_var'}
9318                  $as_echo "$as_val"'`
9319                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9320 $as_echo "$ac_res" >&6; }
9321 if test `eval 'as_val=${'$as_ac_var'}
9322                  $as_echo "$as_val"'` = yes; then
9323   cat >>confdefs.h <<_ACEOF
9324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9325 _ACEOF
9326
9327 else
9328   LTLIBOBJS="$LTLIBOBJS strcasecmp.lo"
9329 fi
9330 done
9331
9332
9333 for ac_func in strtol
9334 do
9335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9337 $as_echo_n "checking for $ac_func... " >&6; }
9338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9339   $as_echo_n "(cached) " >&6
9340 else
9341   cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9349 #define $ac_func innocuous_$ac_func
9350
9351 /* System header to define __stub macros and hopefully few prototypes,
9352     which can conflict with char $ac_func (); below.
9353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354     <limits.h> exists even on freestanding compilers.  */
9355
9356 #ifdef __STDC__
9357 # include <limits.h>
9358 #else
9359 # include <assert.h>
9360 #endif
9361
9362 #undef $ac_func
9363
9364 /* Override any GCC internal prototype to avoid an error.
9365    Use char because int might match the return type of a GCC
9366    builtin and then its argument prototype would still apply.  */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 char $ac_func ();
9371 /* The GNU C library defines this for functions which it implements
9372     to always fail with ENOSYS.  Some functions are actually named
9373     something starting with __ and the normal name is an alias.  */
9374 #if defined __stub_$ac_func || defined __stub___$ac_func
9375 choke me
9376 #endif
9377
9378 int
9379 main ()
9380 {
9381 return $ac_func ();
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext conftest$ac_exeext
9387 if { (ac_try="$ac_link"
9388 case "(($ac_try" in
9389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390   *) ac_try_echo=$ac_try;;
9391 esac
9392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9393 $as_echo "$ac_try_echo") >&5
9394   (eval "$ac_link") 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } && {
9401          test -z "$ac_c_werror_flag" ||
9402          test ! -s conftest.err
9403        } && test -s conftest$ac_exeext &&
9404        $as_test_x conftest$ac_exeext; then
9405   eval "$as_ac_var=yes"
9406 else
9407   $as_echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410         eval "$as_ac_var=no"
9411 fi
9412
9413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9414       conftest$ac_exeext conftest.$ac_ext
9415 fi
9416 ac_res=`eval 'as_val=${'$as_ac_var'}
9417                  $as_echo "$as_val"'`
9418                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9419 $as_echo "$ac_res" >&6; }
9420 if test `eval 'as_val=${'$as_ac_var'}
9421                  $as_echo "$as_val"'` = yes; then
9422   cat >>confdefs.h <<_ACEOF
9423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9424 _ACEOF
9425
9426 else
9427   LTLIBOBJS="$LTLIBOBJS strtol.lo"
9428 fi
9429 done
9430
9431
9432 for ac_func in strstr
9433 do
9434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9436 $as_echo_n "checking for $ac_func... " >&6; }
9437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9438   $as_echo_n "(cached) " >&6
9439 else
9440   cat >conftest.$ac_ext <<_ACEOF
9441 /* confdefs.h.  */
9442 _ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h.  */
9446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9448 #define $ac_func innocuous_$ac_func
9449
9450 /* System header to define __stub macros and hopefully few prototypes,
9451     which can conflict with char $ac_func (); below.
9452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9453     <limits.h> exists even on freestanding compilers.  */
9454
9455 #ifdef __STDC__
9456 # include <limits.h>
9457 #else
9458 # include <assert.h>
9459 #endif
9460
9461 #undef $ac_func
9462
9463 /* Override any GCC internal prototype to avoid an error.
9464    Use char because int might match the return type of a GCC
9465    builtin and then its argument prototype would still apply.  */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char $ac_func ();
9470 /* The GNU C library defines this for functions which it implements
9471     to always fail with ENOSYS.  Some functions are actually named
9472     something starting with __ and the normal name is an alias.  */
9473 #if defined __stub_$ac_func || defined __stub___$ac_func
9474 choke me
9475 #endif
9476
9477 int
9478 main ()
9479 {
9480 return $ac_func ();
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9487 case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9492 $as_echo "$ac_try_echo") >&5
9493   (eval "$ac_link") 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } && {
9500          test -z "$ac_c_werror_flag" ||
9501          test ! -s conftest.err
9502        } && test -s conftest$ac_exeext &&
9503        $as_test_x conftest$ac_exeext; then
9504   eval "$as_ac_var=yes"
9505 else
9506   $as_echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509         eval "$as_ac_var=no"
9510 fi
9511
9512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9513       conftest$ac_exeext conftest.$ac_ext
9514 fi
9515 ac_res=`eval 'as_val=${'$as_ac_var'}
9516                  $as_echo "$as_val"'`
9517                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9518 $as_echo "$ac_res" >&6; }
9519 if test `eval 'as_val=${'$as_ac_var'}
9520                  $as_echo "$as_val"'` = yes; then
9521   cat >>confdefs.h <<_ACEOF
9522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9523 _ACEOF
9524
9525 else
9526   LTLIBOBJS="$LTLIBOBJS strstr.lo"
9527 fi
9528 done
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543 for ac_func in bcmp bcopy bzero getcwd getwd index memcmp memcpy rindex strchr strrchr
9544 do
9545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 $as_echo_n "checking for $ac_func... " >&6; }
9548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9549   $as_echo_n "(cached) " >&6
9550 else
9551   cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9559 #define $ac_func innocuous_$ac_func
9560
9561 /* System header to define __stub macros and hopefully few prototypes,
9562     which can conflict with char $ac_func (); below.
9563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564     <limits.h> exists even on freestanding compilers.  */
9565
9566 #ifdef __STDC__
9567 # include <limits.h>
9568 #else
9569 # include <assert.h>
9570 #endif
9571
9572 #undef $ac_func
9573
9574 /* Override any GCC internal prototype to avoid an error.
9575    Use char because int might match the return type of a GCC
9576    builtin and then its argument prototype would still apply.  */
9577 #ifdef __cplusplus
9578 extern "C"
9579 #endif
9580 char $ac_func ();
9581 /* The GNU C library defines this for functions which it implements
9582     to always fail with ENOSYS.  Some functions are actually named
9583     something starting with __ and the normal name is an alias.  */
9584 #if defined __stub_$ac_func || defined __stub___$ac_func
9585 choke me
9586 #endif
9587
9588 int
9589 main ()
9590 {
9591 return $ac_func ();
9592   ;
9593   return 0;
9594 }
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600   *) ac_try_echo=$ac_try;;
9601 esac
9602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9603 $as_echo "$ac_try_echo") >&5
9604   (eval "$ac_link") 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } && {
9611          test -z "$ac_c_werror_flag" ||
9612          test ! -s conftest.err
9613        } && test -s conftest$ac_exeext &&
9614        $as_test_x conftest$ac_exeext; then
9615   eval "$as_ac_var=yes"
9616 else
9617   $as_echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620         eval "$as_ac_var=no"
9621 fi
9622
9623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9624       conftest$ac_exeext conftest.$ac_ext
9625 fi
9626 ac_res=`eval 'as_val=${'$as_ac_var'}
9627                  $as_echo "$as_val"'`
9628                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9629 $as_echo "$ac_res" >&6; }
9630 if test `eval 'as_val=${'$as_ac_var'}
9631                  $as_echo "$as_val"'` = yes; then
9632   cat >>confdefs.h <<_ACEOF
9633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634 _ACEOF
9635
9636 fi
9637 done
9638
9639
9640 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9641 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9642 if test "${ac_cv_c_const+set}" = set; then
9643   $as_echo_n "(cached) " >&6
9644 else
9645   cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h.  */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h.  */
9651
9652 int
9653 main ()
9654 {
9655 /* FIXME: Include the comments suggested by Paul. */
9656 #ifndef __cplusplus
9657   /* Ultrix mips cc rejects this.  */
9658   typedef int charset[2];
9659   const charset cs;
9660   /* SunOS 4.1.1 cc rejects this.  */
9661   char const *const *pcpcc;
9662   char **ppc;
9663   /* NEC SVR4.0.2 mips cc rejects this.  */
9664   struct point {int x, y;};
9665   static struct point const zero = {0,0};
9666   /* AIX XL C 1.02.0.0 rejects this.
9667      It does not let you subtract one const X* pointer from another in
9668      an arm of an if-expression whose if-part is not a constant
9669      expression */
9670   const char *g = "string";
9671   pcpcc = &g + (g ? g-g : 0);
9672   /* HPUX 7.0 cc rejects these. */
9673   ++pcpcc;
9674   ppc = (char**) pcpcc;
9675   pcpcc = (char const *const *) ppc;
9676   { /* SCO 3.2v4 cc rejects this.  */
9677     char *t;
9678     char const *s = 0 ? (char *) 0 : (char const *) 0;
9679
9680     *t++ = 0;
9681     if (s) return 0;
9682   }
9683   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9684     int x[] = {25, 17};
9685     const int *foo = &x[0];
9686     ++foo;
9687   }
9688   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9689     typedef const int *iptr;
9690     iptr p = 0;
9691     ++p;
9692   }
9693   { /* AIX XL C 1.02.0.0 rejects this saying
9694        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9695     struct s { int j; const int *ap[3]; };
9696     struct s *b; b->j = 5;
9697   }
9698   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9699     const int foo = 10;
9700     if (!foo) return 0;
9701   }
9702   return !cs[0] && !zero.x;
9703 #endif
9704
9705   ;
9706   return 0;
9707 }
9708 _ACEOF
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9711 case "(($ac_try" in
9712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713   *) ac_try_echo=$ac_try;;
9714 esac
9715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9716 $as_echo "$ac_try_echo") >&5
9717   (eval "$ac_compile") 2>conftest.er1
9718   ac_status=$?
9719   grep -v '^ *+' conftest.er1 >conftest.err
9720   rm -f conftest.er1
9721   cat conftest.err >&5
9722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); } && {
9724          test -z "$ac_c_werror_flag" ||
9725          test ! -s conftest.err
9726        } && test -s conftest.$ac_objext; then
9727   ac_cv_c_const=yes
9728 else
9729   $as_echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732         ac_cv_c_const=no
9733 fi
9734
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 fi
9737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9738 $as_echo "$ac_cv_c_const" >&6; }
9739 if test $ac_cv_c_const = no; then
9740
9741 cat >>confdefs.h <<\_ACEOF
9742 #define const
9743 _ACEOF
9744
9745 fi
9746
9747
9748 # Check whether struct stat provides high-res time.
9749 { $as_echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
9750 $as_echo_n "checking for st_mtim in struct stat... " >&6; }
9751 if test "${ac_cv_struct_st_mtim+set}" = set; then
9752   $as_echo_n "(cached) " >&6
9753 else
9754   cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760 #include <sys/types.h>
9761 #include <sys/stat.h>
9762 int
9763 main ()
9764 {
9765 struct stat s; s.st_mtim;
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9772 case "(($ac_try" in
9773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774   *) ac_try_echo=$ac_try;;
9775 esac
9776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9777 $as_echo "$ac_try_echo") >&5
9778   (eval "$ac_compile") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } && {
9785          test -z "$ac_c_werror_flag" ||
9786          test ! -s conftest.err
9787        } && test -s conftest.$ac_objext; then
9788   ac_cv_struct_st_mtim=yes
9789 else
9790   $as_echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793         ac_cv_struct_st_mtim=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
9799 $as_echo "$ac_cv_struct_st_mtim" >&6; }
9800 if test $ac_cv_struct_st_mtim = yes; then
9801   cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_ST_MTIM 1
9803 _ACEOF
9804
9805 fi
9806
9807
9808 # Check whether prototypes work.
9809 { $as_echo "$as_me:$LINENO: checking whether the compiler accepts prototypes" >&5
9810 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
9811 if test "${kb_cv_c_prototypes+set}" = set; then
9812   $as_echo_n "(cached) " >&6
9813 else
9814   cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h.  */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h.  */
9820 #include <stdarg.h>
9821 int
9822 main ()
9823 {
9824 extern void foo(int i,...);
9825   ;
9826   return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (ac_try="$ac_compile"
9831 case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837   (eval "$ac_compile") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } && {
9844          test -z "$ac_c_werror_flag" ||
9845          test ! -s conftest.err
9846        } && test -s conftest.$ac_objext; then
9847   kb_cv_c_prototypes=yes
9848 else
9849   $as_echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852         kb_cv_c_prototypes=no
9853 fi
9854
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 fi
9857 { $as_echo "$as_me:$LINENO: result: $kb_cv_c_prototypes" >&5
9858 $as_echo "$kb_cv_c_prototypes" >&6; }
9859 if test "$kb_cv_c_prototypes" = yes; then
9860   cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_PROTOTYPES 1
9862 _ACEOF
9863
9864 fi
9865
9866 # This is a GNU libc invention.
9867 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is predefined" >&5
9868 $as_echo_n "checking whether program_invocation_name is predefined... " >&6; }
9869 if test "${kb_cv_var_program_inv_name+set}" = set; then
9870   $as_echo_n "(cached) " >&6
9871 else
9872   cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878
9879 int
9880 main ()
9881 {
9882 extern char *program_invocation_name; program_invocation_name = "love";
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891   *) ac_try_echo=$ac_try;;
9892 esac
9893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9894 $as_echo "$ac_try_echo") >&5
9895   (eval "$ac_link") 2>conftest.er1
9896   ac_status=$?
9897   grep -v '^ *+' conftest.er1 >conftest.err
9898   rm -f conftest.er1
9899   cat conftest.err >&5
9900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } && {
9902          test -z "$ac_c_werror_flag" ||
9903          test ! -s conftest.err
9904        } && test -s conftest$ac_exeext &&
9905        $as_test_x conftest$ac_exeext; then
9906   kb_cv_var_program_inv_name=yes
9907 else
9908   $as_echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911         kb_cv_var_program_inv_name=no
9912 fi
9913
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915       conftest$ac_exeext conftest.$ac_ext
9916 fi
9917 { $as_echo "$as_me:$LINENO: result: $kb_cv_var_program_inv_name" >&5
9918 $as_echo "$kb_cv_var_program_inv_name" >&6; }
9919 if test "$kb_cv_var_program_inv_name" = yes; then
9920   cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_PROGRAM_INVOCATION_NAME 1
9922 _ACEOF
9923
9924 fi
9925
9926 if test $ac_cv_func_getcwd = yes; then
9927 # We only need to run this if we have getcwd.
9928 { $as_echo "$as_me:$LINENO: checking whether getcwd uses fork or vfork" >&5
9929 $as_echo_n "checking whether getcwd uses fork or vfork... " >&6; }
9930 if test "${kb_cv_func_getcwd_forks+set}" = set; then
9931   $as_echo_n "(cached) " >&6
9932 else
9933   if test "$cross_compiling" = yes; then
9934   kb_cv_func_getcwd_forks=no
9935 else
9936   cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942
9943 int fork() { exit(1); }
9944 int vfork() { exit(1); }
9945 extern char *getcwd();
9946 char path[100];
9947 int main() {
9948 getcwd(path,100);
9949 return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959 $as_echo "$ac_try_echo") >&5
9960   (eval "$ac_link") 2>&5
9961   ac_status=$?
9962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9964   { (case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969 $as_echo "$ac_try_echo") >&5
9970   (eval "$ac_try") 2>&5
9971   ac_status=$?
9972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   kb_cv_func_getcwd_forks=no
9975 else
9976   $as_echo "$as_me: program exited with status $ac_status" >&5
9977 $as_echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ( exit $ac_status )
9981 kb_cv_func_getcwd_forks=yes
9982 fi
9983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9984 fi
9985
9986
9987 fi
9988 { $as_echo "$as_me:$LINENO: result: $kb_cv_func_getcwd_forks" >&5
9989 $as_echo "$kb_cv_func_getcwd_forks" >&6; }
9990 if test $kb_cv_func_getcwd_forks = yes; then
9991   cat >>confdefs.h <<\_ACEOF
9992 #define GETCWD_FORKS 1
9993 _ACEOF
9994
9995 fi
9996 fi
9997
9998 # Common --with and --enable options.
9999
10000 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10001 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10002     # Check whether --enable-maintainer-mode was given.
10003 if test "${enable_maintainer_mode+set}" = set; then
10004   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10005 else
10006   USE_MAINTAINER_MODE=no
10007 fi
10008
10009   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10010 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10011   if test "x$USE_MAINTAINER_MODE" = xyes; then
10012     MAINT=
10013   else
10014     MAINT='#M#'
10015   fi
10016
10017
10018
10019 { $as_echo "$as_me:$LINENO: checking for loader (symbol LD)" >&5
10020 $as_echo_n "checking for loader (symbol LD)... " >&6; }
10021 if test "${cf_cv_subst_LD+set}" = set; then
10022   $as_echo_n "(cached) " >&6
10023 else
10024
10025 test -z "$LD" && LD=ld
10026 cf_cv_subst_LD=$LD
10027 fi
10028
10029 LD=${cf_cv_subst_LD}
10030 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10031 $as_echo "$LD" >&6; }
10032
10033
10034 { $as_echo "$as_me:$LINENO: checking for archiver (symbol AR)" >&5
10035 $as_echo_n "checking for archiver (symbol AR)... " >&6; }
10036 if test "${cf_cv_subst_AR+set}" = set; then
10037   $as_echo_n "(cached) " >&6
10038 else
10039
10040 test -z "$AR" && AR=ar
10041 cf_cv_subst_AR=$AR
10042 fi
10043
10044 AR=${cf_cv_subst_AR}
10045 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10046 $as_echo "$AR" >&6; }
10047
10048
10049 { $as_echo "$as_me:$LINENO: checking for archiver options (symbol ARFLAGS)" >&5
10050 $as_echo_n "checking for archiver options (symbol ARFLAGS)... " >&6; }
10051 if test "${cf_cv_subst_ARFLAGS+set}" = set; then
10052   $as_echo_n "(cached) " >&6
10053 else
10054
10055 test -z "$ARFLAGS" && ARFLAGS=rc
10056 cf_cv_subst_ARFLAGS=$ARFLAGS
10057 fi
10058
10059 ARFLAGS=${cf_cv_subst_ARFLAGS}
10060 { $as_echo "$as_me:$LINENO: result: $ARFLAGS" >&5
10061 $as_echo "$ARFLAGS" >&6; }
10062
10063
10064
10065
10066 # Check whether --with-mktexmf-default was given.
10067 if test "${with_mktexmf_default+set}" = set; then
10068   withval=$with_mktexmf_default;
10069 else
10070   with_mktexmf_default=yes
10071 fi
10072
10073
10074 # Check whether --with-mktexpk-default was given.
10075 if test "${with_mktexpk_default+set}" = set; then
10076   withval=$with_mktexpk_default;
10077 else
10078   with_mktexpk_default=yes
10079 fi
10080
10081
10082 # Check whether --with-mktextfm-default was given.
10083 if test "${with_mktextfm_default+set}" = set; then
10084   withval=$with_mktextfm_default;
10085 else
10086   with_mktextfm_default=yes
10087 fi
10088
10089
10090 # Check whether --with-mkocp-default was given.
10091 if test "${with_mkocp_default+set}" = set; then
10092   withval=$with_mkocp_default;
10093 else
10094   with_mkocp_default=yes
10095 fi
10096
10097
10098 # Check whether --with-mkofm-default was given.
10099 if test "${with_mkofm_default+set}" = set; then
10100   withval=$with_mkofm_default;
10101 else
10102   with_mkofm_default=yes
10103 fi
10104
10105
10106 # Check whether --with-mktexfmt-default was given.
10107 if test "${with_mktexfmt_default+set}" = set; then
10108   withval=$with_mktexfmt_default;
10109 fi
10110
10111
10112 # Check whether --with-mktextex-default was given.
10113 if test "${with_mktextex_default+set}" = set; then
10114   withval=$with_mktextex_default; with_mktextex_default=yes
10115 else
10116   with_mktextex_default=no
10117 fi
10118
10119
10120 { $as_echo "$as_me:$LINENO: checking where the main texmf tree is located" >&5
10121 $as_echo_n "checking where the main texmf tree is located... " >&6; }
10122 case $prefix in
10123   */) prefix=`echo "$prefix" | sed 's@/*$@@'`;;
10124 esac
10125 texmfmain=
10126 if test "x$datadir" != 'x${prefix}/share'; then
10127   # First case, datadir is defined...
10128   eval p=\"$datadir\"
10129   # Unconditionally set the directory, but...
10130   texmfmain=`echo "$p/texmf" | sed 's,//*,/,g'`
10131   # ... do complain if it wasn't found.
10132   if test -d "$texmfmain"; then
10133     { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10134 $as_echo "\"$texmfmain\"" >&6; }
10135   else
10136     { $as_echo "$as_me:$LINENO: result: not found" >&5
10137 $as_echo "not found" >&6; }
10138     { $as_echo "$as_me:$LINENO: WARNING: No texmf tree found at $texmfmain.
10139   *****************************************************************
10140   * Error: The main texmf tree was not found.                     *
10141   * If you do not have the files, you should be able to them from *
10142   * the same place you got these sources from, or from one of the *
10143   * CTAN hosts.                                                   *
10144   *****************************************************************
10145   Winging it." >&5
10146 $as_echo "$as_me: WARNING: No texmf tree found at $texmfmain.
10147   *****************************************************************
10148   * Error: The main texmf tree was not found.                     *
10149   * If you do not have the files, you should be able to them from *
10150   * the same place you got these sources from, or from one of the *
10151   * CTAN hosts.                                                   *
10152   *****************************************************************
10153   Winging it." >&2;}
10154   fi
10155 else
10156   # Second case, datadir is default...
10157   if test "x$prefix" = "xNONE"; then
10158     p="$ac_default_prefix"
10159   else
10160     eval p=\"$prefix\"
10161   fi
10162   for e in share/texmf lib/texmf texmf; do
10163     if test -d "$p/$e"; then
10164       texmfmain='${prefix}'/"$e"
10165       break
10166     fi
10167   done
10168   if test -z "$texmfmain" && test "x$prefix" = "xNONE"; then
10169      # Still no texmfmain found, no prefix set, perhaps kpsewhich is
10170      # installed and can help us out.
10171      texmfmain=`kpsewhich --expand-path='$TEXMFMAIN'` 2>/dev/null
10172   fi
10173   texmfmain=`echo "$texmfmain" | sed 's,//*,/,g'`
10174   if test -n "$texmfmain"; then
10175     { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10176 $as_echo "\"$texmfmain\"" >&6; }
10177   else
10178     eval texmfmain="$datadir/texmf"
10179     { $as_echo "$as_me:$LINENO: result: not found" >&5
10180 $as_echo "not found" >&6; }
10181     { $as_echo "$as_me:$LINENO: WARNING: The main texmf tree was not found at $texmfmain.
10182   *****************************************************************
10183   * Error: The main texmf tree was not found.                     *
10184   * Use the --datadir option to specify its parent directory.     *
10185   * If you do not have the files, you should be able to them from *
10186   * the same place you got these sources from, or from one of the *
10187   * CTAN hosts.                                                   *
10188   *****************************************************************
10189   Winging it by pretending $texmfmain is correct." >&5
10190 $as_echo "$as_me: WARNING: The main texmf tree was not found at $texmfmain.
10191   *****************************************************************
10192   * Error: The main texmf tree was not found.                     *
10193   * Use the --datadir option to specify its parent directory.     *
10194   * If you do not have the files, you should be able to them from *
10195   * the same place you got these sources from, or from one of the *
10196   * CTAN hosts.                                                   *
10197   *****************************************************************
10198   Winging it by pretending $texmfmain is correct." >&2;}
10199   fi
10200 fi
10201
10202
10203
10204 # Implementation of those options.
10205 if test "x$with_mktexmf_default" = xyes; then
10206   cat >>confdefs.h <<\_ACEOF
10207 #define MAKE_TEX_MF_BY_DEFAULT 1
10208 _ACEOF
10209
10210 fi
10211 if test "x$with_mktexpk_default" = xyes; then
10212   cat >>confdefs.h <<\_ACEOF
10213 #define MAKE_TEX_PK_BY_DEFAULT 1
10214 _ACEOF
10215
10216 fi
10217 if test "x$with_mktextex_default" = xyes; then
10218   cat >>confdefs.h <<\_ACEOF
10219 #define MAKE_TEX_TEX_BY_DEFAULT 1
10220 _ACEOF
10221
10222 fi
10223 if test "x$with_mktexfmt_default" = xyes; then
10224   cat >>confdefs.h <<\_ACEOF
10225 #define MAKE_TEX_FMT_BY_DEFAULT 1
10226 _ACEOF
10227
10228 fi
10229 if test "x$with_mktextfm_default" = xyes; then
10230   cat >>confdefs.h <<\_ACEOF
10231 #define MAKE_TEX_TFM_BY_DEFAULT 1
10232 _ACEOF
10233
10234 fi
10235 if test "x$with_mkocp_default" = xyes; then
10236   cat >>confdefs.h <<\_ACEOF
10237 #define MAKE_OMEGA_OCP_BY_DEFAULT 1
10238 _ACEOF
10239
10240 fi
10241 if test "x$with_mkofm_default" = xyes; then
10242   cat >>confdefs.h <<\_ACEOF
10243 #define MAKE_OMEGA_OFM_BY_DEFAULT 1
10244 _ACEOF
10245
10246 fi
10247
10248 # Is libm present.  FIXME: do we need it at all?
10249
10250 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
10251 $as_echo_n "checking for main in -lm... " >&6; }
10252 if test "${ac_cv_lib_m_main+set}" = set; then
10253   $as_echo_n "(cached) " >&6
10254 else
10255   ac_check_lib_save_LIBS=$LIBS
10256 LIBS="-lm  $LIBS"
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263
10264
10265 int
10266 main ()
10267 {
10268 return main ();
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (ac_try="$ac_link"
10275 case "(($ac_try" in
10276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277   *) ac_try_echo=$ac_try;;
10278 esac
10279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10280 $as_echo "$ac_try_echo") >&5
10281   (eval "$ac_link") 2>conftest.er1
10282   ac_status=$?
10283   grep -v '^ *+' conftest.er1 >conftest.err
10284   rm -f conftest.er1
10285   cat conftest.err >&5
10286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } && {
10288          test -z "$ac_c_werror_flag" ||
10289          test ! -s conftest.err
10290        } && test -s conftest$ac_exeext &&
10291        $as_test_x conftest$ac_exeext; then
10292   ac_cv_lib_m_main=yes
10293 else
10294   $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297         ac_cv_lib_m_main=no
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10301       conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10303 fi
10304 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10305 $as_echo "$ac_cv_lib_m_main" >&6; }
10306 if test $ac_cv_lib_m_main = yes; then
10307   cat >>confdefs.h <<_ACEOF
10308 #define HAVE_LIBM 1
10309 _ACEOF
10310
10311   LIBS="-lm $LIBS"
10312
10313 fi
10314
10315
10316 # If you're cross-compiling, these macros set up the variables in
10317 # ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.
10318 if test "$cross_compiling" = yes; then
10319   if test -z "${BUILDCC}"; then
10320     BUILDCC='cc'
10321   fi
10322   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCC to ${BUILDCC}" >&5
10323 $as_echo "setting \$BUILDCC to ${BUILDCC}" >&6; }
10324 else
10325   if test -n "${BUILDCC}"; then
10326     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCC set but not cross-compiling." >&5
10327 $as_echo "$as_me: WARNING: \$BUILDCC set but not cross-compiling." >&2;}
10328   fi
10329   BUILDCC='$(CC)'
10330 fi
10331
10332
10333 if test "$cross_compiling" = yes; then
10334   if test -z "${BUILDCFLAGS}"; then
10335     BUILDCFLAGS='$(BUILDXCFLAGS)'
10336   fi
10337   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&5
10338 $as_echo "setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&6; }
10339 else
10340   if test -n "${BUILDCFLAGS}"; then
10341     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&5
10342 $as_echo "$as_me: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&2;}
10343   fi
10344   BUILDCFLAGS='$(CFLAGS)'
10345 fi
10346
10347
10348 if test "$cross_compiling" = yes; then
10349   if test -z "${BUILDCPPFLAGS}"; then
10350     BUILDCPPFLAGS='$(BUILDXCPPFLAGS)'
10351   fi
10352   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&5
10353 $as_echo "setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&6; }
10354 else
10355   if test -n "${BUILDCPPFLAGS}"; then
10356     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&5
10357 $as_echo "$as_me: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&2;}
10358   fi
10359   BUILDCPPFLAGS='$(CPPFLAGS)'
10360 fi
10361
10362
10363 if test "$cross_compiling" = yes; then
10364   if test -z "${BUILDLDFLAGS}"; then
10365     BUILDLDFLAGS='$(BUILDXLDFLAGS)'
10366   fi
10367   { $as_echo "$as_me:$LINENO: result: setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&5
10368 $as_echo "setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&6; }
10369 else
10370   if test -n "${BUILDLDFLAGS}"; then
10371     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&5
10372 $as_echo "$as_me: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&2;}
10373   fi
10374   BUILDLDFLAGS='$(LDFLAGS)'
10375 fi
10376
10377
10378 if test "$cross_compiling" = yes; then
10379   if test -z "${BUILDCCLD}"; then
10380     BUILDCCLD='$(BUILDCC)'
10381   fi
10382   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCCLD to ${BUILDCCLD}" >&5
10383 $as_echo "setting \$BUILDCCLD to ${BUILDCCLD}" >&6; }
10384 else
10385   if test -n "${BUILDCCLD}"; then
10386     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCCLD set but not cross-compiling." >&5
10387 $as_echo "$as_me: WARNING: \$BUILDCCLD set but not cross-compiling." >&2;}
10388   fi
10389   BUILDCCLD='$(CCLD)'
10390 fi
10391
10392
10393
10394
10395 ac_config_files="$ac_config_files Makefile.aux:Makefile.in"
10396 ac_config_files="$ac_config_files Makefile:Makefile.aux"
10397
10398 cat >confcache <<\_ACEOF
10399 # This file is a shell script that caches the results of configure
10400 # tests run on this system so they can be shared between configure
10401 # scripts and configure runs, see configure's option --config-cache.
10402 # It is not useful on other systems.  If it contains results you don't
10403 # want to keep, you may remove or edit it.
10404 #
10405 # config.status only pays attention to the cache file if you give it
10406 # the --recheck option to rerun configure.
10407 #
10408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10410 # following values.
10411
10412 _ACEOF
10413
10414 # The following way of writing the cache mishandles newlines in values,
10415 # but we know of no workaround that is simple, portable, and efficient.
10416 # So, we kill variables containing newlines.
10417 # Ultrix sh set writes to stderr and can't be redirected directly,
10418 # and sets the high bit in the cache file unless we assign to the vars.
10419 (
10420   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10421     eval ac_val=\$$ac_var
10422     case $ac_val in #(
10423     *${as_nl}*)
10424       case $ac_var in #(
10425       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10426 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10427       esac
10428       case $ac_var in #(
10429       _ | IFS | as_nl) ;; #(
10430       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10431       *) $as_unset $ac_var ;;
10432       esac ;;
10433     esac
10434   done
10435
10436   (set) 2>&1 |
10437     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10438     *${as_nl}ac_space=\ *)
10439       # `set' does not quote correctly, so add quotes (double-quote
10440       # substitution turns \\\\ into \\, and sed turns \\ into \).
10441       sed -n \
10442         "s/'/'\\\\''/g;
10443           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10444       ;; #(
10445     *)
10446       # `set' quotes correctly as required by POSIX, so do not add quotes.
10447       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10448       ;;
10449     esac |
10450     sort
10451 ) |
10452   sed '
10453      /^ac_cv_env_/b end
10454      t clear
10455      :clear
10456      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10457      t end
10458      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10459      :end' >>confcache
10460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10461   if test -w "$cache_file"; then
10462     test "x$cache_file" != "x/dev/null" &&
10463       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10464 $as_echo "$as_me: updating cache $cache_file" >&6;}
10465     cat confcache >$cache_file
10466   else
10467     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10469   fi
10470 fi
10471 rm -f confcache
10472
10473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10474 # Let make expand exec_prefix.
10475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10476
10477 DEFS=-DHAVE_CONFIG_H
10478
10479 ac_libobjs=
10480 ac_ltlibobjs=
10481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10482   # 1. Remove the extension, and $U if already installed.
10483   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10484   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10485   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10486   #    will be set to the directory where LIBOBJS objects are built.
10487   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10488   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10489 done
10490 LIBOBJS=$ac_libobjs
10491
10492 LTLIBOBJS=$ac_ltlibobjs
10493
10494
10495
10496 : ${CONFIG_STATUS=./config.status}
10497 ac_clean_files_save=$ac_clean_files
10498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10499 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10501 cat >$CONFIG_STATUS <<_ACEOF
10502 #! $SHELL
10503 # Generated by $as_me.
10504 # Run this file to recreate the current configuration.
10505 # Compiler output produced by configure, useful for debugging
10506 # configure, is in config.log if it exists.
10507
10508 debug=false
10509 ac_cs_recheck=false
10510 ac_cs_silent=false
10511 SHELL=\${CONFIG_SHELL-$SHELL}
10512 _ACEOF
10513
10514 cat >>$CONFIG_STATUS <<\_ACEOF
10515 ## --------------------- ##
10516 ## M4sh Initialization.  ##
10517 ## --------------------- ##
10518
10519 # Be more Bourne compatible
10520 DUALCASE=1; export DUALCASE # for MKS sh
10521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10522   emulate sh
10523   NULLCMD=:
10524   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10525   # is contrary to our usage.  Disable this feature.
10526   alias -g '${1+"$@"}'='"$@"'
10527   setopt NO_GLOB_SUBST
10528 else
10529   case `(set -o) 2>/dev/null` in
10530   *posix*) set -o posix ;;
10531 esac
10532
10533 fi
10534
10535
10536
10537
10538 # PATH needs CR
10539 # Avoid depending upon Character Ranges.
10540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10543 as_cr_digits='0123456789'
10544 as_cr_alnum=$as_cr_Letters$as_cr_digits
10545
10546 as_nl='
10547 '
10548 export as_nl
10549 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10550 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10552 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10553 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10554   as_echo='printf %s\n'
10555   as_echo_n='printf %s'
10556 else
10557   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10558     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10559     as_echo_n='/usr/ucb/echo -n'
10560   else
10561     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10562     as_echo_n_body='eval
10563       arg=$1;
10564       case $arg in
10565       *"$as_nl"*)
10566         expr "X$arg" : "X\\(.*\\)$as_nl";
10567         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10568       esac;
10569       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10570     '
10571     export as_echo_n_body
10572     as_echo_n='sh -c $as_echo_n_body as_echo'
10573   fi
10574   export as_echo_body
10575   as_echo='sh -c $as_echo_body as_echo'
10576 fi
10577
10578 # The user is always right.
10579 if test "${PATH_SEPARATOR+set}" != set; then
10580   echo "#! /bin/sh" >conf$$.sh
10581   echo  "exit 0"   >>conf$$.sh
10582   chmod +x conf$$.sh
10583   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10584     PATH_SEPARATOR=';'
10585   else
10586     PATH_SEPARATOR=:
10587   fi
10588   rm -f conf$$.sh
10589 fi
10590
10591 # Support unset when possible.
10592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10593   as_unset=unset
10594 else
10595   as_unset=false
10596 fi
10597
10598
10599 # IFS
10600 # We need space, tab and new line, in precisely that order.  Quoting is
10601 # there to prevent editors from complaining about space-tab.
10602 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10603 # splitting by setting IFS to empty value.)
10604 IFS=" ""        $as_nl"
10605
10606 # Find who we are.  Look in the path if we contain no directory separator.
10607 case $0 in
10608   *[\\/]* ) as_myself=$0 ;;
10609   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612   IFS=$as_save_IFS
10613   test -z "$as_dir" && as_dir=.
10614   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10615 done
10616 IFS=$as_save_IFS
10617
10618      ;;
10619 esac
10620 # We did not find ourselves, most probably we were run as `sh COMMAND'
10621 # in which case we are not to be found in the path.
10622 if test "x$as_myself" = x; then
10623   as_myself=$0
10624 fi
10625 if test ! -f "$as_myself"; then
10626   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10627   { (exit 1); exit 1; }
10628 fi
10629
10630 # Work around bugs in pre-3.0 UWIN ksh.
10631 for as_var in ENV MAIL MAILPATH
10632 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10633 done
10634 PS1='$ '
10635 PS2='> '
10636 PS4='+ '
10637
10638 # NLS nuisances.
10639 for as_var in \
10640   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10641   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10642   LC_TELEPHONE LC_TIME
10643 do
10644   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10645     eval $as_var=C; export $as_var
10646   else
10647     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10648   fi
10649 done
10650
10651 # Required to use basename.
10652 if expr a : '\(a\)' >/dev/null 2>&1 &&
10653    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10654   as_expr=expr
10655 else
10656   as_expr=false
10657 fi
10658
10659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10660   as_basename=basename
10661 else
10662   as_basename=false
10663 fi
10664
10665
10666 # Name of the executable.
10667 as_me=`$as_basename -- "$0" ||
10668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10669          X"$0" : 'X\(//\)$' \| \
10670          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10671 $as_echo X/"$0" |
10672     sed '/^.*\/\([^/][^/]*\)\/*$/{
10673             s//\1/
10674             q
10675           }
10676           /^X\/\(\/\/\)$/{
10677             s//\1/
10678             q
10679           }
10680           /^X\/\(\/\).*/{
10681             s//\1/
10682             q
10683           }
10684           s/.*/./; q'`
10685
10686 # CDPATH.
10687 $as_unset CDPATH
10688
10689
10690
10691   as_lineno_1=$LINENO
10692   as_lineno_2=$LINENO
10693   test "x$as_lineno_1" != "x$as_lineno_2" &&
10694   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10695
10696   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10697   # uniformly replaced by the line number.  The first 'sed' inserts a
10698   # line-number line after each line using $LINENO; the second 'sed'
10699   # does the real work.  The second script uses 'N' to pair each
10700   # line-number line with the line containing $LINENO, and appends
10701   # trailing '-' during substitution so that $LINENO is not a special
10702   # case at line end.
10703   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10704   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10705   # E. McMahon (1931-1989) for sed's syntax.  :-)
10706   sed -n '
10707     p
10708     /[$]LINENO/=
10709   ' <$as_myself |
10710     sed '
10711       s/[$]LINENO.*/&-/
10712       t lineno
10713       b
10714       :lineno
10715       N
10716       :loop
10717       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10718       t loop
10719       s/-\n.*//
10720     ' >$as_me.lineno &&
10721   chmod +x "$as_me.lineno" ||
10722     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10723    { (exit 1); exit 1; }; }
10724
10725   # Don't try to exec as it changes $[0], causing all sort of problems
10726   # (the dirname of $[0] is not the place where we might find the
10727   # original and so on.  Autoconf is especially sensitive to this).
10728   . "./$as_me.lineno"
10729   # Exit status is that of the last command.
10730   exit
10731 }
10732
10733
10734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10735   as_dirname=dirname
10736 else
10737   as_dirname=false
10738 fi
10739
10740 ECHO_C= ECHO_N= ECHO_T=
10741 case `echo -n x` in
10742 -n*)
10743   case `echo 'x\c'` in
10744   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10745   *)   ECHO_C='\c';;
10746   esac;;
10747 *)
10748   ECHO_N='-n';;
10749 esac
10750 if expr a : '\(a\)' >/dev/null 2>&1 &&
10751    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10752   as_expr=expr
10753 else
10754   as_expr=false
10755 fi
10756
10757 rm -f conf$$ conf$$.exe conf$$.file
10758 if test -d conf$$.dir; then
10759   rm -f conf$$.dir/conf$$.file
10760 else
10761   rm -f conf$$.dir
10762   mkdir conf$$.dir
10763 fi
10764 echo >conf$$.file
10765 if ln -s conf$$.file conf$$ 2>/dev/null; then
10766   as_ln_s='ln -s'
10767   # ... but there are two gotchas:
10768   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10769   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10770   # In both cases, we have to default to `cp -p'.
10771   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10772     as_ln_s='cp -p'
10773 elif ln conf$$.file conf$$ 2>/dev/null; then
10774   as_ln_s=ln
10775 else
10776   as_ln_s='cp -p'
10777 fi
10778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10779 rmdir conf$$.dir 2>/dev/null
10780
10781 if mkdir -p . 2>/dev/null; then
10782   as_mkdir_p=:
10783 else
10784   test -d ./-p && rmdir ./-p
10785   as_mkdir_p=false
10786 fi
10787
10788 if test -x / >/dev/null 2>&1; then
10789   as_test_x='test -x'
10790 else
10791   if ls -dL / >/dev/null 2>&1; then
10792     as_ls_L_option=L
10793   else
10794     as_ls_L_option=
10795   fi
10796   as_test_x='
10797     eval sh -c '\''
10798       if test -d "$1"; then
10799         test -d "$1/.";
10800       else
10801         case $1 in
10802         -*)set "./$1";;
10803         esac;
10804         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10805         ???[sx]*):;;*)false;;esac;fi
10806     '\'' sh
10807   '
10808 fi
10809 as_executable_p=$as_test_x
10810
10811 # Sed expression to map a string onto a valid CPP name.
10812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10813
10814 # Sed expression to map a string onto a valid variable name.
10815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10816
10817
10818 exec 6>&1
10819
10820 # Save the log message, to keep $[0] and so on meaningful, and to
10821 # report actual input values of CONFIG_FILES etc. instead of their
10822 # values after options handling.
10823 ac_log="
10824 This file was extended by $as_me, which was
10825 generated by GNU Autoconf 2.61a.  Invocation command line was
10826
10827   CONFIG_FILES    = $CONFIG_FILES
10828   CONFIG_HEADERS  = $CONFIG_HEADERS
10829   CONFIG_LINKS    = $CONFIG_LINKS
10830   CONFIG_COMMANDS = $CONFIG_COMMANDS
10831   $ $0 $@
10832
10833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10834 "
10835
10836 _ACEOF
10837
10838 cat >>$CONFIG_STATUS <<_ACEOF
10839 # Files that config.status was made for.
10840 config_files="$ac_config_files"
10841 config_headers="$ac_config_headers"
10842
10843 _ACEOF
10844
10845 cat >>$CONFIG_STATUS <<\_ACEOF
10846 ac_cs_usage="\
10847 \`$as_me' instantiates files from templates according to the
10848 current configuration.
10849
10850 Usage: $0 [OPTIONS] [FILE]...
10851
10852   -h, --help       print this help, then exit
10853   -V, --version    print version number and configuration settings, then exit
10854   -q, --quiet      do not print progress messages
10855   -d, --debug      don't remove temporary files
10856       --recheck    update $as_me by reconfiguring in the same conditions
10857   --file=FILE[:TEMPLATE]
10858                    instantiate the configuration file FILE
10859   --header=FILE[:TEMPLATE]
10860                    instantiate the configuration header FILE
10861
10862 Configuration files:
10863 $config_files
10864
10865 Configuration headers:
10866 $config_headers
10867
10868 Report bugs to <bug-autoconf@gnu.org>."
10869
10870 _ACEOF
10871 cat >>$CONFIG_STATUS <<_ACEOF
10872 ac_cs_version="\\
10873 config.status
10874 configured by $0, generated by GNU Autoconf 2.61a,
10875   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10876
10877 Copyright (C) 2006 Free Software Foundation, Inc.
10878 This config.status script is free software; the Free Software Foundation
10879 gives unlimited permission to copy, distribute and modify it."
10880
10881 ac_pwd='$ac_pwd'
10882 srcdir='$srcdir'
10883 INSTALL='$INSTALL'
10884 test -n "\$AWK" || AWK=awk
10885 _ACEOF
10886
10887 cat >>$CONFIG_STATUS <<\_ACEOF
10888 # If no file are specified by the user, then we need to provide default
10889 # value.  By we need to know if files were specified by the user.
10890 ac_need_defaults=:
10891 while test $# != 0
10892 do
10893   case $1 in
10894   --*=*)
10895     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10896     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10897     ac_shift=:
10898     ;;
10899   *)
10900     ac_option=$1
10901     ac_optarg=$2
10902     ac_shift=shift
10903     ;;
10904   esac
10905
10906   case $ac_option in
10907   # Handling of the options.
10908   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10909     ac_cs_recheck=: ;;
10910   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10911     $as_echo "$ac_cs_version"; exit ;;
10912   --debug | --debu | --deb | --de | --d | -d )
10913     debug=: ;;
10914   --file | --fil | --fi | --f )
10915     $ac_shift
10916     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10917     ac_need_defaults=false;;
10918   --header | --heade | --head | --hea )
10919     $ac_shift
10920     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10921     ac_need_defaults=false;;
10922   --he | --h)
10923     # Conflict between --help and --header
10924     { $as_echo "$as_me: error: ambiguous option: $1
10925 Try \`$0 --help' for more information." >&2
10926    { (exit 1); exit 1; }; };;
10927   --help | --hel | -h )
10928     $as_echo "$ac_cs_usage"; exit ;;
10929   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10930   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10931     ac_cs_silent=: ;;
10932
10933   # This is an error.
10934   -*) { $as_echo "$as_me: error: unrecognized option: $1
10935 Try \`$0 --help' for more information." >&2
10936    { (exit 1); exit 1; }; } ;;
10937
10938   *) ac_config_targets="$ac_config_targets $1"
10939      ac_need_defaults=false ;;
10940
10941   esac
10942   shift
10943 done
10944
10945 ac_configure_extra_args=
10946
10947 if $ac_cs_silent; then
10948   exec 6>/dev/null
10949   ac_configure_extra_args="$ac_configure_extra_args --silent"
10950 fi
10951
10952 _ACEOF
10953 cat >>$CONFIG_STATUS <<_ACEOF
10954 if \$ac_cs_recheck; then
10955   set X '$SHELL' '$0'$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10956   shift
10957   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10958   CONFIG_SHELL='$SHELL'
10959   export CONFIG_SHELL
10960   exec "\$@"
10961 fi
10962
10963 _ACEOF
10964 cat >>$CONFIG_STATUS <<\_ACEOF
10965 exec 5>>config.log
10966 {
10967   echo
10968   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10969 ## Running $as_me. ##
10970 _ASBOX
10971   $as_echo "$ac_log"
10972 } >&5
10973
10974 _ACEOF
10975 cat >>$CONFIG_STATUS <<_ACEOF
10976 _ACEOF
10977
10978 cat >>$CONFIG_STATUS <<\_ACEOF
10979
10980 # Handling of arguments.
10981 for ac_config_target in $ac_config_targets
10982 do
10983   case $ac_config_target in
10984     "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
10985     "Makefile.aux") CONFIG_FILES="$CONFIG_FILES Makefile.aux:Makefile.in" ;;
10986     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.aux" ;;
10987
10988   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10989 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10990    { (exit 1); exit 1; }; };;
10991   esac
10992 done
10993
10994
10995 # If the user did not use the arguments to specify the items to instantiate,
10996 # then the envvar interface is used.  Set only those that are not.
10997 # We use the long form for the default assignment because of an extremely
10998 # bizarre bug on SunOS 4.1.3.
10999 if $ac_need_defaults; then
11000   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11001   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11002 fi
11003
11004 # Have a temporary directory for convenience.  Make it in the build tree
11005 # simply because there is no reason against having it here, and in addition,
11006 # creating and moving files from /tmp can sometimes cause problems.
11007 # Hook for its removal unless debugging.
11008 # Note that there is a small window in which the directory will not be cleaned:
11009 # after its creation but before its name has been assigned to `$tmp'.
11010 $debug ||
11011 {
11012   tmp=
11013   trap 'exit_status=$?
11014   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11015 ' 0
11016   trap '{ (exit 1); exit 1; }' 1 2 13 15
11017 }
11018 # Create a (secure) tmp directory for tmp files.
11019
11020 {
11021   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11022   test -n "$tmp" && test -d "$tmp"
11023 }  ||
11024 {
11025   tmp=./conf$$-$RANDOM
11026   (umask 077 && mkdir "$tmp")
11027 } ||
11028 {
11029    $as_echo "$me: cannot create a temporary directory in ." >&2
11030    { (exit 1); exit 1; }
11031 }
11032
11033 # Set up the scripts for CONFIG_FILES section.
11034 # No need to generate them if there are no CONFIG_FILES.
11035 # This happens for instance with `./config.status config.h'.
11036 if test -n "$CONFIG_FILES"; then
11037
11038
11039 echo 'BEGIN {' >"$tmp/subs.awk"
11040 _ACEOF
11041
11042
11043 {
11044   echo "cat >conf$$subs.awk <<_ACEOF"
11045   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/'
11046   echo "_ACEOF"
11047 } >conf$$subs.sh
11048 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11049 ac_delim='%!_!# '
11050 for ac_last_try in false false false false false :; do
11051   . ./conf$$subs.sh
11052
11053   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11054     break
11055   elif $ac_last_try; then
11056     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11057 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11058    { (exit 1); exit 1; }; }
11059   else
11060     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11061   fi
11062 done
11063 rm -f conf$$subs.sh
11064
11065 cat >>$CONFIG_STATUS <<_ACEOF
11066 cat >>"\$tmp/subs.awk" <<\CEOF
11067 _ACEOF
11068 sed -n '
11069 h
11070 s/^/S["/; s/!.*/"]=/
11071 p
11072 g
11073 s/^[^!]*!//
11074 :repl
11075 t repl
11076 s/'"$ac_delim"'$//
11077 t delim
11078 :nl
11079 h
11080 s/\(.\{148\}\).*/\1/
11081 t more1
11082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11083 p
11084 n
11085 b repl
11086 :more1
11087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11088 p
11089 g
11090 s/.\{148\}//
11091 t nl
11092 :delim
11093 h
11094 s/\(.\{148\}\).*/\1/
11095 t more2
11096 s/["\\]/\\&/g; s/^/"/; s/$/"/
11097 p
11098 b
11099 :more2
11100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11101 p
11102 g
11103 s/.\{148\}//
11104 t delim
11105 ' <conf$$subs.awk | sed '
11106 /^[^"]/{
11107   N
11108   s/\n//
11109 }
11110 ' >>$CONFIG_STATUS
11111 rm -f conf$$subs.awk
11112 cat >>$CONFIG_STATUS <<_ACEOF
11113 CEOF
11114 cat >>"\$tmp/subs.awk" <<CEOF
11115   for (key in S) S_is_set[key] = 1
11116   FS = "\a"
11117
11118 }
11119 {
11120   line = $ 0
11121   nfields = split(line, field, "@")
11122   substed = 0
11123   len = length(field[1])
11124   for (i = 2; i < nfields; i++) {
11125     key = field[i]
11126     keylen = length(key)
11127     if (S_is_set[key]) {
11128       value = S[key]
11129       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11130       len += length(value) + length(field[++i])
11131       substed = 1
11132     } else
11133       len += 1 + keylen
11134   }
11135
11136   print line
11137 }
11138
11139 CEOF
11140 _ACEOF
11141
11142 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11143 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11144 # trailing colons and then remove the whole line if VPATH becomes empty
11145 # (actually we leave an empty line to preserve line numbers).
11146 if test "x$srcdir" = x.; then
11147   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11148 s/:*\$(srcdir):*/:/
11149 s/:*\${srcdir}:*/:/
11150 s/:*@srcdir@:*/:/
11151 s/^\([^=]*=[     ]*\):*/\1/
11152 s/:*$//
11153 s/^[^=]*=[       ]*$//
11154 }'
11155 fi
11156
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158 fi # test -n "$CONFIG_FILES"
11159
11160
11161 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
11162 do
11163   case $ac_tag in
11164   :[FHLC]) ac_mode=$ac_tag; continue;;
11165   esac
11166   case $ac_mode$ac_tag in
11167   :[FHL]*:*);;
11168   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11169 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11170    { (exit 1); exit 1; }; };;
11171   :[FH]-) ac_tag=-:-;;
11172   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11173   esac
11174   ac_save_IFS=$IFS
11175   IFS=:
11176   set x $ac_tag
11177   IFS=$ac_save_IFS
11178   shift
11179   ac_file=$1
11180   shift
11181
11182   case $ac_mode in
11183   :L) ac_source=$1;;
11184   :[FH])
11185     ac_file_inputs=
11186     for ac_f
11187     do
11188       case $ac_f in
11189       -) ac_f="$tmp/stdin";;
11190       *) # Look for the file first in the build tree, then in the source tree
11191          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11192          # because $ac_f cannot contain `:'.
11193          test -f "$ac_f" ||
11194            case $ac_f in
11195            [\\/$]*) false;;
11196            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11197            esac ||
11198            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11199 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11200    { (exit 1); exit 1; }; };;
11201       esac
11202       ac_file_inputs="$ac_file_inputs $ac_f"
11203     done
11204
11205     # Let's still pretend it is `configure' which instantiates (i.e., don't
11206     # use $as_me), people would be surprised to read:
11207     #    /* config.h.  Generated by config.status.  */
11208     configure_input='Generated from '`
11209           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11210         `' by configure.'
11211     if test x"$ac_file" != x-; then
11212       configure_input="$ac_file.  $configure_input"
11213       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11214 $as_echo "$as_me: creating $ac_file" >&6;}
11215     fi
11216
11217     case $ac_tag in
11218     *:-:* | *:-) cat >"$tmp/stdin";;
11219     esac
11220     ;;
11221   esac
11222
11223   ac_dir=`$as_dirname -- "$ac_file" ||
11224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11225          X"$ac_file" : 'X\(//\)[^/]' \| \
11226          X"$ac_file" : 'X\(//\)$' \| \
11227          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11228 $as_echo X"$ac_file" |
11229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11230             s//\1/
11231             q
11232           }
11233           /^X\(\/\/\)[^/].*/{
11234             s//\1/
11235             q
11236           }
11237           /^X\(\/\/\)$/{
11238             s//\1/
11239             q
11240           }
11241           /^X\(\/\).*/{
11242             s//\1/
11243             q
11244           }
11245           s/.*/./; q'`
11246   { as_dir="$ac_dir"
11247   case $as_dir in #(
11248   -*) as_dir=./$as_dir;;
11249   esac
11250   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11251     as_dirs=
11252     while :; do
11253       case $as_dir in #(
11254       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11255       *) as_qdir=$as_dir;;
11256       esac
11257       as_dirs="'$as_qdir' $as_dirs"
11258       as_dir=`$as_dirname -- "$as_dir" ||
11259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11260          X"$as_dir" : 'X\(//\)[^/]' \| \
11261          X"$as_dir" : 'X\(//\)$' \| \
11262          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11263 $as_echo X"$as_dir" |
11264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11265             s//\1/
11266             q
11267           }
11268           /^X\(\/\/\)[^/].*/{
11269             s//\1/
11270             q
11271           }
11272           /^X\(\/\/\)$/{
11273             s//\1/
11274             q
11275           }
11276           /^X\(\/\).*/{
11277             s//\1/
11278             q
11279           }
11280           s/.*/./; q'`
11281       test -d "$as_dir" && break
11282     done
11283     test -z "$as_dirs" || eval "mkdir $as_dirs"
11284   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11285 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11286    { (exit 1); exit 1; }; }; }
11287   ac_builddir=.
11288
11289 case "$ac_dir" in
11290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11291 *)
11292   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
11293   # A ".." for each directory in $ac_dir_suffix.
11294   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11295   case $ac_top_builddir_sub in
11296   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11297   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11298   esac ;;
11299 esac
11300 ac_abs_top_builddir=$ac_pwd
11301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11302 # for backward compatibility:
11303 ac_top_builddir=$ac_top_build_prefix
11304
11305 case $srcdir in
11306   .)  # We are building in place.
11307     ac_srcdir=.
11308     ac_top_srcdir=$ac_top_builddir_sub
11309     ac_abs_top_srcdir=$ac_pwd ;;
11310   [\\/]* | ?:[\\/]* )  # Absolute name.
11311     ac_srcdir=$srcdir$ac_dir_suffix;
11312     ac_top_srcdir=$srcdir
11313     ac_abs_top_srcdir=$srcdir ;;
11314   *) # Relative name.
11315     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11316     ac_top_srcdir=$ac_top_build_prefix$srcdir
11317     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11318 esac
11319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11320
11321
11322   case $ac_mode in
11323   :F)
11324   #
11325   # CONFIG_FILE
11326   #
11327
11328   case $INSTALL in
11329   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11330   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11331   esac
11332 _ACEOF
11333
11334 cat >>$CONFIG_STATUS <<\_ACEOF
11335 # If the template does not know about datarootdir, expand it.
11336 # FIXME: This hack should be removed a few years after 2.60.
11337 ac_datarootdir_hack=; ac_datarootdir_seen=
11338
11339 case `sed -n '/datarootdir/ {
11340   p
11341   q
11342 }
11343 /@datadir@/p
11344 /@docdir@/p
11345 /@infodir@/p
11346 /@localedir@/p
11347 /@mandir@/p
11348 ' $ac_file_inputs` in
11349 *datarootdir*) ac_datarootdir_seen=yes;;
11350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11351   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11353 _ACEOF
11354 cat >>$CONFIG_STATUS <<_ACEOF
11355   ac_datarootdir_hack='
11356   s&@datadir@&$datadir&g
11357   s&@docdir@&$docdir&g
11358   s&@infodir@&$infodir&g
11359   s&@localedir@&$localedir&g
11360   s&@mandir@&$mandir&g
11361     s&\\\${datarootdir}&$datarootdir&g' ;;
11362 esac
11363 _ACEOF
11364
11365 # Neutralize VPATH when `$srcdir' = `.'.
11366 # Shell code in configure.ac might set extrasub.
11367 # FIXME: do we really want to maintain this feature?
11368 cat >>$CONFIG_STATUS <<_ACEOF
11369   sed "$ac_vpsub
11370 $extrasub
11371 _ACEOF
11372 cat >>$CONFIG_STATUS <<\_ACEOF
11373 :t
11374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11375 s&@configure_input@&$configure_input&;t t
11376 s&@top_builddir@&$ac_top_builddir_sub&;t t
11377 s&@srcdir@&$ac_srcdir&;t t
11378 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11379 s&@top_srcdir@&$ac_top_srcdir&;t t
11380 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11381 s&@builddir@&$ac_builddir&;t t
11382 s&@abs_builddir@&$ac_abs_builddir&;t t
11383 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11384 s&@INSTALL@&$ac_INSTALL&;t t
11385 $ac_datarootdir_hack
11386 " $ac_file_inputs | $AWK -f "$tmp/subs.awk" >$tmp/out
11387
11388 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11389   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11390   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11391   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11392 which seems to be undefined.  Please make sure it is defined." >&5
11393 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11394 which seems to be undefined.  Please make sure it is defined." >&2;}
11395
11396   rm -f "$tmp/stdin"
11397   case $ac_file in
11398   -) cat "$tmp/out"; rm -f "$tmp/out";;
11399   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11400   esac
11401  ;;
11402   :H)
11403   #
11404   # CONFIG_HEADER
11405   #
11406 _ACEOF
11407
11408 # Transform confdefs.h into a sed script `conftest.defines', that
11409 # substitutes the proper values into config.h.in to produce config.h.
11410 rm -f conftest.defines conftest.tail
11411 # First, append a space to every undef/define line, to ease matching.
11412 echo 's/$/ /' >conftest.defines
11413 # Then, protect against being on the right side of a sed subst, or in
11414 # an unquoted here document, in config.status.  If some macros were
11415 # called several times there might be several #defines for the same
11416 # symbol, which is useless.  But do not sort them, since the last
11417 # AC_DEFINE must be honored.
11418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11419 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11420 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11421 # PARAMS is the parameter list in the macro definition--in most cases, it's
11422 # just an empty string.
11423 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11424 ac_dB='\\)[      (].*,\\1define\\2'
11425 ac_dC=' '
11426 ac_dD=' ,'
11427
11428 uniq confdefs.h |
11429   sed -n '
11430         t rset
11431         :rset
11432         s/^[     ]*#[    ]*define[       ][      ]*//
11433         t ok
11434         d
11435         :ok
11436         s/[\\&,]/\\&/g
11437         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11438         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11439   ' >>conftest.defines
11440
11441 # Remove the space that was appended to ease matching.
11442 # Then replace #undef with comments.  This is necessary, for
11443 # example, in the case of _POSIX_SOURCE, which is predefined and required
11444 # on some systems where configure will not decide to define it.
11445 # (The regexp can be short, since the line contains either #define or #undef.)
11446 echo 's/ $//
11447 s,^[     #]*u.*,/* & */,' >>conftest.defines
11448
11449 # Break up conftest.defines:
11450 ac_max_sed_lines=50
11451
11452 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11453 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11454 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11455 # et cetera.
11456 ac_in='$ac_file_inputs'
11457 ac_out='"$tmp/out1"'
11458 ac_nxt='"$tmp/out2"'
11459
11460 while :
11461 do
11462   # Write a here document:
11463     cat >>$CONFIG_STATUS <<_ACEOF
11464     # First, check the format of the line:
11465     cat >"\$tmp/defines.sed" <<\\CEOF
11466 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11467 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11468 b
11469 :def
11470 _ACEOF
11471   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11472   echo 'CEOF
11473     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11474   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11475   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11476   grep . conftest.tail >/dev/null || break
11477   rm -f conftest.defines
11478   mv conftest.tail conftest.defines
11479 done
11480 rm -f conftest.defines conftest.tail
11481
11482 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11483 cat >>$CONFIG_STATUS <<\_ACEOF
11484   if test x"$ac_file" != x-; then
11485     $as_echo "/* $configure_input  */" >"$tmp/config.h"
11486     cat "$ac_result" >>"$tmp/config.h"
11487     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11488       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11489 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11490     else
11491       rm -f $ac_file
11492       mv "$tmp/config.h" $ac_file
11493     fi
11494   else
11495     $as_echo "/* $configure_input  */"
11496     cat "$ac_result"
11497   fi
11498   rm -f "$tmp/out12"
11499  ;;
11500
11501
11502   esac
11503
11504
11505   case $ac_file$ac_mode in
11506     "c-auto.h":H) date >stamp-auto ;;
11507     "Makefile.aux":F) # Discard the file just generated and first resolve kpse_include's
11508   kpse_input=`case Makefile.in in
11509   [\\/$]*) # Absolute
11510     test -f "Makefile.in" || { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
11511 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
11512    { (exit 1); exit 1; }; }
11513     echo "Makefile.in";;
11514   *) # Relative
11515     if test -f "Makefile.in"; then
11516       # Build tree
11517       echo "Makefile.in"
11518     elif test -f "$srcdir/Makefile.in"; then
11519       # Source tree
11520       echo "$srcdir/Makefile.in"
11521     else
11522       # /dev/null tree
11523       { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
11524 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
11525    { (exit 1); exit 1; }; }
11526     fi;;
11527   esac` || { (exit 1); exit 1; }
11528 # Replace lines of the form "kpse_include foo" with the contents of foo:
11529 # first, from the kpse_include lines construct a list of file names.
11530 # From that list, we construct a second list of those files that exist.
11531 # Then we construct a list of sed commands for including those files,
11532 # and a sed command that removes the kpse_include lines. We don't attempt
11533 # to read non-existent files because some (buggy) versions of sed choke
11534 # on this. Have to use sed because old (Ultrix, SunOs) awk does not support
11535 # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
11536 # Can't use only one -e and commands {dr foo} because foo has to be last.
11537 # Be careful, because the filename may contain /.
11538 # Be careful with whitespace; we need to use echo.
11539 kpse_file_substs=`sed -n '/^kpse_include/s%[    ]*\(.*\)%\1%p' "$kpse_input"`
11540 if test x"$kpse_file_substs" = x; then
11541   { $as_echo "$as_me:$LINENO: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
11542                without any \`kpse_include' directives" >&5
11543 $as_echo "$as_me: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
11544                without any \`kpse_include' directives" >&2;}
11545 fi
11546 # Create the sed command line ...
11547 # Input lines containing "@configure_input@" are output twice,
11548 # first with our modifications and then unmodified.
11549 kpse_substs="sed -e '/@configure_input@/ { h; \
11550   s,@configure_input@,Makefile.aux.  Generated from `echo Makefile.in |
11551   sed 's,.*/,,'` by configure.,; G }'"
11552 for kpse_inc in $kpse_file_substs; do
11553   kpse_read=`case $kpse_inc in
11554     [\\/$]*) # Absolute
11555       if test -f "$kpse_inc"; then
11556         echo "$kpse_inc"
11557       fi;;
11558     *) # Relative
11559       if test -f "$kpse_inc"; then
11560         # Build tree
11561         echo "$kpse_inc"
11562       elif test -f "$srcdir/$kpse_inc"; then
11563         # Source tree
11564         echo "$srcdir/$kpse_inc"
11565       fi;;
11566   esac`
11567   if test -n "$kpse_read"; then
11568     kpse_mung=`echo $kpse_inc | sed 's,/,%,g'`
11569     kpse_substs="$kpse_substs -e '/^kpse_include $kpse_mung$/r $kpse_read'"
11570   fi
11571 done
11572 # ... and fix the whitespace and escaped slashes.
11573 kpse_substs=`echo "$kpse_substs" | sed -e 's,%,\\\/,g' \
11574   -e 's/kpse_include /kpse_include[     ]*/g'`
11575 (eval $kpse_substs -e '/^kpse_include/d' "$kpse_input") > Makefile.aux
11576  ;;
11577
11578   esac
11579 done # for ac_tag
11580
11581
11582 { (exit 0); exit 0; }
11583 _ACEOF
11584 chmod +x $CONFIG_STATUS
11585 ac_clean_files=$ac_clean_files_save
11586
11587
11588 # configure is writing to config.log, and then calls config.status.
11589 # config.status does its own redirection, appending to config.log.
11590 # Unfortunately, on DOS this fails, as config.log is still kept open
11591 # by configure, so config.status won't be able to write to it; its
11592 # output is simply discarded.  So we exec the FD to /dev/null,
11593 # effectively closing config.log, so it can be properly (re)opened and
11594 # appended to by config.status.  When coming back to configure, we
11595 # need to make the FD available again.
11596 if test "$no_create" != yes; then
11597   ac_cs_success=:
11598   ac_config_status_args=
11599   test "$silent" = yes &&
11600     ac_config_status_args="$ac_config_status_args --quiet"
11601   exec 5>/dev/null
11602   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11603   exec 5>>config.log
11604   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11605   # would make configure fail if this is the last instruction.
11606   $ac_cs_success || { (exit 1); exit 1; }
11607 fi
11608