Modify library path(using full-path <TSAM-7896>)
[platform/core/multimedia/libmm-fileinfo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libmm-fileinfo 0.0.1.
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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME='libmm-fileinfo'
723 PACKAGE_TARNAME='libmm-fileinfo'
724 PACKAGE_VERSION='0.0.1'
725 PACKAGE_STRING='libmm-fileinfo 0.0.1'
726 PACKAGE_BUGREPORT=''
727
728 ac_unique_file="mm_file.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 INSTALL_PROGRAM
803 INSTALL_SCRIPT
804 INSTALL_DATA
805 am__isrc
806 CYGPATH_W
807 PACKAGE
808 VERSION
809 ACLOCAL
810 AUTOCONF
811 AUTOMAKE
812 AUTOHEADER
813 MAKEINFO
814 install_sh
815 STRIP
816 INSTALL_STRIP_PROGRAM
817 mkdir_p
818 AWK
819 SET_MAKE
820 am__leading_dot
821 AMTAR
822 am__tar
823 am__untar
824 CC
825 CFLAGS
826 LDFLAGS
827 CPPFLAGS
828 ac_ct_CC
829 EXEEXT
830 OBJEXT
831 DEPDIR
832 am__include
833 am__quote
834 AMDEP_TRUE
835 AMDEP_FALSE
836 AMDEPBACKSLASH
837 CCDEPMODE
838 am__fastdepCC_TRUE
839 am__fastdepCC_FALSE
840 LIBTOOL
841 build
842 build_cpu
843 build_vendor
844 build_os
845 host
846 host_cpu
847 host_vendor
848 host_os
849 SED
850 GREP
851 EGREP
852 FGREP
853 LD
854 DUMPBIN
855 ac_ct_DUMPBIN
856 NM
857 LN_S
858 AR
859 RANLIB
860 lt_ECHO
861 DSYMUTIL
862 NMEDIT
863 LIPO
864 OTOOL
865 OTOOL64
866 CPP
867 LIBOBJS
868 PKG_CONFIG
869 MMCOMMON_CFLAGS
870 MMCOMMON_LIBS
871 MMLOG_CFLAGS
872 MMLOG_LIBS
873 GLIB_CFLAGS
874 GLIB_LIBS
875 GTK_CFLAGS
876 GTK_LIBS
877 AVCODEC_CFLAGS
878 AVCODEC_LIBS
879 AVUTIL_CFLAGS
880 AVUTIL_LIBS
881 AVFORMAT_CFLAGS
882 AVFORMAT_LIBS
883 DRMSERVICE_CFLAGS
884 DRMSERVICE_LIBS
885 USE_DRM_TRUE
886 USE_DRM_FALSE
887 USE_TESTMODE_TRUE
888 USE_TESTMODE_FALSE
889 USE_DUMP_TRUE
890 USE_DUMP_FALSE
891 LTLIBOBJS'
892 ac_subst_files=''
893       ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CPP
902 PKG_CONFIG
903 MMCOMMON_CFLAGS
904 MMCOMMON_LIBS
905 MMLOG_CFLAGS
906 MMLOG_LIBS
907 GLIB_CFLAGS
908 GLIB_LIBS
909 GTK_CFLAGS
910 GTK_LIBS
911 AVCODEC_CFLAGS
912 AVCODEC_LIBS
913 AVUTIL_CFLAGS
914 AVUTIL_LIBS
915 AVFORMAT_CFLAGS
916 AVFORMAT_LIBS
917 DRMSERVICE_CFLAGS
918 DRMSERVICE_LIBS'
919
920
921 # Initialize some variables set by options.
922 ac_init_help=
923 ac_init_version=false
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
966
967 ac_prev=
968 ac_dashdash=
969 for ac_option
970 do
971   # If the previous option needs an argument, assign it.
972   if test -n "$ac_prev"; then
973     eval $ac_prev=\$ac_option
974     ac_prev=
975     continue
976   fi
977
978   case $ac_option in
979   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980   *)    ac_optarg=yes ;;
981   esac
982
983   # Accept the important Cygnus configure options, so we can diagnose typos.
984
985   case $ac_dashdash$ac_option in
986   --)
987     ac_dashdash=yes ;;
988
989   -bindir | --bindir | --bindi | --bind | --bin | --bi)
990     ac_prev=bindir ;;
991   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992     bindir=$ac_optarg ;;
993
994   -build | --build | --buil | --bui | --bu)
995     ac_prev=build_alias ;;
996   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997     build_alias=$ac_optarg ;;
998
999   -cache-file | --cache-file | --cache-fil | --cache-fi \
1000   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001     ac_prev=cache_file ;;
1002   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004     cache_file=$ac_optarg ;;
1005
1006   --config-cache | -C)
1007     cache_file=config.cache ;;
1008
1009   -datadir | --datadir | --datadi | --datad)
1010     ac_prev=datadir ;;
1011   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012     datadir=$ac_optarg ;;
1013
1014   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015   | --dataroo | --dataro | --datar)
1016     ac_prev=datarootdir ;;
1017   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019     datarootdir=$ac_optarg ;;
1020
1021   -disable-* | --disable-*)
1022     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028     eval enable_$ac_feature=no ;;
1029
1030   -docdir | --docdir | --docdi | --doc | --do)
1031     ac_prev=docdir ;;
1032   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033     docdir=$ac_optarg ;;
1034
1035   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036     ac_prev=dvidir ;;
1037   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038     dvidir=$ac_optarg ;;
1039
1040   -enable-* | --enable-*)
1041     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045    { (exit 1); exit 1; }; }
1046     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047     eval enable_$ac_feature=\$ac_optarg ;;
1048
1049   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051   | --exec | --exe | --ex)
1052     ac_prev=exec_prefix ;;
1053   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055   | --exec=* | --exe=* | --ex=*)
1056     exec_prefix=$ac_optarg ;;
1057
1058   -gas | --gas | --ga | --g)
1059     # Obsolete; use --with-gas.
1060     with_gas=yes ;;
1061
1062   -help | --help | --hel | --he | -h)
1063     ac_init_help=long ;;
1064   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065     ac_init_help=recursive ;;
1066   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067     ac_init_help=short ;;
1068
1069   -host | --host | --hos | --ho)
1070     ac_prev=host_alias ;;
1071   -host=* | --host=* | --hos=* | --ho=*)
1072     host_alias=$ac_optarg ;;
1073
1074   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075     ac_prev=htmldir ;;
1076   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077   | --ht=*)
1078     htmldir=$ac_optarg ;;
1079
1080   -includedir | --includedir | --includedi | --included | --include \
1081   | --includ | --inclu | --incl | --inc)
1082     ac_prev=includedir ;;
1083   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084   | --includ=* | --inclu=* | --incl=* | --inc=*)
1085     includedir=$ac_optarg ;;
1086
1087   -infodir | --infodir | --infodi | --infod | --info | --inf)
1088     ac_prev=infodir ;;
1089   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090     infodir=$ac_optarg ;;
1091
1092   -libdir | --libdir | --libdi | --libd)
1093     ac_prev=libdir ;;
1094   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095     libdir=$ac_optarg ;;
1096
1097   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098   | --libexe | --libex | --libe)
1099     ac_prev=libexecdir ;;
1100   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101   | --libexe=* | --libex=* | --libe=*)
1102     libexecdir=$ac_optarg ;;
1103
1104   -localedir | --localedir | --localedi | --localed | --locale)
1105     ac_prev=localedir ;;
1106   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107     localedir=$ac_optarg ;;
1108
1109   -localstatedir | --localstatedir | --localstatedi | --localstated \
1110   | --localstate | --localstat | --localsta | --localst | --locals)
1111     ac_prev=localstatedir ;;
1112   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114     localstatedir=$ac_optarg ;;
1115
1116   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117     ac_prev=mandir ;;
1118   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119     mandir=$ac_optarg ;;
1120
1121   -nfp | --nfp | --nf)
1122     # Obsolete; use --without-fp.
1123     with_fp=no ;;
1124
1125   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126   | --no-cr | --no-c | -n)
1127     no_create=yes ;;
1128
1129   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131     no_recursion=yes ;;
1132
1133   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135   | --oldin | --oldi | --old | --ol | --o)
1136     ac_prev=oldincludedir ;;
1137   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140     oldincludedir=$ac_optarg ;;
1141
1142   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143     ac_prev=prefix ;;
1144   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145     prefix=$ac_optarg ;;
1146
1147   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148   | --program-pre | --program-pr | --program-p)
1149     ac_prev=program_prefix ;;
1150   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152     program_prefix=$ac_optarg ;;
1153
1154   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155   | --program-suf | --program-su | --program-s)
1156     ac_prev=program_suffix ;;
1157   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159     program_suffix=$ac_optarg ;;
1160
1161   -program-transform-name | --program-transform-name \
1162   | --program-transform-nam | --program-transform-na \
1163   | --program-transform-n | --program-transform- \
1164   | --program-transform | --program-transfor \
1165   | --program-transfo | --program-transf \
1166   | --program-trans | --program-tran \
1167   | --progr-tra | --program-tr | --program-t)
1168     ac_prev=program_transform_name ;;
1169   -program-transform-name=* | --program-transform-name=* \
1170   | --program-transform-nam=* | --program-transform-na=* \
1171   | --program-transform-n=* | --program-transform-=* \
1172   | --program-transform=* | --program-transfor=* \
1173   | --program-transfo=* | --program-transf=* \
1174   | --program-trans=* | --program-tran=* \
1175   | --progr-tra=* | --program-tr=* | --program-t=*)
1176     program_transform_name=$ac_optarg ;;
1177
1178   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179     ac_prev=pdfdir ;;
1180   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181     pdfdir=$ac_optarg ;;
1182
1183   -psdir | --psdir | --psdi | --psd | --ps)
1184     ac_prev=psdir ;;
1185   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186     psdir=$ac_optarg ;;
1187
1188   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189   | -silent | --silent | --silen | --sile | --sil)
1190     silent=yes ;;
1191
1192   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193     ac_prev=sbindir ;;
1194   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195   | --sbi=* | --sb=*)
1196     sbindir=$ac_optarg ;;
1197
1198   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200   | --sharedst | --shareds | --shared | --share | --shar \
1201   | --sha | --sh)
1202     ac_prev=sharedstatedir ;;
1203   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206   | --sha=* | --sh=*)
1207     sharedstatedir=$ac_optarg ;;
1208
1209   -site | --site | --sit)
1210     ac_prev=site ;;
1211   -site=* | --site=* | --sit=*)
1212     site=$ac_optarg ;;
1213
1214   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215     ac_prev=srcdir ;;
1216   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217     srcdir=$ac_optarg ;;
1218
1219   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220   | --syscon | --sysco | --sysc | --sys | --sy)
1221     ac_prev=sysconfdir ;;
1222   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224     sysconfdir=$ac_optarg ;;
1225
1226   -target | --target | --targe | --targ | --tar | --ta | --t)
1227     ac_prev=target_alias ;;
1228   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229     target_alias=$ac_optarg ;;
1230
1231   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232     verbose=yes ;;
1233
1234   -version | --version | --versio | --versi | --vers | -V)
1235     ac_init_version=: ;;
1236
1237   -with-* | --with-*)
1238     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239     # Reject names that are not valid shell variable names.
1240     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       { echo "$as_me: error: invalid package name: $ac_package" >&2
1242    { (exit 1); exit 1; }; }
1243     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244     eval with_$ac_package=\$ac_optarg ;;
1245
1246   -without-* | --without-*)
1247     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       { echo "$as_me: error: invalid package name: $ac_package" >&2
1251    { (exit 1); exit 1; }; }
1252     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253     eval with_$ac_package=no ;;
1254
1255   --x)
1256     # Obsolete; use --with-x.
1257     with_x=yes ;;
1258
1259   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260   | --x-incl | --x-inc | --x-in | --x-i)
1261     ac_prev=x_includes ;;
1262   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264     x_includes=$ac_optarg ;;
1265
1266   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268     ac_prev=x_libraries ;;
1269   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271     x_libraries=$ac_optarg ;;
1272
1273   -*) { echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275    { (exit 1); exit 1; }; }
1276     ;;
1277
1278   *=*)
1279     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283    { (exit 1); exit 1; }; }
1284     eval $ac_envvar=\$ac_optarg
1285     export $ac_envvar ;;
1286
1287   *)
1288     # FIXME: should be removed in autoconf 3.0.
1289     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293     ;;
1294
1295   esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300   { echo "$as_me: error: missing argument to $ac_option" >&2
1301    { (exit 1); exit 1; }; }
1302 fi
1303
1304 # Be sure to have absolute directory names.
1305 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306                 datadir sysconfdir sharedstatedir localstatedir includedir \
1307                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308                 libdir localedir mandir
1309 do
1310   eval ac_val=\$$ac_var
1311   case $ac_val in
1312     [\\/$]* | ?:[\\/]* )  continue;;
1313     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314   esac
1315   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316    { (exit 1); exit 1; }; }
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328   if test "x$build_alias" = x; then
1329     cross_compiling=maybe
1330     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331     If a cross compiler is detected then cross compile mode will be used." >&2
1332   elif test "x$build_alias" != "x$host_alias"; then
1333     cross_compiling=yes
1334   fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346   { echo "$as_me: error: Working directory cannot be determined" >&2
1347    { (exit 1); exit 1; }; }
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349   { echo "$as_me: error: pwd does not report name of working directory" >&2
1350    { (exit 1); exit 1; }; }
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355   ac_srcdir_defaulted=yes
1356   # Try the directory containing this script, then the parent directory.
1357   ac_confdir=`$as_dirname -- "$0" ||
1358 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359          X"$0" : 'X\(//\)[^/]' \| \
1360          X"$0" : 'X\(//\)$' \| \
1361          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362 echo X"$0" |
1363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)[^/].*/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\/\)$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\).*/{
1376             s//\1/
1377             q
1378           }
1379           s/.*/./; q'`
1380   srcdir=$ac_confdir
1381   if test ! -r "$srcdir/$ac_unique_file"; then
1382     srcdir=..
1383   fi
1384 else
1385   ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390    { (exit 1); exit 1; }; }
1391 fi
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395    { (exit 1); exit 1; }; }
1396         pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399   srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_env_${ac_var}_value=\$${ac_var}
1410   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418   # Omit some internal or obsolete options to make the list less imposing.
1419   # This message is too long to be a string in the A/UX 3.1 sh.
1420   cat <<_ACEOF
1421 \`configure' configures libmm-fileinfo 0.0.1 to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431   -h, --help              display this help and exit
1432       --help=short        display options specific to this package
1433       --help=recursive    display the short help of all the included packages
1434   -V, --version           display version information and exit
1435   -q, --quiet, --silent   do not print \`checking...' messages
1436       --cache-file=FILE   cache test results in FILE [disabled]
1437   -C, --config-cache      alias for \`--cache-file=config.cache'
1438   -n, --no-create         do not create output files
1439       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442   --prefix=PREFIX         install architecture-independent files in PREFIX
1443                           [$ac_default_prefix]
1444   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445                           [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455   --bindir=DIR           user executables [EPREFIX/bin]
1456   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1457   --libexecdir=DIR       program executables [EPREFIX/libexec]
1458   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1459   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1460   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1461   --libdir=DIR           object code libraries [EPREFIX/lib]
1462   --includedir=DIR       C header files [PREFIX/include]
1463   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1464   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1465   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1466   --infodir=DIR          info documentation [DATAROOTDIR/info]
1467   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1468   --mandir=DIR           man documentation [DATAROOTDIR/man]
1469   --docdir=DIR           documentation root [DATAROOTDIR/doc/libmm-fileinfo]
1470   --htmldir=DIR          html documentation [DOCDIR]
1471   --dvidir=DIR           dvi documentation [DOCDIR]
1472   --pdfdir=DIR           pdf documentation [DOCDIR]
1473   --psdir=DIR            ps documentation [DOCDIR]
1474 _ACEOF
1475
1476   cat <<\_ACEOF
1477
1478 Program names:
1479   --program-prefix=PREFIX            prepend PREFIX to installed program names
1480   --program-suffix=SUFFIX            append SUFFIX to installed program names
1481   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
1483 System types:
1484   --build=BUILD     configure for building on BUILD [guessed]
1485   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486 _ACEOF
1487 fi
1488
1489 if test -n "$ac_init_help"; then
1490   case $ac_init_help in
1491      short | recursive ) echo "Configuration of libmm-fileinfo 0.0.1:";;
1492    esac
1493   cat <<\_ACEOF
1494
1495 Optional Features:
1496   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1497   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1498   --disable-dependency-tracking  speeds up one-time build
1499   --enable-dependency-tracking   do not reject slow dependency extractors
1500   --enable-shared[=PKGS]  build shared libraries [default=yes]
1501   --enable-static[=PKGS]  build static libraries [default=yes]
1502   --enable-fast-install[=PKGS]
1503                           optimize for fast installation [default=yes]
1504   --disable-libtool-lock  avoid locking (might break parallel builds)
1505   --enable-drm            using drm
1506   --enable-testmode       using testmode
1507   --enable-dump           using dump
1508
1509 Optional Packages:
1510   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512   --with-pic              try to use only PIC/non-PIC objects [default=use
1513                           both]
1514   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515
1516 Some influential environment variables:
1517   CC          C compiler command
1518   CFLAGS      C compiler flags
1519   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1520               nonstandard directory <lib dir>
1521   LIBS        libraries to pass to the linker, e.g. -l<library>
1522   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523               you have headers in a nonstandard directory <include dir>
1524   CPP         C preprocessor
1525   PKG_CONFIG  path to pkg-config utility
1526   MMCOMMON_CFLAGS
1527               C compiler flags for MMCOMMON, overriding pkg-config
1528   MMCOMMON_LIBS
1529               linker flags for MMCOMMON, overriding pkg-config
1530   MMLOG_CFLAGS
1531               C compiler flags for MMLOG, overriding pkg-config
1532   MMLOG_LIBS  linker flags for MMLOG, overriding pkg-config
1533   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1534   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1535   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1536   GTK_LIBS    linker flags for GTK, overriding pkg-config
1537   AVCODEC_CFLAGS
1538               C compiler flags for AVCODEC, overriding pkg-config
1539   AVCODEC_LIBS
1540               linker flags for AVCODEC, overriding pkg-config
1541   AVUTIL_CFLAGS
1542               C compiler flags for AVUTIL, overriding pkg-config
1543   AVUTIL_LIBS linker flags for AVUTIL, overriding pkg-config
1544   AVFORMAT_CFLAGS
1545               C compiler flags for AVFORMAT, overriding pkg-config
1546   AVFORMAT_LIBS
1547               linker flags for AVFORMAT, overriding pkg-config
1548   DRMSERVICE_CFLAGS
1549               C compiler flags for DRMSERVICE, overriding pkg-config
1550   DRMSERVICE_LIBS
1551               linker flags for DRMSERVICE, overriding pkg-config
1552
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1555
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" || continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 libmm-fileinfo configure 0.0.1
1617 generated by GNU Autoconf 2.61
1618
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1629
1630 It was created by libmm-fileinfo $as_me 0.0.1, which was
1631 generated by GNU Autoconf 2.61.  Invocation command line was
1632
1633   $ $0 $@
1634
1635 _ACEOF
1636 exec 5>>config.log
1637 {
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1642
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1651
1652 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1653 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1656 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1657 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1658 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1659
1660 _ASUNAME
1661
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1670
1671 } >&5
1672
1673 cat >&5 <<_ACEOF
1674
1675
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1679
1680 _ACEOF
1681
1682
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1693 do
1694   for ac_arg
1695   do
1696     case $ac_arg in
1697     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699     | -silent | --silent | --silen | --sile | --sil)
1700       continue ;;
1701     *\'*)
1702       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703     esac
1704     case $ac_pass in
1705     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706     2)
1707       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708       if test $ac_must_keep_next = true; then
1709         ac_must_keep_next=false # Got value, back to normal.
1710       else
1711         case $ac_arg in
1712           *=* | --config-cache | -C | -disable-* | --disable-* \
1713           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715           | -with-* | --with-* | -without-* | --without-* | --x)
1716             case "$ac_configure_args0 " in
1717               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718             esac
1719             ;;
1720           -* ) ac_must_keep_next=true ;;
1721         esac
1722       fi
1723       ac_configure_args="$ac_configure_args '$ac_arg'"
1724       ;;
1725     esac
1726   done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log.  We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737   # Save into config.log some information that might help in debugging.
1738   {
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746     echo
1747     # The following way of writing the cache mishandles newlines in values,
1748 (
1749   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750     eval ac_val=\$$ac_var
1751     case $ac_val in #(
1752     *${as_nl}*)
1753       case $ac_var in #(
1754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756       esac
1757       case $ac_var in #(
1758       _ | IFS | as_nl) ;; #(
1759       *) $as_unset $ac_var ;;
1760       esac ;;
1761     esac
1762   done
1763   (set) 2>&1 |
1764     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765     *${as_nl}ac_space=\ *)
1766       sed -n \
1767         "s/'\''/'\''\\\\'\'''\''/g;
1768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769       ;; #(
1770     *)
1771       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772       ;;
1773     esac |
1774     sort
1775 )
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783     echo
1784     for ac_var in $ac_subst_vars
1785     do
1786       eval ac_val=\$$ac_var
1787       case $ac_val in
1788       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789       esac
1790       echo "$ac_var='\''$ac_val'\''"
1791     done | sort
1792     echo
1793
1794     if test -n "$ac_subst_files"; then
1795       cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800       echo
1801       for ac_var in $ac_subst_files
1802       do
1803         eval ac_val=\$$ac_var
1804         case $ac_val in
1805         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806         esac
1807         echo "$ac_var='\''$ac_val'\''"
1808       done | sort
1809       echo
1810     fi
1811
1812     if test -s confdefs.h; then
1813       cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818       echo
1819       cat confdefs.h
1820       echo
1821     fi
1822     test "$ac_signal" != 0 &&
1823       echo "$as_me: caught signal $ac_signal"
1824     echo "$as_me: exit $exit_status"
1825   } >&5
1826   rm -f core *.core core.conftest.* &&
1827     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828     exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1863
1864
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868   set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 else
1872   set x "$ac_default_prefix/share/config.site" \
1873         "$ac_default_prefix/etc/config.site"
1874 fi
1875 shift
1876 for ac_site_file
1877 do
1878   if test -r "$ac_site_file"; then
1879     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881     sed 's/^/| /' "$ac_site_file" >&5
1882     . "$ac_site_file"
1883   fi
1884 done
1885
1886 if test -r "$cache_file"; then
1887   # Some versions of bash will fail to source /dev/null (special
1888   # files actually), so we avoid doing that.
1889   if test -f "$cache_file"; then
1890     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1892     case $cache_file in
1893       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894       *)                      . "./$cache_file";;
1895     esac
1896   fi
1897 else
1898   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1900   >$cache_file
1901 fi
1902
1903 # Check that the precious variables saved in the cache have kept the same
1904 # value.
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908   eval ac_new_set=\$ac_env_${ac_var}_set
1909   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910   eval ac_new_val=\$ac_env_${ac_var}_value
1911   case $ac_old_set,$ac_new_set in
1912     set,)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,set)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,);;
1921     *)
1922       if test "x$ac_old_val" != "x$ac_new_val"; then
1923         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1926 echo "$as_me:   former value:  $ac_old_val" >&2;}
1927         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1928 echo "$as_me:   current value: $ac_new_val" >&2;}
1929         ac_cache_corrupted=:
1930       fi;;
1931   esac
1932   # Pass precious variables to config.status.
1933   if test "$ac_new_set" = set; then
1934     case $ac_new_val in
1935     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936     *) ac_arg=$ac_var=$ac_new_val ;;
1937     esac
1938     case " $ac_configure_args " in
1939       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1940       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941     esac
1942   fi
1943 done
1944 if $ac_cache_corrupted; then
1945   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981
1982
1983
1984 ac_config_headers="$ac_config_headers config.h"
1985
1986 am__api_version='1.10'
1987
1988 ac_aux_dir=
1989 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1990   if test -f "$ac_dir/install-sh"; then
1991     ac_aux_dir=$ac_dir
1992     ac_install_sh="$ac_aux_dir/install-sh -c"
1993     break
1994   elif test -f "$ac_dir/install.sh"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/install.sh -c"
1997     break
1998   elif test -f "$ac_dir/shtool"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/shtool install -c"
2001     break
2002   fi
2003 done
2004 if test -z "$ac_aux_dir"; then
2005   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2006 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2007    { (exit 1); exit 1; }; }
2008 fi
2009
2010 # These three variables are undocumented and unsupported,
2011 # and are intended to be withdrawn in a future Autoconf release.
2012 # They can cause serious problems if a builder's source tree is in a directory
2013 # whose full name contains unusual characters.
2014 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2015 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2016 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2017
2018
2019 # Find a good install program.  We prefer a C program (faster),
2020 # so one script is as good as another.  But avoid the broken or
2021 # incompatible versions:
2022 # SysV /etc/install, /usr/sbin/install
2023 # SunOS /usr/etc/install
2024 # IRIX /sbin/install
2025 # AIX /bin/install
2026 # AmigaOS /C/install, which installs bootblocks on floppy discs
2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2030 # OS/2's system install, which has a completely different semantic
2031 # ./install, which can be erroneously created by make from ./install.sh.
2032 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2033 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2034 if test -z "$INSTALL"; then
2035 if test "${ac_cv_path_install+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   # Account for people who put trailing slashes in PATH elements.
2044 case $as_dir/ in
2045   ./ | .// | /cC/* | \
2046   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2047   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2048   /usr/ucb/* ) ;;
2049   *)
2050     # OSF1 and SCO ODT 3.0 have their own names for install.
2051     # Don't use installbsd from OSF since it installs stuff as root
2052     # by default.
2053     for ac_prog in ginstall scoinst install; do
2054       for ac_exec_ext in '' $ac_executable_extensions; do
2055         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2056           if test $ac_prog = install &&
2057             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2058             # AIX install.  It has an incompatible calling convention.
2059             :
2060           elif test $ac_prog = install &&
2061             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2062             # program-specific install script used by HP pwplus--don't use.
2063             :
2064           else
2065             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2066             break 3
2067           fi
2068         fi
2069       done
2070     done
2071     ;;
2072 esac
2073 done
2074 IFS=$as_save_IFS
2075
2076
2077 fi
2078   if test "${ac_cv_path_install+set}" = set; then
2079     INSTALL=$ac_cv_path_install
2080   else
2081     # As a last resort, use the slow shell script.  Don't cache a
2082     # value for INSTALL within a source directory, because that will
2083     # break other packages using the cache if that directory is
2084     # removed, or if the value is a relative name.
2085     INSTALL=$ac_install_sh
2086   fi
2087 fi
2088 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2089 echo "${ECHO_T}$INSTALL" >&6; }
2090
2091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2092 # It thinks the first close brace ends the variable substitution.
2093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2094
2095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2096
2097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2098
2099 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2100 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2101 # Just in case
2102 sleep 1
2103 echo timestamp > conftest.file
2104 # Do `set' in a subshell so we don't clobber the current shell's
2105 # arguments.  Must try -L first in case configure is actually a
2106 # symlink; some systems play weird games with the mod time of symlinks
2107 # (eg FreeBSD returns the mod time of the symlink's containing
2108 # directory).
2109 if (
2110    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2111    if test "$*" = "X"; then
2112       # -L didn't work.
2113       set X `ls -t $srcdir/configure conftest.file`
2114    fi
2115    rm -f conftest.file
2116    if test "$*" != "X $srcdir/configure conftest.file" \
2117       && test "$*" != "X conftest.file $srcdir/configure"; then
2118
2119       # If neither matched, then we have a broken ls.  This can happen
2120       # if, for instance, CONFIG_SHELL is bash and it inherits a
2121       # broken ls alias from the environment.  This has actually
2122       # happened.  Such a system could not be considered "sane".
2123       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2124 alias in your environment" >&5
2125 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2126 alias in your environment" >&2;}
2127    { (exit 1); exit 1; }; }
2128    fi
2129
2130    test "$2" = conftest.file
2131    )
2132 then
2133    # Ok.
2134    :
2135 else
2136    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2137 Check your system clock" >&5
2138 echo "$as_me: error: newly created file is older than distributed files!
2139 Check your system clock" >&2;}
2140    { (exit 1); exit 1; }; }
2141 fi
2142 { echo "$as_me:$LINENO: result: yes" >&5
2143 echo "${ECHO_T}yes" >&6; }
2144 test "$program_prefix" != NONE &&
2145   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2146 # Use a double $ so make ignores it.
2147 test "$program_suffix" != NONE &&
2148   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2149 # Double any \ or $.  echo might interpret backslashes.
2150 # By default was `s,x,x', remove it if useless.
2151 cat <<\_ACEOF >conftest.sed
2152 s/[\\$]/&&/g;s/;s,x,x,$//
2153 _ACEOF
2154 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2155 rm -f conftest.sed
2156
2157 # expand $ac_aux_dir to an absolute path
2158 am_aux_dir=`cd $ac_aux_dir && pwd`
2159
2160 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2161 # Use eval to expand $SHELL
2162 if eval "$MISSING --run true"; then
2163   am_missing_run="$MISSING --run "
2164 else
2165   am_missing_run=
2166   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2167 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2168 fi
2169
2170 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2171 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2172 if test -z "$MKDIR_P"; then
2173   if test "${ac_cv_path_mkdir+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_prog in mkdir gmkdir; do
2182          for ac_exec_ext in '' $ac_executable_extensions; do
2183            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2184            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2185              'mkdir (GNU coreutils) '* | \
2186              'mkdir (coreutils) '* | \
2187              'mkdir (fileutils) '4.1*)
2188                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2189                break 3;;
2190            esac
2191          done
2192        done
2193 done
2194 IFS=$as_save_IFS
2195
2196 fi
2197
2198   if test "${ac_cv_path_mkdir+set}" = set; then
2199     MKDIR_P="$ac_cv_path_mkdir -p"
2200   else
2201     # As a last resort, use the slow shell script.  Don't cache a
2202     # value for MKDIR_P within a source directory, because that will
2203     # break other packages using the cache if that directory is
2204     # removed, or if the value is a relative name.
2205     test -d ./--version && rmdir ./--version
2206     MKDIR_P="$ac_install_sh -d"
2207   fi
2208 fi
2209 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2210 echo "${ECHO_T}$MKDIR_P" >&6; }
2211
2212 mkdir_p="$MKDIR_P"
2213 case $mkdir_p in
2214   [\\/$]* | ?:[\\/]*) ;;
2215   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2216 esac
2217
2218 for ac_prog in gawk mawk nawk awk
2219 do
2220   # Extract the first word of "$ac_prog", so it can be a program name with args.
2221 set dummy $ac_prog; ac_word=$2
2222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2224 if test "${ac_cv_prog_AWK+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   if test -n "$AWK"; then
2228   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2237     ac_cv_prog_AWK="$ac_prog"
2238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243 IFS=$as_save_IFS
2244
2245 fi
2246 fi
2247 AWK=$ac_cv_prog_AWK
2248 if test -n "$AWK"; then
2249   { echo "$as_me:$LINENO: result: $AWK" >&5
2250 echo "${ECHO_T}$AWK" >&6; }
2251 else
2252   { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2254 fi
2255
2256
2257   test -n "$AWK" && break
2258 done
2259
2260 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2261 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2262 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2263 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   cat >conftest.make <<\_ACEOF
2267 SHELL = /bin/sh
2268 all:
2269         @echo '@@@%%%=$(MAKE)=@@@%%%'
2270 _ACEOF
2271 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2272 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2273   *@@@%%%=?*=@@@%%%*)
2274     eval ac_cv_prog_make_${ac_make}_set=yes;;
2275   *)
2276     eval ac_cv_prog_make_${ac_make}_set=no;;
2277 esac
2278 rm -f conftest.make
2279 fi
2280 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2281   { echo "$as_me:$LINENO: result: yes" >&5
2282 echo "${ECHO_T}yes" >&6; }
2283   SET_MAKE=
2284 else
2285   { echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6; }
2287   SET_MAKE="MAKE=${MAKE-make}"
2288 fi
2289
2290 rm -rf .tst 2>/dev/null
2291 mkdir .tst 2>/dev/null
2292 if test -d .tst; then
2293   am__leading_dot=.
2294 else
2295   am__leading_dot=_
2296 fi
2297 rmdir .tst 2>/dev/null
2298
2299 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2300   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2301   # is not polluted with repeated "-I."
2302   am__isrc=' -I$(srcdir)'
2303   # test to see if srcdir already configured
2304   if test -f $srcdir/config.status; then
2305     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2306 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2307    { (exit 1); exit 1; }; }
2308   fi
2309 fi
2310
2311 # test whether we have cygpath
2312 if test -z "$CYGPATH_W"; then
2313   if (cygpath --version) >/dev/null 2>/dev/null; then
2314     CYGPATH_W='cygpath -w'
2315   else
2316     CYGPATH_W=echo
2317   fi
2318 fi
2319
2320
2321 # Define the identity of the package.
2322  PACKAGE='libmm-fileinfo'
2323  VERSION='0.0.1'
2324
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE "$PACKAGE"
2328 _ACEOF
2329
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define VERSION "$VERSION"
2333 _ACEOF
2334
2335 # Some tools Automake needs.
2336
2337 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2338
2339
2340 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2341
2342
2343 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2344
2345
2346 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2347
2348
2349 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2350
2351 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2352
2353 # Installed binaries are usually stripped using `strip' when the user
2354 # run `make install-strip'.  However `strip' might not be the right
2355 # tool to use in cross-compilation environments, therefore Automake
2356 # will honor the `STRIP' environment variable to overrule this program.
2357 if test "$cross_compiling" != no; then
2358   if test -n "$ac_tool_prefix"; then
2359   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}strip; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_STRIP+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   if test -n "$STRIP"; then
2367   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372   IFS=$as_save_IFS
2373   test -z "$as_dir" && as_dir=.
2374   for ac_exec_ext in '' $ac_executable_extensions; do
2375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378     break 2
2379   fi
2380 done
2381 done
2382 IFS=$as_save_IFS
2383
2384 fi
2385 fi
2386 STRIP=$ac_cv_prog_STRIP
2387 if test -n "$STRIP"; then
2388   { echo "$as_me:$LINENO: result: $STRIP" >&5
2389 echo "${ECHO_T}$STRIP" >&6; }
2390 else
2391   { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$ac_cv_prog_STRIP"; then
2398   ac_ct_STRIP=$STRIP
2399   # Extract the first word of "strip", so it can be a program name with args.
2400 set dummy strip; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$ac_ct_STRIP"; then
2407   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416     ac_cv_prog_ac_ct_STRIP="strip"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2427 if test -n "$ac_ct_STRIP"; then
2428   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2429 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2430 else
2431   { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2433 fi
2434
2435   if test "x$ac_ct_STRIP" = x; then
2436     STRIP=":"
2437   else
2438     case $cross_compiling:$ac_tool_warned in
2439 yes:)
2440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet.  If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet.  If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2447 esac
2448     STRIP=$ac_ct_STRIP
2449   fi
2450 else
2451   STRIP="$ac_cv_prog_STRIP"
2452 fi
2453
2454 fi
2455 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2456
2457 # We need awk for the "check" target.  The system "awk" is bad on
2458 # some platforms.
2459 # Always define AMTAR for backward compatibility.
2460
2461 AMTAR=${AMTAR-"${am_missing_run}tar"}
2462
2463 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2464
2465
2466
2467
2468
2469
2470
2471 # Checks for programs.
2472 ac_ext=c
2473 ac_cpp='$CPP $CPPFLAGS'
2474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 if test -n "$ac_tool_prefix"; then
2478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CC"; then
2486   ac_cv_prog_CC="$CC" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 CC=$ac_cv_prog_CC
2506 if test -n "$CC"; then
2507   { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514
2515 fi
2516 if test -z "$ac_cv_prog_CC"; then
2517   ac_ct_CC=$CC
2518   # Extract the first word of "gcc", so it can be a program name with args.
2519 set dummy gcc; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   if test -n "$ac_ct_CC"; then
2526   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533   for ac_exec_ext in '' $ac_executable_extensions; do
2534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535     ac_cv_prog_ac_ct_CC="gcc"
2536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2546 if test -n "$ac_ct_CC"; then
2547   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2548 echo "${ECHO_T}$ac_ct_CC" >&6; }
2549 else
2550   { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2552 fi
2553
2554   if test "x$ac_ct_CC" = x; then
2555     CC=""
2556   else
2557     case $cross_compiling:$ac_tool_warned in
2558 yes:)
2559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet.  If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&5
2562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet.  If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567     CC=$ac_ct_CC
2568   fi
2569 else
2570   CC="$ac_cv_prog_CC"
2571 fi
2572
2573 if test -z "$CC"; then
2574           if test -n "$ac_tool_prefix"; then
2575     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}cc; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_CC+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CC"; then
2583   ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590   for ac_exec_ext in '' $ac_executable_extensions; do
2591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592     ac_cv_prog_CC="${ac_tool_prefix}cc"
2593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604   { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2606 else
2607   { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2609 fi
2610
2611
2612   fi
2613 fi
2614 if test -z "$CC"; then
2615   # Extract the first word of "cc", so it can be a program name with args.
2616 set dummy cc; ac_word=$2
2617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_CC+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   if test -n "$CC"; then
2623   ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625   ac_prog_rejected=no
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631   for ac_exec_ext in '' $ac_executable_extensions; do
2632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2634        ac_prog_rejected=yes
2635        continue
2636      fi
2637     ac_cv_prog_CC="cc"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 if test $ac_prog_rejected = yes; then
2646   # We found a bogon in the path, so make sure we never use it.
2647   set dummy $ac_cv_prog_CC
2648   shift
2649   if test $# != 0; then
2650     # We chose a different compiler from the bogus one.
2651     # However, it has the same basename, so the bogon will be chosen
2652     # first if we set CC to just the basename; use the full file name.
2653     shift
2654     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2655   fi
2656 fi
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661   { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$CC"; then
2671   if test -n "$ac_tool_prefix"; then
2672   for ac_prog in cl.exe
2673   do
2674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_CC+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$CC"; then
2682   ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689   for ac_exec_ext in '' $ac_executable_extensions; do
2690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703   { echo "$as_me:$LINENO: result: $CC" >&5
2704 echo "${ECHO_T}$CC" >&6; }
2705 else
2706   { echo "$as_me:$LINENO: result: no" >&5
2707 echo "${ECHO_T}no" >&6; }
2708 fi
2709
2710
2711     test -n "$CC" && break
2712   done
2713 fi
2714 if test -z "$CC"; then
2715   ac_ct_CC=$CC
2716   for ac_prog in cl.exe
2717 do
2718   # Extract the first word of "$ac_prog", so it can be a program name with args.
2719 set dummy $ac_prog; ac_word=$2
2720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2723   echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725   if test -n "$ac_ct_CC"; then
2726   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733   for ac_exec_ext in '' $ac_executable_extensions; do
2734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735     ac_cv_prog_ac_ct_CC="$ac_prog"
2736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737     break 2
2738   fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2748 echo "${ECHO_T}$ac_ct_CC" >&6; }
2749 else
2750   { echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6; }
2752 fi
2753
2754
2755   test -n "$ac_ct_CC" && break
2756 done
2757
2758   if test "x$ac_ct_CC" = x; then
2759     CC=""
2760   else
2761     case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2764 whose name does not start with the host triplet.  If you think this
2765 configuration is useful to you, please write to autoconf@gnu.org." >&5
2766 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2767 whose name does not start with the host triplet.  If you think this
2768 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2769 ac_tool_warned=yes ;;
2770 esac
2771     CC=$ac_ct_CC
2772   fi
2773 fi
2774
2775 fi
2776
2777
2778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: no acceptable C compiler found in \$PATH
2781 See \`config.log' for more details." >&2;}
2782    { (exit 1); exit 1; }; }
2783
2784 # Provide some information about the compiler.
2785 echo "$as_me:$LINENO: checking for C compiler version" >&5
2786 ac_compiler=`set X $ac_compile; echo $2`
2787 { (ac_try="$ac_compiler --version >&5"
2788 case "(($ac_try" in
2789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790   *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793   (eval "$ac_compiler --version >&5") 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }
2797 { (ac_try="$ac_compiler -v >&5"
2798 case "(($ac_try" in
2799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800   *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803   (eval "$ac_compiler -v >&5") 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); }
2807 { (ac_try="$ac_compiler -V >&5"
2808 case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_compiler -V >&5") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }
2817
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 ac_clean_files_save=$ac_clean_files
2834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2835 # Try to create an executable without -o first, disregard a.out.
2836 # It will help us diagnose broken compilers, and finding out an intuition
2837 # of exeext.
2838 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2839 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2841 #
2842 # List of possible output files, starting from the most likely.
2843 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2844 # only as a last resort.  b.out is created by i960 compilers.
2845 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2846 #
2847 # The IRIX 6 linker writes into existing files which may not be
2848 # executable, retaining their permissions.  Remove them first so a
2849 # subsequent execution test works.
2850 ac_rmfiles=
2851 for ac_file in $ac_files
2852 do
2853   case $ac_file in
2854     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2855     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2856   esac
2857 done
2858 rm -f $ac_rmfiles
2859
2860 if { (ac_try="$ac_link_default"
2861 case "(($ac_try" in
2862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863   *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866   (eval "$ac_link_default") 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; then
2870   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2871 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2872 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2873 # so that the user can short-circuit this test for compilers unknown to
2874 # Autoconf.
2875 for ac_file in $ac_files ''
2876 do
2877   test -f "$ac_file" || continue
2878   case $ac_file in
2879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2880         ;;
2881     [ab].out )
2882         # We found the default executable, but exeext='' is most
2883         # certainly right.
2884         break;;
2885     *.* )
2886         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2887         then :; else
2888            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889         fi
2890         # We set ac_cv_exeext here because the later test for it is not
2891         # safe: cross compilers may not add the suffix if given an `-o'
2892         # argument, so we may need to know it at that point already.
2893         # Even if this section looks crufty: it has the advantage of
2894         # actually working.
2895         break;;
2896     * )
2897         break;;
2898   esac
2899 done
2900 test "$ac_cv_exeext" = no && ac_cv_exeext=
2901
2902 else
2903   ac_file=''
2904 fi
2905
2906 { echo "$as_me:$LINENO: result: $ac_file" >&5
2907 echo "${ECHO_T}$ac_file" >&6; }
2908 if test -z "$ac_file"; then
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2913 See \`config.log' for more details." >&5
2914 echo "$as_me: error: C compiler cannot create executables
2915 See \`config.log' for more details." >&2;}
2916    { (exit 77); exit 77; }; }
2917 fi
2918
2919 ac_exeext=$ac_cv_exeext
2920
2921 # Check that the compiler produces executables we can run.  If not, either
2922 # the compiler is broken, or we cross compile.
2923 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2924 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2925 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2926 # If not cross compiling, check that we can run a simple program.
2927 if test "$cross_compiling" != yes; then
2928   if { ac_try='./$ac_file'
2929   { (case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_try") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938     cross_compiling=no
2939   else
2940     if test "$cross_compiling" = maybe; then
2941         cross_compiling=yes
2942     else
2943         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2944 If you meant to cross compile, use \`--host'.
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: cannot run C compiled programs.
2947 If you meant to cross compile, use \`--host'.
2948 See \`config.log' for more details." >&2;}
2949    { (exit 1); exit 1; }; }
2950     fi
2951   fi
2952 fi
2953 { echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6; }
2955
2956 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2957 ac_clean_files=$ac_clean_files_save
2958 # Check that the compiler produces executables we can run.  If not, either
2959 # the compiler is broken, or we cross compile.
2960 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2961 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2962 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2963 echo "${ECHO_T}$cross_compiling" >&6; }
2964
2965 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2966 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2967 if { (ac_try="$ac_link"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_link") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; then
2977   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2978 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2979 # work properly (i.e., refer to `conftest.exe'), while it won't with
2980 # `rm'.
2981 for ac_file in conftest.exe conftest conftest.*; do
2982   test -f "$ac_file" || continue
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2985     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2986           break;;
2987     * ) break;;
2988   esac
2989 done
2990 else
2991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2994 See \`config.log' for more details." >&2;}
2995    { (exit 1); exit 1; }; }
2996 fi
2997
2998 rm -f conftest$ac_cv_exeext
2999 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3000 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3001
3002 rm -f conftest.$ac_ext
3003 EXEEXT=$ac_cv_exeext
3004 ac_exeext=$EXEEXT
3005 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3007 if test "${ac_cv_objext+set}" = set; then
3008   echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.o conftest.obj
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>&5
3033   ac_status=$?
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }; then
3036   for ac_file in conftest.o conftest.obj conftest.*; do
3037   test -f "$ac_file" || continue;
3038   case $ac_file in
3039     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3040     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3041        break;;
3042   esac
3043 done
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3051 See \`config.log' for more details." >&2;}
3052    { (exit 1); exit 1; }; }
3053 fi
3054
3055 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3056 fi
3057 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3058 echo "${ECHO_T}$ac_cv_objext" >&6; }
3059 OBJEXT=$ac_cv_objext
3060 ac_objext=$OBJEXT
3061 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3062 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3063 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3064   echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066   cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072
3073 int
3074 main ()
3075 {
3076 #ifndef __GNUC__
3077        choke me
3078 #endif
3079
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_compile") 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } && {
3098          test -z "$ac_c_werror_flag" ||
3099          test ! -s conftest.err
3100        } && test -s conftest.$ac_objext; then
3101   ac_compiler_gnu=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106         ac_compiler_gnu=no
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3111
3112 fi
3113 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3115 GCC=`test $ac_compiler_gnu = yes && echo yes`
3116 ac_test_CFLAGS=${CFLAGS+set}
3117 ac_save_CFLAGS=$CFLAGS
3118 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_cc_g+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   ac_save_c_werror_flag=$ac_c_werror_flag
3124    ac_c_werror_flag=yes
3125    ac_cv_prog_cc_g=no
3126    CFLAGS="-g"
3127    cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h.  */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h.  */
3133
3134 int
3135 main ()
3136 {
3137
3138   ;
3139   return 0;
3140 }
3141 _ACEOF
3142 rm -f conftest.$ac_objext
3143 if { (ac_try="$ac_compile"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_compile") 2>conftest.er1
3150   ac_status=$?
3151   grep -v '^ *+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } && {
3156          test -z "$ac_c_werror_flag" ||
3157          test ! -s conftest.err
3158        } && test -s conftest.$ac_objext; then
3159   ac_cv_prog_cc_g=yes
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164         CFLAGS=""
3165       cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compile") 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } && {
3194          test -z "$ac_c_werror_flag" ||
3195          test ! -s conftest.err
3196        } && test -s conftest.$ac_objext; then
3197   :
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202         ac_c_werror_flag=$ac_save_c_werror_flag
3203          CFLAGS="-g"
3204          cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_compile") 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } && {
3233          test -z "$ac_c_werror_flag" ||
3234          test ! -s conftest.err
3235        } && test -s conftest.$ac_objext; then
3236   ac_cv_prog_cc_g=yes
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241
3242 fi
3243
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 fi
3246
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251    ac_c_werror_flag=$ac_save_c_werror_flag
3252 fi
3253 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3254 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3255 if test "$ac_test_CFLAGS" = set; then
3256   CFLAGS=$ac_save_CFLAGS
3257 elif test $ac_cv_prog_cc_g = yes; then
3258   if test "$GCC" = yes; then
3259     CFLAGS="-g -O2"
3260   else
3261     CFLAGS="-g"
3262   fi
3263 else
3264   if test "$GCC" = yes; then
3265     CFLAGS="-O2"
3266   else
3267     CFLAGS=
3268   fi
3269 fi
3270 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3271 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_cc_c89+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   ac_cv_prog_cc_c89=no
3276 ac_save_CC=$CC
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283 #include <stdarg.h>
3284 #include <stdio.h>
3285 #include <sys/types.h>
3286 #include <sys/stat.h>
3287 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3288 struct buf { int x; };
3289 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290 static char *e (p, i)
3291      char **p;
3292      int i;
3293 {
3294   return p[i];
3295 }
3296 static char *f (char * (*g) (char **, int), char **p, ...)
3297 {
3298   char *s;
3299   va_list v;
3300   va_start (v,p);
3301   s = g (p, va_arg (v,int));
3302   va_end (v);
3303   return s;
3304 }
3305
3306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3307    function prototypes and stuff, but not '\xHH' hex character constants.
3308    These don't provoke an error unfortunately, instead are silently treated
3309    as 'x'.  The following induces an error, until -std is added to get
3310    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3311    array size at least.  It's necessary to write '\x00'==0 to get something
3312    that's true only with -std.  */
3313 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314
3315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316    inside strings and character constants.  */
3317 #define FOO(x) 'x'
3318 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319
3320 int test (int i, double x);
3321 struct s1 {int (*f) (int a);};
3322 struct s2 {int (*f) (double a);};
3323 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 int argc;
3325 char **argv;
3326 int
3327 main ()
3328 {
3329 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336 do
3337   CC="$ac_save_CC $ac_arg"
3338   rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3340 case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345   (eval "$ac_compile") 2>conftest.er1
3346   ac_status=$?
3347   grep -v '^ *+' conftest.er1 >conftest.err
3348   rm -f conftest.er1
3349   cat conftest.err >&5
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } && {
3352          test -z "$ac_c_werror_flag" ||
3353          test ! -s conftest.err
3354        } && test -s conftest.$ac_objext; then
3355   ac_cv_prog_cc_c89=$ac_arg
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361 fi
3362
3363 rm -f core conftest.err conftest.$ac_objext
3364   test "x$ac_cv_prog_cc_c89" != "xno" && break
3365 done
3366 rm -f conftest.$ac_ext
3367 CC=$ac_save_CC
3368
3369 fi
3370 # AC_CACHE_VAL
3371 case "x$ac_cv_prog_cc_c89" in
3372   x)
3373     { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3375   xno)
3376     { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3378   *)
3379     CC="$CC $ac_cv_prog_cc_c89"
3380     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 esac
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 DEPDIR="${am__leading_dot}deps"
3391
3392 ac_config_commands="$ac_config_commands depfiles"
3393
3394
3395 am_make=${MAKE-make}
3396 cat > confinc << 'END'
3397 am__doit:
3398         @echo done
3399 .PHONY: am__doit
3400 END
3401 # If we don't find an include directive, just comment out the code.
3402 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3403 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3404 am__include="#"
3405 am__quote=
3406 _am_result=none
3407 # First try GNU make style include.
3408 echo "include confinc" > confmf
3409 # We grep out `Entering directory' and `Leaving directory'
3410 # messages which can occur if `w' ends up in MAKEFLAGS.
3411 # In particular we don't look at `^make:' because GNU make might
3412 # be invoked under some other name (usually "gmake"), in which
3413 # case it prints its new name instead of `make'.
3414 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3415    am__include=include
3416    am__quote=
3417    _am_result=GNU
3418 fi
3419 # Now try BSD make style include.
3420 if test "$am__include" = "#"; then
3421    echo '.include "confinc"' > confmf
3422    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3423       am__include=.include
3424       am__quote="\""
3425       _am_result=BSD
3426    fi
3427 fi
3428
3429
3430 { echo "$as_me:$LINENO: result: $_am_result" >&5
3431 echo "${ECHO_T}$_am_result" >&6; }
3432 rm -f confinc confmf
3433
3434 # Check whether --enable-dependency-tracking was given.
3435 if test "${enable_dependency_tracking+set}" = set; then
3436   enableval=$enable_dependency_tracking;
3437 fi
3438
3439 if test "x$enable_dependency_tracking" != xno; then
3440   am_depcomp="$ac_aux_dir/depcomp"
3441   AMDEPBACKSLASH='\'
3442 fi
3443  if test "x$enable_dependency_tracking" != xno; then
3444   AMDEP_TRUE=
3445   AMDEP_FALSE='#'
3446 else
3447   AMDEP_TRUE='#'
3448   AMDEP_FALSE=
3449 fi
3450
3451
3452
3453 depcc="$CC"   am_compiler_list=
3454
3455 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3456 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3457 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3458   echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3461   # We make a subdir and do the tests there.  Otherwise we can end up
3462   # making bogus files that we don't know about and never remove.  For
3463   # instance it was reported that on HP-UX the gcc test will end up
3464   # making a dummy file named `D' -- because `-MD' means `put the output
3465   # in D'.
3466   mkdir conftest.dir
3467   # Copy depcomp to subdir because otherwise we won't find it if we're
3468   # using a relative directory.
3469   cp "$am_depcomp" conftest.dir
3470   cd conftest.dir
3471   # We will build objects and dependencies in a subdirectory because
3472   # it helps to detect inapplicable dependency modes.  For instance
3473   # both Tru64's cc and ICC support -MD to output dependencies as a
3474   # side effect of compilation, but ICC will put the dependencies in
3475   # the current directory while Tru64 will put them in the object
3476   # directory.
3477   mkdir sub
3478
3479   am_cv_CC_dependencies_compiler_type=none
3480   if test "$am_compiler_list" = ""; then
3481      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3482   fi
3483   for depmode in $am_compiler_list; do
3484     # Setup a source with many dependencies, because some compilers
3485     # like to wrap large dependency lists on column 80 (with \), and
3486     # we should not choose a depcomp mode which is confused by this.
3487     #
3488     # We need to recreate these files for each test, as the compiler may
3489     # overwrite some of them when testing with obscure command lines.
3490     # This happens at least with the AIX C compiler.
3491     : > sub/conftest.c
3492     for i in 1 2 3 4 5 6; do
3493       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3494       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3495       # Solaris 8's {/usr,}/bin/sh.
3496       touch sub/conftst$i.h
3497     done
3498     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3499
3500     case $depmode in
3501     nosideeffect)
3502       # after this tag, mechanisms are not by side-effect, so they'll
3503       # only be used when explicitly requested
3504       if test "x$enable_dependency_tracking" = xyes; then
3505         continue
3506       else
3507         break
3508       fi
3509       ;;
3510     none) break ;;
3511     esac
3512     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3513     # mode.  It turns out that the SunPro C++ compiler does not properly
3514     # handle `-M -o', and we need to detect this.
3515     if depmode=$depmode \
3516        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3517        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3518        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3519          >/dev/null 2>conftest.err &&
3520        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3521        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3522        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3523        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3524       # icc doesn't choke on unknown options, it will just issue warnings
3525       # or remarks (even with -Werror).  So we grep stderr for any message
3526       # that says an option was ignored or not supported.
3527       # When given -MP, icc 7.0 and 7.1 complain thusly:
3528       #   icc: Command line warning: ignoring option '-M'; no argument required
3529       # The diagnosis changed in icc 8.0:
3530       #   icc: Command line remark: option '-MP' not supported
3531       if (grep 'ignoring option' conftest.err ||
3532           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3533         am_cv_CC_dependencies_compiler_type=$depmode
3534         break
3535       fi
3536     fi
3537   done
3538
3539   cd ..
3540   rm -rf conftest.dir
3541 else
3542   am_cv_CC_dependencies_compiler_type=none
3543 fi
3544
3545 fi
3546 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3547 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3549
3550  if
3551   test "x$enable_dependency_tracking" != xno \
3552   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3553   am__fastdepCC_TRUE=
3554   am__fastdepCC_FALSE='#'
3555 else
3556   am__fastdepCC_TRUE='#'
3557   am__fastdepCC_FALSE=
3558 fi
3559
3560
3561 case `pwd` in
3562   *\ * | *\     *)
3563     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3564 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3565 esac
3566
3567
3568
3569 macro_version='2.2.4'
3570 macro_revision='1.2976'
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584 ltmain="$ac_aux_dir/ltmain.sh"
3585
3586 # Make sure we can run config.sub.
3587 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3588   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3589 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3590    { (exit 1); exit 1; }; }
3591
3592 { echo "$as_me:$LINENO: checking build system type" >&5
3593 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_build+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   ac_build_alias=$build_alias
3598 test "x$ac_build_alias" = x &&
3599   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3600 test "x$ac_build_alias" = x &&
3601   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3602 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3603    { (exit 1); exit 1; }; }
3604 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3605   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3606 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3607    { (exit 1); exit 1; }; }
3608
3609 fi
3610 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3611 echo "${ECHO_T}$ac_cv_build" >&6; }
3612 case $ac_cv_build in
3613 *-*-*) ;;
3614 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3615 echo "$as_me: error: invalid value of canonical build" >&2;}
3616    { (exit 1); exit 1; }; };;
3617 esac
3618 build=$ac_cv_build
3619 ac_save_IFS=$IFS; IFS='-'
3620 set x $ac_cv_build
3621 shift
3622 build_cpu=$1
3623 build_vendor=$2
3624 shift; shift
3625 # Remember, the first character of IFS is used to create $*,
3626 # except with old shells:
3627 build_os=$*
3628 IFS=$ac_save_IFS
3629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3630
3631
3632 { echo "$as_me:$LINENO: checking host system type" >&5
3633 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3634 if test "${ac_cv_host+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   if test "x$host_alias" = x; then
3638   ac_cv_host=$ac_cv_build
3639 else
3640   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3641     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3642 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3643    { (exit 1); exit 1; }; }
3644 fi
3645
3646 fi
3647 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3648 echo "${ECHO_T}$ac_cv_host" >&6; }
3649 case $ac_cv_host in
3650 *-*-*) ;;
3651 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3652 echo "$as_me: error: invalid value of canonical host" >&2;}
3653    { (exit 1); exit 1; }; };;
3654 esac
3655 host=$ac_cv_host
3656 ac_save_IFS=$IFS; IFS='-'
3657 set x $ac_cv_host
3658 shift
3659 host_cpu=$1
3660 host_vendor=$2
3661 shift; shift
3662 # Remember, the first character of IFS is used to create $*,
3663 # except with old shells:
3664 host_os=$*
3665 IFS=$ac_save_IFS
3666 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3667
3668
3669 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3670 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3671 if test "${ac_cv_path_SED+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3675      for ac_i in 1 2 3 4 5 6 7; do
3676        ac_script="$ac_script$as_nl$ac_script"
3677      done
3678      echo "$ac_script" | sed 99q >conftest.sed
3679      $as_unset ac_script || ac_script=
3680      # Extract the first word of "sed gsed" to use in msg output
3681 if test -z "$SED"; then
3682 set dummy sed gsed; ac_prog_name=$2
3683 if test "${ac_cv_path_SED+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   ac_path_SED_found=false
3687 # Loop through the user's path and test for each of PROGNAME-LIST
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693   for ac_prog in sed gsed; do
3694   for ac_exec_ext in '' $ac_executable_extensions; do
3695     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3696     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3697     # Check for GNU ac_path_SED and select it if it is found.
3698   # Check for GNU $ac_path_SED
3699 case `"$ac_path_SED" --version 2>&1` in
3700 *GNU*)
3701   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3702 *)
3703   ac_count=0
3704   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3705   while :
3706   do
3707     cat "conftest.in" "conftest.in" >"conftest.tmp"
3708     mv "conftest.tmp" "conftest.in"
3709     cp "conftest.in" "conftest.nl"
3710     echo '' >> "conftest.nl"
3711     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3712     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3713     ac_count=`expr $ac_count + 1`
3714     if test $ac_count -gt ${ac_path_SED_max-0}; then
3715       # Best one so far, save it but keep looking for a better one
3716       ac_cv_path_SED="$ac_path_SED"
3717       ac_path_SED_max=$ac_count
3718     fi
3719     # 10*(2^10) chars as input seems more than enough
3720     test $ac_count -gt 10 && break
3721   done
3722   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3723 esac
3724
3725
3726     $ac_path_SED_found && break 3
3727   done
3728 done
3729
3730 done
3731 IFS=$as_save_IFS
3732
3733
3734 fi
3735
3736 SED="$ac_cv_path_SED"
3737 if test -z "$SED"; then
3738   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3739 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3740    { (exit 1); exit 1; }; }
3741 fi
3742
3743 else
3744   ac_cv_path_SED=$SED
3745 fi
3746
3747 fi
3748 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3749 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3750  SED="$ac_cv_path_SED"
3751   rm -f conftest.sed
3752
3753 test -z "$SED" && SED=sed
3754 Xsed="$SED -e 1s/^X//"
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3767 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   # Extract the first word of "grep ggrep" to use in msg output
3772 if test -z "$GREP"; then
3773 set dummy grep ggrep; ac_prog_name=$2
3774 if test "${ac_cv_path_GREP+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   ac_path_GREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_prog in grep ggrep; do
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3787     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3788     # Check for GNU ac_path_GREP and select it if it is found.
3789   # Check for GNU $ac_path_GREP
3790 case `"$ac_path_GREP" --version 2>&1` in
3791 *GNU*)
3792   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3793 *)
3794   ac_count=0
3795   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3796   while :
3797   do
3798     cat "conftest.in" "conftest.in" >"conftest.tmp"
3799     mv "conftest.tmp" "conftest.in"
3800     cp "conftest.in" "conftest.nl"
3801     echo 'GREP' >> "conftest.nl"
3802     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804     ac_count=`expr $ac_count + 1`
3805     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3806       # Best one so far, save it but keep looking for a better one
3807       ac_cv_path_GREP="$ac_path_GREP"
3808       ac_path_GREP_max=$ac_count
3809     fi
3810     # 10*(2^10) chars as input seems more than enough
3811     test $ac_count -gt 10 && break
3812   done
3813   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815
3816
3817     $ac_path_GREP_found && break 3
3818   done
3819 done
3820
3821 done
3822 IFS=$as_save_IFS
3823
3824
3825 fi
3826
3827 GREP="$ac_cv_path_GREP"
3828 if test -z "$GREP"; then
3829   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3831    { (exit 1); exit 1; }; }
3832 fi
3833
3834 else
3835   ac_cv_path_GREP=$GREP
3836 fi
3837
3838
3839 fi
3840 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3841 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3842  GREP="$ac_cv_path_GREP"
3843
3844
3845 { echo "$as_me:$LINENO: checking for egrep" >&5
3846 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_EGREP+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3851    then ac_cv_path_EGREP="$GREP -E"
3852    else
3853      # Extract the first word of "egrep" to use in msg output
3854 if test -z "$EGREP"; then
3855 set dummy egrep; ac_prog_name=$2
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   ac_path_EGREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_prog in egrep; do
3867   for ac_exec_ext in '' $ac_executable_extensions; do
3868     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3869     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3870     # Check for GNU ac_path_EGREP and select it if it is found.
3871   # Check for GNU $ac_path_EGREP
3872 case `"$ac_path_EGREP" --version 2>&1` in
3873 *GNU*)
3874   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3875 *)
3876   ac_count=0
3877   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3878   while :
3879   do
3880     cat "conftest.in" "conftest.in" >"conftest.tmp"
3881     mv "conftest.tmp" "conftest.in"
3882     cp "conftest.in" "conftest.nl"
3883     echo 'EGREP' >> "conftest.nl"
3884     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886     ac_count=`expr $ac_count + 1`
3887     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3888       # Best one so far, save it but keep looking for a better one
3889       ac_cv_path_EGREP="$ac_path_EGREP"
3890       ac_path_EGREP_max=$ac_count
3891     fi
3892     # 10*(2^10) chars as input seems more than enough
3893     test $ac_count -gt 10 && break
3894   done
3895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896 esac
3897
3898
3899     $ac_path_EGREP_found && break 3
3900   done
3901 done
3902
3903 done
3904 IFS=$as_save_IFS
3905
3906
3907 fi
3908
3909 EGREP="$ac_cv_path_EGREP"
3910 if test -z "$EGREP"; then
3911   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3912 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3913    { (exit 1); exit 1; }; }
3914 fi
3915
3916 else
3917   ac_cv_path_EGREP=$EGREP
3918 fi
3919
3920
3921    fi
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3924 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3925  EGREP="$ac_cv_path_EGREP"
3926
3927
3928 { echo "$as_me:$LINENO: checking for fgrep" >&5
3929 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_FGREP+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3934    then ac_cv_path_FGREP="$GREP -F"
3935    else
3936      # Extract the first word of "fgrep" to use in msg output
3937 if test -z "$FGREP"; then
3938 set dummy fgrep; ac_prog_name=$2
3939 if test "${ac_cv_path_FGREP+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   ac_path_FGREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3946 do
3947   IFS=$as_save_IFS
3948   test -z "$as_dir" && as_dir=.
3949   for ac_prog in fgrep; do
3950   for ac_exec_ext in '' $ac_executable_extensions; do
3951     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3952     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3953     # Check for GNU ac_path_FGREP and select it if it is found.
3954   # Check for GNU $ac_path_FGREP
3955 case `"$ac_path_FGREP" --version 2>&1` in
3956 *GNU*)
3957   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3958 *)
3959   ac_count=0
3960   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3961   while :
3962   do
3963     cat "conftest.in" "conftest.in" >"conftest.tmp"
3964     mv "conftest.tmp" "conftest.in"
3965     cp "conftest.in" "conftest.nl"
3966     echo 'FGREP' >> "conftest.nl"
3967     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969     ac_count=`expr $ac_count + 1`
3970     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3971       # Best one so far, save it but keep looking for a better one
3972       ac_cv_path_FGREP="$ac_path_FGREP"
3973       ac_path_FGREP_max=$ac_count
3974     fi
3975     # 10*(2^10) chars as input seems more than enough
3976     test $ac_count -gt 10 && break
3977   done
3978   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 esac
3980
3981
3982     $ac_path_FGREP_found && break 3
3983   done
3984 done
3985
3986 done
3987 IFS=$as_save_IFS
3988
3989
3990 fi
3991
3992 FGREP="$ac_cv_path_FGREP"
3993 if test -z "$FGREP"; then
3994   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996    { (exit 1); exit 1; }; }
3997 fi
3998
3999 else
4000   ac_cv_path_FGREP=$FGREP
4001 fi
4002
4003
4004    fi
4005 fi
4006 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4007 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4008  FGREP="$ac_cv_path_FGREP"
4009
4010
4011 test -z "$GREP" && GREP=grep
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031 # Check whether --with-gnu-ld was given.
4032 if test "${with_gnu_ld+set}" = set; then
4033   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4034 else
4035   with_gnu_ld=no
4036 fi
4037
4038 ac_prog=ld
4039 if test "$GCC" = yes; then
4040   # Check if gcc -print-prog-name=ld gives a path.
4041   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4042 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4043   case $host in
4044   *-*-mingw*)
4045     # gcc leaves a trailing carriage return which upsets mingw
4046     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4047   *)
4048     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4049   esac
4050   case $ac_prog in
4051     # Accept absolute paths.
4052     [\\/]* | ?:[\\/]*)
4053       re_direlt='/[^/][^/]*/\.\./'
4054       # Canonicalize the pathname of ld
4055       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4056       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4057         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4058       done
4059       test -z "$LD" && LD="$ac_prog"
4060       ;;
4061   "")
4062     # If it fails, then pretend we aren't using GCC.
4063     ac_prog=ld
4064     ;;
4065   *)
4066     # If it is relative, then search for the first ld in PATH.
4067     with_gnu_ld=unknown
4068     ;;
4069   esac
4070 elif test "$with_gnu_ld" = yes; then
4071   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4072 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4073 else
4074   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4075 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4076 fi
4077 if test "${lt_cv_path_LD+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   if test -z "$LD"; then
4081   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082   for ac_dir in $PATH; do
4083     IFS="$lt_save_ifs"
4084     test -z "$ac_dir" && ac_dir=.
4085     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4086       lt_cv_path_LD="$ac_dir/$ac_prog"
4087       # Check to see if the program is GNU ld.  I'd rather use --version,
4088       # but apparently some variants of GNU ld only accept -v.
4089       # Break only if it was the GNU/non-GNU ld that we prefer.
4090       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4091       *GNU* | *'with BFD'*)
4092         test "$with_gnu_ld" != no && break
4093         ;;
4094       *)
4095         test "$with_gnu_ld" != yes && break
4096         ;;
4097       esac
4098     fi
4099   done
4100   IFS="$lt_save_ifs"
4101 else
4102   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4103 fi
4104 fi
4105
4106 LD="$lt_cv_path_LD"
4107 if test -n "$LD"; then
4108   { echo "$as_me:$LINENO: result: $LD" >&5
4109 echo "${ECHO_T}$LD" >&6; }
4110 else
4111   { echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6; }
4113 fi
4114 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4115 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4116    { (exit 1); exit 1; }; }
4117 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4118 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4119 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4123 case `$LD -v 2>&1 </dev/null` in
4124 *GNU* | *'with BFD'*)
4125   lt_cv_prog_gnu_ld=yes
4126   ;;
4127 *)
4128   lt_cv_prog_gnu_ld=no
4129   ;;
4130 esac
4131 fi
4132 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4133 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4134 with_gnu_ld=$lt_cv_prog_gnu_ld
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4145 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4146 if test "${lt_cv_path_NM+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   if test -n "$NM"; then
4150   # Let the user override the test.
4151   lt_cv_path_NM="$NM"
4152 else
4153   lt_nm_to_check="${ac_tool_prefix}nm"
4154   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4155     lt_nm_to_check="$lt_nm_to_check nm"
4156   fi
4157   for lt_tmp_nm in $lt_nm_to_check; do
4158     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4159     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4160       IFS="$lt_save_ifs"
4161       test -z "$ac_dir" && ac_dir=.
4162       tmp_nm="$ac_dir/$lt_tmp_nm"
4163       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4164         # Check to see if the nm accepts a BSD-compat flag.
4165         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4166         #   nm: unknown option "B" ignored
4167         # Tru64's nm complains that /dev/null is an invalid object file
4168         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4169         */dev/null* | *'Invalid file or object type'*)
4170           lt_cv_path_NM="$tmp_nm -B"
4171           break
4172           ;;
4173         *)
4174           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4175           */dev/null*)
4176             lt_cv_path_NM="$tmp_nm -p"
4177             break
4178             ;;
4179           *)
4180             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4181             continue # so that we can try to find one that supports BSD flags
4182             ;;
4183           esac
4184           ;;
4185         esac
4186       fi
4187     done
4188     IFS="$lt_save_ifs"
4189   done
4190   : ${lt_cv_path_NM=no}
4191 fi
4192 fi
4193 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4194 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4195 if test "$lt_cv_path_NM" != "no"; then
4196   NM="$lt_cv_path_NM"
4197 else
4198   # Didn't find any BSD compatible name lister, look for dumpbin.
4199   if test -n "$ac_tool_prefix"; then
4200   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4201   do
4202     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$DUMPBIN"; then
4210   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 DUMPBIN=$ac_cv_prog_DUMPBIN
4230 if test -n "$DUMPBIN"; then
4231   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4232 echo "${ECHO_T}$DUMPBIN" >&6; }
4233 else
4234   { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4236 fi
4237
4238
4239     test -n "$DUMPBIN" && break
4240   done
4241 fi
4242 if test -z "$DUMPBIN"; then
4243   ac_ct_DUMPBIN=$DUMPBIN
4244   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4245 do
4246   # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   if test -n "$ac_ct_DUMPBIN"; then
4254   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261   for ac_exec_ext in '' $ac_executable_extensions; do
4262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4270
4271 fi
4272 fi
4273 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4274 if test -n "$ac_ct_DUMPBIN"; then
4275   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4276 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4277 else
4278   { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 fi
4281
4282
4283   test -n "$ac_ct_DUMPBIN" && break
4284 done
4285
4286   if test "x$ac_ct_DUMPBIN" = x; then
4287     DUMPBIN=":"
4288   else
4289     case $cross_compiling:$ac_tool_warned in
4290 yes:)
4291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4292 whose name does not start with the host triplet.  If you think this
4293 configuration is useful to you, please write to autoconf@gnu.org." >&5
4294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4295 whose name does not start with the host triplet.  If you think this
4296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4297 ac_tool_warned=yes ;;
4298 esac
4299     DUMPBIN=$ac_ct_DUMPBIN
4300   fi
4301 fi
4302
4303
4304   if test "$DUMPBIN" != ":"; then
4305     NM="$DUMPBIN"
4306   fi
4307 fi
4308 test -z "$NM" && NM=nm
4309
4310
4311
4312
4313
4314
4315 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4316 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4317 if test "${lt_cv_nm_interface+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   lt_cv_nm_interface="BSD nm"
4321   echo "int some_variable = 0;" > conftest.$ac_ext
4322   (eval echo "\"\$as_me:4322: $ac_compile\"" >&5)
4323   (eval "$ac_compile" 2>conftest.err)
4324   cat conftest.err >&5
4325   (eval echo "\"\$as_me:4325: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4326   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4327   cat conftest.err >&5
4328   (eval echo "\"\$as_me:4328: output\"" >&5)
4329   cat conftest.out >&5
4330   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4331     lt_cv_nm_interface="MS dumpbin"
4332   fi
4333   rm -f conftest*
4334 fi
4335 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4336 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4337
4338 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4339 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4340 LN_S=$as_ln_s
4341 if test "$LN_S" = "ln -s"; then
4342   { echo "$as_me:$LINENO: result: yes" >&5
4343 echo "${ECHO_T}yes" >&6; }
4344 else
4345   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4346 echo "${ECHO_T}no, using $LN_S" >&6; }
4347 fi
4348
4349 # find the maximum length of command line arguments
4350 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4351 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4352 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355     i=0
4356   teststring="ABCD"
4357
4358   case $build_os in
4359   msdosdjgpp*)
4360     # On DJGPP, this test can blow up pretty badly due to problems in libc
4361     # (any single argument exceeding 2000 bytes causes a buffer overrun
4362     # during glob expansion).  Even if it were fixed, the result of this
4363     # check would be larger than it should be.
4364     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4365     ;;
4366
4367   gnu*)
4368     # Under GNU Hurd, this test is not required because there is
4369     # no limit to the length of command line arguments.
4370     # Libtool will interpret -1 as no limit whatsoever
4371     lt_cv_sys_max_cmd_len=-1;
4372     ;;
4373
4374   cygwin* | mingw*)
4375     # On Win9x/ME, this test blows up -- it succeeds, but takes
4376     # about 5 minutes as the teststring grows exponentially.
4377     # Worse, since 9x/ME are not pre-emptively multitasking,
4378     # you end up with a "frozen" computer, even though with patience
4379     # the test eventually succeeds (with a max line length of 256k).
4380     # Instead, let's just punt: use the minimum linelength reported by
4381     # all of the supported platforms: 8192 (on NT/2K/XP).
4382     lt_cv_sys_max_cmd_len=8192;
4383     ;;
4384
4385   amigaos*)
4386     # On AmigaOS with pdksh, this test takes hours, literally.
4387     # So we just punt and use a minimum line length of 8192.
4388     lt_cv_sys_max_cmd_len=8192;
4389     ;;
4390
4391   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4392     # This has been around since 386BSD, at least.  Likely further.
4393     if test -x /sbin/sysctl; then
4394       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4395     elif test -x /usr/sbin/sysctl; then
4396       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4397     else
4398       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4399     fi
4400     # And add a safety zone
4401     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4402     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4403     ;;
4404
4405   interix*)
4406     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4407     lt_cv_sys_max_cmd_len=196608
4408     ;;
4409
4410   osf*)
4411     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4412     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4413     # nice to cause kernel panics so lets avoid the loop below.
4414     # First set a reasonable default.
4415     lt_cv_sys_max_cmd_len=16384
4416     #
4417     if test -x /sbin/sysconfig; then
4418       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4419         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4420       esac
4421     fi
4422     ;;
4423   sco3.2v5*)
4424     lt_cv_sys_max_cmd_len=102400
4425     ;;
4426   sysv5* | sco5v6* | sysv4.2uw2*)
4427     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4428     if test -n "$kargmax"; then
4429       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4430     else
4431       lt_cv_sys_max_cmd_len=32768
4432     fi
4433     ;;
4434   *)
4435     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4436     if test -n "$lt_cv_sys_max_cmd_len"; then
4437       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4438       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4439     else
4440       # Make teststring a little bigger before we do anything with it.
4441       # a 1K string should be a reasonable start.
4442       for i in 1 2 3 4 5 6 7 8 ; do
4443         teststring=$teststring$teststring
4444       done
4445       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4446       # If test is not a shell built-in, we'll probably end up computing a
4447       # maximum length that is only half of the actual maximum length, but
4448       # we can't tell.
4449       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4450                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4451               test $i != 17 # 1/2 MB should be enough
4452       do
4453         i=`expr $i + 1`
4454         teststring=$teststring$teststring
4455       done
4456       # Only check the string length outside the loop.
4457       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4458       teststring=
4459       # Add a significant safety factor because C++ compilers can tack on
4460       # massive amounts of additional arguments before passing them to the
4461       # linker.  It appears as though 1/2 is a usable value.
4462       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4463     fi
4464     ;;
4465   esac
4466
4467 fi
4468
4469 if test -n $lt_cv_sys_max_cmd_len ; then
4470   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4472 else
4473   { echo "$as_me:$LINENO: result: none" >&5
4474 echo "${ECHO_T}none" >&6; }
4475 fi
4476 max_cmd_len=$lt_cv_sys_max_cmd_len
4477
4478
4479
4480
4481
4482
4483 : ${CP="cp -f"}
4484 : ${MV="mv -f"}
4485 : ${RM="rm -f"}
4486
4487 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4488 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4489 # Try some XSI features
4490 xsi_shell=no
4491 ( _lt_dummy="a/b/c"
4492   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4493       = c,a/b,, \
4494     && eval 'test $(( 1 + 1 )) -eq 2 \
4495     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4496   && xsi_shell=yes
4497 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4498 echo "${ECHO_T}$xsi_shell" >&6; }
4499
4500
4501 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4502 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4503 lt_shell_append=no
4504 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4505     >/dev/null 2>&1 \
4506   && lt_shell_append=yes
4507 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4508 echo "${ECHO_T}$lt_shell_append" >&6; }
4509
4510
4511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4512   lt_unset=unset
4513 else
4514   lt_unset=false
4515 fi
4516
4517
4518
4519
4520
4521 # test EBCDIC or ASCII
4522 case `echo X|tr X '\101'` in
4523  A) # ASCII based system
4524     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4525   lt_SP2NL='tr \040 \012'
4526   lt_NL2SP='tr \015\012 \040\040'
4527   ;;
4528  *) # EBCDIC based system
4529   lt_SP2NL='tr \100 \n'
4530   lt_NL2SP='tr \r\n \100\100'
4531   ;;
4532 esac
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4543 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4544 if test "${lt_cv_ld_reload_flag+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   lt_cv_ld_reload_flag='-r'
4548 fi
4549 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4550 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4551 reload_flag=$lt_cv_ld_reload_flag
4552 case $reload_flag in
4553 "" | " "*) ;;
4554 *) reload_flag=" $reload_flag" ;;
4555 esac
4556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4557 case $host_os in
4558   darwin*)
4559     if test "$GCC" = yes; then
4560       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4561     else
4562       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4563     fi
4564     ;;
4565 esac
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4577 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4578 if test "${lt_cv_deplibs_check_method+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   lt_cv_file_magic_cmd='$MAGIC_CMD'
4582 lt_cv_file_magic_test_file=
4583 lt_cv_deplibs_check_method='unknown'
4584 # Need to set the preceding variable on all platforms that support
4585 # interlibrary dependencies.
4586 # 'none' -- dependencies not supported.
4587 # `unknown' -- same as none, but documents that we really don't know.
4588 # 'pass_all' -- all dependencies passed with no checks.
4589 # 'test_compile' -- check by making test program.
4590 # 'file_magic [[regex]]' -- check by looking for files in library path
4591 # which responds to the $file_magic_cmd with a given extended regex.
4592 # If you have `file' or equivalent on your system and you're not sure
4593 # whether `pass_all' will *always* work, you probably want this one.
4594
4595 case $host_os in
4596 aix[4-9]*)
4597   lt_cv_deplibs_check_method=pass_all
4598   ;;
4599
4600 beos*)
4601   lt_cv_deplibs_check_method=pass_all
4602   ;;
4603
4604 bsdi[45]*)
4605   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4606   lt_cv_file_magic_cmd='/usr/bin/file -L'
4607   lt_cv_file_magic_test_file=/shlib/libc.so
4608   ;;
4609
4610 cygwin*)
4611   # func_win32_libid is a shell function defined in ltmain.sh
4612   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4613   lt_cv_file_magic_cmd='func_win32_libid'
4614   ;;
4615
4616 mingw* | pw32*)
4617   # Base MSYS/MinGW do not provide the 'file' command needed by
4618   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4619   # unless we find 'file', for example because we are cross-compiling.
4620   if ( file / ) >/dev/null 2>&1; then
4621     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4622     lt_cv_file_magic_cmd='func_win32_libid'
4623   else
4624     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4625     lt_cv_file_magic_cmd='$OBJDUMP -f'
4626   fi
4627   ;;
4628
4629 darwin* | rhapsody*)
4630   lt_cv_deplibs_check_method=pass_all
4631   ;;
4632
4633 freebsd* | dragonfly*)
4634   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4635     case $host_cpu in
4636     i*86 )
4637       # Not sure whether the presence of OpenBSD here was a mistake.
4638       # Let's accept both of them until this is cleared up.
4639       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4640       lt_cv_file_magic_cmd=/usr/bin/file
4641       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4642       ;;
4643     esac
4644   else
4645     lt_cv_deplibs_check_method=pass_all
4646   fi
4647   ;;
4648
4649 gnu*)
4650   lt_cv_deplibs_check_method=pass_all
4651   ;;
4652
4653 hpux10.20* | hpux11*)
4654   lt_cv_file_magic_cmd=/usr/bin/file
4655   case $host_cpu in
4656   ia64*)
4657     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4658     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4659     ;;
4660   hppa*64*)
4661     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4662     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4663     ;;
4664   *)
4665     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4666     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4667     ;;
4668   esac
4669   ;;
4670
4671 interix[3-9]*)
4672   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4673   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4674   ;;
4675
4676 irix5* | irix6* | nonstopux*)
4677   case $LD in
4678   *-32|*"-32 ") libmagic=32-bit;;
4679   *-n32|*"-n32 ") libmagic=N32;;
4680   *-64|*"-64 ") libmagic=64-bit;;
4681   *) libmagic=never-match;;
4682   esac
4683   lt_cv_deplibs_check_method=pass_all
4684   ;;
4685
4686 # This must be Linux ELF.
4687 linux* | k*bsd*-gnu)
4688   lt_cv_deplibs_check_method=pass_all
4689   ;;
4690
4691 netbsd*)
4692   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4694   else
4695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4696   fi
4697   ;;
4698
4699 newos6*)
4700   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4701   lt_cv_file_magic_cmd=/usr/bin/file
4702   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4703   ;;
4704
4705 *nto* | *qnx*)
4706   lt_cv_deplibs_check_method=pass_all
4707   ;;
4708
4709 openbsd*)
4710   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4711     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4712   else
4713     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4714   fi
4715   ;;
4716
4717 osf3* | osf4* | osf5*)
4718   lt_cv_deplibs_check_method=pass_all
4719   ;;
4720
4721 rdos*)
4722   lt_cv_deplibs_check_method=pass_all
4723   ;;
4724
4725 solaris*)
4726   lt_cv_deplibs_check_method=pass_all
4727   ;;
4728
4729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4730   lt_cv_deplibs_check_method=pass_all
4731   ;;
4732
4733 sysv4 | sysv4.3*)
4734   case $host_vendor in
4735   motorola)
4736     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]'
4737     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4738     ;;
4739   ncr)
4740     lt_cv_deplibs_check_method=pass_all
4741     ;;
4742   sequent)
4743     lt_cv_file_magic_cmd='/bin/file'
4744     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4745     ;;
4746   sni)
4747     lt_cv_file_magic_cmd='/bin/file'
4748     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4749     lt_cv_file_magic_test_file=/lib/libc.so
4750     ;;
4751   siemens)
4752     lt_cv_deplibs_check_method=pass_all
4753     ;;
4754   pc)
4755     lt_cv_deplibs_check_method=pass_all
4756     ;;
4757   esac
4758   ;;
4759
4760 tpf*)
4761   lt_cv_deplibs_check_method=pass_all
4762   ;;
4763 esac
4764
4765 fi
4766 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4767 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4768 file_magic_cmd=$lt_cv_file_magic_cmd
4769 deplibs_check_method=$lt_cv_deplibs_check_method
4770 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783 if test -n "$ac_tool_prefix"; then
4784   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4785 set dummy ${ac_tool_prefix}ar; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_AR+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test -n "$AR"; then
4792   ac_cv_prog_AR="$AR" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801     ac_cv_prog_AR="${ac_tool_prefix}ar"
4802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 AR=$ac_cv_prog_AR
4812 if test -n "$AR"; then
4813   { echo "$as_me:$LINENO: result: $AR" >&5
4814 echo "${ECHO_T}$AR" >&6; }
4815 else
4816   { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821 fi
4822 if test -z "$ac_cv_prog_AR"; then
4823   ac_ct_AR=$AR
4824   # Extract the first word of "ar", so it can be a program name with args.
4825 set dummy ar; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test -n "$ac_ct_AR"; then
4832   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839   for ac_exec_ext in '' $ac_executable_extensions; do
4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841     ac_cv_prog_ac_ct_AR="ar"
4842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4852 if test -n "$ac_ct_AR"; then
4853   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4854 echo "${ECHO_T}$ac_ct_AR" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860   if test "x$ac_ct_AR" = x; then
4861     AR="false"
4862   else
4863     case $cross_compiling:$ac_tool_warned in
4864 yes:)
4865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4866 whose name does not start with the host triplet.  If you think this
4867 configuration is useful to you, please write to autoconf@gnu.org." >&5
4868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4869 whose name does not start with the host triplet.  If you think this
4870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4871 ac_tool_warned=yes ;;
4872 esac
4873     AR=$ac_ct_AR
4874   fi
4875 else
4876   AR="$ac_cv_prog_AR"
4877 fi
4878
4879 test -z "$AR" && AR=ar
4880 test -z "$AR_FLAGS" && AR_FLAGS=cru
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892 if test -n "$ac_tool_prefix"; then
4893   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}strip; ac_word=$2
4895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4897 if test "${ac_cv_prog_STRIP+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -n "$STRIP"; then
4901   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 fi
4919 fi
4920 STRIP=$ac_cv_prog_STRIP
4921 if test -n "$STRIP"; then
4922   { echo "$as_me:$LINENO: result: $STRIP" >&5
4923 echo "${ECHO_T}$STRIP" >&6; }
4924 else
4925   { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4927 fi
4928
4929
4930 fi
4931 if test -z "$ac_cv_prog_STRIP"; then
4932   ac_ct_STRIP=$STRIP
4933   # Extract the first word of "strip", so it can be a program name with args.
4934 set dummy strip; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   if test -n "$ac_ct_STRIP"; then
4941   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_prog_ac_ct_STRIP="strip"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4961 if test -n "$ac_ct_STRIP"; then
4962   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4963 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4964 else
4965   { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 fi
4968
4969   if test "x$ac_ct_STRIP" = x; then
4970     STRIP=":"
4971   else
4972     case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4975 whose name does not start with the host triplet.  If you think this
4976 configuration is useful to you, please write to autoconf@gnu.org." >&5
4977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4978 whose name does not start with the host triplet.  If you think this
4979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4980 ac_tool_warned=yes ;;
4981 esac
4982     STRIP=$ac_ct_STRIP
4983   fi
4984 else
4985   STRIP="$ac_cv_prog_STRIP"
4986 fi
4987
4988 test -z "$STRIP" && STRIP=:
4989
4990
4991
4992
4993
4994
4995 if test -n "$ac_tool_prefix"; then
4996   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_RANLIB+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   if test -n "$RANLIB"; then
5004   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011   for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 RANLIB=$ac_cv_prog_RANLIB
5024 if test -n "$RANLIB"; then
5025   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5026 echo "${ECHO_T}$RANLIB" >&6; }
5027 else
5028   { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5030 fi
5031
5032
5033 fi
5034 if test -z "$ac_cv_prog_RANLIB"; then
5035   ac_ct_RANLIB=$RANLIB
5036   # Extract the first word of "ranlib", so it can be a program name with args.
5037 set dummy ranlib; ac_word=$2
5038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   if test -n "$ac_ct_RANLIB"; then
5044   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051   for ac_exec_ext in '' $ac_executable_extensions; do
5052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053     ac_cv_prog_ac_ct_RANLIB="ranlib"
5054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061 fi
5062 fi
5063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5064 if test -n "$ac_ct_RANLIB"; then
5065   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5066 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5067 else
5068   { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5070 fi
5071
5072   if test "x$ac_ct_RANLIB" = x; then
5073     RANLIB=":"
5074   else
5075     case $cross_compiling:$ac_tool_warned in
5076 yes:)
5077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5078 whose name does not start with the host triplet.  If you think this
5079 configuration is useful to you, please write to autoconf@gnu.org." >&5
5080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5081 whose name does not start with the host triplet.  If you think this
5082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085     RANLIB=$ac_ct_RANLIB
5086   fi
5087 else
5088   RANLIB="$ac_cv_prog_RANLIB"
5089 fi
5090
5091 test -z "$RANLIB" && RANLIB=:
5092
5093
5094
5095
5096
5097
5098 # Determine commands to create old-style static archives.
5099 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5100 old_postinstall_cmds='chmod 644 $oldlib'
5101 old_postuninstall_cmds=
5102
5103 if test -n "$RANLIB"; then
5104   case $host_os in
5105   openbsd*)
5106     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5107     ;;
5108   *)
5109     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5110     ;;
5111   esac
5112   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5113 fi
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 # If no C compiler was specified, use CC.
5149 LTCC=${LTCC-"$CC"}
5150
5151 # If no C compiler flags were specified, use CFLAGS.
5152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5153
5154 # Allow CC to be a program name with arguments.
5155 compiler=$CC
5156
5157
5158 # Check for command to grab the raw symbol name followed by C symbol from nm.
5159 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5160 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5161 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164
5165 # These are sane defaults that work on at least a few old systems.
5166 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5167
5168 # Character class describing NM global symbol codes.
5169 symcode='[BCDEGRST]'
5170
5171 # Regexp to match symbols that can be accessed directly from C.
5172 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5173
5174 # Define system-specific variables.
5175 case $host_os in
5176 aix*)
5177   symcode='[BCDT]'
5178   ;;
5179 cygwin* | mingw* | pw32*)
5180   symcode='[ABCDGISTW]'
5181   ;;
5182 hpux*)
5183   if test "$host_cpu" = ia64; then
5184     symcode='[ABCDEGRST]'
5185   fi
5186   ;;
5187 irix* | nonstopux*)
5188   symcode='[BCDEGRST]'
5189   ;;
5190 osf*)
5191   symcode='[BCDEGQRST]'
5192   ;;
5193 solaris*)
5194   symcode='[BDRT]'
5195   ;;
5196 sco3.2v5*)
5197   symcode='[DT]'
5198   ;;
5199 sysv4.2uw2*)
5200   symcode='[DT]'
5201   ;;
5202 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5203   symcode='[ABDT]'
5204   ;;
5205 sysv4)
5206   symcode='[DFNSTU]'
5207   ;;
5208 esac
5209
5210 # If we're using GNU nm, then use its standard symbol codes.
5211 case `$NM -V 2>&1` in
5212 *GNU* | *'with BFD'*)
5213   symcode='[ABCDGIRSTW]' ;;
5214 esac
5215
5216 # Transform an extracted symbol line into a proper C declaration.
5217 # Some systems (esp. on ia64) link data and code symbols differently,
5218 # so use this general approach.
5219 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5220
5221 # Transform an extracted symbol line into symbol name and symbol address
5222 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5223 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5224
5225 # Handle CRLF in mingw tool chain
5226 opt_cr=
5227 case $build_os in
5228 mingw*)
5229   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5230   ;;
5231 esac
5232
5233 # Try without a prefix underscore, then with it.
5234 for ac_symprfx in "" "_"; do
5235
5236   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5237   symxfrm="\\1 $ac_symprfx\\2 \\2"
5238
5239   # Write the raw and C identifiers.
5240   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5241     # Fake it for dumpbin and say T for any non-static function
5242     # and D for any global variable.
5243     # Also find C++ and __fastcall symbols from MSVC++,
5244     # which start with @ or ?.
5245     lt_cv_sys_global_symbol_pipe="$AWK '"\
5246 "     {last_section=section; section=\$ 3};"\
5247 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5248 "     \$ 0!~/External *\|/{next};"\
5249 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5250 "     {if(hide[section]) next};"\
5251 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5252 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5253 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5254 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5255 "     ' prfx=^$ac_symprfx"
5256   else
5257     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5258   fi
5259
5260   # Check to see that the pipe works correctly.
5261   pipe_works=no
5262
5263   rm -f conftest*
5264   cat > conftest.$ac_ext <<_LT_EOF
5265 #ifdef __cplusplus
5266 extern "C" {
5267 #endif
5268 char nm_test_var;
5269 void nm_test_func(void);
5270 void nm_test_func(void){}
5271 #ifdef __cplusplus
5272 }
5273 #endif
5274 int main(){nm_test_var='a';nm_test_func();return(0);}
5275 _LT_EOF
5276
5277   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5278   (eval $ac_compile) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; then
5282     # Now try to grab the symbols.
5283     nlist=conftest.nm
5284     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5285   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } && test -s "$nlist"; then
5289       # Try sorting and uniquifying the output.
5290       if sort "$nlist" | uniq > "$nlist"T; then
5291         mv -f "$nlist"T "$nlist"
5292       else
5293         rm -f "$nlist"T
5294       fi
5295
5296       # Make sure that we snagged all the symbols we need.
5297       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5298         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5299           cat <<_LT_EOF > conftest.$ac_ext
5300 #ifdef __cplusplus
5301 extern "C" {
5302 #endif
5303
5304 _LT_EOF
5305           # Now generate the symbol file.
5306           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5307
5308           cat <<_LT_EOF >> conftest.$ac_ext
5309
5310 /* The mapping between symbol names and symbols.  */
5311 const struct {
5312   const char *name;
5313   void       *address;
5314 }
5315 lt__PROGRAM__LTX_preloaded_symbols[] =
5316 {
5317   { "@PROGRAM@", (void *) 0 },
5318 _LT_EOF
5319           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5320           cat <<\_LT_EOF >> conftest.$ac_ext
5321   {0, (void *) 0}
5322 };
5323
5324 /* This works around a problem in FreeBSD linker */
5325 #ifdef FREEBSD_WORKAROUND
5326 static const void *lt_preloaded_setup() {
5327   return lt__PROGRAM__LTX_preloaded_symbols;
5328 }
5329 #endif
5330
5331 #ifdef __cplusplus
5332 }
5333 #endif
5334 _LT_EOF
5335           # Now try linking the two files.
5336           mv conftest.$ac_objext conftstm.$ac_objext
5337           lt_save_LIBS="$LIBS"
5338           lt_save_CFLAGS="$CFLAGS"
5339           LIBS="conftstm.$ac_objext"
5340           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5341           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342   (eval $ac_link) 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5346             pipe_works=yes
5347           fi
5348           LIBS="$lt_save_LIBS"
5349           CFLAGS="$lt_save_CFLAGS"
5350         else
5351           echo "cannot find nm_test_func in $nlist" >&5
5352         fi
5353       else
5354         echo "cannot find nm_test_var in $nlist" >&5
5355       fi
5356     else
5357       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5358     fi
5359   else
5360     echo "$progname: failed program was:" >&5
5361     cat conftest.$ac_ext >&5
5362   fi
5363   rm -rf conftest* conftst*
5364
5365   # Do not use the global_symbol_pipe unless it works.
5366   if test "$pipe_works" = yes; then
5367     break
5368   else
5369     lt_cv_sys_global_symbol_pipe=
5370   fi
5371 done
5372
5373 fi
5374
5375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5376   lt_cv_sys_global_symbol_to_cdecl=
5377 fi
5378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5379   { echo "$as_me:$LINENO: result: failed" >&5
5380 echo "${ECHO_T}failed" >&6; }
5381 else
5382   { echo "$as_me:$LINENO: result: ok" >&5
5383 echo "${ECHO_T}ok" >&6; }
5384 fi
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 # Check whether --enable-libtool-lock was given.
5409 if test "${enable_libtool_lock+set}" = set; then
5410   enableval=$enable_libtool_lock;
5411 fi
5412
5413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5414
5415 # Some flags need to be propagated to the compiler or linker for good
5416 # libtool support.
5417 case $host in
5418 ia64-*-hpux*)
5419   # Find out which ABI we are using.
5420   echo 'int i;' > conftest.$ac_ext
5421   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); }; then
5426     case `/usr/bin/file conftest.$ac_objext` in
5427       *ELF-32*)
5428         HPUX_IA64_MODE="32"
5429         ;;
5430       *ELF-64*)
5431         HPUX_IA64_MODE="64"
5432         ;;
5433     esac
5434   fi
5435   rm -rf conftest*
5436   ;;
5437 *-*-irix6*)
5438   # Find out which ABI we are using.
5439   echo '#line 5439 "configure"' > conftest.$ac_ext
5440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441   (eval $ac_compile) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; then
5445     if test "$lt_cv_prog_gnu_ld" = yes; then
5446       case `/usr/bin/file conftest.$ac_objext` in
5447         *32-bit*)
5448           LD="${LD-ld} -melf32bsmip"
5449           ;;
5450         *N32*)
5451           LD="${LD-ld} -melf32bmipn32"
5452           ;;
5453         *64-bit*)
5454           LD="${LD-ld} -melf64bmip"
5455         ;;
5456       esac
5457     else
5458       case `/usr/bin/file conftest.$ac_objext` in
5459         *32-bit*)
5460           LD="${LD-ld} -32"
5461           ;;
5462         *N32*)
5463           LD="${LD-ld} -n32"
5464           ;;
5465         *64-bit*)
5466           LD="${LD-ld} -64"
5467           ;;
5468       esac
5469     fi
5470   fi
5471   rm -rf conftest*
5472   ;;
5473
5474 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5475 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5476   # Find out which ABI we are using.
5477   echo 'int i;' > conftest.$ac_ext
5478   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5479   (eval $ac_compile) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; then
5483     case `/usr/bin/file conftest.o` in
5484       *32-bit*)
5485         case $host in
5486           x86_64-*kfreebsd*-gnu)
5487             LD="${LD-ld} -m elf_i386_fbsd"
5488             ;;
5489           x86_64-*linux*)
5490             LD="${LD-ld} -m elf_i386"
5491             ;;
5492           ppc64-*linux*|powerpc64-*linux*)
5493             LD="${LD-ld} -m elf32ppclinux"
5494             ;;
5495           s390x-*linux*)
5496             LD="${LD-ld} -m elf_s390"
5497             ;;
5498           sparc64-*linux*)
5499             LD="${LD-ld} -m elf32_sparc"
5500             ;;
5501         esac
5502         ;;
5503       *64-bit*)
5504         case $host in
5505           x86_64-*kfreebsd*-gnu)
5506             LD="${LD-ld} -m elf_x86_64_fbsd"
5507             ;;
5508           x86_64-*linux*)
5509             LD="${LD-ld} -m elf_x86_64"
5510             ;;
5511           ppc*-*linux*|powerpc*-*linux*)
5512             LD="${LD-ld} -m elf64ppc"
5513             ;;
5514           s390*-*linux*|s390*-*tpf*)
5515             LD="${LD-ld} -m elf64_s390"
5516             ;;
5517           sparc*-*linux*)
5518             LD="${LD-ld} -m elf64_sparc"
5519             ;;
5520         esac
5521         ;;
5522     esac
5523   fi
5524   rm -rf conftest*
5525   ;;
5526
5527 *-*-sco3.2v5*)
5528   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5529   SAVE_CFLAGS="$CFLAGS"
5530   CFLAGS="$CFLAGS -belf"
5531   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5532 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5533 if test "${lt_cv_cc_needs_belf+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536   ac_ext=c
5537 ac_cpp='$CPP $CPPFLAGS'
5538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541
5542      cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548
5549 int
5550 main ()
5551 {
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext conftest$ac_exeext
5558 if { (ac_try="$ac_link"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_link") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && {
5571          test -z "$ac_c_werror_flag" ||
5572          test ! -s conftest.err
5573        } && test -s conftest$ac_exeext &&
5574        $as_test_x conftest$ac_exeext; then
5575   lt_cv_cc_needs_belf=yes
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580         lt_cv_cc_needs_belf=no
5581 fi
5582
5583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5584       conftest$ac_exeext conftest.$ac_ext
5585      ac_ext=c
5586 ac_cpp='$CPP $CPPFLAGS'
5587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
5591 fi
5592 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5593 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5594   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5595     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5596     CFLAGS="$SAVE_CFLAGS"
5597   fi
5598   ;;
5599 sparc*-*solaris*)
5600   # Find out which ABI we are using.
5601   echo 'int i;' > conftest.$ac_ext
5602   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603   (eval $ac_compile) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; then
5607     case `/usr/bin/file conftest.o` in
5608     *64-bit*)
5609       case $lt_cv_prog_gnu_ld in
5610       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5611       *)
5612         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5613           LD="${LD-ld} -64"
5614         fi
5615         ;;
5616       esac
5617       ;;
5618     esac
5619   fi
5620   rm -rf conftest*
5621   ;;
5622 esac
5623
5624 need_locks="$enable_libtool_lock"
5625
5626
5627   case $host_os in
5628     rhapsody* | darwin*)
5629     if test -n "$ac_tool_prefix"; then
5630   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5634 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   if test -n "$DSYMUTIL"; then
5638   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645   for ac_exec_ext in '' $ac_executable_extensions; do
5646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5658 if test -n "$DSYMUTIL"; then
5659   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5660 echo "${ECHO_T}$DSYMUTIL" >&6; }
5661 else
5662   { echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6; }
5664 fi
5665
5666
5667 fi
5668 if test -z "$ac_cv_prog_DSYMUTIL"; then
5669   ac_ct_DSYMUTIL=$DSYMUTIL
5670   # Extract the first word of "dsymutil", so it can be a program name with args.
5671 set dummy dsymutil; ac_word=$2
5672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5674 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   if test -n "$ac_ct_DSYMUTIL"; then
5678   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683   IFS=$as_save_IFS
5684   test -z "$as_dir" && as_dir=.
5685   for ac_exec_ext in '' $ac_executable_extensions; do
5686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689     break 2
5690   fi
5691 done
5692 done
5693 IFS=$as_save_IFS
5694
5695 fi
5696 fi
5697 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5698 if test -n "$ac_ct_DSYMUTIL"; then
5699   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5700 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5701 else
5702   { echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6; }
5704 fi
5705
5706   if test "x$ac_ct_DSYMUTIL" = x; then
5707     DSYMUTIL=":"
5708   else
5709     case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5712 whose name does not start with the host triplet.  If you think this
5713 configuration is useful to you, please write to autoconf@gnu.org." >&5
5714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5715 whose name does not start with the host triplet.  If you think this
5716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5717 ac_tool_warned=yes ;;
5718 esac
5719     DSYMUTIL=$ac_ct_DSYMUTIL
5720   fi
5721 else
5722   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5723 fi
5724
5725     if test -n "$ac_tool_prefix"; then
5726   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5730 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   if test -n "$NMEDIT"; then
5734   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for ac_exec_ext in '' $ac_executable_extensions; do
5742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5750
5751 fi
5752 fi
5753 NMEDIT=$ac_cv_prog_NMEDIT
5754 if test -n "$NMEDIT"; then
5755   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5756 echo "${ECHO_T}$NMEDIT" >&6; }
5757 else
5758   { echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6; }
5760 fi
5761
5762
5763 fi
5764 if test -z "$ac_cv_prog_NMEDIT"; then
5765   ac_ct_NMEDIT=$NMEDIT
5766   # Extract the first word of "nmedit", so it can be a program name with args.
5767 set dummy nmedit; ac_word=$2
5768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5770 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   if test -n "$ac_ct_NMEDIT"; then
5774   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789 IFS=$as_save_IFS
5790
5791 fi
5792 fi
5793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5794 if test -n "$ac_ct_NMEDIT"; then
5795   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5796 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5797 else
5798   { echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6; }
5800 fi
5801
5802   if test "x$ac_ct_NMEDIT" = x; then
5803     NMEDIT=":"
5804   else
5805     case $cross_compiling:$ac_tool_warned in
5806 yes:)
5807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5808 whose name does not start with the host triplet.  If you think this
5809 configuration is useful to you, please write to autoconf@gnu.org." >&5
5810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5811 whose name does not start with the host triplet.  If you think this
5812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815     NMEDIT=$ac_ct_NMEDIT
5816   fi
5817 else
5818   NMEDIT="$ac_cv_prog_NMEDIT"
5819 fi
5820
5821     if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_LIPO+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   if test -n "$LIPO"; then
5830   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 LIPO=$ac_cv_prog_LIPO
5850 if test -n "$LIPO"; then
5851   { echo "$as_me:$LINENO: result: $LIPO" >&5
5852 echo "${ECHO_T}$LIPO" >&6; }
5853 else
5854   { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5856 fi
5857
5858
5859 fi
5860 if test -z "$ac_cv_prog_LIPO"; then
5861   ac_ct_LIPO=$LIPO
5862   # Extract the first word of "lipo", so it can be a program name with args.
5863 set dummy lipo; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_LIPO"; then
5870   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_LIPO="lipo"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5890 if test -n "$ac_ct_LIPO"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5892 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898   if test "x$ac_ct_LIPO" = x; then
5899     LIPO=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904 whose name does not start with the host triplet.  If you think this
5905 configuration is useful to you, please write to autoconf@gnu.org." >&5
5906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907 whose name does not start with the host triplet.  If you think this
5908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     LIPO=$ac_ct_LIPO
5912   fi
5913 else
5914   LIPO="$ac_cv_prog_LIPO"
5915 fi
5916
5917     if test -n "$ac_tool_prefix"; then
5918   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}otool; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_OTOOL+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   if test -n "$OTOOL"; then
5926   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 OTOOL=$ac_cv_prog_OTOOL
5946 if test -n "$OTOOL"; then
5947   { echo "$as_me:$LINENO: result: $OTOOL" >&5
5948 echo "${ECHO_T}$OTOOL" >&6; }
5949 else
5950   { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_OTOOL"; then
5957   ac_ct_OTOOL=$OTOOL
5958   # Extract the first word of "otool", so it can be a program name with args.
5959 set dummy otool; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$ac_ct_OTOOL"; then
5966   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_prog_ac_ct_OTOOL="otool"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5986 if test -n "$ac_ct_OTOOL"; then
5987   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5988 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5989 else
5990   { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5992 fi
5993
5994   if test "x$ac_ct_OTOOL" = x; then
5995     OTOOL=":"
5996   else
5997     case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6000 whose name does not start with the host triplet.  If you think this
6001 configuration is useful to you, please write to autoconf@gnu.org." >&5
6002 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6003 whose name does not start with the host triplet.  If you think this
6004 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007     OTOOL=$ac_ct_OTOOL
6008   fi
6009 else
6010   OTOOL="$ac_cv_prog_OTOOL"
6011 fi
6012
6013     if test -n "$ac_tool_prefix"; then
6014   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021   if test -n "$OTOOL64"; then
6022   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029   for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 OTOOL64=$ac_cv_prog_OTOOL64
6042 if test -n "$OTOOL64"; then
6043   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6044 echo "${ECHO_T}$OTOOL64" >&6; }
6045 else
6046   { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_OTOOL64"; then
6053   ac_ct_OTOOL64=$OTOOL64
6054   # Extract the first word of "otool64", so it can be a program name with args.
6055 set dummy otool64; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   if test -n "$ac_ct_OTOOL64"; then
6062   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067   IFS=$as_save_IFS
6068   test -z "$as_dir" && as_dir=.
6069   for ac_exec_ext in '' $ac_executable_extensions; do
6070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071     ac_cv_prog_ac_ct_OTOOL64="otool64"
6072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073     break 2
6074   fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6082 if test -n "$ac_ct_OTOOL64"; then
6083   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6084 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6085 else
6086   { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088 fi
6089
6090   if test "x$ac_ct_OTOOL64" = x; then
6091     OTOOL64=":"
6092   else
6093     case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet.  If you think this
6097 configuration is useful to you, please write to autoconf@gnu.org." >&5
6098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6099 whose name does not start with the host triplet.  If you think this
6100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103     OTOOL64=$ac_ct_OTOOL64
6104   fi
6105 else
6106   OTOOL64="$ac_cv_prog_OTOOL64"
6107 fi
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6136 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6137 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   lt_cv_apple_cc_single_mod=no
6141       if test -z "${LT_MULTI_MODULE}"; then
6142         # By default we will add the -single_module flag. You can override
6143         # by either setting the environment variable LT_MULTI_MODULE
6144         # non-empty at configure time, or by adding -multi_module to the
6145         # link flags.
6146         rm -rf libconftest.dylib*
6147         echo "int foo(void){return 1;}" > conftest.c
6148         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6149 -dynamiclib -Wl,-single_module conftest.c" >&5
6150         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6151           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6152         _lt_result=$?
6153         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6154           lt_cv_apple_cc_single_mod=yes
6155         else
6156           cat conftest.err >&5
6157         fi
6158         rm -rf libconftest.dylib*
6159         rm -f conftest.*
6160       fi
6161 fi
6162 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6163 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6164     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6165 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6166 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   lt_cv_ld_exported_symbols_list=no
6170       save_LDFLAGS=$LDFLAGS
6171       echo "_main" > conftest.sym
6172       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6173       cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179
6180 int
6181 main ()
6182 {
6183
6184   ;
6185   return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6190 case "(($ac_try" in
6191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192   *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195   (eval "$ac_link") 2>conftest.er1
6196   ac_status=$?
6197   grep -v '^ *+' conftest.er1 >conftest.err
6198   rm -f conftest.er1
6199   cat conftest.err >&5
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); } && {
6202          test -z "$ac_c_werror_flag" ||
6203          test ! -s conftest.err
6204        } && test -s conftest$ac_exeext &&
6205        $as_test_x conftest$ac_exeext; then
6206   lt_cv_ld_exported_symbols_list=yes
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211         lt_cv_ld_exported_symbols_list=no
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6215       conftest$ac_exeext conftest.$ac_ext
6216         LDFLAGS="$save_LDFLAGS"
6217
6218 fi
6219 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6220 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6221     case $host_os in
6222     rhapsody* | darwin1.[012])
6223       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6224     darwin1.*)
6225       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6226     darwin*) # darwin 5.x on
6227       # if running on 10.5 or later, the deployment target defaults
6228       # to the OS version, if on x86, and 10.4, the deployment
6229       # target defaults to 10.4. Don't you love it?
6230       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6231         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6232           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6233         10.[012]*)
6234           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6235         10.*)
6236           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6237       esac
6238     ;;
6239   esac
6240     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6241       _lt_dar_single_mod='$single_module'
6242     fi
6243     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6244       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6245     else
6246       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6247     fi
6248     if test "$DSYMUTIL" != ":"; then
6249       _lt_dsymutil='~$DSYMUTIL $lib || :'
6250     else
6251       _lt_dsymutil=
6252     fi
6253     ;;
6254   esac
6255
6256 ac_ext=c
6257 ac_cpp='$CPP $CPPFLAGS'
6258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6261 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6262 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6263 # On Suns, sometimes $CPP names a directory.
6264 if test -n "$CPP" && test -d "$CPP"; then
6265   CPP=
6266 fi
6267 if test -z "$CPP"; then
6268   if test "${ac_cv_prog_CPP+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271       # Double quotes because CPP needs to be expanded
6272     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6273     do
6274       ac_preproc_ok=false
6275 for ac_c_preproc_warn_flag in '' yes
6276 do
6277   # Use a header file that comes with gcc, so configuring glibc
6278   # with a fresh cross-compiler works.
6279   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280   # <limits.h> exists even on freestanding compilers.
6281   # On the NeXT, cc -E runs the code through the compiler's parser,
6282   # not just through cpp. "Syntax error" is here to catch this case.
6283   cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289 #ifdef __STDC__
6290 # include <limits.h>
6291 #else
6292 # include <assert.h>
6293 #endif
6294                      Syntax error
6295 _ACEOF
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6297 case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6303   ac_status=$?
6304   grep -v '^ *+' conftest.er1 >conftest.err
6305   rm -f conftest.er1
6306   cat conftest.err >&5
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } >/dev/null && {
6309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310          test ! -s conftest.err
6311        }; then
6312   :
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317   # Broken: fails on valid input.
6318 continue
6319 fi
6320
6321 rm -f conftest.err conftest.$ac_ext
6322
6323   # OK, works on sane cases.  Now check whether nonexistent headers
6324   # can be detected and how.
6325   cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 #include <ac_nonexistent.h>
6332 _ACEOF
6333 if { (ac_try="$ac_cpp conftest.$ac_ext"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6340   ac_status=$?
6341   grep -v '^ *+' conftest.er1 >conftest.err
6342   rm -f conftest.er1
6343   cat conftest.err >&5
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } >/dev/null && {
6346          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6347          test ! -s conftest.err
6348        }; then
6349   # Broken: success on invalid input.
6350 continue
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355   # Passes both tests.
6356 ac_preproc_ok=:
6357 break
6358 fi
6359
6360 rm -f conftest.err conftest.$ac_ext
6361
6362 done
6363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6364 rm -f conftest.err conftest.$ac_ext
6365 if $ac_preproc_ok; then
6366   break
6367 fi
6368
6369     done
6370     ac_cv_prog_CPP=$CPP
6371
6372 fi
6373   CPP=$ac_cv_prog_CPP
6374 else
6375   ac_cv_prog_CPP=$CPP
6376 fi
6377 { echo "$as_me:$LINENO: result: $CPP" >&5
6378 echo "${ECHO_T}$CPP" >&6; }
6379 ac_preproc_ok=false
6380 for ac_c_preproc_warn_flag in '' yes
6381 do
6382   # Use a header file that comes with gcc, so configuring glibc
6383   # with a fresh cross-compiler works.
6384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6385   # <limits.h> exists even on freestanding compilers.
6386   # On the NeXT, cc -E runs the code through the compiler's parser,
6387   # not just through cpp. "Syntax error" is here to catch this case.
6388   cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394 #ifdef __STDC__
6395 # include <limits.h>
6396 #else
6397 # include <assert.h>
6398 #endif
6399                      Syntax error
6400 _ACEOF
6401 if { (ac_try="$ac_cpp conftest.$ac_ext"
6402 case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6408   ac_status=$?
6409   grep -v '^ *+' conftest.er1 >conftest.err
6410   rm -f conftest.er1
6411   cat conftest.err >&5
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } >/dev/null && {
6414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6415          test ! -s conftest.err
6416        }; then
6417   :
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422   # Broken: fails on valid input.
6423 continue
6424 fi
6425
6426 rm -f conftest.err conftest.$ac_ext
6427
6428   # OK, works on sane cases.  Now check whether nonexistent headers
6429   # can be detected and how.
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <ac_nonexistent.h>
6437 _ACEOF
6438 if { (ac_try="$ac_cpp conftest.$ac_ext"
6439 case "(($ac_try" in
6440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441   *) ac_try_echo=$ac_try;;
6442 esac
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } >/dev/null && {
6451          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452          test ! -s conftest.err
6453        }; then
6454   # Broken: success on invalid input.
6455 continue
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460   # Passes both tests.
6461 ac_preproc_ok=:
6462 break
6463 fi
6464
6465 rm -f conftest.err conftest.$ac_ext
6466
6467 done
6468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6469 rm -f conftest.err conftest.$ac_ext
6470 if $ac_preproc_ok; then
6471   :
6472 else
6473   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6474 See \`config.log' for more details." >&5
6475 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6476 See \`config.log' for more details." >&2;}
6477    { (exit 1); exit 1; }; }
6478 fi
6479
6480 ac_ext=c
6481 ac_cpp='$CPP $CPPFLAGS'
6482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485
6486
6487 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6488 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6489 if test "${ac_cv_header_stdc+set}" = set; then
6490   echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492   cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498 #include <stdlib.h>
6499 #include <stdarg.h>
6500 #include <string.h>
6501 #include <float.h>
6502
6503 int
6504 main ()
6505 {
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (ac_try="$ac_compile"
6513 case "(($ac_try" in
6514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515   *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518   (eval "$ac_compile") 2>conftest.er1
6519   ac_status=$?
6520   grep -v '^ *+' conftest.er1 >conftest.err
6521   rm -f conftest.er1
6522   cat conftest.err >&5
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } && {
6525          test -z "$ac_c_werror_flag" ||
6526          test ! -s conftest.err
6527        } && test -s conftest.$ac_objext; then
6528   ac_cv_header_stdc=yes
6529 else
6530   echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533         ac_cv_header_stdc=no
6534 fi
6535
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537
6538 if test $ac_cv_header_stdc = yes; then
6539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6540   cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 #include <string.h>
6547
6548 _ACEOF
6549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6550   $EGREP "memchr" >/dev/null 2>&1; then
6551   :
6552 else
6553   ac_cv_header_stdc=no
6554 fi
6555 rm -f conftest*
6556
6557 fi
6558
6559 if test $ac_cv_header_stdc = yes; then
6560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6561   cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h.  */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h.  */
6567 #include <stdlib.h>
6568
6569 _ACEOF
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571   $EGREP "free" >/dev/null 2>&1; then
6572   :
6573 else
6574   ac_cv_header_stdc=no
6575 fi
6576 rm -f conftest*
6577
6578 fi
6579
6580 if test $ac_cv_header_stdc = yes; then
6581   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6582   if test "$cross_compiling" = yes; then
6583   :
6584 else
6585   cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591 #include <ctype.h>
6592 #include <stdlib.h>
6593 #if ((' ' & 0x0FF) == 0x020)
6594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6596 #else
6597 # define ISLOWER(c) \
6598                    (('a' <= (c) && (c) <= 'i') \
6599                      || ('j' <= (c) && (c) <= 'r') \
6600                      || ('s' <= (c) && (c) <= 'z'))
6601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6602 #endif
6603
6604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6605 int
6606 main ()
6607 {
6608   int i;
6609   for (i = 0; i < 256; i++)
6610     if (XOR (islower (i), ISLOWER (i))
6611         || toupper (i) != TOUPPER (i))
6612       return 2;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest$ac_exeext
6617 if { (ac_try="$ac_link"
6618 case "(($ac_try" in
6619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620   *) ac_try_echo=$ac_try;;
6621 esac
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623   (eval "$ac_link") 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6627   { (case "(($ac_try" in
6628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629   *) ac_try_echo=$ac_try;;
6630 esac
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632   (eval "$ac_try") 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); }; }; then
6636   :
6637 else
6638   echo "$as_me: program exited with status $ac_status" >&5
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 ( exit $ac_status )
6643 ac_cv_header_stdc=no
6644 fi
6645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6646 fi
6647
6648
6649 fi
6650 fi
6651 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6652 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6653 if test $ac_cv_header_stdc = yes; then
6654
6655 cat >>confdefs.h <<\_ACEOF
6656 #define STDC_HEADERS 1
6657 _ACEOF
6658
6659 fi
6660
6661 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6672                   inttypes.h stdint.h unistd.h
6673 do
6674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h.  */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h.  */
6686 $ac_includes_default
6687
6688 #include <$ac_header>
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6692 case "(($ac_try" in
6693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694   *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697   (eval "$ac_compile") 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } && {
6704          test -z "$ac_c_werror_flag" ||
6705          test ! -s conftest.err
6706        } && test -s conftest.$ac_objext; then
6707   eval "$as_ac_Header=yes"
6708 else
6709   echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712         eval "$as_ac_Header=no"
6713 fi
6714
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 fi
6717 ac_res=`eval echo '${'$as_ac_Header'}'`
6718                { echo "$as_me:$LINENO: result: $ac_res" >&5
6719 echo "${ECHO_T}$ac_res" >&6; }
6720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6721   cat >>confdefs.h <<_ACEOF
6722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6723 _ACEOF
6724
6725 fi
6726
6727 done
6728
6729
6730
6731 for ac_header in dlfcn.h
6732 do
6733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h.  */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h.  */
6745 $ac_includes_default
6746
6747 #include <$ac_header>
6748 _ACEOF
6749 rm -f conftest.$ac_objext
6750 if { (ac_try="$ac_compile"
6751 case "(($ac_try" in
6752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753   *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756   (eval "$ac_compile") 2>conftest.er1
6757   ac_status=$?
6758   grep -v '^ *+' conftest.er1 >conftest.err
6759   rm -f conftest.er1
6760   cat conftest.err >&5
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); } && {
6763          test -z "$ac_c_werror_flag" ||
6764          test ! -s conftest.err
6765        } && test -s conftest.$ac_objext; then
6766   eval "$as_ac_Header=yes"
6767 else
6768   echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771         eval "$as_ac_Header=no"
6772 fi
6773
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 ac_res=`eval echo '${'$as_ac_Header'}'`
6777                { echo "$as_me:$LINENO: result: $ac_res" >&5
6778 echo "${ECHO_T}$ac_res" >&6; }
6779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780   cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782 _ACEOF
6783
6784 fi
6785
6786 done
6787
6788
6789
6790 # Set options
6791
6792
6793
6794         enable_dlopen=no
6795
6796
6797   enable_win32_dll=no
6798
6799
6800             # Check whether --enable-shared was given.
6801 if test "${enable_shared+set}" = set; then
6802   enableval=$enable_shared; p=${PACKAGE-default}
6803     case $enableval in
6804     yes) enable_shared=yes ;;
6805     no) enable_shared=no ;;
6806     *)
6807       enable_shared=no
6808       # Look at the argument we got.  We use all the common list separators.
6809       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6810       for pkg in $enableval; do
6811         IFS="$lt_save_ifs"
6812         if test "X$pkg" = "X$p"; then
6813           enable_shared=yes
6814         fi
6815       done
6816       IFS="$lt_save_ifs"
6817       ;;
6818     esac
6819 else
6820   enable_shared=yes
6821 fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831   # Check whether --enable-static was given.
6832 if test "${enable_static+set}" = set; then
6833   enableval=$enable_static; p=${PACKAGE-default}
6834     case $enableval in
6835     yes) enable_static=yes ;;
6836     no) enable_static=no ;;
6837     *)
6838      enable_static=no
6839       # Look at the argument we got.  We use all the common list separators.
6840       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6841       for pkg in $enableval; do
6842         IFS="$lt_save_ifs"
6843         if test "X$pkg" = "X$p"; then
6844           enable_static=yes
6845         fi
6846       done
6847       IFS="$lt_save_ifs"
6848       ;;
6849     esac
6850 else
6851   enable_static=yes
6852 fi
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863 # Check whether --with-pic was given.
6864 if test "${with_pic+set}" = set; then
6865   withval=$with_pic; pic_mode="$withval"
6866 else
6867   pic_mode=default
6868 fi
6869
6870
6871 test -z "$pic_mode" && pic_mode=default
6872
6873
6874
6875
6876
6877
6878
6879   # Check whether --enable-fast-install was given.
6880 if test "${enable_fast_install+set}" = set; then
6881   enableval=$enable_fast_install; p=${PACKAGE-default}
6882     case $enableval in
6883     yes) enable_fast_install=yes ;;
6884     no) enable_fast_install=no ;;
6885     *)
6886       enable_fast_install=no
6887       # Look at the argument we got.  We use all the common list separators.
6888       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6889       for pkg in $enableval; do
6890         IFS="$lt_save_ifs"
6891         if test "X$pkg" = "X$p"; then
6892           enable_fast_install=yes
6893         fi
6894       done
6895       IFS="$lt_save_ifs"
6896       ;;
6897     esac
6898 else
6899   enable_fast_install=yes
6900 fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 # This can be used to rebuild libtool when needed
6913 LIBTOOL_DEPS="$ltmain"
6914
6915 # Always use our own libtool.
6916 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942 test -z "$LN_S" && LN_S="ln -s"
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957 if test -n "${ZSH_VERSION+set}" ; then
6958    setopt NO_GLOB_SUBST
6959 fi
6960
6961 { echo "$as_me:$LINENO: checking for objdir" >&5
6962 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6963 if test "${lt_cv_objdir+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   rm -f .libs 2>/dev/null
6967 mkdir .libs 2>/dev/null
6968 if test -d .libs; then
6969   lt_cv_objdir=.libs
6970 else
6971   # MS-DOS does not allow filenames that begin with a dot.
6972   lt_cv_objdir=_libs
6973 fi
6974 rmdir .libs 2>/dev/null
6975 fi
6976 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6977 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6978 objdir=$lt_cv_objdir
6979
6980
6981
6982
6983
6984 cat >>confdefs.h <<_ACEOF
6985 #define LT_OBJDIR "$lt_cv_objdir/"
6986 _ACEOF
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004 case $host_os in
7005 aix3*)
7006   # AIX sometimes has problems with the GCC collect2 program.  For some
7007   # reason, if we set the COLLECT_NAMES environment variable, the problems
7008   # vanish in a puff of smoke.
7009   if test "X${COLLECT_NAMES+set}" != Xset; then
7010     COLLECT_NAMES=
7011     export COLLECT_NAMES
7012   fi
7013   ;;
7014 esac
7015
7016 # Sed substitution that helps us do robust quoting.  It backslashifies
7017 # metacharacters that are still active within double-quoted strings.
7018 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7019
7020 # Same as above, but do not quote variable references.
7021 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7022
7023 # Sed substitution to delay expansion of an escaped shell variable in a
7024 # double_quote_subst'ed string.
7025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7026
7027 # Sed substitution to delay expansion of an escaped single quote.
7028 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7029
7030 # Sed substitution to avoid accidental globbing in evaled expressions
7031 no_glob_subst='s/\*/\\\*/g'
7032
7033 # Global variables:
7034 ofile=libtool
7035 can_build_shared=yes
7036
7037 # All known linkers require a `.a' archive for static linking (except MSVC,
7038 # which needs '.lib').
7039 libext=a
7040
7041 with_gnu_ld="$lt_cv_prog_gnu_ld"
7042
7043 old_CC="$CC"
7044 old_CFLAGS="$CFLAGS"
7045
7046 # Set sane defaults for various variables
7047 test -z "$CC" && CC=cc
7048 test -z "$LTCC" && LTCC=$CC
7049 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7050 test -z "$LD" && LD=ld
7051 test -z "$ac_objext" && ac_objext=o
7052
7053 for cc_temp in $compiler""; do
7054   case $cc_temp in
7055     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7056     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7057     \-*) ;;
7058     *) break;;
7059   esac
7060 done
7061 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7062
7063
7064 # Only perform the check for file, if the check method requires it
7065 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7066 case $deplibs_check_method in
7067 file_magic*)
7068   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7069     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7070 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7071 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   case $MAGIC_CMD in
7075 [\\/*] |  ?:[\\/]*)
7076   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7077   ;;
7078 *)
7079   lt_save_MAGIC_CMD="$MAGIC_CMD"
7080   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7081   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7082   for ac_dir in $ac_dummy; do
7083     IFS="$lt_save_ifs"
7084     test -z "$ac_dir" && ac_dir=.
7085     if test -f $ac_dir/${ac_tool_prefix}file; then
7086       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7087       if test -n "$file_magic_test_file"; then
7088         case $deplibs_check_method in
7089         "file_magic "*)
7090           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7091           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7092           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7093             $EGREP "$file_magic_regex" > /dev/null; then
7094             :
7095           else
7096             cat <<_LT_EOF 1>&2
7097
7098 *** Warning: the command libtool uses to detect shared libraries,
7099 *** $file_magic_cmd, produces output that libtool cannot recognize.
7100 *** The result is that libtool may fail to recognize shared libraries
7101 *** as such.  This will affect the creation of libtool libraries that
7102 *** depend on shared libraries, but programs linked with such libtool
7103 *** libraries will work regardless of this problem.  Nevertheless, you
7104 *** may want to report the problem to your system manager and/or to
7105 *** bug-libtool@gnu.org
7106
7107 _LT_EOF
7108           fi ;;
7109         esac
7110       fi
7111       break
7112     fi
7113   done
7114   IFS="$lt_save_ifs"
7115   MAGIC_CMD="$lt_save_MAGIC_CMD"
7116   ;;
7117 esac
7118 fi
7119
7120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7121 if test -n "$MAGIC_CMD"; then
7122   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7123 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7124 else
7125   { echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6; }
7127 fi
7128
7129
7130
7131
7132
7133 if test -z "$lt_cv_path_MAGIC_CMD"; then
7134   if test -n "$ac_tool_prefix"; then
7135     { echo "$as_me:$LINENO: checking for file" >&5
7136 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   case $MAGIC_CMD in
7141 [\\/*] |  ?:[\\/]*)
7142   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7143   ;;
7144 *)
7145   lt_save_MAGIC_CMD="$MAGIC_CMD"
7146   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7147   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7148   for ac_dir in $ac_dummy; do
7149     IFS="$lt_save_ifs"
7150     test -z "$ac_dir" && ac_dir=.
7151     if test -f $ac_dir/file; then
7152       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7153       if test -n "$file_magic_test_file"; then
7154         case $deplibs_check_method in
7155         "file_magic "*)
7156           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7157           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7158           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7159             $EGREP "$file_magic_regex" > /dev/null; then
7160             :
7161           else
7162             cat <<_LT_EOF 1>&2
7163
7164 *** Warning: the command libtool uses to detect shared libraries,
7165 *** $file_magic_cmd, produces output that libtool cannot recognize.
7166 *** The result is that libtool may fail to recognize shared libraries
7167 *** as such.  This will affect the creation of libtool libraries that
7168 *** depend on shared libraries, but programs linked with such libtool
7169 *** libraries will work regardless of this problem.  Nevertheless, you
7170 *** may want to report the problem to your system manager and/or to
7171 *** bug-libtool@gnu.org
7172
7173 _LT_EOF
7174           fi ;;
7175         esac
7176       fi
7177       break
7178     fi
7179   done
7180   IFS="$lt_save_ifs"
7181   MAGIC_CMD="$lt_save_MAGIC_CMD"
7182   ;;
7183 esac
7184 fi
7185
7186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7187 if test -n "$MAGIC_CMD"; then
7188   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7189 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7190 else
7191   { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7193 fi
7194
7195
7196   else
7197     MAGIC_CMD=:
7198   fi
7199 fi
7200
7201   fi
7202   ;;
7203 esac
7204
7205 # Use C for the default configuration in the libtool script
7206
7207 lt_save_CC="$CC"
7208 ac_ext=c
7209 ac_cpp='$CPP $CPPFLAGS'
7210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213
7214
7215 # Source file extension for C test sources.
7216 ac_ext=c
7217
7218 # Object file extension for compiled C test sources.
7219 objext=o
7220 objext=$objext
7221
7222 # Code to be used in simple compile tests
7223 lt_simple_compile_test_code="int some_variable = 0;"
7224
7225 # Code to be used in simple link tests
7226 lt_simple_link_test_code='int main(){return(0);}'
7227
7228
7229
7230
7231
7232
7233
7234 # If no C compiler was specified, use CC.
7235 LTCC=${LTCC-"$CC"}
7236
7237 # If no C compiler flags were specified, use CFLAGS.
7238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7239
7240 # Allow CC to be a program name with arguments.
7241 compiler=$CC
7242
7243 # Save the default compiler, since it gets overwritten when the other
7244 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7245 compiler_DEFAULT=$CC
7246
7247 # save warnings/boilerplate of simple test code
7248 ac_outfile=conftest.$ac_objext
7249 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7251 _lt_compiler_boilerplate=`cat conftest.err`
7252 $RM conftest*
7253
7254 ac_outfile=conftest.$ac_objext
7255 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7257 _lt_linker_boilerplate=`cat conftest.err`
7258 $RM -r conftest*
7259
7260
7261 if test -n "$compiler"; then
7262
7263 lt_prog_compiler_no_builtin_flag=
7264
7265 if test "$GCC" = yes; then
7266   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7267
7268   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7269 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7270 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   lt_cv_prog_compiler_rtti_exceptions=no
7274    ac_outfile=conftest.$ac_objext
7275    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7276    lt_compiler_flag="-fno-rtti -fno-exceptions"
7277    # Insert the option either (1) after the last *FLAGS variable, or
7278    # (2) before a word containing "conftest.", or (3) at the end.
7279    # Note that $ac_compile itself does not contain backslashes and begins
7280    # with a dollar sign (not a hyphen), so the echo should work correctly.
7281    # The option is referenced via a variable to avoid confusing sed.
7282    lt_compile=`echo "$ac_compile" | $SED \
7283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7285    -e 's:$: $lt_compiler_flag:'`
7286    (eval echo "\"\$as_me:7286: $lt_compile\"" >&5)
7287    (eval "$lt_compile" 2>conftest.err)
7288    ac_status=$?
7289    cat conftest.err >&5
7290    echo "$as_me:7290: \$? = $ac_status" >&5
7291    if (exit $ac_status) && test -s "$ac_outfile"; then
7292      # The compiler can only warn and ignore the option if not recognized
7293      # So say no if there are warnings other than the usual output.
7294      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7295      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7296      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7297        lt_cv_prog_compiler_rtti_exceptions=yes
7298      fi
7299    fi
7300    $RM conftest*
7301
7302 fi
7303 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7304 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7305
7306 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7307     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7308 else
7309     :
7310 fi
7311
7312 fi
7313
7314
7315
7316
7317
7318
7319   lt_prog_compiler_wl=
7320 lt_prog_compiler_pic=
7321 lt_prog_compiler_static=
7322
7323 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7324 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7325
7326   if test "$GCC" = yes; then
7327     lt_prog_compiler_wl='-Wl,'
7328     lt_prog_compiler_static='-static'
7329
7330     case $host_os in
7331       aix*)
7332       # All AIX code is PIC.
7333       if test "$host_cpu" = ia64; then
7334         # AIX 5 now supports IA64 processor
7335         lt_prog_compiler_static='-Bstatic'
7336       fi
7337       ;;
7338
7339     amigaos*)
7340       case $host_cpu in
7341       powerpc)
7342             # see comment about AmigaOS4 .so support
7343             lt_prog_compiler_pic='-fPIC'
7344         ;;
7345       m68k)
7346             # FIXME: we need at least 68020 code to build shared libraries, but
7347             # adding the `-m68020' flag to GCC prevents building anything better,
7348             # like `-m68040'.
7349             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7350         ;;
7351       esac
7352       ;;
7353
7354     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7355       # PIC is the default for these OSes.
7356       ;;
7357
7358     mingw* | cygwin* | pw32* | os2*)
7359       # This hack is so that the source file can tell whether it is being
7360       # built for inclusion in a dll (and should export symbols for example).
7361       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7362       # (--disable-auto-import) libraries
7363       lt_prog_compiler_pic='-DDLL_EXPORT'
7364       ;;
7365
7366     darwin* | rhapsody*)
7367       # PIC is the default on this platform
7368       # Common symbols not allowed in MH_DYLIB files
7369       lt_prog_compiler_pic='-fno-common'
7370       ;;
7371
7372     hpux*)
7373       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7374       # not for PA HP-UX.
7375       case $host_cpu in
7376       hppa*64*|ia64*)
7377         # +Z the default
7378         ;;
7379       *)
7380         lt_prog_compiler_pic='-fPIC'
7381         ;;
7382       esac
7383       ;;
7384
7385     interix[3-9]*)
7386       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7387       # Instead, we relocate shared libraries at runtime.
7388       ;;
7389
7390     msdosdjgpp*)
7391       # Just because we use GCC doesn't mean we suddenly get shared libraries
7392       # on systems that don't support them.
7393       lt_prog_compiler_can_build_shared=no
7394       enable_shared=no
7395       ;;
7396
7397     *nto* | *qnx*)
7398       # QNX uses GNU C++, but need to define -shared option too, otherwise
7399       # it will coredump.
7400       lt_prog_compiler_pic='-fPIC -shared'
7401       ;;
7402
7403     sysv4*MP*)
7404       if test -d /usr/nec; then
7405         lt_prog_compiler_pic=-Kconform_pic
7406       fi
7407       ;;
7408
7409     *)
7410       lt_prog_compiler_pic='-fPIC'
7411       ;;
7412     esac
7413   else
7414     # PORTME Check for flag to pass linker flags through the system compiler.
7415     case $host_os in
7416     aix*)
7417       lt_prog_compiler_wl='-Wl,'
7418       if test "$host_cpu" = ia64; then
7419         # AIX 5 now supports IA64 processor
7420         lt_prog_compiler_static='-Bstatic'
7421       else
7422         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7423       fi
7424       ;;
7425
7426     mingw* | cygwin* | pw32* | os2*)
7427       # This hack is so that the source file can tell whether it is being
7428       # built for inclusion in a dll (and should export symbols for example).
7429       lt_prog_compiler_pic='-DDLL_EXPORT'
7430       ;;
7431
7432     hpux9* | hpux10* | hpux11*)
7433       lt_prog_compiler_wl='-Wl,'
7434       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7435       # not for PA HP-UX.
7436       case $host_cpu in
7437       hppa*64*|ia64*)
7438         # +Z the default
7439         ;;
7440       *)
7441         lt_prog_compiler_pic='+Z'
7442         ;;
7443       esac
7444       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7445       lt_prog_compiler_static='${wl}-a ${wl}archive'
7446       ;;
7447
7448     irix5* | irix6* | nonstopux*)
7449       lt_prog_compiler_wl='-Wl,'
7450       # PIC (with -KPIC) is the default.
7451       lt_prog_compiler_static='-non_shared'
7452       ;;
7453
7454     linux* | k*bsd*-gnu)
7455       case $cc_basename in
7456       icc* | ecc* | ifort*)
7457         lt_prog_compiler_wl='-Wl,'
7458         lt_prog_compiler_pic='-KPIC'
7459         lt_prog_compiler_static='-static'
7460         ;;
7461       pgcc* | pgf77* | pgf90* | pgf95*)
7462         # Portland Group compilers (*not* the Pentium gcc compiler,
7463         # which looks to be a dead project)
7464         lt_prog_compiler_wl='-Wl,'
7465         lt_prog_compiler_pic='-fpic'
7466         lt_prog_compiler_static='-Bstatic'
7467         ;;
7468       ccc*)
7469         lt_prog_compiler_wl='-Wl,'
7470         # All Alpha code is PIC.
7471         lt_prog_compiler_static='-non_shared'
7472         ;;
7473       xl*)
7474         # IBM XL C 8.0/Fortran 10.1 on PPC
7475         lt_prog_compiler_wl='-Wl,'
7476         lt_prog_compiler_pic='-qpic'
7477         lt_prog_compiler_static='-qstaticlink'
7478         ;;
7479       *)
7480         case `$CC -V 2>&1 | sed 5q` in
7481         *Sun\ C*)
7482           # Sun C 5.9
7483           lt_prog_compiler_pic='-KPIC'
7484           lt_prog_compiler_static='-Bstatic'
7485           lt_prog_compiler_wl='-Wl,'
7486           ;;
7487         *Sun\ F*)
7488           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7489           lt_prog_compiler_pic='-KPIC'
7490           lt_prog_compiler_static='-Bstatic'
7491           lt_prog_compiler_wl=''
7492           ;;
7493         esac
7494         ;;
7495       esac
7496       ;;
7497
7498     newsos6)
7499       lt_prog_compiler_pic='-KPIC'
7500       lt_prog_compiler_static='-Bstatic'
7501       ;;
7502
7503     *nto* | *qnx*)
7504       # QNX uses GNU C++, but need to define -shared option too, otherwise
7505       # it will coredump.
7506       lt_prog_compiler_pic='-fPIC -shared'
7507       ;;
7508
7509     osf3* | osf4* | osf5*)
7510       lt_prog_compiler_wl='-Wl,'
7511       # All OSF/1 code is PIC.
7512       lt_prog_compiler_static='-non_shared'
7513       ;;
7514
7515     rdos*)
7516       lt_prog_compiler_static='-non_shared'
7517       ;;
7518
7519     solaris*)
7520       lt_prog_compiler_pic='-KPIC'
7521       lt_prog_compiler_static='-Bstatic'
7522       case $cc_basename in
7523       f77* | f90* | f95*)
7524         lt_prog_compiler_wl='-Qoption ld ';;
7525       *)
7526         lt_prog_compiler_wl='-Wl,';;
7527       esac
7528       ;;
7529
7530     sunos4*)
7531       lt_prog_compiler_wl='-Qoption ld '
7532       lt_prog_compiler_pic='-PIC'
7533       lt_prog_compiler_static='-Bstatic'
7534       ;;
7535
7536     sysv4 | sysv4.2uw2* | sysv4.3*)
7537       lt_prog_compiler_wl='-Wl,'
7538       lt_prog_compiler_pic='-KPIC'
7539       lt_prog_compiler_static='-Bstatic'
7540       ;;
7541
7542     sysv4*MP*)
7543       if test -d /usr/nec ;then
7544         lt_prog_compiler_pic='-Kconform_pic'
7545         lt_prog_compiler_static='-Bstatic'
7546       fi
7547       ;;
7548
7549     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7550       lt_prog_compiler_wl='-Wl,'
7551       lt_prog_compiler_pic='-KPIC'
7552       lt_prog_compiler_static='-Bstatic'
7553       ;;
7554
7555     unicos*)
7556       lt_prog_compiler_wl='-Wl,'
7557       lt_prog_compiler_can_build_shared=no
7558       ;;
7559
7560     uts4*)
7561       lt_prog_compiler_pic='-pic'
7562       lt_prog_compiler_static='-Bstatic'
7563       ;;
7564
7565     *)
7566       lt_prog_compiler_can_build_shared=no
7567       ;;
7568     esac
7569   fi
7570
7571 case $host_os in
7572   # For platforms which do not support PIC, -DPIC is meaningless:
7573   *djgpp*)
7574     lt_prog_compiler_pic=
7575     ;;
7576   *)
7577     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7578     ;;
7579 esac
7580 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7581 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7582
7583
7584
7585
7586
7587
7588 #
7589 # Check to make sure the PIC flag actually works.
7590 #
7591 if test -n "$lt_prog_compiler_pic"; then
7592   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7593 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7594 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   lt_cv_prog_compiler_pic_works=no
7598    ac_outfile=conftest.$ac_objext
7599    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7600    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7601    # Insert the option either (1) after the last *FLAGS variable, or
7602    # (2) before a word containing "conftest.", or (3) at the end.
7603    # Note that $ac_compile itself does not contain backslashes and begins
7604    # with a dollar sign (not a hyphen), so the echo should work correctly.
7605    # The option is referenced via a variable to avoid confusing sed.
7606    lt_compile=`echo "$ac_compile" | $SED \
7607    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7609    -e 's:$: $lt_compiler_flag:'`
7610    (eval echo "\"\$as_me:7610: $lt_compile\"" >&5)
7611    (eval "$lt_compile" 2>conftest.err)
7612    ac_status=$?
7613    cat conftest.err >&5
7614    echo "$as_me:7614: \$? = $ac_status" >&5
7615    if (exit $ac_status) && test -s "$ac_outfile"; then
7616      # The compiler can only warn and ignore the option if not recognized
7617      # So say no if there are warnings other than the usual output.
7618      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7619      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7620      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7621        lt_cv_prog_compiler_pic_works=yes
7622      fi
7623    fi
7624    $RM conftest*
7625
7626 fi
7627 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7628 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7629
7630 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7631     case $lt_prog_compiler_pic in
7632      "" | " "*) ;;
7633      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7634      esac
7635 else
7636     lt_prog_compiler_pic=
7637      lt_prog_compiler_can_build_shared=no
7638 fi
7639
7640 fi
7641
7642
7643
7644
7645
7646
7647 #
7648 # Check to make sure the static flag actually works.
7649 #
7650 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7651 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7652 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7653 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   lt_cv_prog_compiler_static_works=no
7657    save_LDFLAGS="$LDFLAGS"
7658    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7659    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7660    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7661      # The linker can only warn and ignore the option if not recognized
7662      # So say no if there are warnings
7663      if test -s conftest.err; then
7664        # Append any errors to the config.log.
7665        cat conftest.err 1>&5
7666        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7667        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668        if diff conftest.exp conftest.er2 >/dev/null; then
7669          lt_cv_prog_compiler_static_works=yes
7670        fi
7671      else
7672        lt_cv_prog_compiler_static_works=yes
7673      fi
7674    fi
7675    $RM -r conftest*
7676    LDFLAGS="$save_LDFLAGS"
7677
7678 fi
7679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7680 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7681
7682 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7683     :
7684 else
7685     lt_prog_compiler_static=
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   lt_cv_prog_compiler_c_o=no
7700    $RM -r conftest 2>/dev/null
7701    mkdir conftest
7702    cd conftest
7703    mkdir out
7704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7705
7706    lt_compiler_flag="-o out/conftest2.$ac_objext"
7707    # Insert the option either (1) after the last *FLAGS variable, or
7708    # (2) before a word containing "conftest.", or (3) at the end.
7709    # Note that $ac_compile itself does not contain backslashes and begins
7710    # with a dollar sign (not a hyphen), so the echo should work correctly.
7711    lt_compile=`echo "$ac_compile" | $SED \
7712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714    -e 's:$: $lt_compiler_flag:'`
7715    (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716    (eval "$lt_compile" 2>out/conftest.err)
7717    ac_status=$?
7718    cat out/conftest.err >&5
7719    echo "$as_me:7719: \$? = $ac_status" >&5
7720    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7721    then
7722      # The compiler can only warn and ignore the option if not recognized
7723      # So say no if there are warnings
7724      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7725      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7726      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7727        lt_cv_prog_compiler_c_o=yes
7728      fi
7729    fi
7730    chmod u+w . 2>&5
7731    $RM conftest*
7732    # SGI C++ compiler will create directory out/ii_files/ for
7733    # template instantiation
7734    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7735    $RM out/* && rmdir out
7736    cd ..
7737    $RM -r conftest
7738    $RM conftest*
7739
7740 fi
7741 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7743
7744
7745
7746
7747
7748
7749   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7750 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7751 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   lt_cv_prog_compiler_c_o=no
7755    $RM -r conftest 2>/dev/null
7756    mkdir conftest
7757    cd conftest
7758    mkdir out
7759    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7760
7761    lt_compiler_flag="-o out/conftest2.$ac_objext"
7762    # Insert the option either (1) after the last *FLAGS variable, or
7763    # (2) before a word containing "conftest.", or (3) at the end.
7764    # Note that $ac_compile itself does not contain backslashes and begins
7765    # with a dollar sign (not a hyphen), so the echo should work correctly.
7766    lt_compile=`echo "$ac_compile" | $SED \
7767    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7768    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7769    -e 's:$: $lt_compiler_flag:'`
7770    (eval echo "\"\$as_me:7770: $lt_compile\"" >&5)
7771    (eval "$lt_compile" 2>out/conftest.err)
7772    ac_status=$?
7773    cat out/conftest.err >&5
7774    echo "$as_me:7774: \$? = $ac_status" >&5
7775    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7776    then
7777      # The compiler can only warn and ignore the option if not recognized
7778      # So say no if there are warnings
7779      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7780      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7781      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7782        lt_cv_prog_compiler_c_o=yes
7783      fi
7784    fi
7785    chmod u+w . 2>&5
7786    $RM conftest*
7787    # SGI C++ compiler will create directory out/ii_files/ for
7788    # template instantiation
7789    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7790    $RM out/* && rmdir out
7791    cd ..
7792    $RM -r conftest
7793    $RM conftest*
7794
7795 fi
7796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7797 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7798
7799
7800
7801
7802 hard_links="nottested"
7803 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7804   # do not overwrite the value of need_locks provided by the user
7805   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7807   hard_links=yes
7808   $RM conftest*
7809   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7810   touch conftest.a
7811   ln conftest.a conftest.b 2>&5 || hard_links=no
7812   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7813   { echo "$as_me:$LINENO: result: $hard_links" >&5
7814 echo "${ECHO_T}$hard_links" >&6; }
7815   if test "$hard_links" = no; then
7816     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7818     need_locks=warn
7819   fi
7820 else
7821   need_locks=no
7822 fi
7823
7824
7825
7826
7827
7828
7829   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7830 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7831
7832   runpath_var=
7833   allow_undefined_flag=
7834   always_export_symbols=no
7835   archive_cmds=
7836   archive_expsym_cmds=
7837   compiler_needs_object=no
7838   enable_shared_with_static_runtimes=no
7839   export_dynamic_flag_spec=
7840   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7841   hardcode_automatic=no
7842   hardcode_direct=no
7843   hardcode_direct_absolute=no
7844   hardcode_libdir_flag_spec=
7845   hardcode_libdir_flag_spec_ld=
7846   hardcode_libdir_separator=
7847   hardcode_minus_L=no
7848   hardcode_shlibpath_var=unsupported
7849   inherit_rpath=no
7850   link_all_deplibs=unknown
7851   module_cmds=
7852   module_expsym_cmds=
7853   old_archive_from_new_cmds=
7854   old_archive_from_expsyms_cmds=
7855   thread_safe_flag_spec=
7856   whole_archive_flag_spec=
7857   # include_expsyms should be a list of space-separated symbols to be *always*
7858   # included in the symbol list
7859   include_expsyms=
7860   # exclude_expsyms can be an extended regexp of symbols to exclude
7861   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7862   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7863   # as well as any symbol that contains `d'.
7864   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7865   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7866   # platforms (ab)use it in PIC code, but their linkers get confused if
7867   # the symbol is explicitly referenced.  Since portable code cannot
7868   # rely on this symbol name, it's probably fine to never include it in
7869   # preloaded symbol tables.
7870   # Exclude shared library initialization/finalization symbols.
7871   extract_expsyms_cmds=
7872
7873   case $host_os in
7874   cygwin* | mingw* | pw32*)
7875     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7876     # When not using gcc, we currently assume that we are using
7877     # Microsoft Visual C++.
7878     if test "$GCC" != yes; then
7879       with_gnu_ld=no
7880     fi
7881     ;;
7882   interix*)
7883     # we just hope/assume this is gcc and not c89 (= MSVC++)
7884     with_gnu_ld=yes
7885     ;;
7886   openbsd*)
7887     with_gnu_ld=no
7888     ;;
7889   esac
7890
7891   ld_shlibs=yes
7892   if test "$with_gnu_ld" = yes; then
7893     # If archive_cmds runs LD, not CC, wlarc should be empty
7894     wlarc='${wl}'
7895
7896     # Set some defaults for GNU ld with shared library support. These
7897     # are reset later if shared libraries are not supported. Putting them
7898     # here allows them to be overridden if necessary.
7899     runpath_var=LD_RUN_PATH
7900     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7901     export_dynamic_flag_spec='${wl}--export-dynamic'
7902     # ancient GNU ld didn't support --whole-archive et. al.
7903     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7904       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7905     else
7906       whole_archive_flag_spec=
7907     fi
7908     supports_anon_versioning=no
7909     case `$LD -v 2>&1` in
7910       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7911       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7912       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7913       *\ 2.11.*) ;; # other 2.11 versions
7914       *) supports_anon_versioning=yes ;;
7915     esac
7916
7917     # See if GNU ld supports shared libraries.
7918     case $host_os in
7919     aix[3-9]*)
7920       # On AIX/PPC, the GNU linker is very broken
7921       if test "$host_cpu" != ia64; then
7922         ld_shlibs=no
7923         cat <<_LT_EOF 1>&2
7924
7925 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7926 *** to be unable to reliably create shared libraries on AIX.
7927 *** Therefore, libtool is disabling shared libraries support.  If you
7928 *** really care for shared libraries, you may want to modify your PATH
7929 *** so that a non-GNU linker is found, and then restart.
7930
7931 _LT_EOF
7932       fi
7933       ;;
7934
7935     amigaos*)
7936       case $host_cpu in
7937       powerpc)
7938             # see comment about AmigaOS4 .so support
7939             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7940             archive_expsym_cmds=''
7941         ;;
7942       m68k)
7943             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)'
7944             hardcode_libdir_flag_spec='-L$libdir'
7945             hardcode_minus_L=yes
7946         ;;
7947       esac
7948       ;;
7949
7950     beos*)
7951       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7952         allow_undefined_flag=unsupported
7953         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7954         # support --undefined.  This deserves some investigation.  FIXME
7955         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7956       else
7957         ld_shlibs=no
7958       fi
7959       ;;
7960
7961     cygwin* | mingw* | pw32*)
7962       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7963       # as there is no search path for DLLs.
7964       hardcode_libdir_flag_spec='-L$libdir'
7965       allow_undefined_flag=unsupported
7966       always_export_symbols=no
7967       enable_shared_with_static_runtimes=yes
7968       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7969
7970       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7971         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7972         # If the export-symbols file already is a .def file (1st line
7973         # is EXPORTS), use it as is; otherwise, prepend...
7974         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7975           cp $export_symbols $output_objdir/$soname.def;
7976         else
7977           echo EXPORTS > $output_objdir/$soname.def;
7978           cat $export_symbols >> $output_objdir/$soname.def;
7979         fi~
7980         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7981       else
7982         ld_shlibs=no
7983       fi
7984       ;;
7985
7986     interix[3-9]*)
7987       hardcode_direct=no
7988       hardcode_shlibpath_var=no
7989       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7990       export_dynamic_flag_spec='${wl}-E'
7991       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7992       # Instead, shared libraries are loaded at an image base (0x10000000 by
7993       # default) and relocated if they conflict, which is a slow very memory
7994       # consuming and fragmenting process.  To avoid this, we pick a random,
7995       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7996       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7997       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7998       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7999       ;;
8000
8001     gnu* | linux* | tpf* | k*bsd*-gnu)
8002       tmp_diet=no
8003       if test "$host_os" = linux-dietlibc; then
8004         case $cc_basename in
8005           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8006         esac
8007       fi
8008       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8009          && test "$tmp_diet" = no
8010       then
8011         tmp_addflag=
8012         tmp_sharedflag='-shared'
8013         case $cc_basename,$host_cpu in
8014         pgcc*)                          # Portland Group C compiler
8015           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8016           tmp_addflag=' $pic_flag'
8017           ;;
8018         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8019           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8020           tmp_addflag=' $pic_flag -Mnomain' ;;
8021         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8022           tmp_addflag=' -i_dynamic' ;;
8023         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8024           tmp_addflag=' -i_dynamic -nofor_main' ;;
8025         ifc* | ifort*)                  # Intel Fortran compiler
8026           tmp_addflag=' -nofor_main' ;;
8027         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8028           tmp_sharedflag='-qmkshrobj'
8029           tmp_addflag= ;;
8030         esac
8031         case `$CC -V 2>&1 | sed 5q` in
8032         *Sun\ C*)                       # Sun C 5.9
8033           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8034           compiler_needs_object=yes
8035           tmp_sharedflag='-G' ;;
8036         *Sun\ F*)                       # Sun Fortran 8.3
8037           tmp_sharedflag='-G' ;;
8038         esac
8039         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8040
8041         if test "x$supports_anon_versioning" = xyes; then
8042           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8043             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8044             echo "local: *; };" >> $output_objdir/$libname.ver~
8045             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8046         fi
8047
8048         case $cc_basename in
8049         xlf*)
8050           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8051           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8052           hardcode_libdir_flag_spec=
8053           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8054           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8055           if test "x$supports_anon_versioning" = xyes; then
8056             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8057               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8058               echo "local: *; };" >> $output_objdir/$libname.ver~
8059               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8060           fi
8061           ;;
8062         esac
8063       else
8064         ld_shlibs=no
8065       fi
8066       ;;
8067
8068     netbsd*)
8069       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8070         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8071         wlarc=
8072       else
8073         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8075       fi
8076       ;;
8077
8078     solaris*)
8079       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8080         ld_shlibs=no
8081         cat <<_LT_EOF 1>&2
8082
8083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8084 *** create shared libraries on Solaris systems.  Therefore, libtool
8085 *** is disabling shared libraries support.  We urge you to upgrade GNU
8086 *** binutils to release 2.9.1 or newer.  Another option is to modify
8087 *** your PATH or compiler configuration so that the native linker is
8088 *** used, and then restart.
8089
8090 _LT_EOF
8091       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8092         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8094       else
8095         ld_shlibs=no
8096       fi
8097       ;;
8098
8099     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8100       case `$LD -v 2>&1` in
8101         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8102         ld_shlibs=no
8103         cat <<_LT_EOF 1>&2
8104
8105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8106 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8107 *** is disabling shared libraries support.  We urge you to upgrade GNU
8108 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8109 *** your PATH or compiler configuration so that the native linker is
8110 *** used, and then restart.
8111
8112 _LT_EOF
8113         ;;
8114         *)
8115           # For security reasons, it is highly recommended that you always
8116           # use absolute paths for naming shared libraries, and exclude the
8117           # DT_RUNPATH tag from executables and libraries.  But doing so
8118           # requires that you compile everything twice, which is a pain.
8119           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8120             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8121             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123           else
8124             ld_shlibs=no
8125           fi
8126         ;;
8127       esac
8128       ;;
8129
8130     sunos4*)
8131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8132       wlarc=
8133       hardcode_direct=yes
8134       hardcode_shlibpath_var=no
8135       ;;
8136
8137     *)
8138       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8141       else
8142         ld_shlibs=no
8143       fi
8144       ;;
8145     esac
8146
8147     if test "$ld_shlibs" = no; then
8148       runpath_var=
8149       hardcode_libdir_flag_spec=
8150       export_dynamic_flag_spec=
8151       whole_archive_flag_spec=
8152     fi
8153   else
8154     # PORTME fill in a description of your system's linker (not GNU ld)
8155     case $host_os in
8156     aix3*)
8157       allow_undefined_flag=unsupported
8158       always_export_symbols=yes
8159       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'
8160       # Note: this linker hardcodes the directories in LIBPATH if there
8161       # are no directories specified by -L.
8162       hardcode_minus_L=yes
8163       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8164         # Neither direct hardcoding nor static linking is supported with a
8165         # broken collect2.
8166         hardcode_direct=unsupported
8167       fi
8168       ;;
8169
8170     aix[4-9]*)
8171       if test "$host_cpu" = ia64; then
8172         # On IA64, the linker does run time linking by default, so we don't
8173         # have to do anything special.
8174         aix_use_runtimelinking=no
8175         exp_sym_flag='-Bexport'
8176         no_entry_flag=""
8177       else
8178         # If we're using GNU nm, then we don't want the "-C" option.
8179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8180         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8181           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8182         else
8183           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8184         fi
8185         aix_use_runtimelinking=no
8186
8187         # Test if we are trying to use run time linking or normal
8188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8189         # need to do runtime linking.
8190         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8191           for ld_flag in $LDFLAGS; do
8192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8193             aix_use_runtimelinking=yes
8194             break
8195           fi
8196           done
8197           ;;
8198         esac
8199
8200         exp_sym_flag='-bexport'
8201         no_entry_flag='-bnoentry'
8202       fi
8203
8204       # When large executables or shared objects are built, AIX ld can
8205       # have problems creating the table of contents.  If linking a library
8206       # or program results in "error TOC overflow" add -mminimal-toc to
8207       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8208       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8209
8210       archive_cmds=''
8211       hardcode_direct=yes
8212       hardcode_direct_absolute=yes
8213       hardcode_libdir_separator=':'
8214       link_all_deplibs=yes
8215       file_list_spec='${wl}-f,'
8216
8217       if test "$GCC" = yes; then
8218         case $host_os in aix4.[012]|aix4.[012].*)
8219         # We only want to do this on AIX 4.2 and lower, the check
8220         # below for broken collect2 doesn't work under 4.3+
8221           collect2name=`${CC} -print-prog-name=collect2`
8222           if test -f "$collect2name" &&
8223            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8224           then
8225           # We have reworked collect2
8226           :
8227           else
8228           # We have old collect2
8229           hardcode_direct=unsupported
8230           # It fails to find uninstalled libraries when the uninstalled
8231           # path is not listed in the libpath.  Setting hardcode_minus_L
8232           # to unsupported forces relinking
8233           hardcode_minus_L=yes
8234           hardcode_libdir_flag_spec='-L$libdir'
8235           hardcode_libdir_separator=
8236           fi
8237           ;;
8238         esac
8239         shared_flag='-shared'
8240         if test "$aix_use_runtimelinking" = yes; then
8241           shared_flag="$shared_flag "'${wl}-G'
8242         fi
8243       else
8244         # not using gcc
8245         if test "$host_cpu" = ia64; then
8246         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8247         # chokes on -Wl,-G. The following line is correct:
8248           shared_flag='-G'
8249         else
8250           if test "$aix_use_runtimelinking" = yes; then
8251             shared_flag='${wl}-G'
8252           else
8253             shared_flag='${wl}-bM:SRE'
8254           fi
8255         fi
8256       fi
8257
8258       # It seems that -bexpall does not export symbols beginning with
8259       # underscore (_), so it is better to generate a list of symbols to export.
8260       always_export_symbols=yes
8261       if test "$aix_use_runtimelinking" = yes; then
8262         # Warning - without using the other runtime loading flags (-brtl),
8263         # -berok will link without error, but may produce a broken library.
8264         allow_undefined_flag='-berok'
8265         # Determine the default libpath from the value encoded in an
8266         # empty executable.
8267         cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274 int
8275 main ()
8276 {
8277
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (ac_try="$ac_link"
8284 case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_link") 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } && {
8296          test -z "$ac_c_werror_flag" ||
8297          test ! -s conftest.err
8298        } && test -s conftest$ac_exeext &&
8299        $as_test_x conftest$ac_exeext; then
8300
8301 lt_aix_libpath_sed='
8302     /Import File Strings/,/^$/ {
8303         /^0/ {
8304             s/^0  *\(.*\)$/\1/
8305             p
8306         }
8307     }'
8308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8309 # Check for a 64-bit object if we didn't find anything.
8310 if test -z "$aix_libpath"; then
8311   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8312 fi
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317
8318 fi
8319
8320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8321       conftest$ac_exeext conftest.$ac_ext
8322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8323
8324         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8325         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8326       else
8327         if test "$host_cpu" = ia64; then
8328           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8329           allow_undefined_flag="-z nodefs"
8330           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8331         else
8332          # Determine the default libpath from the value encoded in an
8333          # empty executable.
8334          cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340
8341 int
8342 main ()
8343 {
8344
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_link") 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } && {
8363          test -z "$ac_c_werror_flag" ||
8364          test ! -s conftest.err
8365        } && test -s conftest$ac_exeext &&
8366        $as_test_x conftest$ac_exeext; then
8367
8368 lt_aix_libpath_sed='
8369     /Import File Strings/,/^$/ {
8370         /^0/ {
8371             s/^0  *\(.*\)$/\1/
8372             p
8373         }
8374     }'
8375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8376 # Check for a 64-bit object if we didn't find anything.
8377 if test -z "$aix_libpath"; then
8378   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8379 fi
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384
8385 fi
8386
8387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8388       conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8390
8391          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392           # Warning - without using the other run time loading flags,
8393           # -berok will link without error, but may produce a broken library.
8394           no_undefined_flag=' ${wl}-bernotok'
8395           allow_undefined_flag=' ${wl}-berok'
8396           # Exported symbols can be pulled into shared objects from archives
8397           whole_archive_flag_spec='$convenience'
8398           archive_cmds_need_lc=yes
8399           # This is similar to how AIX traditionally builds its shared libraries.
8400           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8401         fi
8402       fi
8403       ;;
8404
8405     amigaos*)
8406       case $host_cpu in
8407       powerpc)
8408             # see comment about AmigaOS4 .so support
8409             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410             archive_expsym_cmds=''
8411         ;;
8412       m68k)
8413             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)'
8414             hardcode_libdir_flag_spec='-L$libdir'
8415             hardcode_minus_L=yes
8416         ;;
8417       esac
8418       ;;
8419
8420     bsdi[45]*)
8421       export_dynamic_flag_spec=-rdynamic
8422       ;;
8423
8424     cygwin* | mingw* | pw32*)
8425       # When not using gcc, we currently assume that we are using
8426       # Microsoft Visual C++.
8427       # hardcode_libdir_flag_spec is actually meaningless, as there is
8428       # no search path for DLLs.
8429       hardcode_libdir_flag_spec=' '
8430       allow_undefined_flag=unsupported
8431       # Tell ltmain to make .lib files, not .a files.
8432       libext=lib
8433       # Tell ltmain to make .dll files, not .so files.
8434       shrext_cmds=".dll"
8435       # FIXME: Setting linknames here is a bad hack.
8436       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8437       # The linker will automatically build a .lib file if we build a DLL.
8438       old_archive_from_new_cmds='true'
8439       # FIXME: Should let the user specify the lib program.
8440       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8441       fix_srcfile_path='`cygpath -w "$srcfile"`'
8442       enable_shared_with_static_runtimes=yes
8443       ;;
8444
8445     darwin* | rhapsody*)
8446
8447
8448   archive_cmds_need_lc=no
8449   hardcode_direct=no
8450   hardcode_automatic=yes
8451   hardcode_shlibpath_var=unsupported
8452   whole_archive_flag_spec=''
8453   link_all_deplibs=yes
8454   allow_undefined_flag="$_lt_dar_allow_undefined"
8455   if test "$GCC" = "yes"; then
8456     output_verbose_link_cmd=echo
8457     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8458     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8459     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8460     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8461
8462   else
8463   ld_shlibs=no
8464   fi
8465
8466       ;;
8467
8468     dgux*)
8469       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470       hardcode_libdir_flag_spec='-L$libdir'
8471       hardcode_shlibpath_var=no
8472       ;;
8473
8474     freebsd1*)
8475       ld_shlibs=no
8476       ;;
8477
8478     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8479     # support.  Future versions do this automatically, but an explicit c++rt0.o
8480     # does not break anything, and helps significantly (at the cost of a little
8481     # extra space).
8482     freebsd2.2*)
8483       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8484       hardcode_libdir_flag_spec='-R$libdir'
8485       hardcode_direct=yes
8486       hardcode_shlibpath_var=no
8487       ;;
8488
8489     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8490     freebsd2*)
8491       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8492       hardcode_direct=yes
8493       hardcode_minus_L=yes
8494       hardcode_shlibpath_var=no
8495       ;;
8496
8497     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8498     freebsd* | dragonfly*)
8499       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8500       hardcode_libdir_flag_spec='-R$libdir'
8501       hardcode_direct=yes
8502       hardcode_shlibpath_var=no
8503       ;;
8504
8505     hpux9*)
8506       if test "$GCC" = yes; then
8507         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8508       else
8509         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'
8510       fi
8511       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8512       hardcode_libdir_separator=:
8513       hardcode_direct=yes
8514
8515       # hardcode_minus_L: Not really in the search PATH,
8516       # but as the default location of the library.
8517       hardcode_minus_L=yes
8518       export_dynamic_flag_spec='${wl}-E'
8519       ;;
8520
8521     hpux10*)
8522       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8523         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524       else
8525         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8526       fi
8527       if test "$with_gnu_ld" = no; then
8528         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8529         hardcode_libdir_flag_spec_ld='+b $libdir'
8530         hardcode_libdir_separator=:
8531         hardcode_direct=yes
8532         hardcode_direct_absolute=yes
8533         export_dynamic_flag_spec='${wl}-E'
8534         # hardcode_minus_L: Not really in the search PATH,
8535         # but as the default location of the library.
8536         hardcode_minus_L=yes
8537       fi
8538       ;;
8539
8540     hpux11*)
8541       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8542         case $host_cpu in
8543         hppa*64*)
8544           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8545           ;;
8546         ia64*)
8547           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8548           ;;
8549         *)
8550           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551           ;;
8552         esac
8553       else
8554         case $host_cpu in
8555         hppa*64*)
8556           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557           ;;
8558         ia64*)
8559           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8560           ;;
8561         *)
8562           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563           ;;
8564         esac
8565       fi
8566       if test "$with_gnu_ld" = no; then
8567         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568         hardcode_libdir_separator=:
8569
8570         case $host_cpu in
8571         hppa*64*|ia64*)
8572           hardcode_direct=no
8573           hardcode_shlibpath_var=no
8574           ;;
8575         *)
8576           hardcode_direct=yes
8577           hardcode_direct_absolute=yes
8578           export_dynamic_flag_spec='${wl}-E'
8579
8580           # hardcode_minus_L: Not really in the search PATH,
8581           # but as the default location of the library.
8582           hardcode_minus_L=yes
8583           ;;
8584         esac
8585       fi
8586       ;;
8587
8588     irix5* | irix6* | nonstopux*)
8589       if test "$GCC" = yes; then
8590         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8591         # Try to use the -exported_symbol ld option, if it does not
8592         # work, assume that -exports_file does not work either and
8593         # implicitly export all symbols.
8594         save_LDFLAGS="$LDFLAGS"
8595         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8596         cat >conftest.$ac_ext <<_ACEOF
8597 int foo(void) {}
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (ac_try="$ac_link"
8601 case "(($ac_try" in
8602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603   *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606   (eval "$ac_link") 2>conftest.er1
8607   ac_status=$?
8608   grep -v '^ *+' conftest.er1 >conftest.err
8609   rm -f conftest.er1
8610   cat conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } && {
8613          test -z "$ac_c_werror_flag" ||
8614          test ! -s conftest.err
8615        } && test -s conftest$ac_exeext &&
8616        $as_test_x conftest$ac_exeext; then
8617   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8618
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623
8624 fi
8625
8626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8627       conftest$ac_exeext conftest.$ac_ext
8628         LDFLAGS="$save_LDFLAGS"
8629       else
8630         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8631         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8632       fi
8633       archive_cmds_need_lc='no'
8634       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635       hardcode_libdir_separator=:
8636       inherit_rpath=yes
8637       link_all_deplibs=yes
8638       ;;
8639
8640     netbsd*)
8641       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8642         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8643       else
8644         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8645       fi
8646       hardcode_libdir_flag_spec='-R$libdir'
8647       hardcode_direct=yes
8648       hardcode_shlibpath_var=no
8649       ;;
8650
8651     newsos6)
8652       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653       hardcode_direct=yes
8654       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8655       hardcode_libdir_separator=:
8656       hardcode_shlibpath_var=no
8657       ;;
8658
8659     *nto* | *qnx*)
8660       ;;
8661
8662     openbsd*)
8663       if test -f /usr/libexec/ld.so; then
8664         hardcode_direct=yes
8665         hardcode_shlibpath_var=no
8666         hardcode_direct_absolute=yes
8667         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8668           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8669           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8670           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671           export_dynamic_flag_spec='${wl}-E'
8672         else
8673           case $host_os in
8674            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8675              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8676              hardcode_libdir_flag_spec='-R$libdir'
8677              ;;
8678            *)
8679              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8680              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8681              ;;
8682           esac
8683         fi
8684       else
8685         ld_shlibs=no
8686       fi
8687       ;;
8688
8689     os2*)
8690       hardcode_libdir_flag_spec='-L$libdir'
8691       hardcode_minus_L=yes
8692       allow_undefined_flag=unsupported
8693       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'
8694       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8695       ;;
8696
8697     osf3*)
8698       if test "$GCC" = yes; then
8699         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8701       else
8702         allow_undefined_flag=' -expect_unresolved \*'
8703         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8704       fi
8705       archive_cmds_need_lc='no'
8706       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707       hardcode_libdir_separator=:
8708       ;;
8709
8710     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8711       if test "$GCC" = yes; then
8712         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8713         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8714         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8715       else
8716         allow_undefined_flag=' -expect_unresolved \*'
8717         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8718         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8719         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8720
8721         # Both c and cxx compiler support -rpath directly
8722         hardcode_libdir_flag_spec='-rpath $libdir'
8723       fi
8724       archive_cmds_need_lc='no'
8725       hardcode_libdir_separator=:
8726       ;;
8727
8728     solaris*)
8729       no_undefined_flag=' -z defs'
8730       if test "$GCC" = yes; then
8731         wlarc='${wl}'
8732         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8735       else
8736         case `$CC -V 2>&1` in
8737         *"Compilers 5.0"*)
8738           wlarc=''
8739           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8742           ;;
8743         *)
8744           wlarc='${wl}'
8745           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8747           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8748           ;;
8749         esac
8750       fi
8751       hardcode_libdir_flag_spec='-R$libdir'
8752       hardcode_shlibpath_var=no
8753       case $host_os in
8754       solaris2.[0-5] | solaris2.[0-5].*) ;;
8755       *)
8756         # The compiler driver will combine and reorder linker options,
8757         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8758         # but is careful enough not to reorder.
8759         # Supported since Solaris 2.6 (maybe 2.5.1?)
8760         if test "$GCC" = yes; then
8761           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8762         else
8763           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8764         fi
8765         ;;
8766       esac
8767       link_all_deplibs=yes
8768       ;;
8769
8770     sunos4*)
8771       if test "x$host_vendor" = xsequent; then
8772         # Use $CC to link under sequent, because it throws in some extra .o
8773         # files that make .init and .fini sections work.
8774         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8775       else
8776         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8777       fi
8778       hardcode_libdir_flag_spec='-L$libdir'
8779       hardcode_direct=yes
8780       hardcode_minus_L=yes
8781       hardcode_shlibpath_var=no
8782       ;;
8783
8784     sysv4)
8785       case $host_vendor in
8786         sni)
8787           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788           hardcode_direct=yes # is this really true???
8789         ;;
8790         siemens)
8791           ## LD is ld it makes a PLAMLIB
8792           ## CC just makes a GrossModule.
8793           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8794           reload_cmds='$CC -r -o $output$reload_objs'
8795           hardcode_direct=no
8796         ;;
8797         motorola)
8798           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8800         ;;
8801       esac
8802       runpath_var='LD_RUN_PATH'
8803       hardcode_shlibpath_var=no
8804       ;;
8805
8806     sysv4.3*)
8807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808       hardcode_shlibpath_var=no
8809       export_dynamic_flag_spec='-Bexport'
8810       ;;
8811
8812     sysv4*MP*)
8813       if test -d /usr/nec; then
8814         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8815         hardcode_shlibpath_var=no
8816         runpath_var=LD_RUN_PATH
8817         hardcode_runpath_var=yes
8818         ld_shlibs=yes
8819       fi
8820       ;;
8821
8822     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8823       no_undefined_flag='${wl}-z,text'
8824       archive_cmds_need_lc=no
8825       hardcode_shlibpath_var=no
8826       runpath_var='LD_RUN_PATH'
8827
8828       if test "$GCC" = yes; then
8829         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8831       else
8832         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8834       fi
8835       ;;
8836
8837     sysv5* | sco3.2v5* | sco5v6*)
8838       # Note: We can NOT use -z defs as we might desire, because we do not
8839       # link with -lc, and that would cause any symbols used from libc to
8840       # always be unresolved, which means just about no library would
8841       # ever link correctly.  If we're not using GNU ld we use -z text
8842       # though, which does catch some bad symbols but isn't as heavy-handed
8843       # as -z defs.
8844       no_undefined_flag='${wl}-z,text'
8845       allow_undefined_flag='${wl}-z,nodefs'
8846       archive_cmds_need_lc=no
8847       hardcode_shlibpath_var=no
8848       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8849       hardcode_libdir_separator=':'
8850       link_all_deplibs=yes
8851       export_dynamic_flag_spec='${wl}-Bexport'
8852       runpath_var='LD_RUN_PATH'
8853
8854       if test "$GCC" = yes; then
8855         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8857       else
8858         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860       fi
8861       ;;
8862
8863     uts4*)
8864       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865       hardcode_libdir_flag_spec='-L$libdir'
8866       hardcode_shlibpath_var=no
8867       ;;
8868
8869     *)
8870       ld_shlibs=no
8871       ;;
8872     esac
8873
8874     if test x$host_vendor = xsni; then
8875       case $host in
8876       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8877         export_dynamic_flag_spec='${wl}-Blargedynsym'
8878         ;;
8879       esac
8880     fi
8881   fi
8882
8883 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8884 echo "${ECHO_T}$ld_shlibs" >&6; }
8885 test "$ld_shlibs" = no && can_build_shared=no
8886
8887 with_gnu_ld=$with_gnu_ld
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903 #
8904 # Do we need to explicitly link libc?
8905 #
8906 case "x$archive_cmds_need_lc" in
8907 x|xyes)
8908   # Assume -lc should be added
8909   archive_cmds_need_lc=yes
8910
8911   if test "$enable_shared" = yes && test "$GCC" = yes; then
8912     case $archive_cmds in
8913     *'~'*)
8914       # FIXME: we may have to deal with multi-command sequences.
8915       ;;
8916     '$CC '*)
8917       # Test whether the compiler implicitly links with -lc since on some
8918       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8919       # to ld, don't add -lc before -lgcc.
8920       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8921 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8922       $RM conftest*
8923       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924
8925       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926   (eval $ac_compile) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } 2>conftest.err; then
8930         soname=conftest
8931         lib=conftest
8932         libobjs=conftest.$ac_objext
8933         deplibs=
8934         wl=$lt_prog_compiler_wl
8935         pic_flag=$lt_prog_compiler_pic
8936         compiler_flags=-v
8937         linker_flags=-v
8938         verstring=
8939         output_objdir=.
8940         libname=conftest
8941         lt_save_allow_undefined_flag=$allow_undefined_flag
8942         allow_undefined_flag=
8943         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8944   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }
8948         then
8949           archive_cmds_need_lc=no
8950         else
8951           archive_cmds_need_lc=yes
8952         fi
8953         allow_undefined_flag=$lt_save_allow_undefined_flag
8954       else
8955         cat conftest.err 1>&5
8956       fi
8957       $RM conftest*
8958       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8959 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8960       ;;
8961     esac
8962   fi
8963   ;;
8964 esac
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9123 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9124
9125 if test "$GCC" = yes; then
9126   case $host_os in
9127     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9128     *) lt_awk_arg="/^libraries:/" ;;
9129   esac
9130   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9131   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9132     # if the path contains ";" then we assume it to be the separator
9133     # otherwise default to the standard path separator (i.e. ":") - it is
9134     # assumed that no part of a normal pathname contains ";" but that should
9135     # okay in the real world where ";" in dirpaths is itself problematic.
9136     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9137   else
9138     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9139   fi
9140   # Ok, now we have the path, separated by spaces, we can step through it
9141   # and add multilib dir if necessary.
9142   lt_tmp_lt_search_path_spec=
9143   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9144   for lt_sys_path in $lt_search_path_spec; do
9145     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9146       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9147     else
9148       test -d "$lt_sys_path" && \
9149         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9150     fi
9151   done
9152   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9153 BEGIN {RS=" "; FS="/|\n";} {
9154   lt_foo="";
9155   lt_count=0;
9156   for (lt_i = NF; lt_i > 0; lt_i--) {
9157     if ($lt_i != "" && $lt_i != ".") {
9158       if ($lt_i == "..") {
9159         lt_count++;
9160       } else {
9161         if (lt_count == 0) {
9162           lt_foo="/" $lt_i lt_foo;
9163         } else {
9164           lt_count--;
9165         }
9166       }
9167     }
9168   }
9169   if (lt_foo != "") { lt_freq[lt_foo]++; }
9170   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9171 }'`
9172   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9173 else
9174   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9175 fi
9176 library_names_spec=
9177 libname_spec='lib$name'
9178 soname_spec=
9179 shrext_cmds=".so"
9180 postinstall_cmds=
9181 postuninstall_cmds=
9182 finish_cmds=
9183 finish_eval=
9184 shlibpath_var=
9185 shlibpath_overrides_runpath=unknown
9186 version_type=none
9187 dynamic_linker="$host_os ld.so"
9188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9189 need_lib_prefix=unknown
9190 hardcode_into_libs=no
9191
9192 # when you set need_version to no, make sure it does not cause -set_version
9193 # flags to be left without arguments
9194 need_version=unknown
9195
9196 case $host_os in
9197 aix3*)
9198   version_type=linux
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9200   shlibpath_var=LIBPATH
9201
9202   # AIX 3 has no versioning support, so we append a major version to the name.
9203   soname_spec='${libname}${release}${shared_ext}$major'
9204   ;;
9205
9206 aix[4-9]*)
9207   version_type=linux
9208   need_lib_prefix=no
9209   need_version=no
9210   hardcode_into_libs=yes
9211   if test "$host_cpu" = ia64; then
9212     # AIX 5 supports IA64
9213     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9214     shlibpath_var=LD_LIBRARY_PATH
9215   else
9216     # With GCC up to 2.95.x, collect2 would create an import file
9217     # for dependence libraries.  The import file would start with
9218     # the line `#! .'.  This would cause the generated library to
9219     # depend on `.', always an invalid library.  This was fixed in
9220     # development snapshots of GCC prior to 3.0.
9221     case $host_os in
9222       aix4 | aix4.[01] | aix4.[01].*)
9223       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9224            echo ' yes '
9225            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9226         :
9227       else
9228         can_build_shared=no
9229       fi
9230       ;;
9231     esac
9232     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9233     # soname into executable. Probably we can add versioning support to
9234     # collect2, so additional links can be useful in future.
9235     if test "$aix_use_runtimelinking" = yes; then
9236       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9237       # instead of lib<name>.a to let people know that these are not
9238       # typical AIX shared libraries.
9239       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240     else
9241       # We preserve .a as extension for shared libraries through AIX4.2
9242       # and later when we are not doing run time linking.
9243       library_names_spec='${libname}${release}.a $libname.a'
9244       soname_spec='${libname}${release}${shared_ext}$major'
9245     fi
9246     shlibpath_var=LIBPATH
9247   fi
9248   ;;
9249
9250 amigaos*)
9251   case $host_cpu in
9252   powerpc)
9253     # Since July 2007 AmigaOS4 officially supports .so libraries.
9254     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256     ;;
9257   m68k)
9258     library_names_spec='$libname.ixlibrary $libname.a'
9259     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9260     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'
9261     ;;
9262   esac
9263   ;;
9264
9265 beos*)
9266   library_names_spec='${libname}${shared_ext}'
9267   dynamic_linker="$host_os ld.so"
9268   shlibpath_var=LIBRARY_PATH
9269   ;;
9270
9271 bsdi[45]*)
9272   version_type=linux
9273   need_version=no
9274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275   soname_spec='${libname}${release}${shared_ext}$major'
9276   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9279   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9280   # the default ld.so.conf also contains /usr/contrib/lib and
9281   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9282   # libtool to hard-code these into programs
9283   ;;
9284
9285 cygwin* | mingw* | pw32*)
9286   version_type=windows
9287   shrext_cmds=".dll"
9288   need_version=no
9289   need_lib_prefix=no
9290
9291   case $GCC,$host_os in
9292   yes,cygwin* | yes,mingw* | yes,pw32*)
9293     library_names_spec='$libname.dll.a'
9294     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9295     postinstall_cmds='base_file=`basename \${file}`~
9296       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9297       dldir=$destdir/`dirname \$dlpath`~
9298       test -d \$dldir || mkdir -p \$dldir~
9299       $install_prog $dir/$dlname \$dldir/$dlname~
9300       chmod a+x \$dldir/$dlname~
9301       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9302         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9303       fi'
9304     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9305       dlpath=$dir/\$dldll~
9306        $RM \$dlpath'
9307     shlibpath_overrides_runpath=yes
9308
9309     case $host_os in
9310     cygwin*)
9311       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9312       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9313       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9314       ;;
9315     mingw*)
9316       # MinGW DLLs use traditional 'lib' prefix
9317       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9318       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9319       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9320         # It is most probably a Windows format PATH printed by
9321         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9322         # path with ; separators, and with drive letters. We can handle the
9323         # drive letters (cygwin fileutils understands them), so leave them,
9324         # especially as we might pass files found there to a mingw objdump,
9325         # which wouldn't understand a cygwinified path. Ahh.
9326         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9327       else
9328         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9329       fi
9330       ;;
9331     pw32*)
9332       # pw32 DLLs use 'pw' prefix rather than 'lib'
9333       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9334       ;;
9335     esac
9336     ;;
9337
9338   *)
9339     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9340     ;;
9341   esac
9342   dynamic_linker='Win32 ld.exe'
9343   # FIXME: first we should search . and the directory the executable is in
9344   shlibpath_var=PATH
9345   ;;
9346
9347 darwin* | rhapsody*)
9348   dynamic_linker="$host_os dyld"
9349   version_type=darwin
9350   need_lib_prefix=no
9351   need_version=no
9352   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9353   soname_spec='${libname}${release}${major}$shared_ext'
9354   shlibpath_overrides_runpath=yes
9355   shlibpath_var=DYLD_LIBRARY_PATH
9356   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9357
9358   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9359   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9360   ;;
9361
9362 dgux*)
9363   version_type=linux
9364   need_lib_prefix=no
9365   need_version=no
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   ;;
9370
9371 freebsd1*)
9372   dynamic_linker=no
9373   ;;
9374
9375 freebsd* | dragonfly*)
9376   # DragonFly does not have aout.  When/if they implement a new
9377   # versioning mechanism, adjust this.
9378   if test -x /usr/bin/objformat; then
9379     objformat=`/usr/bin/objformat`
9380   else
9381     case $host_os in
9382     freebsd[123]*) objformat=aout ;;
9383     *) objformat=elf ;;
9384     esac
9385   fi
9386   version_type=freebsd-$objformat
9387   case $version_type in
9388     freebsd-elf*)
9389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9390       need_version=no
9391       need_lib_prefix=no
9392       ;;
9393     freebsd-*)
9394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9395       need_version=yes
9396       ;;
9397   esac
9398   shlibpath_var=LD_LIBRARY_PATH
9399   case $host_os in
9400   freebsd2*)
9401     shlibpath_overrides_runpath=yes
9402     ;;
9403   freebsd3.[01]* | freebsdelf3.[01]*)
9404     shlibpath_overrides_runpath=yes
9405     hardcode_into_libs=yes
9406     ;;
9407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9409     shlibpath_overrides_runpath=no
9410     hardcode_into_libs=yes
9411     ;;
9412   *) # from 4.6 on, and DragonFly
9413     shlibpath_overrides_runpath=yes
9414     hardcode_into_libs=yes
9415     ;;
9416   esac
9417   ;;
9418
9419 gnu*)
9420   version_type=linux
9421   need_lib_prefix=no
9422   need_version=no
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9424   soname_spec='${libname}${release}${shared_ext}$major'
9425   shlibpath_var=LD_LIBRARY_PATH
9426   hardcode_into_libs=yes
9427   ;;
9428
9429 hpux9* | hpux10* | hpux11*)
9430   # Give a soname corresponding to the major version so that dld.sl refuses to
9431   # link against other versions.
9432   version_type=sunos
9433   need_lib_prefix=no
9434   need_version=no
9435   case $host_cpu in
9436   ia64*)
9437     shrext_cmds='.so'
9438     hardcode_into_libs=yes
9439     dynamic_linker="$host_os dld.so"
9440     shlibpath_var=LD_LIBRARY_PATH
9441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443     soname_spec='${libname}${release}${shared_ext}$major'
9444     if test "X$HPUX_IA64_MODE" = X32; then
9445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9446     else
9447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9448     fi
9449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9450     ;;
9451   hppa*64*)
9452     shrext_cmds='.sl'
9453     hardcode_into_libs=yes
9454     dynamic_linker="$host_os dld.sl"
9455     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458     soname_spec='${libname}${release}${shared_ext}$major'
9459     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9460     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9461     ;;
9462   *)
9463     shrext_cmds='.sl'
9464     dynamic_linker="$host_os dld.sl"
9465     shlibpath_var=SHLIB_PATH
9466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468     soname_spec='${libname}${release}${shared_ext}$major'
9469     ;;
9470   esac
9471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9472   postinstall_cmds='chmod 555 $lib'
9473   ;;
9474
9475 interix[3-9]*)
9476   version_type=linux
9477   need_lib_prefix=no
9478   need_version=no
9479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480   soname_spec='${libname}${release}${shared_ext}$major'
9481   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   shlibpath_overrides_runpath=no
9484   hardcode_into_libs=yes
9485   ;;
9486
9487 irix5* | irix6* | nonstopux*)
9488   case $host_os in
9489     nonstopux*) version_type=nonstopux ;;
9490     *)
9491         if test "$lt_cv_prog_gnu_ld" = yes; then
9492                 version_type=linux
9493         else
9494                 version_type=irix
9495         fi ;;
9496   esac
9497   need_lib_prefix=no
9498   need_version=no
9499   soname_spec='${libname}${release}${shared_ext}$major'
9500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9501   case $host_os in
9502   irix5* | nonstopux*)
9503     libsuff= shlibsuff=
9504     ;;
9505   *)
9506     case $LD in # libtool.m4 will add one of these switches to LD
9507     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9508       libsuff= shlibsuff= libmagic=32-bit;;
9509     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9510       libsuff=32 shlibsuff=N32 libmagic=N32;;
9511     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9512       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9513     *) libsuff= shlibsuff= libmagic=never-match;;
9514     esac
9515     ;;
9516   esac
9517   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9518   shlibpath_overrides_runpath=no
9519   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9520   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9521   hardcode_into_libs=yes
9522   ;;
9523
9524 # No shared lib support for Linux oldld, aout, or coff.
9525 linux*oldld* | linux*aout* | linux*coff*)
9526   dynamic_linker=no
9527   ;;
9528
9529 # This must be Linux ELF.
9530 linux* | k*bsd*-gnu)
9531   version_type=linux
9532   need_lib_prefix=no
9533   need_version=no
9534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9537   shlibpath_var=LD_LIBRARY_PATH
9538   shlibpath_overrides_runpath=no
9539   # Some binutils ld are patched to set DT_RUNPATH
9540   save_LDFLAGS=$LDFLAGS
9541   save_libdir=$libdir
9542   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9543        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9544   cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h.  */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h.  */
9550
9551 int
9552 main ()
9553 {
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9561 case "(($ac_try" in
9562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563   *) ac_try_echo=$ac_try;;
9564 esac
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566   (eval "$ac_link") 2>conftest.er1
9567   ac_status=$?
9568   grep -v '^ *+' conftest.er1 >conftest.err
9569   rm -f conftest.er1
9570   cat conftest.err >&5
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } && {
9573          test -z "$ac_c_werror_flag" ||
9574          test ! -s conftest.err
9575        } && test -s conftest$ac_exeext &&
9576        $as_test_x conftest$ac_exeext; then
9577   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9578   shlibpath_overrides_runpath=yes
9579 fi
9580
9581 else
9582   echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585
9586 fi
9587
9588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9589       conftest$ac_exeext conftest.$ac_ext
9590   LDFLAGS=$save_LDFLAGS
9591   libdir=$save_libdir
9592
9593   # This implies no fast_install, which is unacceptable.
9594   # Some rework will be needed to allow for fast_install
9595   # before this can be enabled.
9596   hardcode_into_libs=yes
9597
9598   # Append ld.so.conf contents to the search path
9599   if test -f /etc/ld.so.conf; then
9600     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9601     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9602   fi
9603
9604   # We used to test for /lib/ld.so.1 and disable shared libraries on
9605   # powerpc, because MkLinux only supported shared libraries with the
9606   # GNU dynamic linker.  Since this was broken with cross compilers,
9607   # most powerpc-linux boxes support dynamic linking these days and
9608   # people can always --disable-shared, the test was removed, and we
9609   # assume the GNU/Linux dynamic linker is in use.
9610   dynamic_linker='GNU/Linux ld.so'
9611   ;;
9612
9613 netbsd*)
9614   version_type=sunos
9615   need_lib_prefix=no
9616   need_version=no
9617   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9620     dynamic_linker='NetBSD (a.out) ld.so'
9621   else
9622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9623     soname_spec='${libname}${release}${shared_ext}$major'
9624     dynamic_linker='NetBSD ld.elf_so'
9625   fi
9626   shlibpath_var=LD_LIBRARY_PATH
9627   shlibpath_overrides_runpath=yes
9628   hardcode_into_libs=yes
9629   ;;
9630
9631 newsos6)
9632   version_type=linux
9633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634   shlibpath_var=LD_LIBRARY_PATH
9635   shlibpath_overrides_runpath=yes
9636   ;;
9637
9638 *nto* | *qnx*)
9639   version_type=qnx
9640   need_lib_prefix=no
9641   need_version=no
9642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643   soname_spec='${libname}${release}${shared_ext}$major'
9644   shlibpath_var=LD_LIBRARY_PATH
9645   shlibpath_overrides_runpath=no
9646   hardcode_into_libs=yes
9647   dynamic_linker='ldqnx.so'
9648   ;;
9649
9650 openbsd*)
9651   version_type=sunos
9652   sys_lib_dlsearch_path_spec="/usr/lib"
9653   need_lib_prefix=no
9654   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9655   case $host_os in
9656     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9657     *)                          need_version=no  ;;
9658   esac
9659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661   shlibpath_var=LD_LIBRARY_PATH
9662   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9663     case $host_os in
9664       openbsd2.[89] | openbsd2.[89].*)
9665         shlibpath_overrides_runpath=no
9666         ;;
9667       *)
9668         shlibpath_overrides_runpath=yes
9669         ;;
9670       esac
9671   else
9672     shlibpath_overrides_runpath=yes
9673   fi
9674   ;;
9675
9676 os2*)
9677   libname_spec='$name'
9678   shrext_cmds=".dll"
9679   need_lib_prefix=no
9680   library_names_spec='$libname${shared_ext} $libname.a'
9681   dynamic_linker='OS/2 ld.exe'
9682   shlibpath_var=LIBPATH
9683   ;;
9684
9685 osf3* | osf4* | osf5*)
9686   version_type=osf
9687   need_lib_prefix=no
9688   need_version=no
9689   soname_spec='${libname}${release}${shared_ext}$major'
9690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691   shlibpath_var=LD_LIBRARY_PATH
9692   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9693   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9694   ;;
9695
9696 rdos*)
9697   dynamic_linker=no
9698   ;;
9699
9700 solaris*)
9701   version_type=linux
9702   need_lib_prefix=no
9703   need_version=no
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=yes
9708   hardcode_into_libs=yes
9709   # ldd complains unless libraries are executable
9710   postinstall_cmds='chmod +x $lib'
9711   ;;
9712
9713 sunos4*)
9714   version_type=sunos
9715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717   shlibpath_var=LD_LIBRARY_PATH
9718   shlibpath_overrides_runpath=yes
9719   if test "$with_gnu_ld" = yes; then
9720     need_lib_prefix=no
9721   fi
9722   need_version=yes
9723   ;;
9724
9725 sysv4 | sysv4.3*)
9726   version_type=linux
9727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728   soname_spec='${libname}${release}${shared_ext}$major'
9729   shlibpath_var=LD_LIBRARY_PATH
9730   case $host_vendor in
9731     sni)
9732       shlibpath_overrides_runpath=no
9733       need_lib_prefix=no
9734       runpath_var=LD_RUN_PATH
9735       ;;
9736     siemens)
9737       need_lib_prefix=no
9738       ;;
9739     motorola)
9740       need_lib_prefix=no
9741       need_version=no
9742       shlibpath_overrides_runpath=no
9743       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9744       ;;
9745   esac
9746   ;;
9747
9748 sysv4*MP*)
9749   if test -d /usr/nec ;then
9750     version_type=linux
9751     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752     soname_spec='$libname${shared_ext}.$major'
9753     shlibpath_var=LD_LIBRARY_PATH
9754   fi
9755   ;;
9756
9757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758   version_type=freebsd-elf
9759   need_lib_prefix=no
9760   need_version=no
9761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762   soname_spec='${libname}${release}${shared_ext}$major'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   shlibpath_overrides_runpath=yes
9765   hardcode_into_libs=yes
9766   if test "$with_gnu_ld" = yes; then
9767     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9768   else
9769     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9770     case $host_os in
9771       sco3.2v5*)
9772         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9773         ;;
9774     esac
9775   fi
9776   sys_lib_dlsearch_path_spec='/usr/lib'
9777   ;;
9778
9779 tpf*)
9780   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9781   version_type=linux
9782   need_lib_prefix=no
9783   need_version=no
9784   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785   shlibpath_var=LD_LIBRARY_PATH
9786   shlibpath_overrides_runpath=no
9787   hardcode_into_libs=yes
9788   ;;
9789
9790 uts4*)
9791   version_type=linux
9792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793   soname_spec='${libname}${release}${shared_ext}$major'
9794   shlibpath_var=LD_LIBRARY_PATH
9795   ;;
9796
9797 *)
9798   dynamic_linker=no
9799   ;;
9800 esac
9801 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9802 echo "${ECHO_T}$dynamic_linker" >&6; }
9803 test "$dynamic_linker" = no && can_build_shared=no
9804
9805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9806 if test "$GCC" = yes; then
9807   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9808 fi
9809
9810 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9811   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9812 fi
9813 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9814   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9815 fi
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9904 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9905 hardcode_action=
9906 if test -n "$hardcode_libdir_flag_spec" ||
9907    test -n "$runpath_var" ||
9908    test "X$hardcode_automatic" = "Xyes" ; then
9909
9910   # We can hardcode non-existent directories.
9911   if test "$hardcode_direct" != no &&
9912      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9913      # have to relink, otherwise we might link with an installed library
9914      # when we should be linking with a yet-to-be-installed one
9915      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9916      test "$hardcode_minus_L" != no; then
9917     # Linking always hardcodes the temporary library directory.
9918     hardcode_action=relink
9919   else
9920     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9921     hardcode_action=immediate
9922   fi
9923 else
9924   # We cannot hardcode anything, or else we can only hardcode existing
9925   # directories.
9926   hardcode_action=unsupported
9927 fi
9928 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9929 echo "${ECHO_T}$hardcode_action" >&6; }
9930
9931 if test "$hardcode_action" = relink ||
9932    test "$inherit_rpath" = yes; then
9933   # Fast installation is not supported
9934   enable_fast_install=no
9935 elif test "$shlibpath_overrides_runpath" = yes ||
9936      test "$enable_shared" = no; then
9937   # Fast installation is not necessary
9938   enable_fast_install=needless
9939 fi
9940
9941
9942
9943
9944
9945
9946   if test "x$enable_dlopen" != xyes; then
9947   enable_dlopen=unknown
9948   enable_dlopen_self=unknown
9949   enable_dlopen_self_static=unknown
9950 else
9951   lt_cv_dlopen=no
9952   lt_cv_dlopen_libs=
9953
9954   case $host_os in
9955   beos*)
9956     lt_cv_dlopen="load_add_on"
9957     lt_cv_dlopen_libs=
9958     lt_cv_dlopen_self=yes
9959     ;;
9960
9961   mingw* | pw32*)
9962     lt_cv_dlopen="LoadLibrary"
9963     lt_cv_dlopen_libs=
9964     ;;
9965
9966   cygwin*)
9967     lt_cv_dlopen="dlopen"
9968     lt_cv_dlopen_libs=
9969     ;;
9970
9971   darwin*)
9972   # if libdl is installed we need to link against it
9973     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   ac_check_lib_save_LIBS=$LIBS
9979 LIBS="-ldl  $LIBS"
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986
9987 /* Override any GCC internal prototype to avoid an error.
9988    Use char because int might match the return type of a GCC
9989    builtin and then its argument prototype would still apply.  */
9990 #ifdef __cplusplus
9991 extern "C"
9992 #endif
9993 char dlopen ();
9994 int
9995 main ()
9996 {
9997 return dlopen ();
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009   (eval "$ac_link") 2>conftest.er1
10010   ac_status=$?
10011   grep -v '^ *+' conftest.er1 >conftest.err
10012   rm -f conftest.er1
10013   cat conftest.err >&5
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } && {
10016          test -z "$ac_c_werror_flag" ||
10017          test ! -s conftest.err
10018        } && test -s conftest$ac_exeext &&
10019        $as_test_x conftest$ac_exeext; then
10020   ac_cv_lib_dl_dlopen=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025         ac_cv_lib_dl_dlopen=no
10026 fi
10027
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029       conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10031 fi
10032 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10033 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10034 if test $ac_cv_lib_dl_dlopen = yes; then
10035   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10036 else
10037
10038     lt_cv_dlopen="dyld"
10039     lt_cv_dlopen_libs=
10040     lt_cv_dlopen_self=yes
10041
10042 fi
10043
10044     ;;
10045
10046   *)
10047     { echo "$as_me:$LINENO: checking for shl_load" >&5
10048 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10049 if test "${ac_cv_func_shl_load+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10060 #define shl_load innocuous_shl_load
10061
10062 /* System header to define __stub macros and hopefully few prototypes,
10063     which can conflict with char shl_load (); below.
10064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065     <limits.h> exists even on freestanding compilers.  */
10066
10067 #ifdef __STDC__
10068 # include <limits.h>
10069 #else
10070 # include <assert.h>
10071 #endif
10072
10073 #undef shl_load
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076    Use char because int might match the return type of a GCC
10077    builtin and then its argument prototype would still apply.  */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char shl_load ();
10082 /* The GNU C library defines this for functions which it implements
10083     to always fail with ENOSYS.  Some functions are actually named
10084     something starting with __ and the normal name is an alias.  */
10085 #if defined __stub_shl_load || defined __stub___shl_load
10086 choke me
10087 #endif
10088
10089 int
10090 main ()
10091 {
10092 return shl_load ();
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_link") 2>conftest.er1
10105   ac_status=$?
10106   grep -v '^ *+' conftest.er1 >conftest.err
10107   rm -f conftest.er1
10108   cat conftest.err >&5
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); } && {
10111          test -z "$ac_c_werror_flag" ||
10112          test ! -s conftest.err
10113        } && test -s conftest$ac_exeext &&
10114        $as_test_x conftest$ac_exeext; then
10115   ac_cv_func_shl_load=yes
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120         ac_cv_func_shl_load=no
10121 fi
10122
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124       conftest$ac_exeext conftest.$ac_ext
10125 fi
10126 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10127 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10128 if test $ac_cv_func_shl_load = yes; then
10129   lt_cv_dlopen="shl_load"
10130 else
10131   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10132 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10134   echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136   ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldld  $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char shl_load ();
10152 int
10153 main ()
10154 {
10155 return shl_load ();
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_link") 2>conftest.er1
10168   ac_status=$?
10169   grep -v '^ *+' conftest.er1 >conftest.err
10170   rm -f conftest.er1
10171   cat conftest.err >&5
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } && {
10174          test -z "$ac_c_werror_flag" ||
10175          test ! -s conftest.err
10176        } && test -s conftest$ac_exeext &&
10177        $as_test_x conftest$ac_exeext; then
10178   ac_cv_lib_dld_shl_load=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183         ac_cv_lib_dld_shl_load=no
10184 fi
10185
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187       conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10191 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10192 if test $ac_cv_lib_dld_shl_load = yes; then
10193   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10194 else
10195   { echo "$as_me:$LINENO: checking for dlopen" >&5
10196 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10197 if test "${ac_cv_func_dlopen+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10208 #define dlopen innocuous_dlopen
10209
10210 /* System header to define __stub macros and hopefully few prototypes,
10211     which can conflict with char dlopen (); below.
10212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10213     <limits.h> exists even on freestanding compilers.  */
10214
10215 #ifdef __STDC__
10216 # include <limits.h>
10217 #else
10218 # include <assert.h>
10219 #endif
10220
10221 #undef dlopen
10222
10223 /* Override any GCC internal prototype to avoid an error.
10224    Use char because int might match the return type of a GCC
10225    builtin and then its argument prototype would still apply.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 char dlopen ();
10230 /* The GNU C library defines this for functions which it implements
10231     to always fail with ENOSYS.  Some functions are actually named
10232     something starting with __ and the normal name is an alias.  */
10233 #if defined __stub_dlopen || defined __stub___dlopen
10234 choke me
10235 #endif
10236
10237 int
10238 main ()
10239 {
10240 return dlopen ();
10241   ;
10242   return 0;
10243 }
10244 _ACEOF
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249   *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252   (eval "$ac_link") 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } && {
10259          test -z "$ac_c_werror_flag" ||
10260          test ! -s conftest.err
10261        } && test -s conftest$ac_exeext &&
10262        $as_test_x conftest$ac_exeext; then
10263   ac_cv_func_dlopen=yes
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268         ac_cv_func_dlopen=no
10269 fi
10270
10271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10272       conftest$ac_exeext conftest.$ac_ext
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10275 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10276 if test $ac_cv_func_dlopen = yes; then
10277   lt_cv_dlopen="dlopen"
10278 else
10279   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10280 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   ac_check_lib_save_LIBS=$LIBS
10285 LIBS="-ldl  $LIBS"
10286 cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292
10293 /* Override any GCC internal prototype to avoid an error.
10294    Use char because int might match the return type of a GCC
10295    builtin and then its argument prototype would still apply.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char dlopen ();
10300 int
10301 main ()
10302 {
10303 return dlopen ();
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315   (eval "$ac_link") 2>conftest.er1
10316   ac_status=$?
10317   grep -v '^ *+' conftest.er1 >conftest.err
10318   rm -f conftest.er1
10319   cat conftest.err >&5
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } && {
10322          test -z "$ac_c_werror_flag" ||
10323          test ! -s conftest.err
10324        } && test -s conftest$ac_exeext &&
10325        $as_test_x conftest$ac_exeext; then
10326   ac_cv_lib_dl_dlopen=yes
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331         ac_cv_lib_dl_dlopen=no
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10335       conftest$ac_exeext conftest.$ac_ext
10336 LIBS=$ac_check_lib_save_LIBS
10337 fi
10338 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10339 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10340 if test $ac_cv_lib_dl_dlopen = yes; then
10341   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10342 else
10343   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10344 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348   ac_check_lib_save_LIBS=$LIBS
10349 LIBS="-lsvld  $LIBS"
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356
10357 /* Override any GCC internal prototype to avoid an error.
10358    Use char because int might match the return type of a GCC
10359    builtin and then its argument prototype would still apply.  */
10360 #ifdef __cplusplus
10361 extern "C"
10362 #endif
10363 char dlopen ();
10364 int
10365 main ()
10366 {
10367 return dlopen ();
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (ac_try="$ac_link"
10374 case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_link") 2>conftest.er1
10380   ac_status=$?
10381   grep -v '^ *+' conftest.er1 >conftest.err
10382   rm -f conftest.er1
10383   cat conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } && {
10386          test -z "$ac_c_werror_flag" ||
10387          test ! -s conftest.err
10388        } && test -s conftest$ac_exeext &&
10389        $as_test_x conftest$ac_exeext; then
10390   ac_cv_lib_svld_dlopen=yes
10391 else
10392   echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10394
10395         ac_cv_lib_svld_dlopen=no
10396 fi
10397
10398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10399       conftest$ac_exeext conftest.$ac_ext
10400 LIBS=$ac_check_lib_save_LIBS
10401 fi
10402 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10403 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10404 if test $ac_cv_lib_svld_dlopen = yes; then
10405   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10406 else
10407   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10408 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-ldld  $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420
10421 /* Override any GCC internal prototype to avoid an error.
10422    Use char because int might match the return type of a GCC
10423    builtin and then its argument prototype would still apply.  */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 char dld_link ();
10428 int
10429 main ()
10430 {
10431 return dld_link ();
10432   ;
10433   return 0;
10434 }
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440   *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443   (eval "$ac_link") 2>conftest.er1
10444   ac_status=$?
10445   grep -v '^ *+' conftest.er1 >conftest.err
10446   rm -f conftest.er1
10447   cat conftest.err >&5
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); } && {
10450          test -z "$ac_c_werror_flag" ||
10451          test ! -s conftest.err
10452        } && test -s conftest$ac_exeext &&
10453        $as_test_x conftest$ac_exeext; then
10454   ac_cv_lib_dld_dld_link=yes
10455 else
10456   echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459         ac_cv_lib_dld_dld_link=no
10460 fi
10461
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463       conftest$ac_exeext conftest.$ac_ext
10464 LIBS=$ac_check_lib_save_LIBS
10465 fi
10466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10467 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10468 if test $ac_cv_lib_dld_dld_link = yes; then
10469   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10470 fi
10471
10472
10473 fi
10474
10475
10476 fi
10477
10478
10479 fi
10480
10481
10482 fi
10483
10484
10485 fi
10486
10487     ;;
10488   esac
10489
10490   if test "x$lt_cv_dlopen" != xno; then
10491     enable_dlopen=yes
10492   else
10493     enable_dlopen=no
10494   fi
10495
10496   case $lt_cv_dlopen in
10497   dlopen)
10498     save_CPPFLAGS="$CPPFLAGS"
10499     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10500
10501     save_LDFLAGS="$LDFLAGS"
10502     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10503
10504     save_LIBS="$LIBS"
10505     LIBS="$lt_cv_dlopen_libs $LIBS"
10506
10507     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10508 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10509 if test "${lt_cv_dlopen_self+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512           if test "$cross_compiling" = yes; then :
10513   lt_cv_dlopen_self=cross
10514 else
10515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10516   lt_status=$lt_dlunknown
10517   cat > conftest.$ac_ext <<_LT_EOF
10518 #line 10518 "configure"
10519 #include "confdefs.h"
10520
10521 #if HAVE_DLFCN_H
10522 #include <dlfcn.h>
10523 #endif
10524
10525 #include <stdio.h>
10526
10527 #ifdef RTLD_GLOBAL
10528 #  define LT_DLGLOBAL           RTLD_GLOBAL
10529 #else
10530 #  ifdef DL_GLOBAL
10531 #    define LT_DLGLOBAL         DL_GLOBAL
10532 #  else
10533 #    define LT_DLGLOBAL         0
10534 #  endif
10535 #endif
10536
10537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10538    find out it does not work in some platform. */
10539 #ifndef LT_DLLAZY_OR_NOW
10540 #  ifdef RTLD_LAZY
10541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10542 #  else
10543 #    ifdef DL_LAZY
10544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10545 #    else
10546 #      ifdef RTLD_NOW
10547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10548 #      else
10549 #        ifdef DL_NOW
10550 #          define LT_DLLAZY_OR_NOW      DL_NOW
10551 #        else
10552 #          define LT_DLLAZY_OR_NOW      0
10553 #        endif
10554 #      endif
10555 #    endif
10556 #  endif
10557 #endif
10558
10559 #ifdef __cplusplus
10560 extern "C" void exit (int);
10561 #endif
10562
10563 void fnord() { int i=42;}
10564 int main ()
10565 {
10566   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10567   int status = $lt_dlunknown;
10568
10569   if (self)
10570     {
10571       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10572       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10573       /* dlclose (self); */
10574     }
10575   else
10576     puts (dlerror ());
10577
10578     exit (status);
10579 }
10580 _LT_EOF
10581   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582   (eval $ac_link) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10586     (./conftest; exit; ) >&5 2>/dev/null
10587     lt_status=$?
10588     case x$lt_status in
10589       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10590       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10591       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10592     esac
10593   else :
10594     # compilation failed
10595     lt_cv_dlopen_self=no
10596   fi
10597 fi
10598 rm -fr conftest*
10599
10600
10601 fi
10602 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10603 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10604
10605     if test "x$lt_cv_dlopen_self" = xyes; then
10606       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10607       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10608 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10609 if test "${lt_cv_dlopen_self_static+set}" = set; then
10610   echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612           if test "$cross_compiling" = yes; then :
10613   lt_cv_dlopen_self_static=cross
10614 else
10615   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10616   lt_status=$lt_dlunknown
10617   cat > conftest.$ac_ext <<_LT_EOF
10618 #line 10618 "configure"
10619 #include "confdefs.h"
10620
10621 #if HAVE_DLFCN_H
10622 #include <dlfcn.h>
10623 #endif
10624
10625 #include <stdio.h>
10626
10627 #ifdef RTLD_GLOBAL
10628 #  define LT_DLGLOBAL           RTLD_GLOBAL
10629 #else
10630 #  ifdef DL_GLOBAL
10631 #    define LT_DLGLOBAL         DL_GLOBAL
10632 #  else
10633 #    define LT_DLGLOBAL         0
10634 #  endif
10635 #endif
10636
10637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10638    find out it does not work in some platform. */
10639 #ifndef LT_DLLAZY_OR_NOW
10640 #  ifdef RTLD_LAZY
10641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10642 #  else
10643 #    ifdef DL_LAZY
10644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10645 #    else
10646 #      ifdef RTLD_NOW
10647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10648 #      else
10649 #        ifdef DL_NOW
10650 #          define LT_DLLAZY_OR_NOW      DL_NOW
10651 #        else
10652 #          define LT_DLLAZY_OR_NOW      0
10653 #        endif
10654 #      endif
10655 #    endif
10656 #  endif
10657 #endif
10658
10659 #ifdef __cplusplus
10660 extern "C" void exit (int);
10661 #endif
10662
10663 void fnord() { int i=42;}
10664 int main ()
10665 {
10666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10667   int status = $lt_dlunknown;
10668
10669   if (self)
10670     {
10671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10672       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10673       /* dlclose (self); */
10674     }
10675   else
10676     puts (dlerror ());
10677
10678     exit (status);
10679 }
10680 _LT_EOF
10681   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682   (eval $ac_link) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10686     (./conftest; exit; ) >&5 2>/dev/null
10687     lt_status=$?
10688     case x$lt_status in
10689       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10690       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10691       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10692     esac
10693   else :
10694     # compilation failed
10695     lt_cv_dlopen_self_static=no
10696   fi
10697 fi
10698 rm -fr conftest*
10699
10700
10701 fi
10702 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10703 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10704     fi
10705
10706     CPPFLAGS="$save_CPPFLAGS"
10707     LDFLAGS="$save_LDFLAGS"
10708     LIBS="$save_LIBS"
10709     ;;
10710   esac
10711
10712   case $lt_cv_dlopen_self in
10713   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10714   *) enable_dlopen_self=unknown ;;
10715   esac
10716
10717   case $lt_cv_dlopen_self_static in
10718   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10719   *) enable_dlopen_self_static=unknown ;;
10720   esac
10721 fi
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739 striplib=
10740 old_striplib=
10741 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10742 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10744   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10745   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10746   { echo "$as_me:$LINENO: result: yes" >&5
10747 echo "${ECHO_T}yes" >&6; }
10748 else
10749 # FIXME - insert some real tests, host_os isn't really good enough
10750   case $host_os in
10751   darwin*)
10752     if test -n "$STRIP" ; then
10753       striplib="$STRIP -x"
10754       old_striplib="$STRIP -S"
10755       { echo "$as_me:$LINENO: result: yes" >&5
10756 echo "${ECHO_T}yes" >&6; }
10757     else
10758       { echo "$as_me:$LINENO: result: no" >&5
10759 echo "${ECHO_T}no" >&6; }
10760     fi
10761     ;;
10762   *)
10763     { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10765     ;;
10766   esac
10767 fi
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780   # Report which library types will actually be built
10781   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10782 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10783   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10784 echo "${ECHO_T}$can_build_shared" >&6; }
10785
10786   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10788   test "$can_build_shared" = "no" && enable_shared=no
10789
10790   # On AIX, shared libraries and static libraries use the same namespace, and
10791   # are all built from PIC.
10792   case $host_os in
10793   aix3*)
10794     test "$enable_shared" = yes && enable_static=no
10795     if test -n "$RANLIB"; then
10796       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10797       postinstall_cmds='$RANLIB $lib'
10798     fi
10799     ;;
10800
10801   aix[4-9]*)
10802     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10803       test "$enable_shared" = yes && enable_static=no
10804     fi
10805     ;;
10806   esac
10807   { echo "$as_me:$LINENO: result: $enable_shared" >&5
10808 echo "${ECHO_T}$enable_shared" >&6; }
10809
10810   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10811 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10812   # Make sure either enable_shared or enable_static is yes.
10813   test "$enable_shared" = yes || enable_static=yes
10814   { echo "$as_me:$LINENO: result: $enable_static" >&5
10815 echo "${ECHO_T}$enable_static" >&6; }
10816
10817
10818
10819
10820 fi
10821 ac_ext=c
10822 ac_cpp='$CPP $CPPFLAGS'
10823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10826
10827 CC="$lt_save_CC"
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841         ac_config_commands="$ac_config_commands libtool"
10842
10843
10844
10845
10846 # Only expand once:
10847
10848
10849
10850 # Checks for libraries.
10851 # FIXME: Replace `main' with a function in `-lavcodec':
10852 #AC_CHECK_LIB([avcodec], [main])
10853 # FIXME: Replace `main' with a function in `-lavformat':
10854 #AC_CHECK_LIB([avformat], [main])
10855 # FIXME: Replace `main' with a function in `-lavutil':
10856 #AC_CHECK_LIB([avutil], [main])
10857 # FIXME: Replace `main' with a function in `-lm':
10858
10859 { echo "$as_me:$LINENO: checking for main in -lm" >&5
10860 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
10861 if test "${ac_cv_lib_m_main+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-lm  $LIBS"
10866 cat >conftest.$ac_ext <<_ACEOF
10867 /* confdefs.h.  */
10868 _ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h.  */
10872
10873
10874 int
10875 main ()
10876 {
10877 return main ();
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_link") 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } && {
10896          test -z "$ac_c_werror_flag" ||
10897          test ! -s conftest.err
10898        } && test -s conftest$ac_exeext &&
10899        $as_test_x conftest$ac_exeext; then
10900   ac_cv_lib_m_main=yes
10901 else
10902   echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905         ac_cv_lib_m_main=no
10906 fi
10907
10908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10909       conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10913 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
10914 if test $ac_cv_lib_m_main = yes; then
10915   cat >>confdefs.h <<_ACEOF
10916 #define HAVE_LIBM 1
10917 _ACEOF
10918
10919   LIBS="-lm $LIBS"
10920
10921 fi
10922
10923
10924 # Checks for header files.
10925
10926
10927
10928
10929
10930 ac_header_dirent=no
10931 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10932   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10933 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10934 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 #include <sys/types.h>
10945 #include <$ac_hdr>
10946
10947 int
10948 main ()
10949 {
10950 if ((DIR *) 0)
10951 return 0;
10952   ;
10953   return 0;
10954 }
10955 _ACEOF
10956 rm -f conftest.$ac_objext
10957 if { (ac_try="$ac_compile"
10958 case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_compile") 2>conftest.er1
10964   ac_status=$?
10965   grep -v '^ *+' conftest.er1 >conftest.err
10966   rm -f conftest.er1
10967   cat conftest.err >&5
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); } && {
10970          test -z "$ac_c_werror_flag" ||
10971          test ! -s conftest.err
10972        } && test -s conftest.$ac_objext; then
10973   eval "$as_ac_Header=yes"
10974 else
10975   echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10977
10978         eval "$as_ac_Header=no"
10979 fi
10980
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 fi
10983 ac_res=`eval echo '${'$as_ac_Header'}'`
10984                { echo "$as_me:$LINENO: result: $ac_res" >&5
10985 echo "${ECHO_T}$ac_res" >&6; }
10986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987   cat >>confdefs.h <<_ACEOF
10988 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10989 _ACEOF
10990
10991 ac_header_dirent=$ac_hdr; break
10992 fi
10993
10994 done
10995 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10996 if test $ac_header_dirent = dirent.h; then
10997   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10998 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10999 if test "${ac_cv_search_opendir+set}" = set; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   ac_func_search_save_LIBS=$LIBS
11003 cat >conftest.$ac_ext <<_ACEOF
11004 /* confdefs.h.  */
11005 _ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h.  */
11009
11010 /* Override any GCC internal prototype to avoid an error.
11011    Use char because int might match the return type of a GCC
11012    builtin and then its argument prototype would still apply.  */
11013 #ifdef __cplusplus
11014 extern "C"
11015 #endif
11016 char opendir ();
11017 int
11018 main ()
11019 {
11020 return opendir ();
11021   ;
11022   return 0;
11023 }
11024 _ACEOF
11025 for ac_lib in '' dir; do
11026   if test -z "$ac_lib"; then
11027     ac_res="none required"
11028   else
11029     ac_res=-l$ac_lib
11030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11031   fi
11032   rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (ac_try="$ac_link"
11034 case "(($ac_try" in
11035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036   *) ac_try_echo=$ac_try;;
11037 esac
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039   (eval "$ac_link") 2>conftest.er1
11040   ac_status=$?
11041   grep -v '^ *+' conftest.er1 >conftest.err
11042   rm -f conftest.er1
11043   cat conftest.err >&5
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); } && {
11046          test -z "$ac_c_werror_flag" ||
11047          test ! -s conftest.err
11048        } && test -s conftest$ac_exeext &&
11049        $as_test_x conftest$ac_exeext; then
11050   ac_cv_search_opendir=$ac_res
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055
11056 fi
11057
11058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11059       conftest$ac_exeext
11060   if test "${ac_cv_search_opendir+set}" = set; then
11061   break
11062 fi
11063 done
11064 if test "${ac_cv_search_opendir+set}" = set; then
11065   :
11066 else
11067   ac_cv_search_opendir=no
11068 fi
11069 rm conftest.$ac_ext
11070 LIBS=$ac_func_search_save_LIBS
11071 fi
11072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11074 ac_res=$ac_cv_search_opendir
11075 if test "$ac_res" != no; then
11076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11077
11078 fi
11079
11080 else
11081   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11083 if test "${ac_cv_search_opendir+set}" = set; then
11084   echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086   ac_func_search_save_LIBS=$LIBS
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h.  */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h.  */
11093
11094 /* Override any GCC internal prototype to avoid an error.
11095    Use char because int might match the return type of a GCC
11096    builtin and then its argument prototype would still apply.  */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char opendir ();
11101 int
11102 main ()
11103 {
11104 return opendir ();
11105   ;
11106   return 0;
11107 }
11108 _ACEOF
11109 for ac_lib in '' x; do
11110   if test -z "$ac_lib"; then
11111     ac_res="none required"
11112   else
11113     ac_res=-l$ac_lib
11114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11115   fi
11116   rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_link") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } && {
11130          test -z "$ac_c_werror_flag" ||
11131          test ! -s conftest.err
11132        } && test -s conftest$ac_exeext &&
11133        $as_test_x conftest$ac_exeext; then
11134   ac_cv_search_opendir=$ac_res
11135 else
11136   echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11138
11139
11140 fi
11141
11142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11143       conftest$ac_exeext
11144   if test "${ac_cv_search_opendir+set}" = set; then
11145   break
11146 fi
11147 done
11148 if test "${ac_cv_search_opendir+set}" = set; then
11149   :
11150 else
11151   ac_cv_search_opendir=no
11152 fi
11153 rm conftest.$ac_ext
11154 LIBS=$ac_func_search_save_LIBS
11155 fi
11156 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11157 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11158 ac_res=$ac_cv_search_opendir
11159 if test "$ac_res" != no; then
11160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11161
11162 fi
11163
11164 fi
11165
11166 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11167 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11168 if test "${ac_cv_header_stdc+set}" = set; then
11169   echo $ECHO_N "(cached) $ECHO_C" >&6
11170 else
11171   cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <stdlib.h>
11178 #include <stdarg.h>
11179 #include <string.h>
11180 #include <float.h>
11181
11182 int
11183 main ()
11184 {
11185
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_compile") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } && {
11204          test -z "$ac_c_werror_flag" ||
11205          test ! -s conftest.err
11206        } && test -s conftest.$ac_objext; then
11207   ac_cv_header_stdc=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212         ac_cv_header_stdc=no
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216
11217 if test $ac_cv_header_stdc = yes; then
11218   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11219   cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h.  */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h.  */
11225 #include <string.h>
11226
11227 _ACEOF
11228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11229   $EGREP "memchr" >/dev/null 2>&1; then
11230   :
11231 else
11232   ac_cv_header_stdc=no
11233 fi
11234 rm -f conftest*
11235
11236 fi
11237
11238 if test $ac_cv_header_stdc = yes; then
11239   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11240   cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246 #include <stdlib.h>
11247
11248 _ACEOF
11249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11250   $EGREP "free" >/dev/null 2>&1; then
11251   :
11252 else
11253   ac_cv_header_stdc=no
11254 fi
11255 rm -f conftest*
11256
11257 fi
11258
11259 if test $ac_cv_header_stdc = yes; then
11260   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11261   if test "$cross_compiling" = yes; then
11262   :
11263 else
11264   cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 #include <ctype.h>
11271 #include <stdlib.h>
11272 #if ((' ' & 0x0FF) == 0x020)
11273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11275 #else
11276 # define ISLOWER(c) \
11277                    (('a' <= (c) && (c) <= 'i') \
11278                      || ('j' <= (c) && (c) <= 'r') \
11279                      || ('s' <= (c) && (c) <= 'z'))
11280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11281 #endif
11282
11283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11284 int
11285 main ()
11286 {
11287   int i;
11288   for (i = 0; i < 256; i++)
11289     if (XOR (islower (i), ISLOWER (i))
11290         || toupper (i) != TOUPPER (i))
11291       return 2;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302   (eval "$ac_link") 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11306   { (case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_try") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; }; then
11315   :
11316 else
11317   echo "$as_me: program exited with status $ac_status" >&5
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11320
11321 ( exit $ac_status )
11322 ac_cv_header_stdc=no
11323 fi
11324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11325 fi
11326
11327
11328 fi
11329 fi
11330 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11331 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11332 if test $ac_cv_header_stdc = yes; then
11333
11334 cat >>confdefs.h <<\_ACEOF
11335 #define STDC_HEADERS 1
11336 _ACEOF
11337
11338 fi
11339
11340
11341
11342
11343
11344
11345
11346 for ac_header in fcntl.h limits.h stdlib.h string.h sys/time.h unistd.h
11347 do
11348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 fi
11355 ac_res=`eval echo '${'$as_ac_Header'}'`
11356                { echo "$as_me:$LINENO: result: $ac_res" >&5
11357 echo "${ECHO_T}$ac_res" >&6; }
11358 else
11359   # Is the header compilable?
11360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368 $ac_includes_default
11369 #include <$ac_header>
11370 _ACEOF
11371 rm -f conftest.$ac_objext
11372 if { (ac_try="$ac_compile"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_compile") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } && {
11385          test -z "$ac_c_werror_flag" ||
11386          test ! -s conftest.err
11387        } && test -s conftest.$ac_objext; then
11388   ac_header_compiler=yes
11389 else
11390   echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393         ac_header_compiler=no
11394 fi
11395
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11398 echo "${ECHO_T}$ac_header_compiler" >&6; }
11399
11400 # Is the header present?
11401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h.  */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h.  */
11409 #include <$ac_header>
11410 _ACEOF
11411 if { (ac_try="$ac_cpp conftest.$ac_ext"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } >/dev/null && {
11424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11425          test ! -s conftest.err
11426        }; then
11427   ac_header_preproc=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432   ac_header_preproc=no
11433 fi
11434
11435 rm -f conftest.err conftest.$ac_ext
11436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6; }
11438
11439 # So?  What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441   yes:no: )
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446     ac_header_preproc=yes
11447     ;;
11448   no:yes:* )
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461
11462     ;;
11463 esac
11464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469   eval "$as_ac_Header=\$ac_header_preproc"
11470 fi
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472                { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11474
11475 fi
11476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11477   cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11479 _ACEOF
11480
11481 fi
11482
11483 done
11484
11485
11486 # Checks for typedefs, structures, and compiler characteristics.
11487 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11488 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11489 if test "${ac_cv_header_stdbool_h+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498
11499 #include <stdbool.h>
11500 #ifndef bool
11501  "error: bool is not defined"
11502 #endif
11503 #ifndef false
11504  "error: false is not defined"
11505 #endif
11506 #if false
11507  "error: false is not 0"
11508 #endif
11509 #ifndef true
11510  "error: true is not defined"
11511 #endif
11512 #if true != 1
11513  "error: true is not 1"
11514 #endif
11515 #ifndef __bool_true_false_are_defined
11516  "error: __bool_true_false_are_defined is not defined"
11517 #endif
11518
11519         struct s { _Bool s: 1; _Bool t; } s;
11520
11521         char a[true == 1 ? 1 : -1];
11522         char b[false == 0 ? 1 : -1];
11523         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11524         char d[(bool) 0.5 == true ? 1 : -1];
11525         bool e = &s;
11526         char f[(_Bool) 0.0 == false ? 1 : -1];
11527         char g[true];
11528         char h[sizeof (_Bool)];
11529         char i[sizeof s.t];
11530         enum { j = false, k = true, l = false * true, m = true * 256 };
11531         _Bool n[m];
11532         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11533         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11534 #       if defined __xlc__ || defined __GNUC__
11535          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11536             reported by James Lemley on 2005-10-05; see
11537             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11538             This test is not quite right, since xlc is allowed to
11539             reject this program, as the initializer for xlcbug is
11540             not one of the forms that C requires support for.
11541             However, doing the test right would require a runtime
11542             test, and that would make cross-compilation harder.
11543             Let us hope that IBM fixes the xlc bug, and also adds
11544             support for this kind of constant expression.  In the
11545             meantime, this test will reject xlc, which is OK, since
11546             our stdbool.h substitute should suffice.  We also test
11547             this with GCC, where it should work, to detect more
11548             quickly whether someone messes up the test in the
11549             future.  */
11550          char digs[] = "0123456789";
11551          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11552 #       endif
11553         /* Catch a bug in an HP-UX C compiler.  See
11554            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11555            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11556          */
11557         _Bool q = true;
11558         _Bool *pq = &q;
11559
11560 int
11561 main ()
11562 {
11563
11564         *pq |= q;
11565         *pq |= ! q;
11566         /* Refer to every declared value, to avoid compiler optimizations.  */
11567         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11568                 + !m + !n + !o + !p + !q + !pq);
11569
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext
11575 if { (ac_try="$ac_compile"
11576 case "(($ac_try" in
11577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578   *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581   (eval "$ac_compile") 2>conftest.er1
11582   ac_status=$?
11583   grep -v '^ *+' conftest.er1 >conftest.err
11584   rm -f conftest.er1
11585   cat conftest.err >&5
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } && {
11588          test -z "$ac_c_werror_flag" ||
11589          test ! -s conftest.err
11590        } && test -s conftest.$ac_objext; then
11591   ac_cv_header_stdbool_h=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596         ac_cv_header_stdbool_h=no
11597 fi
11598
11599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 fi
11601 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11602 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11603 { echo "$as_me:$LINENO: checking for _Bool" >&5
11604 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11605 if test "${ac_cv_type__Bool+set}" = set; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 $ac_includes_default
11615 typedef _Bool ac__type_new_;
11616 int
11617 main ()
11618 {
11619 if ((ac__type_new_ *) 0)
11620   return 0;
11621 if (sizeof (ac__type_new_))
11622   return 0;
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 rm -f conftest.$ac_objext
11628 if { (ac_try="$ac_compile"
11629 case "(($ac_try" in
11630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631   *) ac_try_echo=$ac_try;;
11632 esac
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634   (eval "$ac_compile") 2>conftest.er1
11635   ac_status=$?
11636   grep -v '^ *+' conftest.er1 >conftest.err
11637   rm -f conftest.er1
11638   cat conftest.err >&5
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); } && {
11641          test -z "$ac_c_werror_flag" ||
11642          test ! -s conftest.err
11643        } && test -s conftest.$ac_objext; then
11644   ac_cv_type__Bool=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649         ac_cv_type__Bool=no
11650 fi
11651
11652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653 fi
11654 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11655 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11656 if test $ac_cv_type__Bool = yes; then
11657
11658 cat >>confdefs.h <<_ACEOF
11659 #define HAVE__BOOL 1
11660 _ACEOF
11661
11662
11663 fi
11664
11665 if test $ac_cv_header_stdbool_h = yes; then
11666
11667 cat >>confdefs.h <<\_ACEOF
11668 #define HAVE_STDBOOL_H 1
11669 _ACEOF
11670
11671 fi
11672
11673 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11674 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11675 if test "${ac_cv_c_const+set}" = set; then
11676   echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678   cat >conftest.$ac_ext <<_ACEOF
11679 /* confdefs.h.  */
11680 _ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h.  */
11684
11685 int
11686 main ()
11687 {
11688 /* FIXME: Include the comments suggested by Paul. */
11689 #ifndef __cplusplus
11690   /* Ultrix mips cc rejects this.  */
11691   typedef int charset[2];
11692   const charset cs;
11693   /* SunOS 4.1.1 cc rejects this.  */
11694   char const *const *pcpcc;
11695   char **ppc;
11696   /* NEC SVR4.0.2 mips cc rejects this.  */
11697   struct point {int x, y;};
11698   static struct point const zero = {0,0};
11699   /* AIX XL C 1.02.0.0 rejects this.
11700      It does not let you subtract one const X* pointer from another in
11701      an arm of an if-expression whose if-part is not a constant
11702      expression */
11703   const char *g = "string";
11704   pcpcc = &g + (g ? g-g : 0);
11705   /* HPUX 7.0 cc rejects these. */
11706   ++pcpcc;
11707   ppc = (char**) pcpcc;
11708   pcpcc = (char const *const *) ppc;
11709   { /* SCO 3.2v4 cc rejects this.  */
11710     char *t;
11711     char const *s = 0 ? (char *) 0 : (char const *) 0;
11712
11713     *t++ = 0;
11714     if (s) return 0;
11715   }
11716   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11717     int x[] = {25, 17};
11718     const int *foo = &x[0];
11719     ++foo;
11720   }
11721   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11722     typedef const int *iptr;
11723     iptr p = 0;
11724     ++p;
11725   }
11726   { /* AIX XL C 1.02.0.0 rejects this saying
11727        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11728     struct s { int j; const int *ap[3]; };
11729     struct s *b; b->j = 5;
11730   }
11731   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11732     const int foo = 10;
11733     if (!foo) return 0;
11734   }
11735   return !cs[0] && !zero.x;
11736 #endif
11737
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 rm -f conftest.$ac_objext
11743 if { (ac_try="$ac_compile"
11744 case "(($ac_try" in
11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746   *) ac_try_echo=$ac_try;;
11747 esac
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749   (eval "$ac_compile") 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } && {
11756          test -z "$ac_c_werror_flag" ||
11757          test ! -s conftest.err
11758        } && test -s conftest.$ac_objext; then
11759   ac_cv_c_const=yes
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764         ac_cv_c_const=no
11765 fi
11766
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 fi
11769 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11770 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11771 if test $ac_cv_c_const = no; then
11772
11773 cat >>confdefs.h <<\_ACEOF
11774 #define const
11775 _ACEOF
11776
11777 fi
11778
11779 { echo "$as_me:$LINENO: checking for inline" >&5
11780 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11781 if test "${ac_cv_c_inline+set}" = set; then
11782   echo $ECHO_N "(cached) $ECHO_C" >&6
11783 else
11784   ac_cv_c_inline=no
11785 for ac_kw in inline __inline__ __inline; do
11786   cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 #ifndef __cplusplus
11793 typedef int foo_t;
11794 static $ac_kw foo_t static_foo () {return 0; }
11795 $ac_kw foo_t foo () {return 0; }
11796 #endif
11797
11798 _ACEOF
11799 rm -f conftest.$ac_objext
11800 if { (ac_try="$ac_compile"
11801 case "(($ac_try" in
11802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803   *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806   (eval "$ac_compile") 2>conftest.er1
11807   ac_status=$?
11808   grep -v '^ *+' conftest.er1 >conftest.err
11809   rm -f conftest.er1
11810   cat conftest.err >&5
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } && {
11813          test -z "$ac_c_werror_flag" ||
11814          test ! -s conftest.err
11815        } && test -s conftest.$ac_objext; then
11816   ac_cv_c_inline=$ac_kw
11817 else
11818   echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821
11822 fi
11823
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825   test "$ac_cv_c_inline" != no && break
11826 done
11827
11828 fi
11829 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11830 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11831
11832
11833 case $ac_cv_c_inline in
11834   inline | yes) ;;
11835   *)
11836     case $ac_cv_c_inline in
11837       no) ac_val=;;
11838       *) ac_val=$ac_cv_c_inline;;
11839     esac
11840     cat >>confdefs.h <<_ACEOF
11841 #ifndef __cplusplus
11842 #define inline $ac_val
11843 #endif
11844 _ACEOF
11845     ;;
11846 esac
11847
11848
11849   { echo "$as_me:$LINENO: checking for int64_t" >&5
11850 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11851 if test "${ac_cv_c_int64_t+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   ac_cv_c_int64_t=no
11855      for ac_type in 'int64_t' 'int' 'long int' \
11856          'long long int' 'short int' 'signed char'; do
11857        cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 $ac_includes_default
11864 int
11865 main ()
11866 {
11867 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
11868 test_array [0] = 0
11869
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext
11875 if { (ac_try="$ac_compile"
11876 case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_compile") 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } && {
11888          test -z "$ac_c_werror_flag" ||
11889          test ! -s conftest.err
11890        } && test -s conftest.$ac_objext; then
11891   cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897 $ac_includes_default
11898 int
11899 main ()
11900 {
11901 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
11902                  < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
11903 test_array [0] = 0
11904
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (ac_try="$ac_compile"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_compile") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } && {
11923          test -z "$ac_c_werror_flag" ||
11924          test ! -s conftest.err
11925        } && test -s conftest.$ac_objext; then
11926   :
11927 else
11928   echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931         case $ac_type in
11932   int64_t) ac_cv_c_int64_t=yes ;;
11933   *) ac_cv_c_int64_t=$ac_type ;;
11934 esac
11935
11936 fi
11937
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943
11944 fi
11945
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947        test "$ac_cv_c_int64_t" != no && break
11948      done
11949 fi
11950 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
11951 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
11952   case $ac_cv_c_int64_t in #(
11953   no|yes) ;; #(
11954   *)
11955
11956 cat >>confdefs.h <<_ACEOF
11957 #define int64_t $ac_cv_c_int64_t
11958 _ACEOF
11959 ;;
11960   esac
11961
11962 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11963 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11964 if test "${ac_cv_header_time+set}" = set; then
11965   echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967   cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 #include <sys/types.h>
11974 #include <sys/time.h>
11975 #include <time.h>
11976
11977 int
11978 main ()
11979 {
11980 if ((struct tm *) 0)
11981 return 0;
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (ac_try="$ac_compile"
11988 case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_compile") 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } && {
12000          test -z "$ac_c_werror_flag" ||
12001          test ! -s conftest.err
12002        } && test -s conftest.$ac_objext; then
12003   ac_cv_header_time=yes
12004 else
12005   echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008         ac_cv_header_time=no
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 fi
12013 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12014 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12015 if test $ac_cv_header_time = yes; then
12016
12017 cat >>confdefs.h <<\_ACEOF
12018 #define TIME_WITH_SYS_TIME 1
12019 _ACEOF
12020
12021 fi
12022
12023
12024 # Checks for library functions.
12025 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
12026 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
12027 if test "${ac_cv_func_closedir_void+set}" = set; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030   if test "$cross_compiling" = yes; then
12031   ac_cv_func_closedir_void=yes
12032 else
12033   cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h.  */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h.  */
12039 $ac_includes_default
12040 #include <$ac_header_dirent>
12041 #ifndef __cplusplus
12042 int closedir ();
12043 #endif
12044
12045 int
12046 main ()
12047 {
12048 return closedir (opendir (".")) != 0;
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_link") 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12064   { (case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_try") 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_cv_func_closedir_void=no
12074 else
12075   echo "$as_me: program exited with status $ac_status" >&5
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ( exit $ac_status )
12080 ac_cv_func_closedir_void=yes
12081 fi
12082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12083 fi
12084
12085
12086 fi
12087 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
12088 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
12089 if test $ac_cv_func_closedir_void = yes; then
12090
12091 cat >>confdefs.h <<\_ACEOF
12092 #define CLOSEDIR_VOID 1
12093 _ACEOF
12094
12095 fi
12096
12097 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12098 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12099 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   rm -f conftest.sym conftest.file
12103 echo >conftest.file
12104 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12105   if test "$cross_compiling" = yes; then
12106   ac_cv_func_lstat_dereferences_slashed_symlink=no
12107 else
12108   cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h.  */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h.  */
12114 $ac_includes_default
12115 int
12116 main ()
12117 {
12118 struct stat sbuf;
12119      /* Linux will dereference the symlink and fail.
12120         That is better in the sense that it means we will not
12121         have to compile and use the lstat wrapper.  */
12122      return lstat ("conftest.sym/", &sbuf) == 0;
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 rm -f conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_link") 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12138   { (case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_try") 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_func_lstat_dereferences_slashed_symlink=yes
12148 else
12149   echo "$as_me: program exited with status $ac_status" >&5
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ( exit $ac_status )
12154 ac_cv_func_lstat_dereferences_slashed_symlink=no
12155 fi
12156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12157 fi
12158
12159
12160 else
12161   # If the `ln -s' command failed, then we probably don't even
12162   # have an lstat function.
12163   ac_cv_func_lstat_dereferences_slashed_symlink=no
12164 fi
12165 rm -f conftest.sym conftest.file
12166
12167 fi
12168 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12169 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12170
12171 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12172
12173 cat >>confdefs.h <<_ACEOF
12174 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12175 _ACEOF
12176
12177
12178 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12179   case " $LIBOBJS " in
12180   *" lstat.$ac_objext "* ) ;;
12181   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12182  ;;
12183 esac
12184
12185 fi
12186
12187 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
12188 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
12189 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   if test "$cross_compiling" = yes; then
12193   ac_cv_func_lstat_empty_string_bug=yes
12194 else
12195   cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201 $ac_includes_default
12202 int
12203 main ()
12204 {
12205 struct stat sbuf;
12206   return lstat ("", &sbuf) == 0;
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest$ac_exeext
12212 if { (ac_try="$ac_link"
12213 case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218   (eval "$ac_link") 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12222   { (case "(($ac_try" in
12223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224   *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227   (eval "$ac_try") 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_func_lstat_empty_string_bug=no
12232 else
12233   echo "$as_me: program exited with status $ac_status" >&5
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237 ( exit $ac_status )
12238 ac_cv_func_lstat_empty_string_bug=yes
12239 fi
12240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12241 fi
12242
12243
12244 fi
12245 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
12246 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
12247 if test $ac_cv_func_lstat_empty_string_bug = yes; then
12248   case " $LIBOBJS " in
12249   *" lstat.$ac_objext "* ) ;;
12250   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12251  ;;
12252 esac
12253
12254
12255 cat >>confdefs.h <<_ACEOF
12256 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12257 _ACEOF
12258
12259 fi
12260
12261 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12262 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12263 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12264   echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266   rm -f conftest.sym conftest.file
12267 echo >conftest.file
12268 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12269   if test "$cross_compiling" = yes; then
12270   ac_cv_func_lstat_dereferences_slashed_symlink=no
12271 else
12272   cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278 $ac_includes_default
12279 int
12280 main ()
12281 {
12282 struct stat sbuf;
12283      /* Linux will dereference the symlink and fail.
12284         That is better in the sense that it means we will not
12285         have to compile and use the lstat wrapper.  */
12286      return lstat ("conftest.sym/", &sbuf) == 0;
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest$ac_exeext
12292 if { (ac_try="$ac_link"
12293 case "(($ac_try" in
12294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295   *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298   (eval "$ac_link") 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12302   { (case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_try") 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; }; then
12311   ac_cv_func_lstat_dereferences_slashed_symlink=yes
12312 else
12313   echo "$as_me: program exited with status $ac_status" >&5
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ( exit $ac_status )
12318 ac_cv_func_lstat_dereferences_slashed_symlink=no
12319 fi
12320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12321 fi
12322
12323
12324 else
12325   # If the `ln -s' command failed, then we probably don't even
12326   # have an lstat function.
12327   ac_cv_func_lstat_dereferences_slashed_symlink=no
12328 fi
12329 rm -f conftest.sym conftest.file
12330
12331 fi
12332 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12333 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12334
12335 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12339 _ACEOF
12340
12341
12342 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
12343   case " $LIBOBJS " in
12344   *" lstat.$ac_objext "* ) ;;
12345   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
12346  ;;
12347 esac
12348
12349 fi
12350
12351
12352 for ac_header in stdlib.h
12353 do
12354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 fi
12361 ac_res=`eval echo '${'$as_ac_Header'}'`
12362                { echo "$as_me:$LINENO: result: $ac_res" >&5
12363 echo "${ECHO_T}$ac_res" >&6; }
12364 else
12365   # Is the header compilable?
12366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374 $ac_includes_default
12375 #include <$ac_header>
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (ac_try="$ac_compile"
12379 case "(($ac_try" in
12380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381   *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384   (eval "$ac_compile") 2>conftest.er1
12385   ac_status=$?
12386   grep -v '^ *+' conftest.er1 >conftest.err
12387   rm -f conftest.er1
12388   cat conftest.err >&5
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } && {
12391          test -z "$ac_c_werror_flag" ||
12392          test ! -s conftest.err
12393        } && test -s conftest.$ac_objext; then
12394   ac_header_compiler=yes
12395 else
12396   echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12398
12399         ac_header_compiler=no
12400 fi
12401
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12404 echo "${ECHO_T}$ac_header_compiler" >&6; }
12405
12406 # Is the header present?
12407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h.  */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h.  */
12415 #include <$ac_header>
12416 _ACEOF
12417 if { (ac_try="$ac_cpp conftest.$ac_ext"
12418 case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12424   ac_status=$?
12425   grep -v '^ *+' conftest.er1 >conftest.err
12426   rm -f conftest.er1
12427   cat conftest.err >&5
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } >/dev/null && {
12430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12431          test ! -s conftest.err
12432        }; then
12433   ac_header_preproc=yes
12434 else
12435   echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12437
12438   ac_header_preproc=no
12439 fi
12440
12441 rm -f conftest.err conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12443 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444
12445 # So?  What about this header?
12446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12447   yes:no: )
12448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12452     ac_header_preproc=yes
12453     ;;
12454   no:yes:* )
12455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12467
12468     ;;
12469 esac
12470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   eval "$as_ac_Header=\$ac_header_preproc"
12476 fi
12477 ac_res=`eval echo '${'$as_ac_Header'}'`
12478                { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12480
12481 fi
12482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12483   cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12485 _ACEOF
12486
12487 fi
12488
12489 done
12490
12491 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12492 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
12493 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   if test "$cross_compiling" = yes; then
12497   ac_cv_func_malloc_0_nonnull=no
12498 else
12499   cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12506 # include <stdlib.h>
12507 #else
12508 char *malloc ();
12509 #endif
12510
12511 int
12512 main ()
12513 {
12514 return ! malloc (0);
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest$ac_exeext
12520 if { (ac_try="$ac_link"
12521 case "(($ac_try" in
12522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523   *) ac_try_echo=$ac_try;;
12524 esac
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526   (eval "$ac_link") 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12530   { (case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_try") 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539   ac_cv_func_malloc_0_nonnull=yes
12540 else
12541   echo "$as_me: program exited with status $ac_status" >&5
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 ( exit $ac_status )
12546 ac_cv_func_malloc_0_nonnull=no
12547 fi
12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12549 fi
12550
12551
12552 fi
12553 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12554 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12555 if test $ac_cv_func_malloc_0_nonnull = yes; then
12556
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_MALLOC 1
12559 _ACEOF
12560
12561 else
12562   cat >>confdefs.h <<\_ACEOF
12563 #define HAVE_MALLOC 0
12564 _ACEOF
12565
12566    case " $LIBOBJS " in
12567   *" malloc.$ac_objext "* ) ;;
12568   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12569  ;;
12570 esac
12571
12572
12573 cat >>confdefs.h <<\_ACEOF
12574 #define malloc rpl_malloc
12575 _ACEOF
12576
12577 fi
12578
12579
12580
12581 { echo "$as_me:$LINENO: checking for working memcmp" >&5
12582 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
12583 if test "${ac_cv_func_memcmp_working+set}" = set; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   if test "$cross_compiling" = yes; then
12587   ac_cv_func_memcmp_working=no
12588 else
12589   cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 $ac_includes_default
12596 int
12597 main ()
12598 {
12599
12600   /* Some versions of memcmp are not 8-bit clean.  */
12601   char c0 = '\100', c1 = '\200', c2 = '\201';
12602   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12603     return 1;
12604
12605   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12606      or more and with at least one buffer not starting on a 4-byte boundary.
12607      William Lewis provided this test program.   */
12608   {
12609     char foo[21];
12610     char bar[21];
12611     int i;
12612     for (i = 0; i < 4; i++)
12613       {
12614         char *a = foo + i;
12615         char *b = bar + i;
12616         strcpy (a, "--------01111111");
12617         strcpy (b, "--------10000000");
12618         if (memcmp (a, b, 16) >= 0)
12619           return 1;
12620       }
12621     return 0;
12622   }
12623
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_link") 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   ac_cv_func_memcmp_working=yes
12649 else
12650   echo "$as_me: program exited with status $ac_status" >&5
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654 ( exit $ac_status )
12655 ac_cv_func_memcmp_working=no
12656 fi
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12658 fi
12659
12660
12661 fi
12662 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12663 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
12664 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12665   *" memcmp.$ac_objext "* ) ;;
12666   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12667  ;;
12668 esac
12669
12670
12671
12672
12673 for ac_header in stdlib.h unistd.h
12674 do
12675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 fi
12682 ac_res=`eval echo '${'$as_ac_Header'}'`
12683                { echo "$as_me:$LINENO: result: $ac_res" >&5
12684 echo "${ECHO_T}$ac_res" >&6; }
12685 else
12686   # Is the header compilable?
12687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695 $ac_includes_default
12696 #include <$ac_header>
12697 _ACEOF
12698 rm -f conftest.$ac_objext
12699 if { (ac_try="$ac_compile"
12700 case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_compile") 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } && {
12712          test -z "$ac_c_werror_flag" ||
12713          test ! -s conftest.err
12714        } && test -s conftest.$ac_objext; then
12715   ac_header_compiler=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720         ac_header_compiler=no
12721 fi
12722
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12725 echo "${ECHO_T}$ac_header_compiler" >&6; }
12726
12727 # Is the header present?
12728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12730 cat >conftest.$ac_ext <<_ACEOF
12731 /* confdefs.h.  */
12732 _ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h.  */
12736 #include <$ac_header>
12737 _ACEOF
12738 if { (ac_try="$ac_cpp conftest.$ac_ext"
12739 case "(($ac_try" in
12740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741   *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } >/dev/null && {
12751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12752          test ! -s conftest.err
12753        }; then
12754   ac_header_preproc=yes
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759   ac_header_preproc=no
12760 fi
12761
12762 rm -f conftest.err conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12764 echo "${ECHO_T}$ac_header_preproc" >&6; }
12765
12766 # So?  What about this header?
12767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12768   yes:no: )
12769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12773     ac_header_preproc=yes
12774     ;;
12775   no:yes:* )
12776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12788
12789     ;;
12790 esac
12791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   eval "$as_ac_Header=\$ac_header_preproc"
12797 fi
12798 ac_res=`eval echo '${'$as_ac_Header'}'`
12799                { echo "$as_me:$LINENO: result: $ac_res" >&5
12800 echo "${ECHO_T}$ac_res" >&6; }
12801
12802 fi
12803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12804   cat >>confdefs.h <<_ACEOF
12805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12806 _ACEOF
12807
12808 fi
12809
12810 done
12811
12812
12813 for ac_func in getpagesize
12814 do
12815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821   cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h.  */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h.  */
12827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12829 #define $ac_func innocuous_$ac_func
12830
12831 /* System header to define __stub macros and hopefully few prototypes,
12832     which can conflict with char $ac_func (); below.
12833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12834     <limits.h> exists even on freestanding compilers.  */
12835
12836 #ifdef __STDC__
12837 # include <limits.h>
12838 #else
12839 # include <assert.h>
12840 #endif
12841
12842 #undef $ac_func
12843
12844 /* Override any GCC internal prototype to avoid an error.
12845    Use char because int might match the return type of a GCC
12846    builtin and then its argument prototype would still apply.  */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char $ac_func ();
12851 /* The GNU C library defines this for functions which it implements
12852     to always fail with ENOSYS.  Some functions are actually named
12853     something starting with __ and the normal name is an alias.  */
12854 #if defined __stub_$ac_func || defined __stub___$ac_func
12855 choke me
12856 #endif
12857
12858 int
12859 main ()
12860 {
12861 return $ac_func ();
12862   ;
12863   return 0;
12864 }
12865 _ACEOF
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870   *) ac_try_echo=$ac_try;;
12871 esac
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873   (eval "$ac_link") 2>conftest.er1
12874   ac_status=$?
12875   grep -v '^ *+' conftest.er1 >conftest.err
12876   rm -f conftest.er1
12877   cat conftest.err >&5
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); } && {
12880          test -z "$ac_c_werror_flag" ||
12881          test ! -s conftest.err
12882        } && test -s conftest$ac_exeext &&
12883        $as_test_x conftest$ac_exeext; then
12884   eval "$as_ac_var=yes"
12885 else
12886   echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889         eval "$as_ac_var=no"
12890 fi
12891
12892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12893       conftest$ac_exeext conftest.$ac_ext
12894 fi
12895 ac_res=`eval echo '${'$as_ac_var'}'`
12896                { echo "$as_me:$LINENO: result: $ac_res" >&5
12897 echo "${ECHO_T}$ac_res" >&6; }
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899   cat >>confdefs.h <<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12901 _ACEOF
12902
12903 fi
12904 done
12905
12906 { echo "$as_me:$LINENO: checking for working mmap" >&5
12907 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12908 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12909   echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911   if test "$cross_compiling" = yes; then
12912   ac_cv_func_mmap_fixed_mapped=no
12913 else
12914   cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h.  */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h.  */
12920 $ac_includes_default
12921 /* malloc might have been renamed as rpl_malloc. */
12922 #undef malloc
12923
12924 /* Thanks to Mike Haertel and Jim Avera for this test.
12925    Here is a matrix of mmap possibilities:
12926         mmap private not fixed
12927         mmap private fixed at somewhere currently unmapped
12928         mmap private fixed at somewhere already mapped
12929         mmap shared not fixed
12930         mmap shared fixed at somewhere currently unmapped
12931         mmap shared fixed at somewhere already mapped
12932    For private mappings, we should verify that changes cannot be read()
12933    back from the file, nor mmap's back from the file at a different
12934    address.  (There have been systems where private was not correctly
12935    implemented like the infamous i386 svr4.0, and systems where the
12936    VM page cache was not coherent with the file system buffer cache
12937    like early versions of FreeBSD and possibly contemporary NetBSD.)
12938    For shared mappings, we should conversely verify that changes get
12939    propagated back to all the places they're supposed to be.
12940
12941    Grep wants private fixed already mapped.
12942    The main things grep needs to know about mmap are:
12943    * does it exist and is it safe to write into the mmap'd area
12944    * how to use it (BSD variants)  */
12945
12946 #include <fcntl.h>
12947 #include <sys/mman.h>
12948
12949 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12950 char *malloc ();
12951 #endif
12952
12953 /* This mess was copied from the GNU getpagesize.h.  */
12954 #ifndef HAVE_GETPAGESIZE
12955 /* Assume that all systems that can run configure have sys/param.h.  */
12956 # ifndef HAVE_SYS_PARAM_H
12957 #  define HAVE_SYS_PARAM_H 1
12958 # endif
12959
12960 # ifdef _SC_PAGESIZE
12961 #  define getpagesize() sysconf(_SC_PAGESIZE)
12962 # else /* no _SC_PAGESIZE */
12963 #  ifdef HAVE_SYS_PARAM_H
12964 #   include <sys/param.h>
12965 #   ifdef EXEC_PAGESIZE
12966 #    define getpagesize() EXEC_PAGESIZE
12967 #   else /* no EXEC_PAGESIZE */
12968 #    ifdef NBPG
12969 #     define getpagesize() NBPG * CLSIZE
12970 #     ifndef CLSIZE
12971 #      define CLSIZE 1
12972 #     endif /* no CLSIZE */
12973 #    else /* no NBPG */
12974 #     ifdef NBPC
12975 #      define getpagesize() NBPC
12976 #     else /* no NBPC */
12977 #      ifdef PAGESIZE
12978 #       define getpagesize() PAGESIZE
12979 #      endif /* PAGESIZE */
12980 #     endif /* no NBPC */
12981 #    endif /* no NBPG */
12982 #   endif /* no EXEC_PAGESIZE */
12983 #  else /* no HAVE_SYS_PARAM_H */
12984 #   define getpagesize() 8192   /* punt totally */
12985 #  endif /* no HAVE_SYS_PARAM_H */
12986 # endif /* no _SC_PAGESIZE */
12987
12988 #endif /* no HAVE_GETPAGESIZE */
12989
12990 int
12991 main ()
12992 {
12993   char *data, *data2, *data3;
12994   int i, pagesize;
12995   int fd;
12996
12997   pagesize = getpagesize ();
12998
12999   /* First, make a file with some known garbage in it. */
13000   data = (char *) malloc (pagesize);
13001   if (!data)
13002     return 1;
13003   for (i = 0; i < pagesize; ++i)
13004     *(data + i) = rand ();
13005   umask (0);
13006   fd = creat ("conftest.mmap", 0600);
13007   if (fd < 0)
13008     return 1;
13009   if (write (fd, data, pagesize) != pagesize)
13010     return 1;
13011   close (fd);
13012
13013   /* Next, try to mmap the file at a fixed address which already has
13014      something else allocated at it.  If we can, also make sure that
13015      we see the same garbage.  */
13016   fd = open ("conftest.mmap", O_RDWR);
13017   if (fd < 0)
13018     return 1;
13019   data2 = (char *) malloc (2 * pagesize);
13020   if (!data2)
13021     return 1;
13022   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13023   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13024                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13025     return 1;
13026   for (i = 0; i < pagesize; ++i)
13027     if (*(data + i) != *(data2 + i))
13028       return 1;
13029
13030   /* Finally, make sure that changes to the mapped area do not
13031      percolate back to the file as seen by read().  (This is a bug on
13032      some variants of i386 svr4.0.)  */
13033   for (i = 0; i < pagesize; ++i)
13034     *(data2 + i) = *(data2 + i) + 1;
13035   data3 = (char *) malloc (pagesize);
13036   if (!data3)
13037     return 1;
13038   if (read (fd, data3, pagesize) != pagesize)
13039     return 1;
13040   for (i = 0; i < pagesize; ++i)
13041     if (*(data + i) != *(data3 + i))
13042       return 1;
13043   close (fd);
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_link") 2>&5
13055   ac_status=$?
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13058   { (case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_try") 2>&5
13064   ac_status=$?
13065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066   (exit $ac_status); }; }; then
13067   ac_cv_func_mmap_fixed_mapped=yes
13068 else
13069   echo "$as_me: program exited with status $ac_status" >&5
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ( exit $ac_status )
13074 ac_cv_func_mmap_fixed_mapped=no
13075 fi
13076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13077 fi
13078
13079
13080 fi
13081 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13082 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
13083 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_MMAP 1
13087 _ACEOF
13088
13089 fi
13090 rm -f conftest.mmap
13091
13092
13093 for ac_header in stdlib.h
13094 do
13095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13097   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 fi
13102 ac_res=`eval echo '${'$as_ac_Header'}'`
13103                { echo "$as_me:$LINENO: result: $ac_res" >&5
13104 echo "${ECHO_T}$ac_res" >&6; }
13105 else
13106   # Is the header compilable?
13107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 $ac_includes_default
13116 #include <$ac_header>
13117 _ACEOF
13118 rm -f conftest.$ac_objext
13119 if { (ac_try="$ac_compile"
13120 case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_compile") 2>conftest.er1
13126   ac_status=$?
13127   grep -v '^ *+' conftest.er1 >conftest.err
13128   rm -f conftest.er1
13129   cat conftest.err >&5
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } && {
13132          test -z "$ac_c_werror_flag" ||
13133          test ! -s conftest.err
13134        } && test -s conftest.$ac_objext; then
13135   ac_header_compiler=yes
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140         ac_header_compiler=no
13141 fi
13142
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13145 echo "${ECHO_T}$ac_header_compiler" >&6; }
13146
13147 # Is the header present?
13148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13150 cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 #include <$ac_header>
13157 _ACEOF
13158 if { (ac_try="$ac_cpp conftest.$ac_ext"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13165   ac_status=$?
13166   grep -v '^ *+' conftest.er1 >conftest.err
13167   rm -f conftest.er1
13168   cat conftest.err >&5
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } >/dev/null && {
13171          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13172          test ! -s conftest.err
13173        }; then
13174   ac_header_preproc=yes
13175 else
13176   echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13178
13179   ac_header_preproc=no
13180 fi
13181
13182 rm -f conftest.err conftest.$ac_ext
13183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13184 echo "${ECHO_T}$ac_header_preproc" >&6; }
13185
13186 # So?  What about this header?
13187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13188   yes:no: )
13189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13193     ac_header_preproc=yes
13194     ;;
13195   no:yes:* )
13196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13208
13209     ;;
13210 esac
13211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13214   echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216   eval "$as_ac_Header=\$ac_header_preproc"
13217 fi
13218 ac_res=`eval echo '${'$as_ac_Header'}'`
13219                { echo "$as_me:$LINENO: result: $ac_res" >&5
13220 echo "${ECHO_T}$ac_res" >&6; }
13221
13222 fi
13223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13224   cat >>confdefs.h <<_ACEOF
13225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13226 _ACEOF
13227
13228 fi
13229
13230 done
13231
13232 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
13233 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
13234 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
13235   echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237   if test "$cross_compiling" = yes; then
13238   ac_cv_func_realloc_0_nonnull=no
13239 else
13240   cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h.  */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h.  */
13246 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13247 # include <stdlib.h>
13248 #else
13249 char *realloc ();
13250 #endif
13251
13252 int
13253 main ()
13254 {
13255 return ! realloc (0, 0);
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 rm -f conftest$ac_exeext
13261 if { (ac_try="$ac_link"
13262 case "(($ac_try" in
13263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264   *) ac_try_echo=$ac_try;;
13265 esac
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267   (eval "$ac_link") 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13271   { (case "(($ac_try" in
13272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273   *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276   (eval "$ac_try") 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   ac_cv_func_realloc_0_nonnull=yes
13281 else
13282   echo "$as_me: program exited with status $ac_status" >&5
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13285
13286 ( exit $ac_status )
13287 ac_cv_func_realloc_0_nonnull=no
13288 fi
13289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13290 fi
13291
13292
13293 fi
13294 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
13295 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
13296 if test $ac_cv_func_realloc_0_nonnull = yes; then
13297
13298 cat >>confdefs.h <<\_ACEOF
13299 #define HAVE_REALLOC 1
13300 _ACEOF
13301
13302 else
13303   cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_REALLOC 0
13305 _ACEOF
13306
13307    case " $LIBOBJS " in
13308   *" realloc.$ac_objext "* ) ;;
13309   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13310  ;;
13311 esac
13312
13313
13314 cat >>confdefs.h <<\_ACEOF
13315 #define realloc rpl_realloc
13316 _ACEOF
13317
13318 fi
13319
13320
13321
13322
13323
13324
13325
13326
13327 for ac_func in gettimeofday memset munmap strcasecmp strdup
13328 do
13329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13333   echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335   cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13343 #define $ac_func innocuous_$ac_func
13344
13345 /* System header to define __stub macros and hopefully few prototypes,
13346     which can conflict with char $ac_func (); below.
13347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348     <limits.h> exists even on freestanding compilers.  */
13349
13350 #ifdef __STDC__
13351 # include <limits.h>
13352 #else
13353 # include <assert.h>
13354 #endif
13355
13356 #undef $ac_func
13357
13358 /* Override any GCC internal prototype to avoid an error.
13359    Use char because int might match the return type of a GCC
13360    builtin and then its argument prototype would still apply.  */
13361 #ifdef __cplusplus
13362 extern "C"
13363 #endif
13364 char $ac_func ();
13365 /* The GNU C library defines this for functions which it implements
13366     to always fail with ENOSYS.  Some functions are actually named
13367     something starting with __ and the normal name is an alias.  */
13368 #if defined __stub_$ac_func || defined __stub___$ac_func
13369 choke me
13370 #endif
13371
13372 int
13373 main ()
13374 {
13375 return $ac_func ();
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_link") 2>conftest.er1
13388   ac_status=$?
13389   grep -v '^ *+' conftest.er1 >conftest.err
13390   rm -f conftest.er1
13391   cat conftest.err >&5
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } && {
13394          test -z "$ac_c_werror_flag" ||
13395          test ! -s conftest.err
13396        } && test -s conftest$ac_exeext &&
13397        $as_test_x conftest$ac_exeext; then
13398   eval "$as_ac_var=yes"
13399 else
13400   echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13402
13403         eval "$as_ac_var=no"
13404 fi
13405
13406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13407       conftest$ac_exeext conftest.$ac_ext
13408 fi
13409 ac_res=`eval echo '${'$as_ac_var'}'`
13410                { echo "$as_me:$LINENO: result: $ac_res" >&5
13411 echo "${ECHO_T}$ac_res" >&6; }
13412 if test `eval echo '${'$as_ac_var'}'` = yes; then
13413   cat >>confdefs.h <<_ACEOF
13414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13415 _ACEOF
13416
13417 fi
13418 done
13419
13420
13421
13422
13423 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13424         if test -n "$ac_tool_prefix"; then
13425   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13426 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432   case $PKG_CONFIG in
13433   [\\/]* | ?:[\\/]*)
13434   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13435   ;;
13436   *)
13437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13439 do
13440   IFS=$as_save_IFS
13441   test -z "$as_dir" && as_dir=.
13442   for ac_exec_ext in '' $ac_executable_extensions; do
13443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13444     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13446     break 2
13447   fi
13448 done
13449 done
13450 IFS=$as_save_IFS
13451
13452   ;;
13453 esac
13454 fi
13455 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13456 if test -n "$PKG_CONFIG"; then
13457   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13458 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13459 else
13460   { echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6; }
13462 fi
13463
13464
13465 fi
13466 if test -z "$ac_cv_path_PKG_CONFIG"; then
13467   ac_pt_PKG_CONFIG=$PKG_CONFIG
13468   # Extract the first word of "pkg-config", so it can be a program name with args.
13469 set dummy pkg-config; ac_word=$2
13470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13472 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13473   echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475   case $ac_pt_PKG_CONFIG in
13476   [\\/]* | ?:[\\/]*)
13477   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13478   ;;
13479   *)
13480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483   IFS=$as_save_IFS
13484   test -z "$as_dir" && as_dir=.
13485   for ac_exec_ext in '' $ac_executable_extensions; do
13486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13487     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13489     break 2
13490   fi
13491 done
13492 done
13493 IFS=$as_save_IFS
13494
13495   ;;
13496 esac
13497 fi
13498 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13499 if test -n "$ac_pt_PKG_CONFIG"; then
13500   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13501 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
13502 else
13503   { echo "$as_me:$LINENO: result: no" >&5
13504 echo "${ECHO_T}no" >&6; }
13505 fi
13506
13507   if test "x$ac_pt_PKG_CONFIG" = x; then
13508     PKG_CONFIG=""
13509   else
13510     case $cross_compiling:$ac_tool_warned in
13511 yes:)
13512 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13513 whose name does not start with the host triplet.  If you think this
13514 configuration is useful to you, please write to autoconf@gnu.org." >&5
13515 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13516 whose name does not start with the host triplet.  If you think this
13517 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13518 ac_tool_warned=yes ;;
13519 esac
13520     PKG_CONFIG=$ac_pt_PKG_CONFIG
13521   fi
13522 else
13523   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13524 fi
13525
13526 fi
13527 if test -n "$PKG_CONFIG"; then
13528         _pkg_min_version=0.9.0
13529         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13530 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
13531         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13532                 { echo "$as_me:$LINENO: result: yes" >&5
13533 echo "${ECHO_T}yes" >&6; }
13534         else
13535                 { echo "$as_me:$LINENO: result: no" >&5
13536 echo "${ECHO_T}no" >&6; }
13537                 PKG_CONFIG=""
13538         fi
13539
13540 fi
13541
13542 pkg_failed=no
13543 { echo "$as_me:$LINENO: checking for MMCOMMON" >&5
13544 echo $ECHO_N "checking for MMCOMMON... $ECHO_C" >&6; }
13545
13546 if test -n "$PKG_CONFIG"; then
13547     if test -n "$MMCOMMON_CFLAGS"; then
13548         pkg_cv_MMCOMMON_CFLAGS="$MMCOMMON_CFLAGS"
13549     else
13550         if test -n "$PKG_CONFIG" && \
13551     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-common\"") >&5
13552   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; then
13556   pkg_cv_MMCOMMON_CFLAGS=`$PKG_CONFIG --cflags "mm-common" 2>/dev/null`
13557 else
13558   pkg_failed=yes
13559 fi
13560     fi
13561 else
13562         pkg_failed=untried
13563 fi
13564 if test -n "$PKG_CONFIG"; then
13565     if test -n "$MMCOMMON_LIBS"; then
13566         pkg_cv_MMCOMMON_LIBS="$MMCOMMON_LIBS"
13567     else
13568         if test -n "$PKG_CONFIG" && \
13569     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-common\"") >&5
13570   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; then
13574   pkg_cv_MMCOMMON_LIBS=`$PKG_CONFIG --libs "mm-common" 2>/dev/null`
13575 else
13576   pkg_failed=yes
13577 fi
13578     fi
13579 else
13580         pkg_failed=untried
13581 fi
13582
13583
13584
13585 if test $pkg_failed = yes; then
13586
13587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13588         _pkg_short_errors_supported=yes
13589 else
13590         _pkg_short_errors_supported=no
13591 fi
13592         if test $_pkg_short_errors_supported = yes; then
13593                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-common"`
13594         else
13595                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-common"`
13596         fi
13597         # Put the nasty error message in config.log where it belongs
13598         echo "$MMCOMMON_PKG_ERRORS" >&5
13599
13600         { { echo "$as_me:$LINENO: error: Package requirements (mm-common) were not met:
13601
13602 $MMCOMMON_PKG_ERRORS
13603
13604 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13605 installed software in a non-standard prefix.
13606
13607 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13608 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13609 See the pkg-config man page for more details.
13610 " >&5
13611 echo "$as_me: error: Package requirements (mm-common) were not met:
13612
13613 $MMCOMMON_PKG_ERRORS
13614
13615 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13616 installed software in a non-standard prefix.
13617
13618 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13619 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13620 See the pkg-config man page for more details.
13621 " >&2;}
13622    { (exit 1); exit 1; }; }
13623 elif test $pkg_failed = untried; then
13624         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13625 is in your PATH or set the PKG_CONFIG environment variable to the full
13626 path to pkg-config.
13627
13628 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13629 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13630 See the pkg-config man page for more details.
13631
13632 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13633 See \`config.log' for more details." >&5
13634 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13635 is in your PATH or set the PKG_CONFIG environment variable to the full
13636 path to pkg-config.
13637
13638 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
13639 and MMCOMMON_LIBS to avoid the need to call pkg-config.
13640 See the pkg-config man page for more details.
13641
13642 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13643 See \`config.log' for more details." >&2;}
13644    { (exit 1); exit 1; }; }
13645 else
13646         MMCOMMON_CFLAGS=$pkg_cv_MMCOMMON_CFLAGS
13647         MMCOMMON_LIBS=$pkg_cv_MMCOMMON_LIBS
13648         { echo "$as_me:$LINENO: result: yes" >&5
13649 echo "${ECHO_T}yes" >&6; }
13650         :
13651 fi
13652
13653
13654
13655 #PKG_CHECK_MODULES(MMMHAL,mm-mhal)
13656 #AC_SUBST(MMMHAL_CFLAGS)
13657 #AC_SUBST(MMMHAL_LIBS)
13658
13659
13660 pkg_failed=no
13661 { echo "$as_me:$LINENO: checking for MMLOG" >&5
13662 echo $ECHO_N "checking for MMLOG... $ECHO_C" >&6; }
13663
13664 if test -n "$PKG_CONFIG"; then
13665     if test -n "$MMLOG_CFLAGS"; then
13666         pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
13667     else
13668         if test -n "$PKG_CONFIG" && \
13669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
13670   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }; then
13674   pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
13675 else
13676   pkg_failed=yes
13677 fi
13678     fi
13679 else
13680         pkg_failed=untried
13681 fi
13682 if test -n "$PKG_CONFIG"; then
13683     if test -n "$MMLOG_LIBS"; then
13684         pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
13685     else
13686         if test -n "$PKG_CONFIG" && \
13687     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
13688   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); }; then
13692   pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
13693 else
13694   pkg_failed=yes
13695 fi
13696     fi
13697 else
13698         pkg_failed=untried
13699 fi
13700
13701
13702
13703 if test $pkg_failed = yes; then
13704
13705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13706         _pkg_short_errors_supported=yes
13707 else
13708         _pkg_short_errors_supported=no
13709 fi
13710         if test $_pkg_short_errors_supported = yes; then
13711                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-log"`
13712         else
13713                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-log"`
13714         fi
13715         # Put the nasty error message in config.log where it belongs
13716         echo "$MMLOG_PKG_ERRORS" >&5
13717
13718         { { echo "$as_me:$LINENO: error: Package requirements (mm-log) were not met:
13719
13720 $MMLOG_PKG_ERRORS
13721
13722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13723 installed software in a non-standard prefix.
13724
13725 Alternatively, you may set the environment variables MMLOG_CFLAGS
13726 and MMLOG_LIBS to avoid the need to call pkg-config.
13727 See the pkg-config man page for more details.
13728 " >&5
13729 echo "$as_me: error: Package requirements (mm-log) were not met:
13730
13731 $MMLOG_PKG_ERRORS
13732
13733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13734 installed software in a non-standard prefix.
13735
13736 Alternatively, you may set the environment variables MMLOG_CFLAGS
13737 and MMLOG_LIBS to avoid the need to call pkg-config.
13738 See the pkg-config man page for more details.
13739 " >&2;}
13740    { (exit 1); exit 1; }; }
13741 elif test $pkg_failed = untried; then
13742         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13743 is in your PATH or set the PKG_CONFIG environment variable to the full
13744 path to pkg-config.
13745
13746 Alternatively, you may set the environment variables MMLOG_CFLAGS
13747 and MMLOG_LIBS to avoid the need to call pkg-config.
13748 See the pkg-config man page for more details.
13749
13750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13751 See \`config.log' for more details." >&5
13752 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13753 is in your PATH or set the PKG_CONFIG environment variable to the full
13754 path to pkg-config.
13755
13756 Alternatively, you may set the environment variables MMLOG_CFLAGS
13757 and MMLOG_LIBS to avoid the need to call pkg-config.
13758 See the pkg-config man page for more details.
13759
13760 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13761 See \`config.log' for more details." >&2;}
13762    { (exit 1); exit 1; }; }
13763 else
13764         MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
13765         MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
13766         { echo "$as_me:$LINENO: result: yes" >&5
13767 echo "${ECHO_T}yes" >&6; }
13768         :
13769 fi
13770
13771
13772
13773
13774
13775
13776 pkg_failed=no
13777 { echo "$as_me:$LINENO: checking for GLIB" >&5
13778 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
13779
13780 if test -n "$PKG_CONFIG"; then
13781     if test -n "$GLIB_CFLAGS"; then
13782         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13783     else
13784         if test -n "$PKG_CONFIG" && \
13785     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
13786   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; then
13790   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
13791 else
13792   pkg_failed=yes
13793 fi
13794     fi
13795 else
13796         pkg_failed=untried
13797 fi
13798 if test -n "$PKG_CONFIG"; then
13799     if test -n "$GLIB_LIBS"; then
13800         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13801     else
13802         if test -n "$PKG_CONFIG" && \
13803     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
13804   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; then
13808   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
13809 else
13810   pkg_failed=yes
13811 fi
13812     fi
13813 else
13814         pkg_failed=untried
13815 fi
13816
13817
13818
13819 if test $pkg_failed = yes; then
13820
13821 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13822         _pkg_short_errors_supported=yes
13823 else
13824         _pkg_short_errors_supported=no
13825 fi
13826         if test $_pkg_short_errors_supported = yes; then
13827                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
13828         else
13829                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
13830         fi
13831         # Put the nasty error message in config.log where it belongs
13832         echo "$GLIB_PKG_ERRORS" >&5
13833
13834         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
13835
13836 $GLIB_PKG_ERRORS
13837
13838 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13839 installed software in a non-standard prefix.
13840
13841 Alternatively, you may set the environment variables GLIB_CFLAGS
13842 and GLIB_LIBS to avoid the need to call pkg-config.
13843 See the pkg-config man page for more details.
13844 " >&5
13845 echo "$as_me: error: Package requirements (glib-2.0) were not met:
13846
13847 $GLIB_PKG_ERRORS
13848
13849 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13850 installed software in a non-standard prefix.
13851
13852 Alternatively, you may set the environment variables GLIB_CFLAGS
13853 and GLIB_LIBS to avoid the need to call pkg-config.
13854 See the pkg-config man page for more details.
13855 " >&2;}
13856    { (exit 1); exit 1; }; }
13857 elif test $pkg_failed = untried; then
13858         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13859 is in your PATH or set the PKG_CONFIG environment variable to the full
13860 path to pkg-config.
13861
13862 Alternatively, you may set the environment variables GLIB_CFLAGS
13863 and GLIB_LIBS to avoid the need to call pkg-config.
13864 See the pkg-config man page for more details.
13865
13866 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13867 See \`config.log' for more details." >&5
13868 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13869 is in your PATH or set the PKG_CONFIG environment variable to the full
13870 path to pkg-config.
13871
13872 Alternatively, you may set the environment variables GLIB_CFLAGS
13873 and GLIB_LIBS to avoid the need to call pkg-config.
13874 See the pkg-config man page for more details.
13875
13876 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13877 See \`config.log' for more details." >&2;}
13878    { (exit 1); exit 1; }; }
13879 else
13880         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13881         GLIB_LIBS=$pkg_cv_GLIB_LIBS
13882         { echo "$as_me:$LINENO: result: yes" >&5
13883 echo "${ECHO_T}yes" >&6; }
13884         :
13885 fi
13886
13887
13888
13889
13890 pkg_failed=no
13891 { echo "$as_me:$LINENO: checking for GTK" >&5
13892 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
13893
13894 if test -n "$PKG_CONFIG"; then
13895     if test -n "$GTK_CFLAGS"; then
13896         pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
13897     else
13898         if test -n "$PKG_CONFIG" && \
13899     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
13900   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; then
13904   pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
13905 else
13906   pkg_failed=yes
13907 fi
13908     fi
13909 else
13910         pkg_failed=untried
13911 fi
13912 if test -n "$PKG_CONFIG"; then
13913     if test -n "$GTK_LIBS"; then
13914         pkg_cv_GTK_LIBS="$GTK_LIBS"
13915     else
13916         if test -n "$PKG_CONFIG" && \
13917     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
13918   ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; then
13922   pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
13923 else
13924   pkg_failed=yes
13925 fi
13926     fi
13927 else
13928         pkg_failed=untried
13929 fi
13930
13931
13932
13933 if test $pkg_failed = yes; then
13934
13935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13936         _pkg_short_errors_supported=yes
13937 else
13938         _pkg_short_errors_supported=no
13939 fi
13940         if test $_pkg_short_errors_supported = yes; then
13941                 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
13942         else
13943                 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
13944         fi
13945         # Put the nasty error message in config.log where it belongs
13946         echo "$GTK_PKG_ERRORS" >&5
13947
13948         { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
13949
13950 $GTK_PKG_ERRORS
13951
13952 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13953 installed software in a non-standard prefix.
13954
13955 Alternatively, you may set the environment variables GTK_CFLAGS
13956 and GTK_LIBS to avoid the need to call pkg-config.
13957 See the pkg-config man page for more details.
13958 " >&5
13959 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
13960
13961 $GTK_PKG_ERRORS
13962
13963 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13964 installed software in a non-standard prefix.
13965
13966 Alternatively, you may set the environment variables GTK_CFLAGS
13967 and GTK_LIBS to avoid the need to call pkg-config.
13968 See the pkg-config man page for more details.
13969 " >&2;}
13970    { (exit 1); exit 1; }; }
13971 elif test $pkg_failed = untried; then
13972         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
13973 is in your PATH or set the PKG_CONFIG environment variable to the full
13974 path to pkg-config.
13975
13976 Alternatively, you may set the environment variables GTK_CFLAGS
13977 and GTK_LIBS to avoid the need to call pkg-config.
13978 See the pkg-config man page for more details.
13979
13980 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13981 See \`config.log' for more details." >&5
13982 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
13983 is in your PATH or set the PKG_CONFIG environment variable to the full
13984 path to pkg-config.
13985
13986 Alternatively, you may set the environment variables GTK_CFLAGS
13987 and GTK_LIBS to avoid the need to call pkg-config.
13988 See the pkg-config man page for more details.
13989
13990 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13991 See \`config.log' for more details." >&2;}
13992    { (exit 1); exit 1; }; }
13993 else
13994         GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
13995         GTK_LIBS=$pkg_cv_GTK_LIBS
13996         { echo "$as_me:$LINENO: result: yes" >&5
13997 echo "${ECHO_T}yes" >&6; }
13998         :
13999 fi
14000
14001
14002
14003
14004
14005 pkg_failed=no
14006 { echo "$as_me:$LINENO: checking for AVCODEC" >&5
14007 echo $ECHO_N "checking for AVCODEC... $ECHO_C" >&6; }
14008
14009 if test -n "$PKG_CONFIG"; then
14010     if test -n "$AVCODEC_CFLAGS"; then
14011         pkg_cv_AVCODEC_CFLAGS="$AVCODEC_CFLAGS"
14012     else
14013         if test -n "$PKG_CONFIG" && \
14014     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec\"") >&5
14015   ($PKG_CONFIG --exists --print-errors "libavcodec") 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); }; then
14019   pkg_cv_AVCODEC_CFLAGS=`$PKG_CONFIG --cflags "libavcodec" 2>/dev/null`
14020 else
14021   pkg_failed=yes
14022 fi
14023     fi
14024 else
14025         pkg_failed=untried
14026 fi
14027 if test -n "$PKG_CONFIG"; then
14028     if test -n "$AVCODEC_LIBS"; then
14029         pkg_cv_AVCODEC_LIBS="$AVCODEC_LIBS"
14030     else
14031         if test -n "$PKG_CONFIG" && \
14032     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec\"") >&5
14033   ($PKG_CONFIG --exists --print-errors "libavcodec") 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; then
14037   pkg_cv_AVCODEC_LIBS=`$PKG_CONFIG --libs "libavcodec" 2>/dev/null`
14038 else
14039   pkg_failed=yes
14040 fi
14041     fi
14042 else
14043         pkg_failed=untried
14044 fi
14045
14046
14047
14048 if test $pkg_failed = yes; then
14049
14050 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14051         _pkg_short_errors_supported=yes
14052 else
14053         _pkg_short_errors_supported=no
14054 fi
14055         if test $_pkg_short_errors_supported = yes; then
14056                 AVCODEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec"`
14057         else
14058                 AVCODEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec"`
14059         fi
14060         # Put the nasty error message in config.log where it belongs
14061         echo "$AVCODEC_PKG_ERRORS" >&5
14062
14063         { { echo "$as_me:$LINENO: error: Package requirements (libavcodec) were not met:
14064
14065 $AVCODEC_PKG_ERRORS
14066
14067 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14068 installed software in a non-standard prefix.
14069
14070 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14071 and AVCODEC_LIBS to avoid the need to call pkg-config.
14072 See the pkg-config man page for more details.
14073 " >&5
14074 echo "$as_me: error: Package requirements (libavcodec) were not met:
14075
14076 $AVCODEC_PKG_ERRORS
14077
14078 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14079 installed software in a non-standard prefix.
14080
14081 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14082 and AVCODEC_LIBS to avoid the need to call pkg-config.
14083 See the pkg-config man page for more details.
14084 " >&2;}
14085    { (exit 1); exit 1; }; }
14086 elif test $pkg_failed = untried; then
14087         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
14088 is in your PATH or set the PKG_CONFIG environment variable to the full
14089 path to pkg-config.
14090
14091 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14092 and AVCODEC_LIBS to avoid the need to call pkg-config.
14093 See the pkg-config man page for more details.
14094
14095 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14096 See \`config.log' for more details." >&5
14097 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
14098 is in your PATH or set the PKG_CONFIG environment variable to the full
14099 path to pkg-config.
14100
14101 Alternatively, you may set the environment variables AVCODEC_CFLAGS
14102 and AVCODEC_LIBS to avoid the need to call pkg-config.
14103 See the pkg-config man page for more details.
14104
14105 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14106 See \`config.log' for more details." >&2;}
14107    { (exit 1); exit 1; }; }
14108 else
14109         AVCODEC_CFLAGS=$pkg_cv_AVCODEC_CFLAGS
14110         AVCODEC_LIBS=$pkg_cv_AVCODEC_LIBS
14111         { echo "$as_me:$LINENO: result: yes" >&5
14112 echo "${ECHO_T}yes" >&6; }
14113         :
14114 fi
14115
14116
14117
14118
14119 pkg_failed=no
14120 { echo "$as_me:$LINENO: checking for AVUTIL" >&5
14121 echo $ECHO_N "checking for AVUTIL... $ECHO_C" >&6; }
14122
14123 if test -n "$PKG_CONFIG"; then
14124     if test -n "$AVUTIL_CFLAGS"; then
14125         pkg_cv_AVUTIL_CFLAGS="$AVUTIL_CFLAGS"
14126     else
14127         if test -n "$PKG_CONFIG" && \
14128     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavutil\"") >&5
14129   ($PKG_CONFIG --exists --print-errors "libavutil") 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; then
14133   pkg_cv_AVUTIL_CFLAGS=`$PKG_CONFIG --cflags "libavutil" 2>/dev/null`
14134 else
14135   pkg_failed=yes
14136 fi
14137     fi
14138 else
14139         pkg_failed=untried
14140 fi
14141 if test -n "$PKG_CONFIG"; then
14142     if test -n "$AVUTIL_LIBS"; then
14143         pkg_cv_AVUTIL_LIBS="$AVUTIL_LIBS"
14144     else
14145         if test -n "$PKG_CONFIG" && \
14146     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavutil\"") >&5
14147   ($PKG_CONFIG --exists --print-errors "libavutil") 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); }; then
14151   pkg_cv_AVUTIL_LIBS=`$PKG_CONFIG --libs "libavutil" 2>/dev/null`
14152 else
14153   pkg_failed=yes
14154 fi
14155     fi
14156 else
14157         pkg_failed=untried
14158 fi
14159
14160
14161
14162 if test $pkg_failed = yes; then
14163
14164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14165         _pkg_short_errors_supported=yes
14166 else
14167         _pkg_short_errors_supported=no
14168 fi
14169         if test $_pkg_short_errors_supported = yes; then
14170                 AVUTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavutil"`
14171         else
14172                 AVUTIL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavutil"`
14173         fi
14174         # Put the nasty error message in config.log where it belongs
14175         echo "$AVUTIL_PKG_ERRORS" >&5
14176
14177         { { echo "$as_me:$LINENO: error: Package requirements (libavutil) were not met:
14178
14179 $AVUTIL_PKG_ERRORS
14180
14181 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14182 installed software in a non-standard prefix.
14183
14184 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14185 and AVUTIL_LIBS to avoid the need to call pkg-config.
14186 See the pkg-config man page for more details.
14187 " >&5
14188 echo "$as_me: error: Package requirements (libavutil) were not met:
14189
14190 $AVUTIL_PKG_ERRORS
14191
14192 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14193 installed software in a non-standard prefix.
14194
14195 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14196 and AVUTIL_LIBS to avoid the need to call pkg-config.
14197 See the pkg-config man page for more details.
14198 " >&2;}
14199    { (exit 1); exit 1; }; }
14200 elif test $pkg_failed = untried; then
14201         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
14202 is in your PATH or set the PKG_CONFIG environment variable to the full
14203 path to pkg-config.
14204
14205 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14206 and AVUTIL_LIBS to avoid the need to call pkg-config.
14207 See the pkg-config man page for more details.
14208
14209 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14210 See \`config.log' for more details." >&5
14211 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
14212 is in your PATH or set the PKG_CONFIG environment variable to the full
14213 path to pkg-config.
14214
14215 Alternatively, you may set the environment variables AVUTIL_CFLAGS
14216 and AVUTIL_LIBS to avoid the need to call pkg-config.
14217 See the pkg-config man page for more details.
14218
14219 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14220 See \`config.log' for more details." >&2;}
14221    { (exit 1); exit 1; }; }
14222 else
14223         AVUTIL_CFLAGS=$pkg_cv_AVUTIL_CFLAGS
14224         AVUTIL_LIBS=$pkg_cv_AVUTIL_LIBS
14225         { echo "$as_me:$LINENO: result: yes" >&5
14226 echo "${ECHO_T}yes" >&6; }
14227         :
14228 fi
14229
14230
14231
14232
14233 pkg_failed=no
14234 { echo "$as_me:$LINENO: checking for AVFORMAT" >&5
14235 echo $ECHO_N "checking for AVFORMAT... $ECHO_C" >&6; }
14236
14237 if test -n "$PKG_CONFIG"; then
14238     if test -n "$AVFORMAT_CFLAGS"; then
14239         pkg_cv_AVFORMAT_CFLAGS="$AVFORMAT_CFLAGS"
14240     else
14241         if test -n "$PKG_CONFIG" && \
14242     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavformat\"") >&5
14243   ($PKG_CONFIG --exists --print-errors "libavformat") 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; then
14247   pkg_cv_AVFORMAT_CFLAGS=`$PKG_CONFIG --cflags "libavformat" 2>/dev/null`
14248 else
14249   pkg_failed=yes
14250 fi
14251     fi
14252 else
14253         pkg_failed=untried
14254 fi
14255 if test -n "$PKG_CONFIG"; then
14256     if test -n "$AVFORMAT_LIBS"; then
14257         pkg_cv_AVFORMAT_LIBS="$AVFORMAT_LIBS"
14258     else
14259         if test -n "$PKG_CONFIG" && \
14260     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavformat\"") >&5
14261   ($PKG_CONFIG --exists --print-errors "libavformat") 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; then
14265   pkg_cv_AVFORMAT_LIBS=`$PKG_CONFIG --libs "libavformat" 2>/dev/null`
14266 else
14267   pkg_failed=yes
14268 fi
14269     fi
14270 else
14271         pkg_failed=untried
14272 fi
14273
14274
14275
14276 if test $pkg_failed = yes; then
14277
14278 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14279         _pkg_short_errors_supported=yes
14280 else
14281         _pkg_short_errors_supported=no
14282 fi
14283         if test $_pkg_short_errors_supported = yes; then
14284                 AVFORMAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavformat"`
14285         else
14286                 AVFORMAT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavformat"`
14287         fi
14288         # Put the nasty error message in config.log where it belongs
14289         echo "$AVFORMAT_PKG_ERRORS" >&5
14290
14291         { { echo "$as_me:$LINENO: error: Package requirements (libavformat) were not met:
14292
14293 $AVFORMAT_PKG_ERRORS
14294
14295 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14296 installed software in a non-standard prefix.
14297
14298 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14299 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14300 See the pkg-config man page for more details.
14301 " >&5
14302 echo "$as_me: error: Package requirements (libavformat) were not met:
14303
14304 $AVFORMAT_PKG_ERRORS
14305
14306 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14307 installed software in a non-standard prefix.
14308
14309 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14310 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14311 See the pkg-config man page for more details.
14312 " >&2;}
14313    { (exit 1); exit 1; }; }
14314 elif test $pkg_failed = untried; then
14315         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
14316 is in your PATH or set the PKG_CONFIG environment variable to the full
14317 path to pkg-config.
14318
14319 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14320 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14321 See the pkg-config man page for more details.
14322
14323 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14324 See \`config.log' for more details." >&5
14325 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
14326 is in your PATH or set the PKG_CONFIG environment variable to the full
14327 path to pkg-config.
14328
14329 Alternatively, you may set the environment variables AVFORMAT_CFLAGS
14330 and AVFORMAT_LIBS to avoid the need to call pkg-config.
14331 See the pkg-config man page for more details.
14332
14333 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14334 See \`config.log' for more details." >&2;}
14335    { (exit 1); exit 1; }; }
14336 else
14337         AVFORMAT_CFLAGS=$pkg_cv_AVFORMAT_CFLAGS
14338         AVFORMAT_LIBS=$pkg_cv_AVFORMAT_LIBS
14339         { echo "$as_me:$LINENO: result: yes" >&5
14340 echo "${ECHO_T}yes" >&6; }
14341         :
14342 fi
14343
14344
14345
14346 # Check whether --enable-drm was given.
14347 if test "${enable_drm+set}" = set; then
14348   enableval=$enable_drm;
14349    case "${enableval}" in
14350        yes) USE_DRM=yes ;;
14351         no) USE_DRM=no ;;
14352          *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-drm" >&5
14353 echo "$as_me: error: bad value ${enableval} for --enable-drm" >&2;}
14354    { (exit 1); exit 1; }; } ;;
14355    esac
14356
14357 else
14358   USE_DRM=yes
14359 fi
14360
14361 if test "x$USE_DRM" = "xyes"; then
14362
14363 pkg_failed=no
14364 { echo "$as_me:$LINENO: checking for DRMSERVICE" >&5
14365 echo $ECHO_N "checking for DRMSERVICE... $ECHO_C" >&6; }
14366
14367 if test -n "$PKG_CONFIG"; then
14368     if test -n "$DRMSERVICE_CFLAGS"; then
14369         pkg_cv_DRMSERVICE_CFLAGS="$DRMSERVICE_CFLAGS"
14370     else
14371         if test -n "$PKG_CONFIG" && \
14372     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"drm-service\"") >&5
14373   ($PKG_CONFIG --exists --print-errors "drm-service") 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; then
14377   pkg_cv_DRMSERVICE_CFLAGS=`$PKG_CONFIG --cflags "drm-service" 2>/dev/null`
14378 else
14379   pkg_failed=yes
14380 fi
14381     fi
14382 else
14383         pkg_failed=untried
14384 fi
14385 if test -n "$PKG_CONFIG"; then
14386     if test -n "$DRMSERVICE_LIBS"; then
14387         pkg_cv_DRMSERVICE_LIBS="$DRMSERVICE_LIBS"
14388     else
14389         if test -n "$PKG_CONFIG" && \
14390     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"drm-service\"") >&5
14391   ($PKG_CONFIG --exists --print-errors "drm-service") 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }; then
14395   pkg_cv_DRMSERVICE_LIBS=`$PKG_CONFIG --libs "drm-service" 2>/dev/null`
14396 else
14397   pkg_failed=yes
14398 fi
14399     fi
14400 else
14401         pkg_failed=untried
14402 fi
14403
14404
14405
14406 if test $pkg_failed = yes; then
14407
14408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14409         _pkg_short_errors_supported=yes
14410 else
14411         _pkg_short_errors_supported=no
14412 fi
14413         if test $_pkg_short_errors_supported = yes; then
14414                 DRMSERVICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "drm-service"`
14415         else
14416                 DRMSERVICE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "drm-service"`
14417         fi
14418         # Put the nasty error message in config.log where it belongs
14419         echo "$DRMSERVICE_PKG_ERRORS" >&5
14420
14421         { { echo "$as_me:$LINENO: error: Package requirements (drm-service) were not met:
14422
14423 $DRMSERVICE_PKG_ERRORS
14424
14425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14426 installed software in a non-standard prefix.
14427
14428 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14429 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14430 See the pkg-config man page for more details.
14431 " >&5
14432 echo "$as_me: error: Package requirements (drm-service) were not met:
14433
14434 $DRMSERVICE_PKG_ERRORS
14435
14436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14437 installed software in a non-standard prefix.
14438
14439 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14440 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14441 See the pkg-config man page for more details.
14442 " >&2;}
14443    { (exit 1); exit 1; }; }
14444 elif test $pkg_failed = untried; then
14445         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
14446 is in your PATH or set the PKG_CONFIG environment variable to the full
14447 path to pkg-config.
14448
14449 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14450 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14451 See the pkg-config man page for more details.
14452
14453 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14454 See \`config.log' for more details." >&5
14455 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
14456 is in your PATH or set the PKG_CONFIG environment variable to the full
14457 path to pkg-config.
14458
14459 Alternatively, you may set the environment variables DRMSERVICE_CFLAGS
14460 and DRMSERVICE_LIBS to avoid the need to call pkg-config.
14461 See the pkg-config man page for more details.
14462
14463 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14464 See \`config.log' for more details." >&2;}
14465    { (exit 1); exit 1; }; }
14466 else
14467         DRMSERVICE_CFLAGS=$pkg_cv_DRMSERVICE_CFLAGS
14468         DRMSERVICE_LIBS=$pkg_cv_DRMSERVICE_LIBS
14469         { echo "$as_me:$LINENO: result: yes" >&5
14470 echo "${ECHO_T}yes" >&6; }
14471         :
14472 fi
14473
14474
14475 fi
14476  if test "x$USE_DRM" = "xyes"; then
14477   USE_DRM_TRUE=
14478   USE_DRM_FALSE='#'
14479 else
14480   USE_DRM_TRUE='#'
14481   USE_DRM_FALSE=
14482 fi
14483
14484
14485
14486 # Check whether --enable-testmode was given.
14487 if test "${enable_testmode+set}" = set; then
14488   enableval=$enable_testmode;
14489       case "${enableval}" in
14490               yes) USE_TESTMODE=yes ;;
14491               no)  USE_TESTMODE=no ;;
14492               *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-testmode" >&5
14493 echo "$as_me: error: bad value ${enableval} for --enable-testmode" >&2;}
14494    { (exit 1); exit 1; }; } ;;
14495       esac
14496
14497 else
14498   USE_TESTMODE=no
14499 fi
14500
14501  if test "x$USE_TESTMODE" = "xyes"; then
14502   USE_TESTMODE_TRUE=
14503   USE_TESTMODE_FALSE='#'
14504 else
14505   USE_TESTMODE_TRUE='#'
14506   USE_TESTMODE_FALSE=
14507 fi
14508
14509 { echo "$as_me:$LINENO: result: checking for USE_TESTMODE ... $USE_TESTMODE" >&5
14510 echo "${ECHO_T}checking for USE_TESTMODE ... $USE_TESTMODE" >&6; }
14511
14512 # Check whether --enable-dump was given.
14513 if test "${enable_dump+set}" = set; then
14514   enableval=$enable_dump;
14515       case "${enableval}" in
14516               yes) USE_DUMP=yes ;;
14517               no)  USE_DUMP=no ;;
14518               *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dump" >&5
14519 echo "$as_me: error: bad value ${enableval} for --enable-dump" >&2;}
14520    { (exit 1); exit 1; }; } ;;
14521       esac
14522
14523 else
14524   USE_DUMP=no
14525 fi
14526
14527  if test "x$USE_DUMP" = "xyes"; then
14528   USE_DUMP_TRUE=
14529   USE_DUMP_FALSE='#'
14530 else
14531   USE_DUMP_TRUE='#'
14532   USE_DUMP_FALSE=
14533 fi
14534
14535 { echo "$as_me:$LINENO: result: checking for USE_DUMP ... $USE_DUMP" >&5
14536 echo "${ECHO_T}checking for USE_DUMP ... $USE_DUMP" >&6; }
14537
14538 ac_config_files="$ac_config_files Makefile codecs/Makefile codecs/ffmpeg/Makefile formats/Makefile formats/ffmpeg/Makefile utils/Makefile tests/Makefile mm-fileinfo.pc"
14539
14540 cat >confcache <<\_ACEOF
14541 # This file is a shell script that caches the results of configure
14542 # tests run on this system so they can be shared between configure
14543 # scripts and configure runs, see configure's option --config-cache.
14544 # It is not useful on other systems.  If it contains results you don't
14545 # want to keep, you may remove or edit it.
14546 #
14547 # config.status only pays attention to the cache file if you give it
14548 # the --recheck option to rerun configure.
14549 #
14550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14552 # following values.
14553
14554 _ACEOF
14555
14556 # The following way of writing the cache mishandles newlines in values,
14557 # but we know of no workaround that is simple, portable, and efficient.
14558 # So, we kill variables containing newlines.
14559 # Ultrix sh set writes to stderr and can't be redirected directly,
14560 # and sets the high bit in the cache file unless we assign to the vars.
14561 (
14562   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14563     eval ac_val=\$$ac_var
14564     case $ac_val in #(
14565     *${as_nl}*)
14566       case $ac_var in #(
14567       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14569       esac
14570       case $ac_var in #(
14571       _ | IFS | as_nl) ;; #(
14572       *) $as_unset $ac_var ;;
14573       esac ;;
14574     esac
14575   done
14576
14577   (set) 2>&1 |
14578     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14579     *${as_nl}ac_space=\ *)
14580       # `set' does not quote correctly, so add quotes (double-quote
14581       # substitution turns \\\\ into \\, and sed turns \\ into \).
14582       sed -n \
14583         "s/'/'\\\\''/g;
14584           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14585       ;; #(
14586     *)
14587       # `set' quotes correctly as required by POSIX, so do not add quotes.
14588       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14589       ;;
14590     esac |
14591     sort
14592 ) |
14593   sed '
14594      /^ac_cv_env_/b end
14595      t clear
14596      :clear
14597      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14598      t end
14599      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14600      :end' >>confcache
14601 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14602   if test -w "$cache_file"; then
14603     test "x$cache_file" != "x/dev/null" &&
14604       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14605 echo "$as_me: updating cache $cache_file" >&6;}
14606     cat confcache >$cache_file
14607   else
14608     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14609 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14610   fi
14611 fi
14612 rm -f confcache
14613
14614 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14615 # Let make expand exec_prefix.
14616 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14617
14618 DEFS=-DHAVE_CONFIG_H
14619
14620 ac_libobjs=
14621 ac_ltlibobjs=
14622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14623   # 1. Remove the extension, and $U if already installed.
14624   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14625   ac_i=`echo "$ac_i" | sed "$ac_script"`
14626   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14627   #    will be set to the directory where LIBOBJS objects are built.
14628   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14629   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14630 done
14631 LIBOBJS=$ac_libobjs
14632
14633 LTLIBOBJS=$ac_ltlibobjs
14634
14635
14636 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14637   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14638 Usually this means the macro was only invoked conditionally." >&5
14639 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14640 Usually this means the macro was only invoked conditionally." >&2;}
14641    { (exit 1); exit 1; }; }
14642 fi
14643 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14644   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14645 Usually this means the macro was only invoked conditionally." >&5
14646 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14647 Usually this means the macro was only invoked conditionally." >&2;}
14648    { (exit 1); exit 1; }; }
14649 fi
14650 if test -z "${USE_DRM_TRUE}" && test -z "${USE_DRM_FALSE}"; then
14651   { { echo "$as_me:$LINENO: error: conditional \"USE_DRM\" was never defined.
14652 Usually this means the macro was only invoked conditionally." >&5
14653 echo "$as_me: error: conditional \"USE_DRM\" was never defined.
14654 Usually this means the macro was only invoked conditionally." >&2;}
14655    { (exit 1); exit 1; }; }
14656 fi
14657 if test -z "${USE_TESTMODE_TRUE}" && test -z "${USE_TESTMODE_FALSE}"; then
14658   { { echo "$as_me:$LINENO: error: conditional \"USE_TESTMODE\" was never defined.
14659 Usually this means the macro was only invoked conditionally." >&5
14660 echo "$as_me: error: conditional \"USE_TESTMODE\" was never defined.
14661 Usually this means the macro was only invoked conditionally." >&2;}
14662    { (exit 1); exit 1; }; }
14663 fi
14664 if test -z "${USE_DUMP_TRUE}" && test -z "${USE_DUMP_FALSE}"; then
14665   { { echo "$as_me:$LINENO: error: conditional \"USE_DUMP\" was never defined.
14666 Usually this means the macro was only invoked conditionally." >&5
14667 echo "$as_me: error: conditional \"USE_DUMP\" was never defined.
14668 Usually this means the macro was only invoked conditionally." >&2;}
14669    { (exit 1); exit 1; }; }
14670 fi
14671
14672 : ${CONFIG_STATUS=./config.status}
14673 ac_clean_files_save=$ac_clean_files
14674 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14675 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14676 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14677 cat >$CONFIG_STATUS <<_ACEOF
14678 #! $SHELL
14679 # Generated by $as_me.
14680 # Run this file to recreate the current configuration.
14681 # Compiler output produced by configure, useful for debugging
14682 # configure, is in config.log if it exists.
14683
14684 debug=false
14685 ac_cs_recheck=false
14686 ac_cs_silent=false
14687 SHELL=\${CONFIG_SHELL-$SHELL}
14688 _ACEOF
14689
14690 cat >>$CONFIG_STATUS <<\_ACEOF
14691 ## --------------------- ##
14692 ## M4sh Initialization.  ##
14693 ## --------------------- ##
14694
14695 # Be more Bourne compatible
14696 DUALCASE=1; export DUALCASE # for MKS sh
14697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14698   emulate sh
14699   NULLCMD=:
14700   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14701   # is contrary to our usage.  Disable this feature.
14702   alias -g '${1+"$@"}'='"$@"'
14703   setopt NO_GLOB_SUBST
14704 else
14705   case `(set -o) 2>/dev/null` in
14706   *posix*) set -o posix ;;
14707 esac
14708
14709 fi
14710
14711
14712
14713
14714 # PATH needs CR
14715 # Avoid depending upon Character Ranges.
14716 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14717 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14718 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14719 as_cr_digits='0123456789'
14720 as_cr_alnum=$as_cr_Letters$as_cr_digits
14721
14722 # The user is always right.
14723 if test "${PATH_SEPARATOR+set}" != set; then
14724   echo "#! /bin/sh" >conf$$.sh
14725   echo  "exit 0"   >>conf$$.sh
14726   chmod +x conf$$.sh
14727   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14728     PATH_SEPARATOR=';'
14729   else
14730     PATH_SEPARATOR=:
14731   fi
14732   rm -f conf$$.sh
14733 fi
14734
14735 # Support unset when possible.
14736 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14737   as_unset=unset
14738 else
14739   as_unset=false
14740 fi
14741
14742
14743 # IFS
14744 # We need space, tab and new line, in precisely that order.  Quoting is
14745 # there to prevent editors from complaining about space-tab.
14746 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14747 # splitting by setting IFS to empty value.)
14748 as_nl='
14749 '
14750 IFS=" ""        $as_nl"
14751
14752 # Find who we are.  Look in the path if we contain no directory separator.
14753 case $0 in
14754   *[\\/]* ) as_myself=$0 ;;
14755   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756 for as_dir in $PATH
14757 do
14758   IFS=$as_save_IFS
14759   test -z "$as_dir" && as_dir=.
14760   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14761 done
14762 IFS=$as_save_IFS
14763
14764      ;;
14765 esac
14766 # We did not find ourselves, most probably we were run as `sh COMMAND'
14767 # in which case we are not to be found in the path.
14768 if test "x$as_myself" = x; then
14769   as_myself=$0
14770 fi
14771 if test ! -f "$as_myself"; then
14772   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14773   { (exit 1); exit 1; }
14774 fi
14775
14776 # Work around bugs in pre-3.0 UWIN ksh.
14777 for as_var in ENV MAIL MAILPATH
14778 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14779 done
14780 PS1='$ '
14781 PS2='> '
14782 PS4='+ '
14783
14784 # NLS nuisances.
14785 for as_var in \
14786   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14787   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14788   LC_TELEPHONE LC_TIME
14789 do
14790   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14791     eval $as_var=C; export $as_var
14792   else
14793     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14794   fi
14795 done
14796
14797 # Required to use basename.
14798 if expr a : '\(a\)' >/dev/null 2>&1 &&
14799    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14800   as_expr=expr
14801 else
14802   as_expr=false
14803 fi
14804
14805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14806   as_basename=basename
14807 else
14808   as_basename=false
14809 fi
14810
14811
14812 # Name of the executable.
14813 as_me=`$as_basename -- "$0" ||
14814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14815          X"$0" : 'X\(//\)$' \| \
14816          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14817 echo X/"$0" |
14818     sed '/^.*\/\([^/][^/]*\)\/*$/{
14819             s//\1/
14820             q
14821           }
14822           /^X\/\(\/\/\)$/{
14823             s//\1/
14824             q
14825           }
14826           /^X\/\(\/\).*/{
14827             s//\1/
14828             q
14829           }
14830           s/.*/./; q'`
14831
14832 # CDPATH.
14833 $as_unset CDPATH
14834
14835
14836
14837   as_lineno_1=$LINENO
14838   as_lineno_2=$LINENO
14839   test "x$as_lineno_1" != "x$as_lineno_2" &&
14840   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14841
14842   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14843   # uniformly replaced by the line number.  The first 'sed' inserts a
14844   # line-number line after each line using $LINENO; the second 'sed'
14845   # does the real work.  The second script uses 'N' to pair each
14846   # line-number line with the line containing $LINENO, and appends
14847   # trailing '-' during substitution so that $LINENO is not a special
14848   # case at line end.
14849   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14850   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14851   # E. McMahon (1931-1989) for sed's syntax.  :-)
14852   sed -n '
14853     p
14854     /[$]LINENO/=
14855   ' <$as_myself |
14856     sed '
14857       s/[$]LINENO.*/&-/
14858       t lineno
14859       b
14860       :lineno
14861       N
14862       :loop
14863       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14864       t loop
14865       s/-\n.*//
14866     ' >$as_me.lineno &&
14867   chmod +x "$as_me.lineno" ||
14868     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14869    { (exit 1); exit 1; }; }
14870
14871   # Don't try to exec as it changes $[0], causing all sort of problems
14872   # (the dirname of $[0] is not the place where we might find the
14873   # original and so on.  Autoconf is especially sensitive to this).
14874   . "./$as_me.lineno"
14875   # Exit status is that of the last command.
14876   exit
14877 }
14878
14879
14880 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14881   as_dirname=dirname
14882 else
14883   as_dirname=false
14884 fi
14885
14886 ECHO_C= ECHO_N= ECHO_T=
14887 case `echo -n x` in
14888 -n*)
14889   case `echo 'x\c'` in
14890   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14891   *)   ECHO_C='\c';;
14892   esac;;
14893 *)
14894   ECHO_N='-n';;
14895 esac
14896
14897 if expr a : '\(a\)' >/dev/null 2>&1 &&
14898    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14899   as_expr=expr
14900 else
14901   as_expr=false
14902 fi
14903
14904 rm -f conf$$ conf$$.exe conf$$.file
14905 if test -d conf$$.dir; then
14906   rm -f conf$$.dir/conf$$.file
14907 else
14908   rm -f conf$$.dir
14909   mkdir conf$$.dir
14910 fi
14911 echo >conf$$.file
14912 if ln -s conf$$.file conf$$ 2>/dev/null; then
14913   as_ln_s='ln -s'
14914   # ... but there are two gotchas:
14915   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14916   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14917   # In both cases, we have to default to `cp -p'.
14918   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14919     as_ln_s='cp -p'
14920 elif ln conf$$.file conf$$ 2>/dev/null; then
14921   as_ln_s=ln
14922 else
14923   as_ln_s='cp -p'
14924 fi
14925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926 rmdir conf$$.dir 2>/dev/null
14927
14928 if mkdir -p . 2>/dev/null; then
14929   as_mkdir_p=:
14930 else
14931   test -d ./-p && rmdir ./-p
14932   as_mkdir_p=false
14933 fi
14934
14935 if test -x / >/dev/null 2>&1; then
14936   as_test_x='test -x'
14937 else
14938   if ls -dL / >/dev/null 2>&1; then
14939     as_ls_L_option=L
14940   else
14941     as_ls_L_option=
14942   fi
14943   as_test_x='
14944     eval sh -c '\''
14945       if test -d "$1"; then
14946         test -d "$1/.";
14947       else
14948         case $1 in
14949         -*)set "./$1";;
14950         esac;
14951         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14952         ???[sx]*):;;*)false;;esac;fi
14953     '\'' sh
14954   '
14955 fi
14956 as_executable_p=$as_test_x
14957
14958 # Sed expression to map a string onto a valid CPP name.
14959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14960
14961 # Sed expression to map a string onto a valid variable name.
14962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14963
14964
14965 exec 6>&1
14966
14967 # Save the log message, to keep $[0] and so on meaningful, and to
14968 # report actual input values of CONFIG_FILES etc. instead of their
14969 # values after options handling.
14970 ac_log="
14971 This file was extended by libmm-fileinfo $as_me 0.0.1, which was
14972 generated by GNU Autoconf 2.61.  Invocation command line was
14973
14974   CONFIG_FILES    = $CONFIG_FILES
14975   CONFIG_HEADERS  = $CONFIG_HEADERS
14976   CONFIG_LINKS    = $CONFIG_LINKS
14977   CONFIG_COMMANDS = $CONFIG_COMMANDS
14978   $ $0 $@
14979
14980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14981 "
14982
14983 _ACEOF
14984
14985 cat >>$CONFIG_STATUS <<_ACEOF
14986 # Files that config.status was made for.
14987 config_files="$ac_config_files"
14988 config_headers="$ac_config_headers"
14989 config_commands="$ac_config_commands"
14990
14991 _ACEOF
14992
14993 cat >>$CONFIG_STATUS <<\_ACEOF
14994 ac_cs_usage="\
14995 \`$as_me' instantiates files from templates according to the
14996 current configuration.
14997
14998 Usage: $0 [OPTIONS] [FILE]...
14999
15000   -h, --help       print this help, then exit
15001   -V, --version    print version number and configuration settings, then exit
15002   -q, --quiet      do not print progress messages
15003   -d, --debug      don't remove temporary files
15004       --recheck    update $as_me by reconfiguring in the same conditions
15005   --file=FILE[:TEMPLATE]
15006                    instantiate the configuration file FILE
15007   --header=FILE[:TEMPLATE]
15008                    instantiate the configuration header FILE
15009
15010 Configuration files:
15011 $config_files
15012
15013 Configuration headers:
15014 $config_headers
15015
15016 Configuration commands:
15017 $config_commands
15018
15019 Report bugs to <bug-autoconf@gnu.org>."
15020
15021 _ACEOF
15022 cat >>$CONFIG_STATUS <<_ACEOF
15023 ac_cs_version="\\
15024 libmm-fileinfo config.status 0.0.1
15025 configured by $0, generated by GNU Autoconf 2.61,
15026   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15027
15028 Copyright (C) 2006 Free Software Foundation, Inc.
15029 This config.status script is free software; the Free Software Foundation
15030 gives unlimited permission to copy, distribute and modify it."
15031
15032 ac_pwd='$ac_pwd'
15033 srcdir='$srcdir'
15034 INSTALL='$INSTALL'
15035 MKDIR_P='$MKDIR_P'
15036 _ACEOF
15037
15038 cat >>$CONFIG_STATUS <<\_ACEOF
15039 # If no file are specified by the user, then we need to provide default
15040 # value.  By we need to know if files were specified by the user.
15041 ac_need_defaults=:
15042 while test $# != 0
15043 do
15044   case $1 in
15045   --*=*)
15046     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15047     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15048     ac_shift=:
15049     ;;
15050   *)
15051     ac_option=$1
15052     ac_optarg=$2
15053     ac_shift=shift
15054     ;;
15055   esac
15056
15057   case $ac_option in
15058   # Handling of the options.
15059   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15060     ac_cs_recheck=: ;;
15061   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15062     echo "$ac_cs_version"; exit ;;
15063   --debug | --debu | --deb | --de | --d | -d )
15064     debug=: ;;
15065   --file | --fil | --fi | --f )
15066     $ac_shift
15067     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15068     ac_need_defaults=false;;
15069   --header | --heade | --head | --hea )
15070     $ac_shift
15071     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15072     ac_need_defaults=false;;
15073   --he | --h)
15074     # Conflict between --help and --header
15075     { echo "$as_me: error: ambiguous option: $1
15076 Try \`$0 --help' for more information." >&2
15077    { (exit 1); exit 1; }; };;
15078   --help | --hel | -h )
15079     echo "$ac_cs_usage"; exit ;;
15080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15081   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15082     ac_cs_silent=: ;;
15083
15084   # This is an error.
15085   -*) { echo "$as_me: error: unrecognized option: $1
15086 Try \`$0 --help' for more information." >&2
15087    { (exit 1); exit 1; }; } ;;
15088
15089   *) ac_config_targets="$ac_config_targets $1"
15090      ac_need_defaults=false ;;
15091
15092   esac
15093   shift
15094 done
15095
15096 ac_configure_extra_args=
15097
15098 if $ac_cs_silent; then
15099   exec 6>/dev/null
15100   ac_configure_extra_args="$ac_configure_extra_args --silent"
15101 fi
15102
15103 _ACEOF
15104 cat >>$CONFIG_STATUS <<_ACEOF
15105 if \$ac_cs_recheck; then
15106   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15107   CONFIG_SHELL=$SHELL
15108   export CONFIG_SHELL
15109   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15110 fi
15111
15112 _ACEOF
15113 cat >>$CONFIG_STATUS <<\_ACEOF
15114 exec 5>>config.log
15115 {
15116   echo
15117   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15118 ## Running $as_me. ##
15119 _ASBOX
15120   echo "$ac_log"
15121 } >&5
15122
15123 _ACEOF
15124 cat >>$CONFIG_STATUS <<_ACEOF
15125 #
15126 # INIT-COMMANDS
15127 #
15128 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15129
15130
15131 # The HP-UX ksh and POSIX shell print the target directory to stdout
15132 # if CDPATH is set.
15133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15134
15135 sed_quote_subst='$sed_quote_subst'
15136 double_quote_subst='$double_quote_subst'
15137 delay_variable_subst='$delay_variable_subst'
15138 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15139 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15140 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15141 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15142 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15143 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15144 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15145 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15146 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15147 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15148 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15149 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15150 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15151 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15152 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15153 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15154 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15155 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15156 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15157 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15158 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15159 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15160 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15161 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15162 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15163 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15164 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15165 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15166 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15167 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15168 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15169 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15170 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15171 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15172 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15173 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15174 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15175 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15176 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15177 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15178 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15179 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15180 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15181 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15182 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15183 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15184 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15185 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15186 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15187 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15188 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15189 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15190 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15191 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15192 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15193 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15194 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15195 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15196 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15197 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15198 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15199 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15200 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15201 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15202 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15203 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15204 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15205 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15206 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15207 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15209 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15210 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15211 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15212 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15213 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15214 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15215 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15216 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15217 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15218 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15219 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15220 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15221 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15222 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15223 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15224 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15225 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15226 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15227 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15228 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15229 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15230 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15231 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15232 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15233 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15234 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15235 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15236 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15237 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15238 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15239 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15240 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15241 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15242 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15243 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15244 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15245 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15246 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15247 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15248 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15249 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15250 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15251 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15252 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15253 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15254 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15255
15256 LTCC='$LTCC'
15257 LTCFLAGS='$LTCFLAGS'
15258 compiler='$compiler_DEFAULT'
15259
15260 # Quote evaled strings.
15261 for var in SED \
15262 GREP \
15263 EGREP \
15264 FGREP \
15265 LD \
15266 NM \
15267 LN_S \
15268 lt_SP2NL \
15269 lt_NL2SP \
15270 reload_flag \
15271 deplibs_check_method \
15272 file_magic_cmd \
15273 AR \
15274 AR_FLAGS \
15275 STRIP \
15276 RANLIB \
15277 CC \
15278 CFLAGS \
15279 compiler \
15280 lt_cv_sys_global_symbol_pipe \
15281 lt_cv_sys_global_symbol_to_cdecl \
15282 lt_cv_sys_global_symbol_to_c_name_address \
15283 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15284 SHELL \
15285 ECHO \
15286 lt_prog_compiler_no_builtin_flag \
15287 lt_prog_compiler_wl \
15288 lt_prog_compiler_pic \
15289 lt_prog_compiler_static \
15290 lt_cv_prog_compiler_c_o \
15291 need_locks \
15292 DSYMUTIL \
15293 NMEDIT \
15294 LIPO \
15295 OTOOL \
15296 OTOOL64 \
15297 shrext_cmds \
15298 export_dynamic_flag_spec \
15299 whole_archive_flag_spec \
15300 compiler_needs_object \
15301 with_gnu_ld \
15302 allow_undefined_flag \
15303 no_undefined_flag \
15304 hardcode_libdir_flag_spec \
15305 hardcode_libdir_flag_spec_ld \
15306 hardcode_libdir_separator \
15307 fix_srcfile_path \
15308 exclude_expsyms \
15309 include_expsyms \
15310 file_list_spec \
15311 variables_saved_for_relink \
15312 libname_spec \
15313 library_names_spec \
15314 soname_spec \
15315 finish_eval \
15316 old_striplib \
15317 striplib; do
15318     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15319     *[\\\\\\\`\\"\\\$]*)
15320       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15321       ;;
15322     *)
15323       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15324       ;;
15325     esac
15326 done
15327
15328 # Double-quote double-evaled strings.
15329 for var in reload_cmds \
15330 old_postinstall_cmds \
15331 old_postuninstall_cmds \
15332 old_archive_cmds \
15333 extract_expsyms_cmds \
15334 old_archive_from_new_cmds \
15335 old_archive_from_expsyms_cmds \
15336 archive_cmds \
15337 archive_expsym_cmds \
15338 module_cmds \
15339 module_expsym_cmds \
15340 export_symbols_cmds \
15341 prelink_cmds \
15342 postinstall_cmds \
15343 postuninstall_cmds \
15344 finish_cmds \
15345 sys_lib_search_path_spec \
15346 sys_lib_dlsearch_path_spec; do
15347     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15348     *[\\\\\\\`\\"\\\$]*)
15349       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15350       ;;
15351     *)
15352       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15353       ;;
15354     esac
15355 done
15356
15357 # Fix-up fallback echo if it was mangled by the above quoting rules.
15358 case \$lt_ECHO in
15359 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15360   ;;
15361 esac
15362
15363 ac_aux_dir='$ac_aux_dir'
15364 xsi_shell='$xsi_shell'
15365 lt_shell_append='$lt_shell_append'
15366
15367 # See if we are running on zsh, and set the options which allow our
15368 # commands through without removal of \ escapes INIT.
15369 if test -n "\${ZSH_VERSION+set}" ; then
15370    setopt NO_GLOB_SUBST
15371 fi
15372
15373
15374     PACKAGE='$PACKAGE'
15375     VERSION='$VERSION'
15376     TIMESTAMP='$TIMESTAMP'
15377     RM='$RM'
15378     ofile='$ofile'
15379
15380
15381
15382
15383 _ACEOF
15384
15385 cat >>$CONFIG_STATUS <<\_ACEOF
15386
15387 # Handling of arguments.
15388 for ac_config_target in $ac_config_targets
15389 do
15390   case $ac_config_target in
15391     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15392     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15393     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15394     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15395     "codecs/Makefile") CONFIG_FILES="$CONFIG_FILES codecs/Makefile" ;;
15396     "codecs/ffmpeg/Makefile") CONFIG_FILES="$CONFIG_FILES codecs/ffmpeg/Makefile" ;;
15397     "formats/Makefile") CONFIG_FILES="$CONFIG_FILES formats/Makefile" ;;
15398     "formats/ffmpeg/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ffmpeg/Makefile" ;;
15399     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
15400     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15401     "mm-fileinfo.pc") CONFIG_FILES="$CONFIG_FILES mm-fileinfo.pc" ;;
15402
15403   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15405    { (exit 1); exit 1; }; };;
15406   esac
15407 done
15408
15409
15410 # If the user did not use the arguments to specify the items to instantiate,
15411 # then the envvar interface is used.  Set only those that are not.
15412 # We use the long form for the default assignment because of an extremely
15413 # bizarre bug on SunOS 4.1.3.
15414 if $ac_need_defaults; then
15415   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15416   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15417   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15418 fi
15419
15420 # Have a temporary directory for convenience.  Make it in the build tree
15421 # simply because there is no reason against having it here, and in addition,
15422 # creating and moving files from /tmp can sometimes cause problems.
15423 # Hook for its removal unless debugging.
15424 # Note that there is a small window in which the directory will not be cleaned:
15425 # after its creation but before its name has been assigned to `$tmp'.
15426 $debug ||
15427 {
15428   tmp=
15429   trap 'exit_status=$?
15430   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15431 ' 0
15432   trap '{ (exit 1); exit 1; }' 1 2 13 15
15433 }
15434 # Create a (secure) tmp directory for tmp files.
15435
15436 {
15437   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15438   test -n "$tmp" && test -d "$tmp"
15439 }  ||
15440 {
15441   tmp=./conf$$-$RANDOM
15442   (umask 077 && mkdir "$tmp")
15443 } ||
15444 {
15445    echo "$me: cannot create a temporary directory in ." >&2
15446    { (exit 1); exit 1; }
15447 }
15448
15449 #
15450 # Set up the sed scripts for CONFIG_FILES section.
15451 #
15452
15453 # No need to generate the scripts if there are no CONFIG_FILES.
15454 # This happens for instance when ./config.status config.h
15455 if test -n "$CONFIG_FILES"; then
15456
15457 _ACEOF
15458
15459
15460
15461 ac_delim='%!_!# '
15462 for ac_last_try in false false false false false :; do
15463   cat >conf$$subs.sed <<_ACEOF
15464 SHELL!$SHELL$ac_delim
15465 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15466 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15467 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15468 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15469 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15470 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15471 exec_prefix!$exec_prefix$ac_delim
15472 prefix!$prefix$ac_delim
15473 program_transform_name!$program_transform_name$ac_delim
15474 bindir!$bindir$ac_delim
15475 sbindir!$sbindir$ac_delim
15476 libexecdir!$libexecdir$ac_delim
15477 datarootdir!$datarootdir$ac_delim
15478 datadir!$datadir$ac_delim
15479 sysconfdir!$sysconfdir$ac_delim
15480 sharedstatedir!$sharedstatedir$ac_delim
15481 localstatedir!$localstatedir$ac_delim
15482 includedir!$includedir$ac_delim
15483 oldincludedir!$oldincludedir$ac_delim
15484 docdir!$docdir$ac_delim
15485 infodir!$infodir$ac_delim
15486 htmldir!$htmldir$ac_delim
15487 dvidir!$dvidir$ac_delim
15488 pdfdir!$pdfdir$ac_delim
15489 psdir!$psdir$ac_delim
15490 libdir!$libdir$ac_delim
15491 localedir!$localedir$ac_delim
15492 mandir!$mandir$ac_delim
15493 DEFS!$DEFS$ac_delim
15494 ECHO_C!$ECHO_C$ac_delim
15495 ECHO_N!$ECHO_N$ac_delim
15496 ECHO_T!$ECHO_T$ac_delim
15497 LIBS!$LIBS$ac_delim
15498 build_alias!$build_alias$ac_delim
15499 host_alias!$host_alias$ac_delim
15500 target_alias!$target_alias$ac_delim
15501 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15502 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15503 INSTALL_DATA!$INSTALL_DATA$ac_delim
15504 am__isrc!$am__isrc$ac_delim
15505 CYGPATH_W!$CYGPATH_W$ac_delim
15506 PACKAGE!$PACKAGE$ac_delim
15507 VERSION!$VERSION$ac_delim
15508 ACLOCAL!$ACLOCAL$ac_delim
15509 AUTOCONF!$AUTOCONF$ac_delim
15510 AUTOMAKE!$AUTOMAKE$ac_delim
15511 AUTOHEADER!$AUTOHEADER$ac_delim
15512 MAKEINFO!$MAKEINFO$ac_delim
15513 install_sh!$install_sh$ac_delim
15514 STRIP!$STRIP$ac_delim
15515 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15516 mkdir_p!$mkdir_p$ac_delim
15517 AWK!$AWK$ac_delim
15518 SET_MAKE!$SET_MAKE$ac_delim
15519 am__leading_dot!$am__leading_dot$ac_delim
15520 AMTAR!$AMTAR$ac_delim
15521 am__tar!$am__tar$ac_delim
15522 am__untar!$am__untar$ac_delim
15523 CC!$CC$ac_delim
15524 CFLAGS!$CFLAGS$ac_delim
15525 LDFLAGS!$LDFLAGS$ac_delim
15526 CPPFLAGS!$CPPFLAGS$ac_delim
15527 ac_ct_CC!$ac_ct_CC$ac_delim
15528 EXEEXT!$EXEEXT$ac_delim
15529 OBJEXT!$OBJEXT$ac_delim
15530 DEPDIR!$DEPDIR$ac_delim
15531 am__include!$am__include$ac_delim
15532 am__quote!$am__quote$ac_delim
15533 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15534 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15535 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15536 CCDEPMODE!$CCDEPMODE$ac_delim
15537 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15538 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15539 LIBTOOL!$LIBTOOL$ac_delim
15540 build!$build$ac_delim
15541 build_cpu!$build_cpu$ac_delim
15542 build_vendor!$build_vendor$ac_delim
15543 build_os!$build_os$ac_delim
15544 host!$host$ac_delim
15545 host_cpu!$host_cpu$ac_delim
15546 host_vendor!$host_vendor$ac_delim
15547 host_os!$host_os$ac_delim
15548 SED!$SED$ac_delim
15549 GREP!$GREP$ac_delim
15550 EGREP!$EGREP$ac_delim
15551 FGREP!$FGREP$ac_delim
15552 LD!$LD$ac_delim
15553 DUMPBIN!$DUMPBIN$ac_delim
15554 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15555 NM!$NM$ac_delim
15556 LN_S!$LN_S$ac_delim
15557 AR!$AR$ac_delim
15558 RANLIB!$RANLIB$ac_delim
15559 lt_ECHO!$lt_ECHO$ac_delim
15560 DSYMUTIL!$DSYMUTIL$ac_delim
15561 _ACEOF
15562
15563   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15564     break
15565   elif $ac_last_try; then
15566     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15568    { (exit 1); exit 1; }; }
15569   else
15570     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15571   fi
15572 done
15573
15574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15575 if test -n "$ac_eof"; then
15576   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15577   ac_eof=`expr $ac_eof + 1`
15578 fi
15579
15580 cat >>$CONFIG_STATUS <<_ACEOF
15581 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15583 _ACEOF
15584 sed '
15585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15586 s/^/s,@/; s/!/@,|#_!!_#|/
15587 :n
15588 t n
15589 s/'"$ac_delim"'$/,g/; t
15590 s/$/\\/; p
15591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15592 ' >>$CONFIG_STATUS <conf$$subs.sed
15593 rm -f conf$$subs.sed
15594 cat >>$CONFIG_STATUS <<_ACEOF
15595 CEOF$ac_eof
15596 _ACEOF
15597
15598
15599 ac_delim='%!_!# '
15600 for ac_last_try in false false false false false :; do
15601   cat >conf$$subs.sed <<_ACEOF
15602 NMEDIT!$NMEDIT$ac_delim
15603 LIPO!$LIPO$ac_delim
15604 OTOOL!$OTOOL$ac_delim
15605 OTOOL64!$OTOOL64$ac_delim
15606 CPP!$CPP$ac_delim
15607 LIBOBJS!$LIBOBJS$ac_delim
15608 PKG_CONFIG!$PKG_CONFIG$ac_delim
15609 MMCOMMON_CFLAGS!$MMCOMMON_CFLAGS$ac_delim
15610 MMCOMMON_LIBS!$MMCOMMON_LIBS$ac_delim
15611 MMLOG_CFLAGS!$MMLOG_CFLAGS$ac_delim
15612 MMLOG_LIBS!$MMLOG_LIBS$ac_delim
15613 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
15614 GLIB_LIBS!$GLIB_LIBS$ac_delim
15615 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15616 GTK_LIBS!$GTK_LIBS$ac_delim
15617 AVCODEC_CFLAGS!$AVCODEC_CFLAGS$ac_delim
15618 AVCODEC_LIBS!$AVCODEC_LIBS$ac_delim
15619 AVUTIL_CFLAGS!$AVUTIL_CFLAGS$ac_delim
15620 AVUTIL_LIBS!$AVUTIL_LIBS$ac_delim
15621 AVFORMAT_CFLAGS!$AVFORMAT_CFLAGS$ac_delim
15622 AVFORMAT_LIBS!$AVFORMAT_LIBS$ac_delim
15623 DRMSERVICE_CFLAGS!$DRMSERVICE_CFLAGS$ac_delim
15624 DRMSERVICE_LIBS!$DRMSERVICE_LIBS$ac_delim
15625 USE_DRM_TRUE!$USE_DRM_TRUE$ac_delim
15626 USE_DRM_FALSE!$USE_DRM_FALSE$ac_delim
15627 USE_TESTMODE_TRUE!$USE_TESTMODE_TRUE$ac_delim
15628 USE_TESTMODE_FALSE!$USE_TESTMODE_FALSE$ac_delim
15629 USE_DUMP_TRUE!$USE_DUMP_TRUE$ac_delim
15630 USE_DUMP_FALSE!$USE_DUMP_FALSE$ac_delim
15631 LTLIBOBJS!$LTLIBOBJS$ac_delim
15632 _ACEOF
15633
15634   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
15635     break
15636   elif $ac_last_try; then
15637     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15638 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15639    { (exit 1); exit 1; }; }
15640   else
15641     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15642   fi
15643 done
15644
15645 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15646 if test -n "$ac_eof"; then
15647   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15648   ac_eof=`expr $ac_eof + 1`
15649 fi
15650
15651 cat >>$CONFIG_STATUS <<_ACEOF
15652 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15653 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15654 _ACEOF
15655 sed '
15656 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15657 s/^/s,@/; s/!/@,|#_!!_#|/
15658 :n
15659 t n
15660 s/'"$ac_delim"'$/,g/; t
15661 s/$/\\/; p
15662 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15663 ' >>$CONFIG_STATUS <conf$$subs.sed
15664 rm -f conf$$subs.sed
15665 cat >>$CONFIG_STATUS <<_ACEOF
15666 :end
15667 s/|#_!!_#|//g
15668 CEOF$ac_eof
15669 _ACEOF
15670
15671
15672 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15673 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15674 # trailing colons and then remove the whole line if VPATH becomes empty
15675 # (actually we leave an empty line to preserve line numbers).
15676 if test "x$srcdir" = x.; then
15677   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15678 s/:*\$(srcdir):*/:/
15679 s/:*\${srcdir}:*/:/
15680 s/:*@srcdir@:*/:/
15681 s/^\([^=]*=[     ]*\):*/\1/
15682 s/:*$//
15683 s/^[^=]*=[       ]*$//
15684 }'
15685 fi
15686
15687 cat >>$CONFIG_STATUS <<\_ACEOF
15688 fi # test -n "$CONFIG_FILES"
15689
15690
15691 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
15692 do
15693   case $ac_tag in
15694   :[FHLC]) ac_mode=$ac_tag; continue;;
15695   esac
15696   case $ac_mode$ac_tag in
15697   :[FHL]*:*);;
15698   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15699 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15700    { (exit 1); exit 1; }; };;
15701   :[FH]-) ac_tag=-:-;;
15702   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15703   esac
15704   ac_save_IFS=$IFS
15705   IFS=:
15706   set x $ac_tag
15707   IFS=$ac_save_IFS
15708   shift
15709   ac_file=$1
15710   shift
15711
15712   case $ac_mode in
15713   :L) ac_source=$1;;
15714   :[FH])
15715     ac_file_inputs=
15716     for ac_f
15717     do
15718       case $ac_f in
15719       -) ac_f="$tmp/stdin";;
15720       *) # Look for the file first in the build tree, then in the source tree
15721          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15722          # because $ac_f cannot contain `:'.
15723          test -f "$ac_f" ||
15724            case $ac_f in
15725            [\\/$]*) false;;
15726            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15727            esac ||
15728            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15729 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15730    { (exit 1); exit 1; }; };;
15731       esac
15732       ac_file_inputs="$ac_file_inputs $ac_f"
15733     done
15734
15735     # Let's still pretend it is `configure' which instantiates (i.e., don't
15736     # use $as_me), people would be surprised to read:
15737     #    /* config.h.  Generated by config.status.  */
15738     configure_input="Generated from "`IFS=:
15739           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15740     if test x"$ac_file" != x-; then
15741       configure_input="$ac_file.  $configure_input"
15742       { echo "$as_me:$LINENO: creating $ac_file" >&5
15743 echo "$as_me: creating $ac_file" >&6;}
15744     fi
15745
15746     case $ac_tag in
15747     *:-:* | *:-) cat >"$tmp/stdin";;
15748     esac
15749     ;;
15750   esac
15751
15752   ac_dir=`$as_dirname -- "$ac_file" ||
15753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15754          X"$ac_file" : 'X\(//\)[^/]' \| \
15755          X"$ac_file" : 'X\(//\)$' \| \
15756          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15757 echo X"$ac_file" |
15758     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15759             s//\1/
15760             q
15761           }
15762           /^X\(\/\/\)[^/].*/{
15763             s//\1/
15764             q
15765           }
15766           /^X\(\/\/\)$/{
15767             s//\1/
15768             q
15769           }
15770           /^X\(\/\).*/{
15771             s//\1/
15772             q
15773           }
15774           s/.*/./; q'`
15775   { as_dir="$ac_dir"
15776   case $as_dir in #(
15777   -*) as_dir=./$as_dir;;
15778   esac
15779   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15780     as_dirs=
15781     while :; do
15782       case $as_dir in #(
15783       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15784       *) as_qdir=$as_dir;;
15785       esac
15786       as_dirs="'$as_qdir' $as_dirs"
15787       as_dir=`$as_dirname -- "$as_dir" ||
15788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789          X"$as_dir" : 'X\(//\)[^/]' \| \
15790          X"$as_dir" : 'X\(//\)$' \| \
15791          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15792 echo X"$as_dir" |
15793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15794             s//\1/
15795             q
15796           }
15797           /^X\(\/\/\)[^/].*/{
15798             s//\1/
15799             q
15800           }
15801           /^X\(\/\/\)$/{
15802             s//\1/
15803             q
15804           }
15805           /^X\(\/\).*/{
15806             s//\1/
15807             q
15808           }
15809           s/.*/./; q'`
15810       test -d "$as_dir" && break
15811     done
15812     test -z "$as_dirs" || eval "mkdir $as_dirs"
15813   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15814 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15815    { (exit 1); exit 1; }; }; }
15816   ac_builddir=.
15817
15818 case "$ac_dir" in
15819 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15820 *)
15821   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15822   # A ".." for each directory in $ac_dir_suffix.
15823   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15824   case $ac_top_builddir_sub in
15825   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15826   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15827   esac ;;
15828 esac
15829 ac_abs_top_builddir=$ac_pwd
15830 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15831 # for backward compatibility:
15832 ac_top_builddir=$ac_top_build_prefix
15833
15834 case $srcdir in
15835   .)  # We are building in place.
15836     ac_srcdir=.
15837     ac_top_srcdir=$ac_top_builddir_sub
15838     ac_abs_top_srcdir=$ac_pwd ;;
15839   [\\/]* | ?:[\\/]* )  # Absolute name.
15840     ac_srcdir=$srcdir$ac_dir_suffix;
15841     ac_top_srcdir=$srcdir
15842     ac_abs_top_srcdir=$srcdir ;;
15843   *) # Relative name.
15844     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15845     ac_top_srcdir=$ac_top_build_prefix$srcdir
15846     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15847 esac
15848 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15849
15850
15851   case $ac_mode in
15852   :F)
15853   #
15854   # CONFIG_FILE
15855   #
15856
15857   case $INSTALL in
15858   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15859   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15860   esac
15861   ac_MKDIR_P=$MKDIR_P
15862   case $MKDIR_P in
15863   [\\/$]* | ?:[\\/]* ) ;;
15864   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15865   esac
15866 _ACEOF
15867
15868 cat >>$CONFIG_STATUS <<\_ACEOF
15869 # If the template does not know about datarootdir, expand it.
15870 # FIXME: This hack should be removed a few years after 2.60.
15871 ac_datarootdir_hack=; ac_datarootdir_seen=
15872
15873 case `sed -n '/datarootdir/ {
15874   p
15875   q
15876 }
15877 /@datadir@/p
15878 /@docdir@/p
15879 /@infodir@/p
15880 /@localedir@/p
15881 /@mandir@/p
15882 ' $ac_file_inputs` in
15883 *datarootdir*) ac_datarootdir_seen=yes;;
15884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15885   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15886 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15887 _ACEOF
15888 cat >>$CONFIG_STATUS <<_ACEOF
15889   ac_datarootdir_hack='
15890   s&@datadir@&$datadir&g
15891   s&@docdir@&$docdir&g
15892   s&@infodir@&$infodir&g
15893   s&@localedir@&$localedir&g
15894   s&@mandir@&$mandir&g
15895     s&\\\${datarootdir}&$datarootdir&g' ;;
15896 esac
15897 _ACEOF
15898
15899 # Neutralize VPATH when `$srcdir' = `.'.
15900 # Shell code in configure.ac might set extrasub.
15901 # FIXME: do we really want to maintain this feature?
15902 cat >>$CONFIG_STATUS <<_ACEOF
15903   sed "$ac_vpsub
15904 $extrasub
15905 _ACEOF
15906 cat >>$CONFIG_STATUS <<\_ACEOF
15907 :t
15908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15909 s&@configure_input@&$configure_input&;t t
15910 s&@top_builddir@&$ac_top_builddir_sub&;t t
15911 s&@srcdir@&$ac_srcdir&;t t
15912 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15913 s&@top_srcdir@&$ac_top_srcdir&;t t
15914 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15915 s&@builddir@&$ac_builddir&;t t
15916 s&@abs_builddir@&$ac_abs_builddir&;t t
15917 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15918 s&@INSTALL@&$ac_INSTALL&;t t
15919 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15920 $ac_datarootdir_hack
15921 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15922
15923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15924   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15925   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15926   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15927 which seems to be undefined.  Please make sure it is defined." >&5
15928 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15929 which seems to be undefined.  Please make sure it is defined." >&2;}
15930
15931   rm -f "$tmp/stdin"
15932   case $ac_file in
15933   -) cat "$tmp/out"; rm -f "$tmp/out";;
15934   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15935   esac
15936  ;;
15937   :H)
15938   #
15939   # CONFIG_HEADER
15940   #
15941 _ACEOF
15942
15943 # Transform confdefs.h into a sed script `conftest.defines', that
15944 # substitutes the proper values into config.h.in to produce config.h.
15945 rm -f conftest.defines conftest.tail
15946 # First, append a space to every undef/define line, to ease matching.
15947 echo 's/$/ /' >conftest.defines
15948 # Then, protect against being on the right side of a sed subst, or in
15949 # an unquoted here document, in config.status.  If some macros were
15950 # called several times there might be several #defines for the same
15951 # symbol, which is useless.  But do not sort them, since the last
15952 # AC_DEFINE must be honored.
15953 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15954 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15955 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15956 # PARAMS is the parameter list in the macro definition--in most cases, it's
15957 # just an empty string.
15958 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
15959 ac_dB='\\)[      (].*,\\1define\\2'
15960 ac_dC=' '
15961 ac_dD=' ,'
15962
15963 uniq confdefs.h |
15964   sed -n '
15965         t rset
15966         :rset
15967         s/^[     ]*#[    ]*define[       ][      ]*//
15968         t ok
15969         d
15970         :ok
15971         s/[\\&,]/\\&/g
15972         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15973         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15974   ' >>conftest.defines
15975
15976 # Remove the space that was appended to ease matching.
15977 # Then replace #undef with comments.  This is necessary, for
15978 # example, in the case of _POSIX_SOURCE, which is predefined and required
15979 # on some systems where configure will not decide to define it.
15980 # (The regexp can be short, since the line contains either #define or #undef.)
15981 echo 's/ $//
15982 s,^[     #]*u.*,/* & */,' >>conftest.defines
15983
15984 # Break up conftest.defines:
15985 ac_max_sed_lines=50
15986
15987 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15988 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15989 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15990 # et cetera.
15991 ac_in='$ac_file_inputs'
15992 ac_out='"$tmp/out1"'
15993 ac_nxt='"$tmp/out2"'
15994
15995 while :
15996 do
15997   # Write a here document:
15998     cat >>$CONFIG_STATUS <<_ACEOF
15999     # First, check the format of the line:
16000     cat >"\$tmp/defines.sed" <<\\CEOF
16001 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
16002 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
16003 b
16004 :def
16005 _ACEOF
16006   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16007   echo 'CEOF
16008     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16009   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16010   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16011   grep . conftest.tail >/dev/null || break
16012   rm -f conftest.defines
16013   mv conftest.tail conftest.defines
16014 done
16015 rm -f conftest.defines conftest.tail
16016
16017 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16018 cat >>$CONFIG_STATUS <<\_ACEOF
16019   if test x"$ac_file" != x-; then
16020     echo "/* $configure_input  */" >"$tmp/config.h"
16021     cat "$ac_result" >>"$tmp/config.h"
16022     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16023       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16024 echo "$as_me: $ac_file is unchanged" >&6;}
16025     else
16026       rm -f $ac_file
16027       mv "$tmp/config.h" $ac_file
16028     fi
16029   else
16030     echo "/* $configure_input  */"
16031     cat "$ac_result"
16032   fi
16033   rm -f "$tmp/out12"
16034 # Compute $ac_file's index in $config_headers.
16035 _am_arg=$ac_file
16036 _am_stamp_count=1
16037 for _am_header in $config_headers :; do
16038   case $_am_header in
16039     $_am_arg | $_am_arg:* )
16040       break ;;
16041     * )
16042       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16043   esac
16044 done
16045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047          X"$_am_arg" : 'X\(//\)[^/]' \| \
16048          X"$_am_arg" : 'X\(//\)$' \| \
16049          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16050 echo X"$_am_arg" |
16051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052             s//\1/
16053             q
16054           }
16055           /^X\(\/\/\)[^/].*/{
16056             s//\1/
16057             q
16058           }
16059           /^X\(\/\/\)$/{
16060             s//\1/
16061             q
16062           }
16063           /^X\(\/\).*/{
16064             s//\1/
16065             q
16066           }
16067           s/.*/./; q'`/stamp-h$_am_stamp_count
16068  ;;
16069
16070   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16071 echo "$as_me: executing $ac_file commands" >&6;}
16072  ;;
16073   esac
16074
16075
16076   case $ac_file$ac_mode in
16077     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
16078 # are listed without --file.  Let's play safe and only enable the eval
16079 # if we detect the quoting.
16080 case $CONFIG_FILES in
16081 *\'*) eval set x "$CONFIG_FILES" ;;
16082 *)   set x $CONFIG_FILES ;;
16083 esac
16084 shift
16085 for mf
16086 do
16087   # Strip MF so we end up with the name of the file.
16088   mf=`echo "$mf" | sed -e 's/:.*$//'`
16089   # Check whether this is an Automake generated Makefile or not.
16090   # We used to match only the files named `Makefile.in', but
16091   # some people rename them; so instead we look at the file content.
16092   # Grep'ing the first line is not enough: some people post-process
16093   # each Makefile.in and add a new line on top of each file to say so.
16094   # Grep'ing the whole file is not good either: AIX grep has a line
16095   # limit of 2048, but all sed's we know have understand at least 4000.
16096   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16097     dirpart=`$as_dirname -- "$mf" ||
16098 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099          X"$mf" : 'X\(//\)[^/]' \| \
16100          X"$mf" : 'X\(//\)$' \| \
16101          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16102 echo X"$mf" |
16103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16104             s//\1/
16105             q
16106           }
16107           /^X\(\/\/\)[^/].*/{
16108             s//\1/
16109             q
16110           }
16111           /^X\(\/\/\)$/{
16112             s//\1/
16113             q
16114           }
16115           /^X\(\/\).*/{
16116             s//\1/
16117             q
16118           }
16119           s/.*/./; q'`
16120   else
16121     continue
16122   fi
16123   # Extract the definition of DEPDIR, am__include, and am__quote
16124   # from the Makefile without running `make'.
16125   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16126   test -z "$DEPDIR" && continue
16127   am__include=`sed -n 's/^am__include = //p' < "$mf"`
16128   test -z "am__include" && continue
16129   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16130   # When using ansi2knr, U may be empty or an underscore; expand it
16131   U=`sed -n 's/^U = //p' < "$mf"`
16132   # Find all dependency output files, they are included files with
16133   # $(DEPDIR) in their names.  We invoke sed twice because it is the
16134   # simplest approach to changing $(DEPDIR) to its actual value in the
16135   # expansion.
16136   for file in `sed -n "
16137     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16138        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16139     # Make sure the directory exists.
16140     test -f "$dirpart/$file" && continue
16141     fdir=`$as_dirname -- "$file" ||
16142 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16143          X"$file" : 'X\(//\)[^/]' \| \
16144          X"$file" : 'X\(//\)$' \| \
16145          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16146 echo X"$file" |
16147     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16148             s//\1/
16149             q
16150           }
16151           /^X\(\/\/\)[^/].*/{
16152             s//\1/
16153             q
16154           }
16155           /^X\(\/\/\)$/{
16156             s//\1/
16157             q
16158           }
16159           /^X\(\/\).*/{
16160             s//\1/
16161             q
16162           }
16163           s/.*/./; q'`
16164     { as_dir=$dirpart/$fdir
16165   case $as_dir in #(
16166   -*) as_dir=./$as_dir;;
16167   esac
16168   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16169     as_dirs=
16170     while :; do
16171       case $as_dir in #(
16172       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16173       *) as_qdir=$as_dir;;
16174       esac
16175       as_dirs="'$as_qdir' $as_dirs"
16176       as_dir=`$as_dirname -- "$as_dir" ||
16177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16178          X"$as_dir" : 'X\(//\)[^/]' \| \
16179          X"$as_dir" : 'X\(//\)$' \| \
16180          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16181 echo X"$as_dir" |
16182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16183             s//\1/
16184             q
16185           }
16186           /^X\(\/\/\)[^/].*/{
16187             s//\1/
16188             q
16189           }
16190           /^X\(\/\/\)$/{
16191             s//\1/
16192             q
16193           }
16194           /^X\(\/\).*/{
16195             s//\1/
16196             q
16197           }
16198           s/.*/./; q'`
16199       test -d "$as_dir" && break
16200     done
16201     test -z "$as_dirs" || eval "mkdir $as_dirs"
16202   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16203 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16204    { (exit 1); exit 1; }; }; }
16205     # echo "creating $dirpart/$file"
16206     echo '# dummy' > "$dirpart/$file"
16207   done
16208 done
16209  ;;
16210     "libtool":C)
16211
16212     # See if we are running on zsh, and set the options which allow our
16213     # commands through without removal of \ escapes.
16214     if test -n "${ZSH_VERSION+set}" ; then
16215       setopt NO_GLOB_SUBST
16216     fi
16217
16218     cfgfile="${ofile}T"
16219     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16220     $RM "$cfgfile"
16221
16222     cat <<_LT_EOF >> "$cfgfile"
16223 #! $SHELL
16224
16225 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16226 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16228 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16229 #
16230 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16231 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16232 #   Written by Gordon Matzigkeit, 1996
16233 #
16234 #   This file is part of GNU Libtool.
16235 #
16236 # GNU Libtool is free software; you can redistribute it and/or
16237 # modify it under the terms of the GNU General Public License as
16238 # published by the Free Software Foundation; either version 2 of
16239 # the License, or (at your option) any later version.
16240 #
16241 # As a special exception to the GNU General Public License,
16242 # if you distribute this file as part of a program or library that
16243 # is built using GNU Libtool, you may include this file under the
16244 # same distribution terms that you use for the rest of that program.
16245 #
16246 # GNU Libtool is distributed in the hope that it will be useful,
16247 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16249 # GNU General Public License for more details.
16250 #
16251 # You should have received a copy of the GNU General Public License
16252 # along with GNU Libtool; see the file COPYING.  If not, a copy
16253 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16254 # obtained by writing to the Free Software Foundation, Inc.,
16255 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16256
16257
16258 # The names of the tagged configurations supported by this script.
16259 available_tags=""
16260
16261 # ### BEGIN LIBTOOL CONFIG
16262
16263 # Which release of libtool.m4 was used?
16264 macro_version=$macro_version
16265 macro_revision=$macro_revision
16266
16267 # Whether or not to build shared libraries.
16268 build_libtool_libs=$enable_shared
16269
16270 # Whether or not to build static libraries.
16271 build_old_libs=$enable_static
16272
16273 # What type of objects to build.
16274 pic_mode=$pic_mode
16275
16276 # Whether or not to optimize for fast installation.
16277 fast_install=$enable_fast_install
16278
16279 # The host system.
16280 host_alias=$host_alias
16281 host=$host
16282 host_os=$host_os
16283
16284 # The build system.
16285 build_alias=$build_alias
16286 build=$build
16287 build_os=$build_os
16288
16289 # A sed program that does not truncate output.
16290 SED=$lt_SED
16291
16292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16293 Xsed="\$SED -e 1s/^X//"
16294
16295 # A grep program that handles long lines.
16296 GREP=$lt_GREP
16297
16298 # An ERE matcher.
16299 EGREP=$lt_EGREP
16300
16301 # A literal string matcher.
16302 FGREP=$lt_FGREP
16303
16304 # A BSD- or MS-compatible name lister.
16305 NM=$lt_NM
16306
16307 # Whether we need soft or hard links.
16308 LN_S=$lt_LN_S
16309
16310 # What is the maximum length of a command?
16311 max_cmd_len=$max_cmd_len
16312
16313 # Object file suffix (normally "o").
16314 objext=$ac_objext
16315
16316 # Executable file suffix (normally "").
16317 exeext=$exeext
16318
16319 # whether the shell understands "unset".
16320 lt_unset=$lt_unset
16321
16322 # turn spaces into newlines.
16323 SP2NL=$lt_lt_SP2NL
16324
16325 # turn newlines into spaces.
16326 NL2SP=$lt_lt_NL2SP
16327
16328 # How to create reloadable object files.
16329 reload_flag=$lt_reload_flag
16330 reload_cmds=$lt_reload_cmds
16331
16332 # Method to check whether dependent libraries are shared objects.
16333 deplibs_check_method=$lt_deplibs_check_method
16334
16335 # Command to use when deplibs_check_method == "file_magic".
16336 file_magic_cmd=$lt_file_magic_cmd
16337
16338 # The archiver.
16339 AR=$lt_AR
16340 AR_FLAGS=$lt_AR_FLAGS
16341
16342 # A symbol stripping program.
16343 STRIP=$lt_STRIP
16344
16345 # Commands used to install an old-style archive.
16346 RANLIB=$lt_RANLIB
16347 old_postinstall_cmds=$lt_old_postinstall_cmds
16348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16349
16350 # A C compiler.
16351 LTCC=$lt_CC
16352
16353 # LTCC compiler flags.
16354 LTCFLAGS=$lt_CFLAGS
16355
16356 # Take the output of nm and produce a listing of raw symbols and C names.
16357 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16358
16359 # Transform the output of nm in a proper C declaration.
16360 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16361
16362 # Transform the output of nm in a C name address pair.
16363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16364
16365 # Transform the output of nm in a C name address pair when lib prefix is needed.
16366 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16367
16368 # The name of the directory that contains temporary libtool files.
16369 objdir=$objdir
16370
16371 # Shell to use when invoking shell scripts.
16372 SHELL=$lt_SHELL
16373
16374 # An echo program that does not interpret backslashes.
16375 ECHO=$lt_ECHO
16376
16377 # Used to examine libraries when file_magic_cmd begins with "file".
16378 MAGIC_CMD=$MAGIC_CMD
16379
16380 # Must we lock files when doing compilation?
16381 need_locks=$lt_need_locks
16382
16383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16384 DSYMUTIL=$lt_DSYMUTIL
16385
16386 # Tool to change global to local symbols on Mac OS X.
16387 NMEDIT=$lt_NMEDIT
16388
16389 # Tool to manipulate fat objects and archives on Mac OS X.
16390 LIPO=$lt_LIPO
16391
16392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16393 OTOOL=$lt_OTOOL
16394
16395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16396 OTOOL64=$lt_OTOOL64
16397
16398 # Old archive suffix (normally "a").
16399 libext=$libext
16400
16401 # Shared library suffix (normally ".so").
16402 shrext_cmds=$lt_shrext_cmds
16403
16404 # The commands to extract the exported symbol list from a shared archive.
16405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16406
16407 # Variables whose values should be saved in libtool wrapper scripts and
16408 # restored at link time.
16409 variables_saved_for_relink=$lt_variables_saved_for_relink
16410
16411 # Do we need the "lib" prefix for modules?
16412 need_lib_prefix=$need_lib_prefix
16413
16414 # Do we need a version for libraries?
16415 need_version=$need_version
16416
16417 # Library versioning type.
16418 version_type=$version_type
16419
16420 # Shared library runtime path variable.
16421 runpath_var=$runpath_var
16422
16423 # Shared library path variable.
16424 shlibpath_var=$shlibpath_var
16425
16426 # Is shlibpath searched before the hard-coded library search path?
16427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16428
16429 # Format of library name prefix.
16430 libname_spec=$lt_libname_spec
16431
16432 # List of archive names.  First name is the real one, the rest are links.
16433 # The last name is the one that the linker finds with -lNAME
16434 library_names_spec=$lt_library_names_spec
16435
16436 # The coded name of the library, if different from the real name.
16437 soname_spec=$lt_soname_spec
16438
16439 # Command to use after installation of a shared archive.
16440 postinstall_cmds=$lt_postinstall_cmds
16441
16442 # Command to use after uninstallation of a shared archive.
16443 postuninstall_cmds=$lt_postuninstall_cmds
16444
16445 # Commands used to finish a libtool library installation in a directory.
16446 finish_cmds=$lt_finish_cmds
16447
16448 # As "finish_cmds", except a single script fragment to be evaled but
16449 # not shown.
16450 finish_eval=$lt_finish_eval
16451
16452 # Whether we should hardcode library paths into libraries.
16453 hardcode_into_libs=$hardcode_into_libs
16454
16455 # Compile-time system search path for libraries.
16456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16457
16458 # Run-time system search path for libraries.
16459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16460
16461 # Whether dlopen is supported.
16462 dlopen_support=$enable_dlopen
16463
16464 # Whether dlopen of programs is supported.
16465 dlopen_self=$enable_dlopen_self
16466
16467 # Whether dlopen of statically linked programs is supported.
16468 dlopen_self_static=$enable_dlopen_self_static
16469
16470 # Commands to strip libraries.
16471 old_striplib=$lt_old_striplib
16472 striplib=$lt_striplib
16473
16474
16475 # The linker used to build libraries.
16476 LD=$lt_LD
16477
16478 # Commands used to build an old-style archive.
16479 old_archive_cmds=$lt_old_archive_cmds
16480
16481 # A language specific compiler.
16482 CC=$lt_compiler
16483
16484 # Is the compiler the GNU compiler?
16485 with_gcc=$GCC
16486
16487 # Compiler flag to turn off builtin functions.
16488 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16489
16490 # How to pass a linker flag through the compiler.
16491 wl=$lt_lt_prog_compiler_wl
16492
16493 # Additional compiler flags for building library objects.
16494 pic_flag=$lt_lt_prog_compiler_pic
16495
16496 # Compiler flag to prevent dynamic linking.
16497 link_static_flag=$lt_lt_prog_compiler_static
16498
16499 # Does compiler simultaneously support -c and -o options?
16500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16501
16502 # Whether or not to add -lc for building shared libraries.
16503 build_libtool_need_lc=$archive_cmds_need_lc
16504
16505 # Whether or not to disallow shared libs when runtime libs are static.
16506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16507
16508 # Compiler flag to allow reflexive dlopens.
16509 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16510
16511 # Compiler flag to generate shared objects directly from archives.
16512 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16513
16514 # Whether the compiler copes with passing no objects directly.
16515 compiler_needs_object=$lt_compiler_needs_object
16516
16517 # Create an old-style archive from a shared archive.
16518 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16519
16520 # Create a temporary old-style archive to link instead of a shared archive.
16521 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16522
16523 # Commands used to build a shared archive.
16524 archive_cmds=$lt_archive_cmds
16525 archive_expsym_cmds=$lt_archive_expsym_cmds
16526
16527 # Commands used to build a loadable module if different from building
16528 # a shared archive.
16529 module_cmds=$lt_module_cmds
16530 module_expsym_cmds=$lt_module_expsym_cmds
16531
16532 # Whether we are building with GNU ld or not.
16533 with_gnu_ld=$lt_with_gnu_ld
16534
16535 # Flag that allows shared libraries with undefined symbols to be built.
16536 allow_undefined_flag=$lt_allow_undefined_flag
16537
16538 # Flag that enforces no undefined symbols.
16539 no_undefined_flag=$lt_no_undefined_flag
16540
16541 # Flag to hardcode \$libdir into a binary during linking.
16542 # This must work even if \$libdir does not exist
16543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16544
16545 # If ld is used when linking, flag to hardcode \$libdir into a binary
16546 # during linking.  This must work even if \$libdir does not exist.
16547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16548
16549 # Whether we need a single "-rpath" flag with a separated argument.
16550 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16551
16552 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16553 # DIR into the resulting binary.
16554 hardcode_direct=$hardcode_direct
16555
16556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16557 # DIR into the resulting binary and the resulting library dependency is
16558 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16559 # library is relocated.
16560 hardcode_direct_absolute=$hardcode_direct_absolute
16561
16562 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16563 # into the resulting binary.
16564 hardcode_minus_L=$hardcode_minus_L
16565
16566 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16567 # into the resulting binary.
16568 hardcode_shlibpath_var=$hardcode_shlibpath_var
16569
16570 # Set to "yes" if building a shared library automatically hardcodes DIR
16571 # into the library and all subsequent libraries and executables linked
16572 # against it.
16573 hardcode_automatic=$hardcode_automatic
16574
16575 # Set to yes if linker adds runtime paths of dependent libraries
16576 # to runtime path list.
16577 inherit_rpath=$inherit_rpath
16578
16579 # Whether libtool must link a program against all its dependency libraries.
16580 link_all_deplibs=$link_all_deplibs
16581
16582 # Fix the shell variable \$srcfile for the compiler.
16583 fix_srcfile_path=$lt_fix_srcfile_path
16584
16585 # Set to "yes" if exported symbols are required.
16586 always_export_symbols=$always_export_symbols
16587
16588 # The commands to list exported symbols.
16589 export_symbols_cmds=$lt_export_symbols_cmds
16590
16591 # Symbols that should not be listed in the preloaded symbols.
16592 exclude_expsyms=$lt_exclude_expsyms
16593
16594 # Symbols that must always be exported.
16595 include_expsyms=$lt_include_expsyms
16596
16597 # Commands necessary for linking programs (against libraries) with templates.
16598 prelink_cmds=$lt_prelink_cmds
16599
16600 # Specify filename containing input files.
16601 file_list_spec=$lt_file_list_spec
16602
16603 # How to hardcode a shared library path into an executable.
16604 hardcode_action=$hardcode_action
16605
16606 # ### END LIBTOOL CONFIG
16607
16608 _LT_EOF
16609
16610   case $host_os in
16611   aix3*)
16612     cat <<\_LT_EOF >> "$cfgfile"
16613 # AIX sometimes has problems with the GCC collect2 program.  For some
16614 # reason, if we set the COLLECT_NAMES environment variable, the problems
16615 # vanish in a puff of smoke.
16616 if test "X${COLLECT_NAMES+set}" != Xset; then
16617   COLLECT_NAMES=
16618   export COLLECT_NAMES
16619 fi
16620 _LT_EOF
16621     ;;
16622   esac
16623
16624
16625 ltmain="$ac_aux_dir/ltmain.sh"
16626
16627
16628   # We use sed instead of cat because bash on DJGPP gets confused if
16629   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16630   # text mode, it properly converts lines to CR/LF.  This bash problem
16631   # is reportedly fixed, but why not run on old versions too?
16632   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16633     || (rm -f "$cfgfile"; exit 1)
16634
16635   case $xsi_shell in
16636   yes)
16637     cat << \_LT_EOF >> "$cfgfile"
16638
16639 # func_dirname file append nondir_replacement
16640 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16641 # otherwise set result to NONDIR_REPLACEMENT.
16642 func_dirname ()
16643 {
16644   case ${1} in
16645     */*) func_dirname_result="${1%/*}${2}" ;;
16646     *  ) func_dirname_result="${3}" ;;
16647   esac
16648 }
16649
16650 # func_basename file
16651 func_basename ()
16652 {
16653   func_basename_result="${1##*/}"
16654 }
16655
16656 # func_dirname_and_basename file append nondir_replacement
16657 # perform func_basename and func_dirname in a single function
16658 # call:
16659 #   dirname:  Compute the dirname of FILE.  If nonempty,
16660 #             add APPEND to the result, otherwise set result
16661 #             to NONDIR_REPLACEMENT.
16662 #             value returned in "$func_dirname_result"
16663 #   basename: Compute filename of FILE.
16664 #             value retuned in "$func_basename_result"
16665 # Implementation must be kept synchronized with func_dirname
16666 # and func_basename. For efficiency, we do not delegate to
16667 # those functions but instead duplicate the functionality here.
16668 func_dirname_and_basename ()
16669 {
16670   case ${1} in
16671     */*) func_dirname_result="${1%/*}${2}" ;;
16672     *  ) func_dirname_result="${3}" ;;
16673   esac
16674   func_basename_result="${1##*/}"
16675 }
16676
16677 # func_stripname prefix suffix name
16678 # strip PREFIX and SUFFIX off of NAME.
16679 # PREFIX and SUFFIX must not contain globbing or regex special
16680 # characters, hashes, percent signs, but SUFFIX may contain a leading
16681 # dot (in which case that matches only a dot).
16682 func_stripname ()
16683 {
16684   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16685   # positional parameters, so assign one to ordinary parameter first.
16686   func_stripname_result=${3}
16687   func_stripname_result=${func_stripname_result#"${1}"}
16688   func_stripname_result=${func_stripname_result%"${2}"}
16689 }
16690
16691 # func_opt_split
16692 func_opt_split ()
16693 {
16694   func_opt_split_opt=${1%%=*}
16695   func_opt_split_arg=${1#*=}
16696 }
16697
16698 # func_lo2o object
16699 func_lo2o ()
16700 {
16701   case ${1} in
16702     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16703     *)    func_lo2o_result=${1} ;;
16704   esac
16705 }
16706
16707 # func_xform libobj-or-source
16708 func_xform ()
16709 {
16710   func_xform_result=${1%.*}.lo
16711 }
16712
16713 # func_arith arithmetic-term...
16714 func_arith ()
16715 {
16716   func_arith_result=$(( $* ))
16717 }
16718
16719 # func_len string
16720 # STRING may not start with a hyphen.
16721 func_len ()
16722 {
16723   func_len_result=${#1}
16724 }
16725
16726 _LT_EOF
16727     ;;
16728   *) # Bourne compatible functions.
16729     cat << \_LT_EOF >> "$cfgfile"
16730
16731 # func_dirname file append nondir_replacement
16732 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16733 # otherwise set result to NONDIR_REPLACEMENT.
16734 func_dirname ()
16735 {
16736   # Extract subdirectory from the argument.
16737   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16738   if test "X$func_dirname_result" = "X${1}"; then
16739     func_dirname_result="${3}"
16740   else
16741     func_dirname_result="$func_dirname_result${2}"
16742   fi
16743 }
16744
16745 # func_basename file
16746 func_basename ()
16747 {
16748   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16749 }
16750
16751
16752 # func_stripname prefix suffix name
16753 # strip PREFIX and SUFFIX off of NAME.
16754 # PREFIX and SUFFIX must not contain globbing or regex special
16755 # characters, hashes, percent signs, but SUFFIX may contain a leading
16756 # dot (in which case that matches only a dot).
16757 # func_strip_suffix prefix name
16758 func_stripname ()
16759 {
16760   case ${2} in
16761     .*) func_stripname_result=`$ECHO "X${3}" \
16762            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16763     *)  func_stripname_result=`$ECHO "X${3}" \
16764            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16765   esac
16766 }
16767
16768 # sed scripts:
16769 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16770 my_sed_long_arg='1s/^-[^=]*=//'
16771
16772 # func_opt_split
16773 func_opt_split ()
16774 {
16775   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16776   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16777 }
16778
16779 # func_lo2o object
16780 func_lo2o ()
16781 {
16782   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16783 }
16784
16785 # func_xform libobj-or-source
16786 func_xform ()
16787 {
16788   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16789 }
16790
16791 # func_arith arithmetic-term...
16792 func_arith ()
16793 {
16794   func_arith_result=`expr "$@"`
16795 }
16796
16797 # func_len string
16798 # STRING may not start with a hyphen.
16799 func_len ()
16800 {
16801   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16802 }
16803
16804 _LT_EOF
16805 esac
16806
16807 case $lt_shell_append in
16808   yes)
16809     cat << \_LT_EOF >> "$cfgfile"
16810
16811 # func_append var value
16812 # Append VALUE to the end of shell variable VAR.
16813 func_append ()
16814 {
16815   eval "$1+=\$2"
16816 }
16817 _LT_EOF
16818     ;;
16819   *)
16820     cat << \_LT_EOF >> "$cfgfile"
16821
16822 # func_append var value
16823 # Append VALUE to the end of shell variable VAR.
16824 func_append ()
16825 {
16826   eval "$1=\$$1\$2"
16827 }
16828
16829 _LT_EOF
16830     ;;
16831   esac
16832
16833
16834   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16835     || (rm -f "$cfgfile"; exit 1)
16836
16837   mv -f "$cfgfile" "$ofile" ||
16838     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16839   chmod +x "$ofile"
16840
16841  ;;
16842
16843   esac
16844 done # for ac_tag
16845
16846
16847 { (exit 0); exit 0; }
16848 _ACEOF
16849 chmod +x $CONFIG_STATUS
16850 ac_clean_files=$ac_clean_files_save
16851
16852
16853 # configure is writing to config.log, and then calls config.status.
16854 # config.status does its own redirection, appending to config.log.
16855 # Unfortunately, on DOS this fails, as config.log is still kept open
16856 # by configure, so config.status won't be able to write to it; its
16857 # output is simply discarded.  So we exec the FD to /dev/null,
16858 # effectively closing config.log, so it can be properly (re)opened and
16859 # appended to by config.status.  When coming back to configure, we
16860 # need to make the FD available again.
16861 if test "$no_create" != yes; then
16862   ac_cs_success=:
16863   ac_config_status_args=
16864   test "$silent" = yes &&
16865     ac_config_status_args="$ac_config_status_args --quiet"
16866   exec 5>/dev/null
16867   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16868   exec 5>>config.log
16869   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16870   # would make configure fail if this is the last instruction.
16871   $ac_cs_success || { (exit 1); exit 1; }
16872 fi
16873