chiark / gitweb /
New option: movres.ignore_transience.
[e16] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for e16 1.0.0.
4 #
5 # Report bugs to <enlightenment-devel@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=no
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = no &&      (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=no
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $echo works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<EOF
606 $*
607 EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621        echo_test_string=`eval $cmd` &&
622        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623     then
624       break
625     fi
626   done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631    test "X$echo_testing_string" = "X$echo_test_string"; then
632   :
633 else
634   # The Solaris, AIX, and Digital Unix default echo programs unquote
635   # backslashes.  This makes it impossible to quote backslashes using
636   #   echo "$something" | sed 's/\\/\\\\/g'
637   #
638   # So, first we look for a working echo in the user's PATH.
639
640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641   for dir in $PATH /usr/ucb; do
642     IFS="$lt_save_ifs"
643     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646        test "X$echo_testing_string" = "X$echo_test_string"; then
647       echo="$dir/echo"
648       break
649     fi
650   done
651   IFS="$lt_save_ifs"
652
653   if test "X$echo" = Xecho; then
654     # We didn't find a better echo, so look for alternatives.
655     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657        test "X$echo_testing_string" = "X$echo_test_string"; then
658       # This shell has a builtin print -r that does the trick.
659       echo='print -r'
660     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661          test "X$CONFIG_SHELL" != X/bin/ksh; then
662       # If we have ksh, try running configure again with it.
663       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664       export ORIGINAL_CONFIG_SHELL
665       CONFIG_SHELL=/bin/ksh
666       export CONFIG_SHELL
667       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668     else
669       # Try using printf.
670       echo='printf %s\n'
671       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673          test "X$echo_testing_string" = "X$echo_test_string"; then
674         # Cool, printf works
675         :
676       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677            test "X$echo_testing_string" = 'X\t' &&
678            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679            test "X$echo_testing_string" = "X$echo_test_string"; then
680         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681         export CONFIG_SHELL
682         SHELL="$CONFIG_SHELL"
683         export SHELL
684         echo="$CONFIG_SHELL $0 --fallback-echo"
685       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686            test "X$echo_testing_string" = 'X\t' &&
687            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688            test "X$echo_testing_string" = "X$echo_test_string"; then
689         echo="$CONFIG_SHELL $0 --fallback-echo"
690       else
691         # maybe with a smaller string...
692         prev=:
693
694         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696           then
697             break
698           fi
699           prev="$cmd"
700         done
701
702         if test "$prev" != 'sed 50q "$0"'; then
703           echo_test_string=`eval $prev`
704           export echo_test_string
705           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706         else
707           # Oops.  We lost completely, so just stick with echo.
708           echo=echo
709         fi
710       fi
711     fi
712   fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 exec 7<&0 </dev/null 6>&1
727
728 # Name of the host.
729 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
730 # so uname gets run too.
731 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
732
733 #
734 # Initializations.
735 #
736 ac_default_prefix=/usr/local
737 ac_clean_files=
738 ac_config_libobj_dir=.
739 LIBOBJS=
740 cross_compiling=no
741 subdirs=
742 MFLAGS=
743 MAKEFLAGS=
744 SHELL=${CONFIG_SHELL-/bin/sh}
745
746 # Identity of this package.
747 PACKAGE_NAME='e16'
748 PACKAGE_TARNAME='e16'
749 PACKAGE_VERSION='1.0.0'
750 PACKAGE_STRING='e16 1.0.0'
751 PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net'
752
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 #  include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 #  include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 E_X_LIBS
792 CWARNFLAGS
793 HAVE_XMLTO_FALSE
794 HAVE_XMLTO_TRUE
795 XMLTO
796 BUILD_MODULES_FALSE
797 BUILD_MODULES_TRUE
798 BUILD_ROOTHACKLIB_FALSE
799 BUILD_ROOTHACKLIB_TRUE
800 DLOPEN_LIBS
801 ENABLE_DBUS_FALSE
802 ENABLE_DBUS_TRUE
803 DBUS_LIBS
804 DBUS_CFLAGS
805 ENABLE_COMPOSITE_FALSE
806 ENABLE_COMPOSITE_TRUE
807 XINERAMA_LIBS
808 ENABLE_GLX_FALSE
809 ENABLE_GLX_TRUE
810 GLX_LIBS
811 ECORE_LIBS
812 ECORE_CFLAGS
813 USE_LIBXFT_FALSE
814 USE_LIBXFT_TRUE
815 XFT_LIBS
816 XFT_CFLAGS
817 USE_LIBPANGO_FALSE
818 USE_LIBPANGO_TRUE
819 PANGO_LIBS
820 PANGO_CFLAGS
821 SM_LIBS
822 IMLIB2_LIBS
823 IMLIB2_CFLAGS
824 USE_LIBESD_FALSE
825 USE_LIBESD_TRUE
826 ESD_LIBS
827 ESD_CFLAGS
828 ESD_CONFIG
829 USE_LIBPA_FALSE
830 USE_LIBPA_TRUE
831 AUDIOFILE_LIBS
832 AUDIOFILE_CFLAGS
833 PA_LIBS
834 PA_CFLAGS
835 ENABLE_GNOME_FALSE
836 ENABLE_GNOME_TRUE
837 POSUB
838 LTLIBINTL
839 LIBINTL
840 INTLLIBS
841 MSGMERGE
842 XGETTEXT
843 GMSGFMT
844 MSGFMT
845 USE_NLS
846 MKINSTALLDIRS
847 LTLIBICONV
848 LIBICONV
849 USE_ESNPRINTF_FALSE
850 USE_ESNPRINTF_TRUE
851 X_EXTRA_LIBS
852 X_LIBS
853 X_PRE_LIBS
854 X_CFLAGS
855 XMKMF
856 LIBTOOL
857 NMEDIT
858 DSYMUTIL
859 RANLIB
860 AR
861 ECHO
862 LN_S
863 SED
864 host_os
865 host_vendor
866 host_cpu
867 host
868 build_os
869 build_vendor
870 build_cpu
871 build
872 EGREP
873 GREP
874 CPP
875 PKG_CONFIG
876 am__fastdepCC_FALSE
877 am__fastdepCC_TRUE
878 CCDEPMODE
879 AMDEPBACKSLASH
880 AMDEP_FALSE
881 AMDEP_TRUE
882 am__quote
883 am__include
884 DEPDIR
885 OBJEXT
886 EXEEXT
887 ac_ct_CC
888 CPPFLAGS
889 LDFLAGS
890 CFLAGS
891 CC
892 MAINT
893 MAINTAINER_MODE_FALSE
894 MAINTAINER_MODE_TRUE
895 E_RPM_REVISION
896 am__untar
897 am__tar
898 AMTAR
899 am__leading_dot
900 SET_MAKE
901 AWK
902 mkdir_p
903 MKDIR_P
904 INSTALL_STRIP_PROGRAM
905 STRIP
906 install_sh
907 MAKEINFO
908 AUTOHEADER
909 AUTOMAKE
910 AUTOCONF
911 ACLOCAL
912 VERSION
913 PACKAGE
914 CYGPATH_W
915 am__isrc
916 INSTALL_DATA
917 INSTALL_SCRIPT
918 INSTALL_PROGRAM
919 target_alias
920 host_alias
921 build_alias
922 LIBS
923 ECHO_T
924 ECHO_N
925 ECHO_C
926 DEFS
927 mandir
928 localedir
929 libdir
930 psdir
931 pdfdir
932 dvidir
933 htmldir
934 infodir
935 docdir
936 oldincludedir
937 includedir
938 localstatedir
939 sharedstatedir
940 sysconfdir
941 datadir
942 datarootdir
943 libexecdir
944 sbindir
945 bindir
946 program_transform_name
947 prefix
948 exec_prefix
949 PACKAGE_BUGREPORT
950 PACKAGE_STRING
951 PACKAGE_VERSION
952 PACKAGE_TARNAME
953 PACKAGE_NAME
954 PATH_SEPARATOR
955 SHELL'
956 ac_subst_files=''
957 ac_user_opts='
958 enable_option_checking
959 enable_maintainer_mode
960 enable_dependency_tracking
961 enable_shared
962 enable_static
963 enable_fast_install
964 with_gnu_ld
965 enable_libtool_lock
966 with_pic
967 with_tags
968 with_x
969 enable_rpath
970 with_libiconv_prefix
971 enable_nls
972 with_libintl_prefix
973 enable_hints_gnome
974 enable_sound
975 enable_sound_pulse
976 enable_sound_esound
977 with_esd_prefix
978 with_esd_exec_prefix
979 enable_esdtest
980 enable_sm
981 enable_pango
982 enable_xft
983 enable_ecore
984 enable_glx
985 enable_xinerama
986 enable_zoom
987 enable_xsync
988 enable_xscrnsaver
989 enable_xrandr
990 enable_composite
991 enable_dbus
992 enable_roothacklib
993 enable_modules
994 enable_visibility_hiding
995 enable_dialogs
996 enable_docs
997 enable_gcc_cpp
998 enable_werror
999 '
1000       ac_precious_vars='build_alias
1001 host_alias
1002 target_alias
1003 CC
1004 CFLAGS
1005 LDFLAGS
1006 LIBS
1007 CPPFLAGS
1008 PKG_CONFIG
1009 CPP
1010 XMKMF
1011 PA_CFLAGS
1012 PA_LIBS
1013 AUDIOFILE_CFLAGS
1014 AUDIOFILE_LIBS
1015 IMLIB2_CFLAGS
1016 IMLIB2_LIBS
1017 PANGO_CFLAGS
1018 PANGO_LIBS
1019 XFT_CFLAGS
1020 XFT_LIBS
1021 ECORE_CFLAGS
1022 ECORE_LIBS
1023 DBUS_CFLAGS
1024 DBUS_LIBS'
1025
1026
1027 # Initialize some variables set by options.
1028 ac_init_help=
1029 ac_init_version=false
1030 ac_unrecognized_opts=
1031 ac_unrecognized_sep=
1032 # The variables have the same names as the options, with
1033 # dashes changed to underlines.
1034 cache_file=/dev/null
1035 exec_prefix=NONE
1036 no_create=
1037 no_recursion=
1038 prefix=NONE
1039 program_prefix=NONE
1040 program_suffix=NONE
1041 program_transform_name=s,x,x,
1042 silent=
1043 site=
1044 srcdir=
1045 verbose=
1046 x_includes=NONE
1047 x_libraries=NONE
1048
1049 # Installation directory options.
1050 # These are left unexpanded so users can "make install exec_prefix=/foo"
1051 # and all the variables that are supposed to be based on exec_prefix
1052 # by default will actually change.
1053 # Use braces instead of parens because sh, perl, etc. also accept them.
1054 # (The list follows the same order as the GNU Coding Standards.)
1055 bindir='${exec_prefix}/bin'
1056 sbindir='${exec_prefix}/sbin'
1057 libexecdir='${exec_prefix}/libexec'
1058 datarootdir='${prefix}/share'
1059 datadir='${datarootdir}'
1060 sysconfdir='${prefix}/etc'
1061 sharedstatedir='${prefix}/com'
1062 localstatedir='${prefix}/var'
1063 includedir='${prefix}/include'
1064 oldincludedir='/usr/include'
1065 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1066 infodir='${datarootdir}/info'
1067 htmldir='${docdir}'
1068 dvidir='${docdir}'
1069 pdfdir='${docdir}'
1070 psdir='${docdir}'
1071 libdir='${exec_prefix}/lib'
1072 localedir='${datarootdir}/locale'
1073 mandir='${datarootdir}/man'
1074
1075 ac_prev=
1076 ac_dashdash=
1077 for ac_option
1078 do
1079   # If the previous option needs an argument, assign it.
1080   if test -n "$ac_prev"; then
1081     eval $ac_prev=\$ac_option
1082     ac_prev=
1083     continue
1084   fi
1085
1086   case $ac_option in
1087   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1088   *)    ac_optarg=yes ;;
1089   esac
1090
1091   # Accept the important Cygnus configure options, so we can diagnose typos.
1092
1093   case $ac_dashdash$ac_option in
1094   --)
1095     ac_dashdash=yes ;;
1096
1097   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1098     ac_prev=bindir ;;
1099   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1100     bindir=$ac_optarg ;;
1101
1102   -build | --build | --buil | --bui | --bu)
1103     ac_prev=build_alias ;;
1104   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1105     build_alias=$ac_optarg ;;
1106
1107   -cache-file | --cache-file | --cache-fil | --cache-fi \
1108   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1109     ac_prev=cache_file ;;
1110   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1111   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1112     cache_file=$ac_optarg ;;
1113
1114   --config-cache | -C)
1115     cache_file=config.cache ;;
1116
1117   -datadir | --datadir | --datadi | --datad)
1118     ac_prev=datadir ;;
1119   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1120     datadir=$ac_optarg ;;
1121
1122   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1123   | --dataroo | --dataro | --datar)
1124     ac_prev=datarootdir ;;
1125   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1126   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1127     datarootdir=$ac_optarg ;;
1128
1129   -disable-* | --disable-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "enable_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval enable_$ac_useropt=no ;;
1145
1146   -docdir | --docdir | --docdi | --doc | --do)
1147     ac_prev=docdir ;;
1148   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1149     docdir=$ac_optarg ;;
1150
1151   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1152     ac_prev=dvidir ;;
1153   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1154     dvidir=$ac_optarg ;;
1155
1156   -enable-* | --enable-*)
1157     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1158     # Reject names that are not valid shell variable names.
1159     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1161    { (exit 1); exit 1; }; }
1162     ac_useropt_orig=$ac_useropt
1163     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164     case $ac_user_opts in
1165       *"
1166 "enable_$ac_useropt"
1167 "*) ;;
1168       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1169          ac_unrecognized_sep=', ';;
1170     esac
1171     eval enable_$ac_useropt=\$ac_optarg ;;
1172
1173   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1174   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1175   | --exec | --exe | --ex)
1176     ac_prev=exec_prefix ;;
1177   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1178   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1179   | --exec=* | --exe=* | --ex=*)
1180     exec_prefix=$ac_optarg ;;
1181
1182   -gas | --gas | --ga | --g)
1183     # Obsolete; use --with-gas.
1184     with_gas=yes ;;
1185
1186   -help | --help | --hel | --he | -h)
1187     ac_init_help=long ;;
1188   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1189     ac_init_help=recursive ;;
1190   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1191     ac_init_help=short ;;
1192
1193   -host | --host | --hos | --ho)
1194     ac_prev=host_alias ;;
1195   -host=* | --host=* | --hos=* | --ho=*)
1196     host_alias=$ac_optarg ;;
1197
1198   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199     ac_prev=htmldir ;;
1200   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201   | --ht=*)
1202     htmldir=$ac_optarg ;;
1203
1204   -includedir | --includedir | --includedi | --included | --include \
1205   | --includ | --inclu | --incl | --inc)
1206     ac_prev=includedir ;;
1207   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1208   | --includ=* | --inclu=* | --incl=* | --inc=*)
1209     includedir=$ac_optarg ;;
1210
1211   -infodir | --infodir | --infodi | --infod | --info | --inf)
1212     ac_prev=infodir ;;
1213   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1214     infodir=$ac_optarg ;;
1215
1216   -libdir | --libdir | --libdi | --libd)
1217     ac_prev=libdir ;;
1218   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1219     libdir=$ac_optarg ;;
1220
1221   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1222   | --libexe | --libex | --libe)
1223     ac_prev=libexecdir ;;
1224   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1225   | --libexe=* | --libex=* | --libe=*)
1226     libexecdir=$ac_optarg ;;
1227
1228   -localedir | --localedir | --localedi | --localed | --locale)
1229     ac_prev=localedir ;;
1230   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1231     localedir=$ac_optarg ;;
1232
1233   -localstatedir | --localstatedir | --localstatedi | --localstated \
1234   | --localstate | --localstat | --localsta | --localst | --locals)
1235     ac_prev=localstatedir ;;
1236   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1237   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1238     localstatedir=$ac_optarg ;;
1239
1240   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241     ac_prev=mandir ;;
1242   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1243     mandir=$ac_optarg ;;
1244
1245   -nfp | --nfp | --nf)
1246     # Obsolete; use --without-fp.
1247     with_fp=no ;;
1248
1249   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1250   | --no-cr | --no-c | -n)
1251     no_create=yes ;;
1252
1253   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1254   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1255     no_recursion=yes ;;
1256
1257   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1258   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1259   | --oldin | --oldi | --old | --ol | --o)
1260     ac_prev=oldincludedir ;;
1261   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1262   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1263   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1264     oldincludedir=$ac_optarg ;;
1265
1266   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267     ac_prev=prefix ;;
1268   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1269     prefix=$ac_optarg ;;
1270
1271   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1272   | --program-pre | --program-pr | --program-p)
1273     ac_prev=program_prefix ;;
1274   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1275   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1276     program_prefix=$ac_optarg ;;
1277
1278   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1279   | --program-suf | --program-su | --program-s)
1280     ac_prev=program_suffix ;;
1281   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1282   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1283     program_suffix=$ac_optarg ;;
1284
1285   -program-transform-name | --program-transform-name \
1286   | --program-transform-nam | --program-transform-na \
1287   | --program-transform-n | --program-transform- \
1288   | --program-transform | --program-transfor \
1289   | --program-transfo | --program-transf \
1290   | --program-trans | --program-tran \
1291   | --progr-tra | --program-tr | --program-t)
1292     ac_prev=program_transform_name ;;
1293   -program-transform-name=* | --program-transform-name=* \
1294   | --program-transform-nam=* | --program-transform-na=* \
1295   | --program-transform-n=* | --program-transform-=* \
1296   | --program-transform=* | --program-transfor=* \
1297   | --program-transfo=* | --program-transf=* \
1298   | --program-trans=* | --program-tran=* \
1299   | --progr-tra=* | --program-tr=* | --program-t=*)
1300     program_transform_name=$ac_optarg ;;
1301
1302   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303     ac_prev=pdfdir ;;
1304   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1305     pdfdir=$ac_optarg ;;
1306
1307   -psdir | --psdir | --psdi | --psd | --ps)
1308     ac_prev=psdir ;;
1309   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1310     psdir=$ac_optarg ;;
1311
1312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313   | -silent | --silent | --silen | --sile | --sil)
1314     silent=yes ;;
1315
1316   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317     ac_prev=sbindir ;;
1318   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319   | --sbi=* | --sb=*)
1320     sbindir=$ac_optarg ;;
1321
1322   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1323   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1324   | --sharedst | --shareds | --shared | --share | --shar \
1325   | --sha | --sh)
1326     ac_prev=sharedstatedir ;;
1327   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1328   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1329   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330   | --sha=* | --sh=*)
1331     sharedstatedir=$ac_optarg ;;
1332
1333   -site | --site | --sit)
1334     ac_prev=site ;;
1335   -site=* | --site=* | --sit=*)
1336     site=$ac_optarg ;;
1337
1338   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339     ac_prev=srcdir ;;
1340   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1341     srcdir=$ac_optarg ;;
1342
1343   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1344   | --syscon | --sysco | --sysc | --sys | --sy)
1345     ac_prev=sysconfdir ;;
1346   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1347   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1348     sysconfdir=$ac_optarg ;;
1349
1350   -target | --target | --targe | --targ | --tar | --ta | --t)
1351     ac_prev=target_alias ;;
1352   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1353     target_alias=$ac_optarg ;;
1354
1355   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1356     verbose=yes ;;
1357
1358   -version | --version | --versio | --versi | --vers | -V)
1359     ac_init_version=: ;;
1360
1361   -with-* | --with-*)
1362     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1363     # Reject names that are not valid shell variable names.
1364     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1366    { (exit 1); exit 1; }; }
1367     ac_useropt_orig=$ac_useropt
1368     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369     case $ac_user_opts in
1370       *"
1371 "with_$ac_useropt"
1372 "*) ;;
1373       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374          ac_unrecognized_sep=', ';;
1375     esac
1376     eval with_$ac_useropt=\$ac_optarg ;;
1377
1378   -without-* | --without-*)
1379     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1383    { (exit 1); exit 1; }; }
1384     ac_useropt_orig=$ac_useropt
1385     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386     case $ac_user_opts in
1387       *"
1388 "with_$ac_useropt"
1389 "*) ;;
1390       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1391          ac_unrecognized_sep=', ';;
1392     esac
1393     eval with_$ac_useropt=no ;;
1394
1395   --x)
1396     # Obsolete; use --with-x.
1397     with_x=yes ;;
1398
1399   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1400   | --x-incl | --x-inc | --x-in | --x-i)
1401     ac_prev=x_includes ;;
1402   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1403   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1404     x_includes=$ac_optarg ;;
1405
1406   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1407   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1408     ac_prev=x_libraries ;;
1409   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1410   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1411     x_libraries=$ac_optarg ;;
1412
1413   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1414 Try \`$0 --help' for more information." >&2
1415    { (exit 1); exit 1; }; }
1416     ;;
1417
1418   *=*)
1419     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1422       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1423    { (exit 1); exit 1; }; }
1424     eval $ac_envvar=\$ac_optarg
1425     export $ac_envvar ;;
1426
1427   *)
1428     # FIXME: should be removed in autoconf 3.0.
1429     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1430     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1432     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1433     ;;
1434
1435   esac
1436 done
1437
1438 if test -n "$ac_prev"; then
1439   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1440   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443
1444 if test -n "$ac_unrecognized_opts"; then
1445   case $enable_option_checking in
1446     no) ;;
1447     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1448    { (exit 1); exit 1; }; } ;;
1449     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1450   esac
1451 fi
1452
1453 # Check all directory arguments for consistency.
1454 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1455                 datadir sysconfdir sharedstatedir localstatedir includedir \
1456                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1457                 libdir localedir mandir
1458 do
1459   eval ac_val=\$$ac_var
1460   # Remove trailing slashes.
1461   case $ac_val in
1462     */ )
1463       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1464       eval $ac_var=\$ac_val;;
1465   esac
1466   # Be sure to have absolute directory names.
1467   case $ac_val in
1468     [\\/$]* | ?:[\\/]* )  continue;;
1469     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1470   esac
1471   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1472    { (exit 1); exit 1; }; }
1473 done
1474
1475 # There might be people who depend on the old broken behavior: `$host'
1476 # used to hold the argument of --host etc.
1477 # FIXME: To remove some day.
1478 build=$build_alias
1479 host=$host_alias
1480 target=$target_alias
1481
1482 # FIXME: To remove some day.
1483 if test "x$host_alias" != x; then
1484   if test "x$build_alias" = x; then
1485     cross_compiling=maybe
1486     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1487     If a cross compiler is detected then cross compile mode will be used." >&2
1488   elif test "x$build_alias" != "x$host_alias"; then
1489     cross_compiling=yes
1490   fi
1491 fi
1492
1493 ac_tool_prefix=
1494 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1495
1496 test "$silent" = yes && exec 6>/dev/null
1497
1498
1499 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1500 ac_ls_di=`ls -di .` &&
1501 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1502   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1503    { (exit 1); exit 1; }; }
1504 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1505   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1506    { (exit 1); exit 1; }; }
1507
1508
1509 # Find the source files, if location was not specified.
1510 if test -z "$srcdir"; then
1511   ac_srcdir_defaulted=yes
1512   # Try the directory containing this script, then the parent directory.
1513   ac_confdir=`$as_dirname -- "$as_myself" ||
1514 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1515          X"$as_myself" : 'X\(//\)[^/]' \| \
1516          X"$as_myself" : 'X\(//\)$' \| \
1517          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1518 $as_echo X"$as_myself" |
1519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1520             s//\1/
1521             q
1522           }
1523           /^X\(\/\/\)[^/].*/{
1524             s//\1/
1525             q
1526           }
1527           /^X\(\/\/\)$/{
1528             s//\1/
1529             q
1530           }
1531           /^X\(\/\).*/{
1532             s//\1/
1533             q
1534           }
1535           s/.*/./; q'`
1536   srcdir=$ac_confdir
1537   if test ! -r "$srcdir/$ac_unique_file"; then
1538     srcdir=..
1539   fi
1540 else
1541   ac_srcdir_defaulted=no
1542 fi
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1544   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1545   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1546    { (exit 1); exit 1; }; }
1547 fi
1548 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549 ac_abs_confdir=`(
1550         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1551    { (exit 1); exit 1; }; }
1552         pwd)`
1553 # When building in place, set srcdir=.
1554 if test "$ac_abs_confdir" = "$ac_pwd"; then
1555   srcdir=.
1556 fi
1557 # Remove unnecessary trailing slashes from srcdir.
1558 # Double slashes in file names in object file debugging info
1559 # mess up M-x gdb in Emacs.
1560 case $srcdir in
1561 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 esac
1563 for ac_var in $ac_precious_vars; do
1564   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1565   eval ac_env_${ac_var}_value=\$${ac_var}
1566   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1567   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1568 done
1569
1570 #
1571 # Report the --help message.
1572 #
1573 if test "$ac_init_help" = "long"; then
1574   # Omit some internal or obsolete options to make the list less imposing.
1575   # This message is too long to be a string in the A/UX 3.1 sh.
1576   cat <<_ACEOF
1577 \`configure' configures e16 1.0.0 to adapt to many kinds of systems.
1578
1579 Usage: $0 [OPTION]... [VAR=VALUE]...
1580
1581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1582 VAR=VALUE.  See below for descriptions of some of the useful variables.
1583
1584 Defaults for the options are specified in brackets.
1585
1586 Configuration:
1587   -h, --help              display this help and exit
1588       --help=short        display options specific to this package
1589       --help=recursive    display the short help of all the included packages
1590   -V, --version           display version information and exit
1591   -q, --quiet, --silent   do not print \`checking...' messages
1592       --cache-file=FILE   cache test results in FILE [disabled]
1593   -C, --config-cache      alias for \`--cache-file=config.cache'
1594   -n, --no-create         do not create output files
1595       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1596
1597 Installation directories:
1598   --prefix=PREFIX         install architecture-independent files in PREFIX
1599                           [$ac_default_prefix]
1600   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1601                           [PREFIX]
1602
1603 By default, \`make install' will install all the files in
1604 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1605 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1606 for instance \`--prefix=\$HOME'.
1607
1608 For better control, use the options below.
1609
1610 Fine tuning of the installation directories:
1611   --bindir=DIR            user executables [EPREFIX/bin]
1612   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1613   --libexecdir=DIR        program executables [EPREFIX/libexec]
1614   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1615   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1616   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1617   --libdir=DIR            object code libraries [EPREFIX/lib]
1618   --includedir=DIR        C header files [PREFIX/include]
1619   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1620   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1621   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1622   --infodir=DIR           info documentation [DATAROOTDIR/info]
1623   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1624   --mandir=DIR            man documentation [DATAROOTDIR/man]
1625   --docdir=DIR            documentation root [DATAROOTDIR/doc/e16]
1626   --htmldir=DIR           html documentation [DOCDIR]
1627   --dvidir=DIR            dvi documentation [DOCDIR]
1628   --pdfdir=DIR            pdf documentation [DOCDIR]
1629   --psdir=DIR             ps documentation [DOCDIR]
1630 _ACEOF
1631
1632   cat <<\_ACEOF
1633
1634 Program names:
1635   --program-prefix=PREFIX            prepend PREFIX to installed program names
1636   --program-suffix=SUFFIX            append SUFFIX to installed program names
1637   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1638
1639 X features:
1640   --x-includes=DIR    X include files are in DIR
1641   --x-libraries=DIR   X library files are in DIR
1642
1643 System types:
1644   --build=BUILD     configure for building on BUILD [guessed]
1645   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1646 _ACEOF
1647 fi
1648
1649 if test -n "$ac_init_help"; then
1650   case $ac_init_help in
1651      short | recursive ) echo "Configuration of e16 1.0.0:";;
1652    esac
1653   cat <<\_ACEOF
1654
1655 Optional Features:
1656   --disable-option-checking  ignore unrecognized --enable/--with options
1657   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1658   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1659   --enable-maintainer-mode  enable make rules and dependencies not useful
1660                           (and sometimes confusing) to the casual installer
1661   --disable-dependency-tracking  speeds up one-time build
1662   --enable-dependency-tracking   do not reject slow dependency extractors
1663   --enable-shared[=PKGS]  build shared libraries [default=yes]
1664   --enable-static[=PKGS]  build static libraries [default=no]
1665   --enable-fast-install[=PKGS]
1666                           optimize for fast installation [default=yes]
1667   --disable-libtool-lock  avoid locking (might break parallel builds)
1668   --disable-rpath         do not hardcode runtime library paths
1669   --disable-nls           do not use Native Language Support
1670   --enable-hints-gnome    compile with GNOME(<2.0) hints support [default=no]
1671   --enable-sound          compile with sound support [default=yes]
1672   --enable-sound-pulse    compile with PulseAudio sound support [default=no]
1673   --enable-sound-esound   compile with EsounD sound support [default=yes]
1674   --disable-esdtest       Do not try to compile and run a test ESD program
1675   --enable-sm             compile with session management support [default=yes]
1676   --enable-pango          compile with pango-xft support [default=no]
1677   --enable-xft            compile with Xft support [default=yes]
1678   --enable-ecore          use ecore functions (for testing only - DO NOT USE!) [default=no]
1679   --enable-glx            compile with GLX support (experimental) [default=no]
1680   --enable-xinerama       compile with xinerama support [default=yes]
1681   --enable-zoom           compile with zoom support [default=yes]
1682   --enable-xsync          compile with SYNC support [default=yes]
1683   --enable-xscrnsaver     compile with ScreenSaver support (experimental/not useful) [default=no]
1684   --enable-xrandr         compile with RandR support [default=yes]
1685   --enable-composite      compile with Composite support [default=yes]
1686   --enable-dbus           compile with D-Bus support (experimental) [default=no]
1687   --enable-roothacklib    build window mode helper library [default=yes]
1688   --enable-modules        enable support for loadable modules [default=no]
1689   --enable-visibility-hiding enable visibility hiding [default=no]
1690   --enable-dialogs        enable support for configuration dialogs [default=yes]
1691   --enable-docs           install html docs [default=yes]
1692   --enable-gcc-cpp        compile everything as if it were C++ [default=no]
1693   --enable-werror         treat compiler warnings as errors [default=no]
1694
1695 Optional Packages:
1696   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1697   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1698   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1699   --with-pic              try to use only PIC/non-PIC objects [default=use
1700                           both]
1701   --with-tags[=TAGS]      include additional configurations [automatic]
1702   --with-x                use the X Window System
1703   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1704   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1705   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1706   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1707   --without-libintl-prefix     don't search for libintl in includedir and libdir
1708   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1709   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1710
1711 Some influential environment variables:
1712   CC          C compiler command
1713   CFLAGS      C compiler flags
1714   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1715               nonstandard directory <lib dir>
1716   LIBS        libraries to pass to the linker, e.g. -l<library>
1717   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1718               you have headers in a nonstandard directory <include dir>
1719   PKG_CONFIG  path to pkg-config utility
1720   CPP         C preprocessor
1721   XMKMF       Path to xmkmf, Makefile generator for X Window System
1722   PA_CFLAGS   C compiler flags for PA, overriding pkg-config
1723   PA_LIBS     linker flags for PA, overriding pkg-config
1724   AUDIOFILE_CFLAGS
1725               C compiler flags for AUDIOFILE, overriding pkg-config
1726   AUDIOFILE_LIBS
1727               linker flags for AUDIOFILE, overriding pkg-config
1728   IMLIB2_CFLAGS
1729               C compiler flags for IMLIB2, overriding pkg-config
1730   IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config
1731   PANGO_CFLAGS
1732               C compiler flags for PANGO, overriding pkg-config
1733   PANGO_LIBS  linker flags for PANGO, overriding pkg-config
1734   XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1735   XFT_LIBS    linker flags for XFT, overriding pkg-config
1736   ECORE_CFLAGS
1737               C compiler flags for ECORE, overriding pkg-config
1738   ECORE_LIBS  linker flags for ECORE, overriding pkg-config
1739   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1740   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1741
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1744
1745 Report bugs to <enlightenment-devel@lists.sourceforge.net>.
1746 _ACEOF
1747 ac_status=$?
1748 fi
1749
1750 if test "$ac_init_help" = "recursive"; then
1751   # If there are subdirs, report their specific --help.
1752   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753     test -d "$ac_dir" ||
1754       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1755       continue
1756     ac_builddir=.
1757
1758 case "$ac_dir" in
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 *)
1761   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762   # A ".." for each directory in $ac_dir_suffix.
1763   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764   case $ac_top_builddir_sub in
1765   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1767   esac ;;
1768 esac
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1773
1774 case $srcdir in
1775   .)  # We are building in place.
1776     ac_srcdir=.
1777     ac_top_srcdir=$ac_top_builddir_sub
1778     ac_abs_top_srcdir=$ac_pwd ;;
1779   [\\/]* | ?:[\\/]* )  # Absolute name.
1780     ac_srcdir=$srcdir$ac_dir_suffix;
1781     ac_top_srcdir=$srcdir
1782     ac_abs_top_srcdir=$srcdir ;;
1783   *) # Relative name.
1784     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785     ac_top_srcdir=$ac_top_build_prefix$srcdir
1786     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1787 esac
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1789
1790     cd "$ac_dir" || { ac_status=$?; continue; }
1791     # Check for guested configure.
1792     if test -f "$ac_srcdir/configure.gnu"; then
1793       echo &&
1794       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795     elif test -f "$ac_srcdir/configure"; then
1796       echo &&
1797       $SHELL "$ac_srcdir/configure" --help=recursive
1798     else
1799       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800     fi || ac_status=$?
1801     cd "$ac_pwd" || { ac_status=$?; break; }
1802   done
1803 fi
1804
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1807   cat <<\_ACEOF
1808 e16 configure 1.0.0
1809 generated by GNU Autoconf 2.63
1810
1811 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1812 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1813 This configure script is free software; the Free Software Foundation
1814 gives unlimited permission to copy, distribute and modify it.
1815 _ACEOF
1816   exit
1817 fi
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1821
1822 It was created by e16 $as_me 1.0.0, which was
1823 generated by GNU Autoconf 2.63.  Invocation command line was
1824
1825   $ $0 $@
1826
1827 _ACEOF
1828 exec 5>>config.log
1829 {
1830 cat <<_ASUNAME
1831 ## --------- ##
1832 ## Platform. ##
1833 ## --------- ##
1834
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1843
1844 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1845 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1848 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1849 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1850 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1851
1852 _ASUNAME
1853
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859   $as_echo "PATH: $as_dir"
1860 done
1861 IFS=$as_save_IFS
1862
1863 } >&5
1864
1865 cat >&5 <<_ACEOF
1866
1867
1868 ## ----------- ##
1869 ## Core tests. ##
1870 ## ----------- ##
1871
1872 _ACEOF
1873
1874
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_configure_args=
1881 ac_configure_args0=
1882 ac_configure_args1=
1883 ac_must_keep_next=false
1884 for ac_pass in 1 2
1885 do
1886   for ac_arg
1887   do
1888     case $ac_arg in
1889     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891     | -silent | --silent | --silen | --sile | --sil)
1892       continue ;;
1893     *\'*)
1894       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895     esac
1896     case $ac_pass in
1897     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1898     2)
1899       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1900       if test $ac_must_keep_next = true; then
1901         ac_must_keep_next=false # Got value, back to normal.
1902       else
1903         case $ac_arg in
1904           *=* | --config-cache | -C | -disable-* | --disable-* \
1905           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907           | -with-* | --with-* | -without-* | --without-* | --x)
1908             case "$ac_configure_args0 " in
1909               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1910             esac
1911             ;;
1912           -* ) ac_must_keep_next=true ;;
1913         esac
1914       fi
1915       ac_configure_args="$ac_configure_args '$ac_arg'"
1916       ;;
1917     esac
1918   done
1919 done
1920 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1921 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1922
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log.  We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929   # Save into config.log some information that might help in debugging.
1930   {
1931     echo
1932
1933     cat <<\_ASBOX
1934 ## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##
1937 _ASBOX
1938     echo
1939     # The following way of writing the cache mishandles newlines in values,
1940 (
1941   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1942     eval ac_val=\$$ac_var
1943     case $ac_val in #(
1944     *${as_nl}*)
1945       case $ac_var in #(
1946       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948       esac
1949       case $ac_var in #(
1950       _ | IFS | as_nl) ;; #(
1951       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1952       *) $as_unset $ac_var ;;
1953       esac ;;
1954     esac
1955   done
1956   (set) 2>&1 |
1957     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1958     *${as_nl}ac_space=\ *)
1959       sed -n \
1960         "s/'\''/'\''\\\\'\'''\''/g;
1961           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962       ;; #(
1963     *)
1964       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1965       ;;
1966     esac |
1967     sort
1968 )
1969     echo
1970
1971     cat <<\_ASBOX
1972 ## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##
1975 _ASBOX
1976     echo
1977     for ac_var in $ac_subst_vars
1978     do
1979       eval ac_val=\$$ac_var
1980       case $ac_val in
1981       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982       esac
1983       $as_echo "$ac_var='\''$ac_val'\''"
1984     done | sort
1985     echo
1986
1987     if test -n "$ac_subst_files"; then
1988       cat <<\_ASBOX
1989 ## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##
1992 _ASBOX
1993       echo
1994       for ac_var in $ac_subst_files
1995       do
1996         eval ac_val=\$$ac_var
1997         case $ac_val in
1998         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999         esac
2000         $as_echo "$ac_var='\''$ac_val'\''"
2001       done | sort
2002       echo
2003     fi
2004
2005     if test -s confdefs.h; then
2006       cat <<\_ASBOX
2007 ## ----------- ##
2008 ## confdefs.h. ##
2009 ## ----------- ##
2010 _ASBOX
2011       echo
2012       cat confdefs.h
2013       echo
2014     fi
2015     test "$ac_signal" != 0 &&
2016       $as_echo "$as_me: caught signal $ac_signal"
2017     $as_echo "$as_me: exit $exit_status"
2018   } >&5
2019   rm -f core *.core core.conftest.* &&
2020     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2021     exit $exit_status
2022 ' 0
2023 for ac_signal in 1 2 13 15; do
2024   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2025 done
2026 ac_signal=0
2027
2028 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2029 rm -f -r conftest* confdefs.h
2030
2031 # Predefined preprocessor variables.
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2036
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 _ACEOF
2041
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2045 _ACEOF
2046
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_STRING "$PACKAGE_STRING"
2050 _ACEOF
2051
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2055 _ACEOF
2056
2057
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063   ac_site_file1=$CONFIG_SITE
2064 elif test "x$prefix" != xNONE; then
2065   ac_site_file1=$prefix/share/config.site
2066   ac_site_file2=$prefix/etc/config.site
2067 else
2068   ac_site_file1=$ac_default_prefix/share/config.site
2069   ac_site_file2=$ac_default_prefix/etc/config.site
2070 fi
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 do
2073   test "x$ac_site_file" = xNONE && continue
2074   if test -r "$ac_site_file"; then
2075     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077     sed 's/^/| /' "$ac_site_file" >&5
2078     . "$ac_site_file"
2079   fi
2080 done
2081
2082 if test -r "$cache_file"; then
2083   # Some versions of bash will fail to source /dev/null (special
2084   # files actually), so we avoid doing that.
2085   if test -f "$cache_file"; then
2086     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2087 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088     case $cache_file in
2089       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090       *)                      . "./$cache_file";;
2091     esac
2092   fi
2093 else
2094   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2095 $as_echo "$as_me: creating cache $cache_file" >&6;}
2096   >$cache_file
2097 fi
2098
2099 # Check that the precious variables saved in the cache have kept the same
2100 # value.
2101 ac_cache_corrupted=false
2102 for ac_var in $ac_precious_vars; do
2103   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104   eval ac_new_set=\$ac_env_${ac_var}_set
2105   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106   eval ac_new_val=\$ac_env_${ac_var}_value
2107   case $ac_old_set,$ac_new_set in
2108     set,)
2109       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2111       ac_cache_corrupted=: ;;
2112     ,set)
2113       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2115       ac_cache_corrupted=: ;;
2116     ,);;
2117     *)
2118       if test "x$ac_old_val" != "x$ac_new_val"; then
2119         # differences in whitespace do not lead to failure.
2120         ac_old_val_w=`echo x $ac_old_val`
2121         ac_new_val_w=`echo x $ac_new_val`
2122         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2124 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125           ac_cache_corrupted=:
2126         else
2127           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129           eval $ac_var=\$ac_old_val
2130         fi
2131         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2132 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2133         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2134 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2135       fi;;
2136   esac
2137   # Pass precious variables to config.status.
2138   if test "$ac_new_set" = set; then
2139     case $ac_new_val in
2140     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2141     *) ac_arg=$ac_var=$ac_new_val ;;
2142     esac
2143     case " $ac_configure_args " in
2144       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2145       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2146     esac
2147   fi
2148 done
2149 if $ac_cache_corrupted; then
2150   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2153 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2155 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188
2189
2190 am__api_version='1.10'
2191
2192 ac_aux_dir=
2193 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2194   if test -f "$ac_dir/install-sh"; then
2195     ac_aux_dir=$ac_dir
2196     ac_install_sh="$ac_aux_dir/install-sh -c"
2197     break
2198   elif test -f "$ac_dir/install.sh"; then
2199     ac_aux_dir=$ac_dir
2200     ac_install_sh="$ac_aux_dir/install.sh -c"
2201     break
2202   elif test -f "$ac_dir/shtool"; then
2203     ac_aux_dir=$ac_dir
2204     ac_install_sh="$ac_aux_dir/shtool install -c"
2205     break
2206   fi
2207 done
2208 if test -z "$ac_aux_dir"; then
2209   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2210 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 # These three variables are undocumented and unsupported,
2215 # and are intended to be withdrawn in a future Autoconf release.
2216 # They can cause serious problems if a builder's source tree is in a directory
2217 # whose full name contains unusual characters.
2218 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2219 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2220 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2221
2222
2223 # Find a good install program.  We prefer a C program (faster),
2224 # so one script is as good as another.  But avoid the broken or
2225 # incompatible versions:
2226 # SysV /etc/install, /usr/sbin/install
2227 # SunOS /usr/etc/install
2228 # IRIX /sbin/install
2229 # AIX /bin/install
2230 # AmigaOS /C/install, which installs bootblocks on floppy discs
2231 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2234 # OS/2's system install, which has a completely different semantic
2235 # ./install, which can be erroneously created by make from ./install.sh.
2236 # Reject install programs that cannot install multiple files.
2237 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2238 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2239 if test -z "$INSTALL"; then
2240 if test "${ac_cv_path_install+set}" = set; then
2241   $as_echo_n "(cached) " >&6
2242 else
2243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246   IFS=$as_save_IFS
2247   test -z "$as_dir" && as_dir=.
2248   # Account for people who put trailing slashes in PATH elements.
2249 case $as_dir/ in
2250   ./ | .// | /cC/* | \
2251   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2252   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2253   /usr/ucb/* ) ;;
2254   *)
2255     # OSF1 and SCO ODT 3.0 have their own names for install.
2256     # Don't use installbsd from OSF since it installs stuff as root
2257     # by default.
2258     for ac_prog in ginstall scoinst install; do
2259       for ac_exec_ext in '' $ac_executable_extensions; do
2260         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2261           if test $ac_prog = install &&
2262             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2263             # AIX install.  It has an incompatible calling convention.
2264             :
2265           elif test $ac_prog = install &&
2266             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2267             # program-specific install script used by HP pwplus--don't use.
2268             :
2269           else
2270             rm -rf conftest.one conftest.two conftest.dir
2271             echo one > conftest.one
2272             echo two > conftest.two
2273             mkdir conftest.dir
2274             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2275               test -s conftest.one && test -s conftest.two &&
2276               test -s conftest.dir/conftest.one &&
2277               test -s conftest.dir/conftest.two
2278             then
2279               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2280               break 3
2281             fi
2282           fi
2283         fi
2284       done
2285     done
2286     ;;
2287 esac
2288
2289 done
2290 IFS=$as_save_IFS
2291
2292 rm -rf conftest.one conftest.two conftest.dir
2293
2294 fi
2295   if test "${ac_cv_path_install+set}" = set; then
2296     INSTALL=$ac_cv_path_install
2297   else
2298     # As a last resort, use the slow shell script.  Don't cache a
2299     # value for INSTALL within a source directory, because that will
2300     # break other packages using the cache if that directory is
2301     # removed, or if the value is a relative name.
2302     INSTALL=$ac_install_sh
2303   fi
2304 fi
2305 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2306 $as_echo "$INSTALL" >&6; }
2307
2308 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2309 # It thinks the first close brace ends the variable substitution.
2310 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2311
2312 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2313
2314 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2315
2316 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2317 $as_echo_n "checking whether build environment is sane... " >&6; }
2318 # Just in case
2319 sleep 1
2320 echo timestamp > conftest.file
2321 # Do `set' in a subshell so we don't clobber the current shell's
2322 # arguments.  Must try -L first in case configure is actually a
2323 # symlink; some systems play weird games with the mod time of symlinks
2324 # (eg FreeBSD returns the mod time of the symlink's containing
2325 # directory).
2326 if (
2327    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2328    if test "$*" = "X"; then
2329       # -L didn't work.
2330       set X `ls -t $srcdir/configure conftest.file`
2331    fi
2332    rm -f conftest.file
2333    if test "$*" != "X $srcdir/configure conftest.file" \
2334       && test "$*" != "X conftest.file $srcdir/configure"; then
2335
2336       # If neither matched, then we have a broken ls.  This can happen
2337       # if, for instance, CONFIG_SHELL is bash and it inherits a
2338       # broken ls alias from the environment.  This has actually
2339       # happened.  Such a system could not be considered "sane".
2340       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2341 alias in your environment" >&5
2342 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2343 alias in your environment" >&2;}
2344    { (exit 1); exit 1; }; }
2345    fi
2346
2347    test "$2" = conftest.file
2348    )
2349 then
2350    # Ok.
2351    :
2352 else
2353    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2354 Check your system clock" >&5
2355 $as_echo "$as_me: error: newly created file is older than distributed files!
2356 Check your system clock" >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359 { $as_echo "$as_me:$LINENO: result: yes" >&5
2360 $as_echo "yes" >&6; }
2361 test "$program_prefix" != NONE &&
2362   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2363 # Use a double $ so make ignores it.
2364 test "$program_suffix" != NONE &&
2365   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2366 # Double any \ or $.
2367 # By default was `s,x,x', remove it if useless.
2368 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2369 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2370
2371 # expand $ac_aux_dir to an absolute path
2372 am_aux_dir=`cd $ac_aux_dir && pwd`
2373
2374 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2375 # Use eval to expand $SHELL
2376 if eval "$MISSING --run true"; then
2377   am_missing_run="$MISSING --run "
2378 else
2379   am_missing_run=
2380   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2381 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2382 fi
2383
2384 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2385 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2386 if test -z "$MKDIR_P"; then
2387   if test "${ac_cv_path_mkdir+set}" = set; then
2388   $as_echo_n "(cached) " >&6
2389 else
2390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395   for ac_prog in mkdir gmkdir; do
2396          for ac_exec_ext in '' $ac_executable_extensions; do
2397            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2398            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2399              'mkdir (GNU coreutils) '* | \
2400              'mkdir (coreutils) '* | \
2401              'mkdir (fileutils) '4.1*)
2402                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2403                break 3;;
2404            esac
2405          done
2406        done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411
2412   if test "${ac_cv_path_mkdir+set}" = set; then
2413     MKDIR_P="$ac_cv_path_mkdir -p"
2414   else
2415     # As a last resort, use the slow shell script.  Don't cache a
2416     # value for MKDIR_P within a source directory, because that will
2417     # break other packages using the cache if that directory is
2418     # removed, or if the value is a relative name.
2419     test -d ./--version && rmdir ./--version
2420     MKDIR_P="$ac_install_sh -d"
2421   fi
2422 fi
2423 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2424 $as_echo "$MKDIR_P" >&6; }
2425
2426 mkdir_p="$MKDIR_P"
2427 case $mkdir_p in
2428   [\\/$]* | ?:[\\/]*) ;;
2429   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2430 esac
2431
2432 for ac_prog in gawk mawk nawk awk
2433 do
2434   # Extract the first word of "$ac_prog", so it can be a program name with args.
2435 set dummy $ac_prog; ac_word=$2
2436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if test "${ac_cv_prog_AWK+set}" = set; then
2439   $as_echo_n "(cached) " >&6
2440 else
2441   if test -n "$AWK"; then
2442   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449   for ac_exec_ext in '' $ac_executable_extensions; do
2450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451     ac_cv_prog_AWK="$ac_prog"
2452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453     break 2
2454   fi
2455 done
2456 done
2457 IFS=$as_save_IFS
2458
2459 fi
2460 fi
2461 AWK=$ac_cv_prog_AWK
2462 if test -n "$AWK"; then
2463   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2464 $as_echo "$AWK" >&6; }
2465 else
2466   { $as_echo "$as_me:$LINENO: result: no" >&5
2467 $as_echo "no" >&6; }
2468 fi
2469
2470
2471   test -n "$AWK" && break
2472 done
2473
2474 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2475 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2476 set x ${MAKE-make}
2477 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2478 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2479   $as_echo_n "(cached) " >&6
2480 else
2481   cat >conftest.make <<\_ACEOF
2482 SHELL = /bin/sh
2483 all:
2484         @echo '@@@%%%=$(MAKE)=@@@%%%'
2485 _ACEOF
2486 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2487 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2488   *@@@%%%=?*=@@@%%%*)
2489     eval ac_cv_prog_make_${ac_make}_set=yes;;
2490   *)
2491     eval ac_cv_prog_make_${ac_make}_set=no;;
2492 esac
2493 rm -f conftest.make
2494 fi
2495 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2496   { $as_echo "$as_me:$LINENO: result: yes" >&5
2497 $as_echo "yes" >&6; }
2498   SET_MAKE=
2499 else
2500   { $as_echo "$as_me:$LINENO: result: no" >&5
2501 $as_echo "no" >&6; }
2502   SET_MAKE="MAKE=${MAKE-make}"
2503 fi
2504
2505 rm -rf .tst 2>/dev/null
2506 mkdir .tst 2>/dev/null
2507 if test -d .tst; then
2508   am__leading_dot=.
2509 else
2510   am__leading_dot=_
2511 fi
2512 rmdir .tst 2>/dev/null
2513
2514 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2515   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2516   # is not polluted with repeated "-I."
2517   am__isrc=' -I$(srcdir)'
2518   # test to see if srcdir already configured
2519   if test -f $srcdir/config.status; then
2520     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2521 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2522    { (exit 1); exit 1; }; }
2523   fi
2524 fi
2525
2526 # test whether we have cygpath
2527 if test -z "$CYGPATH_W"; then
2528   if (cygpath --version) >/dev/null 2>/dev/null; then
2529     CYGPATH_W='cygpath -w'
2530   else
2531     CYGPATH_W=echo
2532   fi
2533 fi
2534
2535
2536 # Define the identity of the package.
2537  PACKAGE='e16'
2538  VERSION='1.0.0'
2539
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE "$PACKAGE"
2543 _ACEOF
2544
2545
2546 cat >>confdefs.h <<_ACEOF
2547 #define VERSION "$VERSION"
2548 _ACEOF
2549
2550 # Some tools Automake needs.
2551
2552 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2553
2554
2555 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2556
2557
2558 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2559
2560
2561 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2562
2563
2564 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2565
2566 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2567
2568 # Installed binaries are usually stripped using `strip' when the user
2569 # run `make install-strip'.  However `strip' might not be the right
2570 # tool to use in cross-compilation environments, therefore Automake
2571 # will honor the `STRIP' environment variable to overrule this program.
2572 if test "$cross_compiling" != no; then
2573   if test -n "$ac_tool_prefix"; then
2574   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2575 set dummy ${ac_tool_prefix}strip; ac_word=$2
2576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 $as_echo_n "checking for $ac_word... " >&6; }
2578 if test "${ac_cv_prog_STRIP+set}" = set; then
2579   $as_echo_n "(cached) " >&6
2580 else
2581   if test -n "$STRIP"; then
2582   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587   IFS=$as_save_IFS
2588   test -z "$as_dir" && as_dir=.
2589   for ac_exec_ext in '' $ac_executable_extensions; do
2590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2592     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593     break 2
2594   fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 STRIP=$ac_cv_prog_STRIP
2602 if test -n "$STRIP"; then
2603   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2604 $as_echo "$STRIP" >&6; }
2605 else
2606   { $as_echo "$as_me:$LINENO: result: no" >&5
2607 $as_echo "no" >&6; }
2608 fi
2609
2610
2611 fi
2612 if test -z "$ac_cv_prog_STRIP"; then
2613   ac_ct_STRIP=$STRIP
2614   # Extract the first word of "strip", so it can be a program name with args.
2615 set dummy strip; ac_word=$2
2616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2619   $as_echo_n "(cached) " >&6
2620 else
2621   if test -n "$ac_ct_STRIP"; then
2622   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629   for ac_exec_ext in '' $ac_executable_extensions; do
2630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631     ac_cv_prog_ac_ct_STRIP="strip"
2632     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2642 if test -n "$ac_ct_STRIP"; then
2643   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2644 $as_echo "$ac_ct_STRIP" >&6; }
2645 else
2646   { $as_echo "$as_me:$LINENO: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650   if test "x$ac_ct_STRIP" = x; then
2651     STRIP=":"
2652   else
2653     case $cross_compiling:$ac_tool_warned in
2654 yes:)
2655 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2657 ac_tool_warned=yes ;;
2658 esac
2659     STRIP=$ac_ct_STRIP
2660   fi
2661 else
2662   STRIP="$ac_cv_prog_STRIP"
2663 fi
2664
2665 fi
2666 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2667
2668 # We need awk for the "check" target.  The system "awk" is bad on
2669 # some platforms.
2670 # Always define AMTAR for backward compatibility.
2671
2672 AMTAR=${AMTAR-"${am_missing_run}tar"}
2673
2674 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2675
2676
2677
2678
2679
2680
2681 E_RPM_REVISION=1
2682
2683
2684 # reasonable guesses for where stuff is installed
2685 if test "x$prefix" = "xNONE"; then
2686   prefix=$ac_default_prefix
2687 fi
2688 if test "x$exec_prefix" = "xNONE"; then
2689   exec_prefix=$prefix
2690 fi
2691
2692 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2693 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2694     # Check whether --enable-maintainer-mode was given.
2695 if test "${enable_maintainer_mode+set}" = set; then
2696   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2697 else
2698   USE_MAINTAINER_MODE=no
2699 fi
2700
2701   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2702 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2703    if test $USE_MAINTAINER_MODE = yes; then
2704   MAINTAINER_MODE_TRUE=
2705   MAINTAINER_MODE_FALSE='#'
2706 else
2707   MAINTAINER_MODE_TRUE='#'
2708   MAINTAINER_MODE_FALSE=
2709 fi
2710
2711   MAINT=$MAINTAINER_MODE_TRUE
2712
2713
2714
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 if test -n "$ac_tool_prefix"; then
2721   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_CC+set}" = set; then
2726   $as_echo_n "(cached) " >&6
2727 else
2728   if test -n "$CC"; then
2729   ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736   for ac_exec_ext in '' $ac_executable_extensions; do
2737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740     break 2
2741   fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753   { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$ac_cv_prog_CC"; then
2760   ac_ct_CC=$CC
2761   # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$ac_ct_CC"; then
2769   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776   for ac_exec_ext in '' $ac_executable_extensions; do
2777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778     ac_cv_prog_ac_ct_CC="gcc"
2779     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2792 else
2793   { $as_echo "$as_me:$LINENO: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797   if test "x$ac_ct_CC" = x; then
2798     CC=""
2799   else
2800     case $cross_compiling:$ac_tool_warned in
2801 yes:)
2802 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2805 esac
2806     CC=$ac_ct_CC
2807   fi
2808 else
2809   CC="$ac_cv_prog_CC"
2810 fi
2811
2812 if test -z "$CC"; then
2813           if test -n "$ac_tool_prefix"; then
2814     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}cc; ac_word=$2
2816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_CC+set}" = set; then
2819   $as_echo_n "(cached) " >&6
2820 else
2821   if test -n "$CC"; then
2822   ac_cv_prog_CC="$CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_CC="${ac_tool_prefix}cc"
2832     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846   { $as_echo "$as_me:$LINENO: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851   fi
2852 fi
2853 if test -z "$CC"; then
2854   # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859   $as_echo_n "(cached) " >&6
2860 else
2861   if test -n "$CC"; then
2862   ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864   ac_prog_rejected=no
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873        ac_prog_rejected=yes
2874        continue
2875      fi
2876     ac_cv_prog_CC="cc"
2877     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 if test $ac_prog_rejected = yes; then
2885   # We found a bogon in the path, so make sure we never use it.
2886   set dummy $ac_cv_prog_CC
2887   shift
2888   if test $# != 0; then
2889     # We chose a different compiler from the bogus one.
2890     # However, it has the same basename, so the bogon will be chosen
2891     # first if we set CC to just the basename; use the full file name.
2892     shift
2893     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894   fi
2895 fi
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903   { $as_echo "$as_me:$LINENO: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$CC"; then
2910   if test -n "$ac_tool_prefix"; then
2911   for ac_prog in cl.exe
2912   do
2913     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_CC+set}" = set; then
2918   $as_echo_n "(cached) " >&6
2919 else
2920   if test -n "$CC"; then
2921   ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926   IFS=$as_save_IFS
2927   test -z "$as_dir" && as_dir=.
2928   for ac_exec_ext in '' $ac_executable_extensions; do
2929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2931     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932     break 2
2933   fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2944 else
2945   { $as_echo "$as_me:$LINENO: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950     test -n "$CC" && break
2951   done
2952 fi
2953 if test -z "$CC"; then
2954   ac_ct_CC=$CC
2955   for ac_prog in cl.exe
2956 do
2957   # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2962   $as_echo_n "(cached) " >&6
2963 else
2964   if test -n "$ac_ct_CC"; then
2965   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972   for ac_exec_ext in '' $ac_executable_extensions; do
2973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974     ac_cv_prog_ac_ct_CC="$ac_prog"
2975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2988 else
2989   { $as_echo "$as_me:$LINENO: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994   test -n "$ac_ct_CC" && break
2995 done
2996
2997   if test "x$ac_ct_CC" = x; then
2998     CC=""
2999   else
3000     case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006     CC=$ac_ct_CC
3007   fi
3008 fi
3009
3010 fi
3011
3012
3013 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&5
3017 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3018 See \`config.log' for more details." >&2;}
3019    { (exit 1); exit 1; }; }; }
3020
3021 # Provide some information about the compiler.
3022 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3023 set X $ac_compile
3024 ac_compiler=$2
3025 { (ac_try="$ac_compiler --version >&5"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032   (eval "$ac_compiler --version >&5") 2>&5
3033   ac_status=$?
3034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); }
3036 { (ac_try="$ac_compiler -v >&5"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3042 $as_echo "$ac_try_echo") >&5
3043   (eval "$ac_compiler -v >&5") 2>&5
3044   ac_status=$?
3045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }
3047 { (ac_try="$ac_compiler -V >&5"
3048 case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3053 $as_echo "$ac_try_echo") >&5
3054   (eval "$ac_compiler -V >&5") 2>&5
3055   ac_status=$?
3056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }
3058
3059 cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 ac_clean_files_save=$ac_clean_files
3075 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3076 # Try to create an executable without -o first, disregard a.out.
3077 # It will help us diagnose broken compilers, and finding out an intuition
3078 # of exeext.
3079 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3080 $as_echo_n "checking for C compiler default output file name... " >&6; }
3081 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3082
3083 # The possible output files:
3084 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3085
3086 ac_rmfiles=
3087 for ac_file in $ac_files
3088 do
3089   case $ac_file in
3090     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3091     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3092   esac
3093 done
3094 rm -f $ac_rmfiles
3095
3096 if { (ac_try="$ac_link_default"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3102 $as_echo "$ac_try_echo") >&5
3103   (eval "$ac_link_default") 2>&5
3104   ac_status=$?
3105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); }; then
3107   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3108 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3109 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3110 # so that the user can short-circuit this test for compilers unknown to
3111 # Autoconf.
3112 for ac_file in $ac_files ''
3113 do
3114   test -f "$ac_file" || continue
3115   case $ac_file in
3116     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3117         ;;
3118     [ab].out )
3119         # We found the default executable, but exeext='' is most
3120         # certainly right.
3121         break;;
3122     *.* )
3123         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3124         then :; else
3125            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126         fi
3127         # We set ac_cv_exeext here because the later test for it is not
3128         # safe: cross compilers may not add the suffix if given an `-o'
3129         # argument, so we may need to know it at that point already.
3130         # Even if this section looks crufty: it has the advantage of
3131         # actually working.
3132         break;;
3133     * )
3134         break;;
3135   esac
3136 done
3137 test "$ac_cv_exeext" = no && ac_cv_exeext=
3138
3139 else
3140   ac_file=''
3141 fi
3142
3143 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3144 $as_echo "$ac_file" >&6; }
3145 if test -z "$ac_file"; then
3146   $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: C compiler cannot create executables
3154 See \`config.log' for more details." >&2;}
3155    { (exit 77); exit 77; }; }; }
3156 fi
3157
3158 ac_exeext=$ac_cv_exeext
3159
3160 # Check that the compiler produces executables we can run.  If not, either
3161 # the compiler is broken, or we cross compile.
3162 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3163 $as_echo_n "checking whether the C compiler works... " >&6; }
3164 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3165 # If not cross compiling, check that we can run a simple program.
3166 if test "$cross_compiling" != yes; then
3167   if { ac_try='./$ac_file'
3168   { (case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174   (eval "$ac_try") 2>&5
3175   ac_status=$?
3176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; }; then
3178     cross_compiling=no
3179   else
3180     if test "$cross_compiling" = maybe; then
3181         cross_compiling=yes
3182     else
3183         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&2;}
3191    { (exit 1); exit 1; }; }; }
3192     fi
3193   fi
3194 fi
3195 { $as_echo "$as_me:$LINENO: result: yes" >&5
3196 $as_echo "yes" >&6; }
3197
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run.  If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3206
3207 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { (ac_try="$ac_link"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3215 $as_echo "$ac_try_echo") >&5
3216   (eval "$ac_link") 2>&5
3217   ac_status=$?
3218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }; then
3220   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 # `rm'.
3224 for ac_file in conftest.exe conftest conftest.*; do
3225   test -f "$ac_file" || continue
3226   case $ac_file in
3227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229           break;;
3230     * ) break;;
3231   esac
3232 done
3233 else
3234   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." >&5
3238 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." >&2;}
3240    { (exit 1); exit 1; }; }; }
3241 fi
3242
3243 rm -f conftest$ac_cv_exeext
3244 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3245 $as_echo "$ac_cv_exeext" >&6; }
3246
3247 rm -f conftest.$ac_ext
3248 EXEEXT=$ac_cv_exeext
3249 ac_exeext=$EXEEXT
3250 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3251 $as_echo_n "checking for suffix of object files... " >&6; }
3252 if test "${ac_cv_objext+set}" = set; then
3253   $as_echo_n "(cached) " >&6
3254 else
3255   cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261
3262 int
3263 main ()
3264 {
3265
3266   ;
3267   return 0;
3268 }
3269 _ACEOF
3270 rm -f conftest.o conftest.obj
3271 if { (ac_try="$ac_compile"
3272 case "(($ac_try" in
3273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274   *) ac_try_echo=$ac_try;;
3275 esac
3276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3277 $as_echo "$ac_try_echo") >&5
3278   (eval "$ac_compile") 2>&5
3279   ac_status=$?
3280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); }; then
3282   for ac_file in conftest.o conftest.obj conftest.*; do
3283   test -f "$ac_file" || continue;
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3286     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287        break;;
3288   esac
3289 done
3290 else
3291   $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details." >&5
3298 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3299 See \`config.log' for more details." >&2;}
3300    { (exit 1); exit 1; }; }; }
3301 fi
3302
3303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 fi
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3306 $as_echo "$ac_cv_objext" >&6; }
3307 OBJEXT=$ac_cv_objext
3308 ac_objext=$OBJEXT
3309 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3312   $as_echo_n "(cached) " >&6
3313 else
3314   cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324 #ifndef __GNUC__
3325        choke me
3326 #endif
3327
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (ac_try="$ac_compile"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   ac_compiler_gnu=yes
3351 else
3352   $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355         ac_compiler_gnu=no
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
3361 fi
3362 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3363 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364 if test $ac_compiler_gnu = yes; then
3365   GCC=yes
3366 else
3367   GCC=
3368 fi
3369 ac_test_CFLAGS=${CFLAGS+set}
3370 ac_save_CFLAGS=$CFLAGS
3371 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3372 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3373 if test "${ac_cv_prog_cc_g+set}" = set; then
3374   $as_echo_n "(cached) " >&6
3375 else
3376   ac_save_c_werror_flag=$ac_c_werror_flag
3377    ac_c_werror_flag=yes
3378    ac_cv_prog_cc_g=no
3379    CFLAGS="-g"
3380    cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386
3387 int
3388 main ()
3389 {
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } && {
3410          test -z "$ac_c_werror_flag" ||
3411          test ! -s conftest.err
3412        } && test -s conftest.$ac_objext; then
3413   ac_cv_prog_cc_g=yes
3414 else
3415   $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418         CFLAGS=""
3419       cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438   *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441 $as_echo "$ac_try_echo") >&5
3442   (eval "$ac_compile") 2>conftest.er1
3443   ac_status=$?
3444   grep -v '^ *+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } && {
3449          test -z "$ac_c_werror_flag" ||
3450          test ! -s conftest.err
3451        } && test -s conftest.$ac_objext; then
3452   :
3453 else
3454   $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457         ac_c_werror_flag=$ac_save_c_werror_flag
3458          CFLAGS="-g"
3459          cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h.  */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482   (eval "$ac_compile") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } && {
3489          test -z "$ac_c_werror_flag" ||
3490          test ! -s conftest.err
3491        } && test -s conftest.$ac_objext; then
3492   ac_cv_prog_cc_g=yes
3493 else
3494   $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 fi
3505
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507    ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512   CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514   if test "$GCC" = yes; then
3515     CFLAGS="-g -O2"
3516   else
3517     CFLAGS="-g"
3518   fi
3519 else
3520   if test "$GCC" = yes; then
3521     CFLAGS="-O2"
3522   else
3523     CFLAGS=
3524   fi
3525 fi
3526 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if test "${ac_cv_prog_cc_c89+set}" = set; then
3529   $as_echo_n "(cached) " >&6
3530 else
3531   ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #include <stdarg.h>
3540 #include <stdio.h>
3541 #include <sys/types.h>
3542 #include <sys/stat.h>
3543 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3544 struct buf { int x; };
3545 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3546 static char *e (p, i)
3547      char **p;
3548      int i;
3549 {
3550   return p[i];
3551 }
3552 static char *f (char * (*g) (char **, int), char **p, ...)
3553 {
3554   char *s;
3555   va_list v;
3556   va_start (v,p);
3557   s = g (p, va_arg (v,int));
3558   va_end (v);
3559   return s;
3560 }
3561
3562 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3563    function prototypes and stuff, but not '\xHH' hex character constants.
3564    These don't provoke an error unfortunately, instead are silently treated
3565    as 'x'.  The following induces an error, until -std is added to get
3566    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3567    array size at least.  It's necessary to write '\x00'==0 to get something
3568    that's true only with -std.  */
3569 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570
3571 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3572    inside strings and character constants.  */
3573 #define FOO(x) 'x'
3574 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575
3576 int test (int i, double x);
3577 struct s1 {int (*f) (int a);};
3578 struct s2 {int (*f) (double a);};
3579 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3580 int argc;
3581 char **argv;
3582 int
3583 main ()
3584 {
3585 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3591         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 do
3593   CC="$ac_save_CC $ac_arg"
3594   rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601 $as_echo "$ac_try_echo") >&5
3602   (eval "$ac_compile") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } && {
3609          test -z "$ac_c_werror_flag" ||
3610          test ! -s conftest.err
3611        } && test -s conftest.$ac_objext; then
3612   ac_cv_prog_cc_c89=$ac_arg
3613 else
3614   $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617
3618 fi
3619
3620 rm -f core conftest.err conftest.$ac_objext
3621   test "x$ac_cv_prog_cc_c89" != "xno" && break
3622 done
3623 rm -f conftest.$ac_ext
3624 CC=$ac_save_CC
3625
3626 fi
3627 # AC_CACHE_VAL
3628 case "x$ac_cv_prog_cc_c89" in
3629   x)
3630     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3631 $as_echo "none needed" >&6; } ;;
3632   xno)
3633     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3634 $as_echo "unsupported" >&6; } ;;
3635   *)
3636     CC="$CC $ac_cv_prog_cc_c89"
3637     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3638 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3639 esac
3640
3641
3642 ac_ext=c
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 DEPDIR="${am__leading_dot}deps"
3648
3649 ac_config_commands="$ac_config_commands depfiles"
3650
3651
3652 am_make=${MAKE-make}
3653 cat > confinc << 'END'
3654 am__doit:
3655         @echo done
3656 .PHONY: am__doit
3657 END
3658 # If we don't find an include directive, just comment out the code.
3659 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3660 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3661 am__include="#"
3662 am__quote=
3663 _am_result=none
3664 # First try GNU make style include.
3665 echo "include confinc" > confmf
3666 # We grep out `Entering directory' and `Leaving directory'
3667 # messages which can occur if `w' ends up in MAKEFLAGS.
3668 # In particular we don't look at `^make:' because GNU make might
3669 # be invoked under some other name (usually "gmake"), in which
3670 # case it prints its new name instead of `make'.
3671 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3672    am__include=include
3673    am__quote=
3674    _am_result=GNU
3675 fi
3676 # Now try BSD make style include.
3677 if test "$am__include" = "#"; then
3678    echo '.include "confinc"' > confmf
3679    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3680       am__include=.include
3681       am__quote="\""
3682       _am_result=BSD
3683    fi
3684 fi
3685
3686
3687 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3688 $as_echo "$_am_result" >&6; }
3689 rm -f confinc confmf
3690
3691 # Check whether --enable-dependency-tracking was given.
3692 if test "${enable_dependency_tracking+set}" = set; then
3693   enableval=$enable_dependency_tracking;
3694 fi
3695
3696 if test "x$enable_dependency_tracking" != xno; then
3697   am_depcomp="$ac_aux_dir/depcomp"
3698   AMDEPBACKSLASH='\'
3699 fi
3700  if test "x$enable_dependency_tracking" != xno; then
3701   AMDEP_TRUE=
3702   AMDEP_FALSE='#'
3703 else
3704   AMDEP_TRUE='#'
3705   AMDEP_FALSE=
3706 fi
3707
3708
3709
3710 depcc="$CC"   am_compiler_list=
3711
3712 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3713 $as_echo_n "checking dependency style of $depcc... " >&6; }
3714 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3715   $as_echo_n "(cached) " >&6
3716 else
3717   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3718   # We make a subdir and do the tests there.  Otherwise we can end up
3719   # making bogus files that we don't know about and never remove.  For
3720   # instance it was reported that on HP-UX the gcc test will end up
3721   # making a dummy file named `D' -- because `-MD' means `put the output
3722   # in D'.
3723   mkdir conftest.dir
3724   # Copy depcomp to subdir because otherwise we won't find it if we're
3725   # using a relative directory.
3726   cp "$am_depcomp" conftest.dir
3727   cd conftest.dir
3728   # We will build objects and dependencies in a subdirectory because
3729   # it helps to detect inapplicable dependency modes.  For instance
3730   # both Tru64's cc and ICC support -MD to output dependencies as a
3731   # side effect of compilation, but ICC will put the dependencies in
3732   # the current directory while Tru64 will put them in the object
3733   # directory.
3734   mkdir sub
3735
3736   am_cv_CC_dependencies_compiler_type=none
3737   if test "$am_compiler_list" = ""; then
3738      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3739   fi
3740   for depmode in $am_compiler_list; do
3741     # Setup a source with many dependencies, because some compilers
3742     # like to wrap large dependency lists on column 80 (with \), and
3743     # we should not choose a depcomp mode which is confused by this.
3744     #
3745     # We need to recreate these files for each test, as the compiler may
3746     # overwrite some of them when testing with obscure command lines.
3747     # This happens at least with the AIX C compiler.
3748     : > sub/conftest.c
3749     for i in 1 2 3 4 5 6; do
3750       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3751       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3752       # Solaris 8's {/usr,}/bin/sh.
3753       touch sub/conftst$i.h
3754     done
3755     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756
3757     case $depmode in
3758     nosideeffect)
3759       # after this tag, mechanisms are not by side-effect, so they'll
3760       # only be used when explicitly requested
3761       if test "x$enable_dependency_tracking" = xyes; then
3762         continue
3763       else
3764         break
3765       fi
3766       ;;
3767     none) break ;;
3768     esac
3769     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3770     # mode.  It turns out that the SunPro C++ compiler does not properly
3771     # handle `-M -o', and we need to detect this.
3772     if depmode=$depmode \
3773        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3774        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3775        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3776          >/dev/null 2>conftest.err &&
3777        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3779        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3780        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781       # icc doesn't choke on unknown options, it will just issue warnings
3782       # or remarks (even with -Werror).  So we grep stderr for any message
3783       # that says an option was ignored or not supported.
3784       # When given -MP, icc 7.0 and 7.1 complain thusly:
3785       #   icc: Command line warning: ignoring option '-M'; no argument required
3786       # The diagnosis changed in icc 8.0:
3787       #   icc: Command line remark: option '-MP' not supported
3788       if (grep 'ignoring option' conftest.err ||
3789           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790         am_cv_CC_dependencies_compiler_type=$depmode
3791         break
3792       fi
3793     fi
3794   done
3795
3796   cd ..
3797   rm -rf conftest.dir
3798 else
3799   am_cv_CC_dependencies_compiler_type=none
3800 fi
3801
3802 fi
3803 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
3807  if
3808   test "x$enable_dependency_tracking" != xno \
3809   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810   am__fastdepCC_TRUE=
3811   am__fastdepCC_FALSE='#'
3812 else
3813   am__fastdepCC_TRUE='#'
3814   am__fastdepCC_FALSE=
3815 fi
3816
3817
3818 if test "x$CC" != xcc; then
3819   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3820 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3821 else
3822   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3823 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3824 fi
3825 set dummy $CC; ac_cc=`$as_echo "$2" |
3826                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3827 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3828   $as_echo_n "(cached) " >&6
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 # Make sure it works both with $CC and with simple cc.
3846 # We do the test twice because some compilers refuse to overwrite an
3847 # existing .o file with -o, though they will create one.
3848 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3849 rm -f conftest2.*
3850 if { (case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3855 $as_echo "$ac_try_echo") >&5
3856   (eval "$ac_try") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); } &&
3860    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866   (eval "$ac_try") 2>&5
3867   ac_status=$?
3868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); };
3870 then
3871   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3872   if test "x$CC" != xcc; then
3873     # Test first that cc exists at all.
3874     if { ac_try='cc -c conftest.$ac_ext >&5'
3875   { (case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3880 $as_echo "$ac_try_echo") >&5
3881   (eval "$ac_try") 2>&5
3882   ac_status=$?
3883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3886       rm -f conftest2.*
3887       if { (case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893   (eval "$ac_try") 2>&5
3894   ac_status=$?
3895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } &&
3897          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903   (eval "$ac_try") 2>&5
3904   ac_status=$?
3905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); };
3907       then
3908         # cc works too.
3909         :
3910       else
3911         # cc exists but doesn't like -o.
3912         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3913       fi
3914     fi
3915   fi
3916 else
3917   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3918 fi
3919 rm -f core conftest*
3920
3921 fi
3922 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3923   { $as_echo "$as_me:$LINENO: result: yes" >&5
3924 $as_echo "yes" >&6; }
3925 else
3926   { $as_echo "$as_me:$LINENO: result: no" >&5
3927 $as_echo "no" >&6; }
3928
3929 cat >>confdefs.h <<\_ACEOF
3930 #define NO_MINUS_C_MINUS_O 1
3931 _ACEOF
3932
3933 fi
3934
3935 # FIXME: we rely on the cache variable name because
3936 # there is no other way.
3937 set dummy $CC
3938 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3939 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3940    # Losing compiler, so override with the script.
3941    # FIXME: It is wrong to rewrite CC.
3942    # But if we don't then we get into trouble of one sort or another.
3943    # A longer-term fix would be to have automake use am__CC in this case,
3944    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3945    CC="$am_aux_dir/compile $CC"
3946 fi
3947
3948
3949
3950 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3952 set x ${MAKE-make}
3953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3954 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3955   $as_echo_n "(cached) " >&6
3956 else
3957   cat >conftest.make <<\_ACEOF
3958 SHELL = /bin/sh
3959 all:
3960         @echo '@@@%%%=$(MAKE)=@@@%%%'
3961 _ACEOF
3962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3964   *@@@%%%=?*=@@@%%%*)
3965     eval ac_cv_prog_make_${ac_make}_set=yes;;
3966   *)
3967     eval ac_cv_prog_make_${ac_make}_set=no;;
3968 esac
3969 rm -f conftest.make
3970 fi
3971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3972   { $as_echo "$as_me:$LINENO: result: yes" >&5
3973 $as_echo "yes" >&6; }
3974   SET_MAKE=
3975 else
3976   { $as_echo "$as_me:$LINENO: result: no" >&5
3977 $as_echo "no" >&6; }
3978   SET_MAKE="MAKE=${MAKE-make}"
3979 fi
3980
3981 # Find a good install program.  We prefer a C program (faster),
3982 # so one script is as good as another.  But avoid the broken or
3983 # incompatible versions:
3984 # SysV /etc/install, /usr/sbin/install
3985 # SunOS /usr/etc/install
3986 # IRIX /sbin/install
3987 # AIX /bin/install
3988 # AmigaOS /C/install, which installs bootblocks on floppy discs
3989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3992 # OS/2's system install, which has a completely different semantic
3993 # ./install, which can be erroneously created by make from ./install.sh.
3994 # Reject install programs that cannot install multiple files.
3995 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3996 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3997 if test -z "$INSTALL"; then
3998 if test "${ac_cv_path_install+set}" = set; then
3999   $as_echo_n "(cached) " >&6
4000 else
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   # Account for people who put trailing slashes in PATH elements.
4007 case $as_dir/ in
4008   ./ | .// | /cC/* | \
4009   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4010   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4011   /usr/ucb/* ) ;;
4012   *)
4013     # OSF1 and SCO ODT 3.0 have their own names for install.
4014     # Don't use installbsd from OSF since it installs stuff as root
4015     # by default.
4016     for ac_prog in ginstall scoinst install; do
4017       for ac_exec_ext in '' $ac_executable_extensions; do
4018         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4019           if test $ac_prog = install &&
4020             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4021             # AIX install.  It has an incompatible calling convention.
4022             :
4023           elif test $ac_prog = install &&
4024             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4025             # program-specific install script used by HP pwplus--don't use.
4026             :
4027           else
4028             rm -rf conftest.one conftest.two conftest.dir
4029             echo one > conftest.one
4030             echo two > conftest.two
4031             mkdir conftest.dir
4032             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4033               test -s conftest.one && test -s conftest.two &&
4034               test -s conftest.dir/conftest.one &&
4035               test -s conftest.dir/conftest.two
4036             then
4037               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4038               break 3
4039             fi
4040           fi
4041         fi
4042       done
4043     done
4044     ;;
4045 esac
4046
4047 done
4048 IFS=$as_save_IFS
4049
4050 rm -rf conftest.one conftest.two conftest.dir
4051
4052 fi
4053   if test "${ac_cv_path_install+set}" = set; then
4054     INSTALL=$ac_cv_path_install
4055   else
4056     # As a last resort, use the slow shell script.  Don't cache a
4057     # value for INSTALL within a source directory, because that will
4058     # break other packages using the cache if that directory is
4059     # removed, or if the value is a relative name.
4060     INSTALL=$ac_install_sh
4061   fi
4062 fi
4063 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4064 $as_echo "$INSTALL" >&6; }
4065
4066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4067 # It thinks the first close brace ends the variable substitution.
4068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4069
4070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4071
4072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4073
4074
4075
4076
4077 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4078         if test -n "$ac_tool_prefix"; then
4079   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4084   $as_echo_n "(cached) " >&6
4085 else
4086   case $PKG_CONFIG in
4087   [\\/]* | ?:[\\/]*)
4088   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4089   ;;
4090   *)
4091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4099     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106   ;;
4107 esac
4108 fi
4109 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4110 if test -n "$PKG_CONFIG"; then
4111   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4112 $as_echo "$PKG_CONFIG" >&6; }
4113 else
4114   { $as_echo "$as_me:$LINENO: result: no" >&5
4115 $as_echo "no" >&6; }
4116 fi
4117
4118
4119 fi
4120 if test -z "$ac_cv_path_PKG_CONFIG"; then
4121   ac_pt_PKG_CONFIG=$PKG_CONFIG
4122   # Extract the first word of "pkg-config", so it can be a program name with args.
4123 set dummy pkg-config; ac_word=$2
4124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4127   $as_echo_n "(cached) " >&6
4128 else
4129   case $ac_pt_PKG_CONFIG in
4130   [\\/]* | ?:[\\/]*)
4131   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4132   ;;
4133   *)
4134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4142     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149   ;;
4150 esac
4151 fi
4152 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4153 if test -n "$ac_pt_PKG_CONFIG"; then
4154   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4155 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4156 else
4157   { $as_echo "$as_me:$LINENO: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161   if test "x$ac_pt_PKG_CONFIG" = x; then
4162     PKG_CONFIG=""
4163   else
4164     case $cross_compiling:$ac_tool_warned in
4165 yes:)
4166 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned=yes ;;
4169 esac
4170     PKG_CONFIG=$ac_pt_PKG_CONFIG
4171   fi
4172 else
4173   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4174 fi
4175
4176 fi
4177 if test -n "$PKG_CONFIG"; then
4178         _pkg_min_version=0.9.0
4179         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4180 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4181         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4182                 { $as_echo "$as_me:$LINENO: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184         else
4185                 { $as_echo "$as_me:$LINENO: result: no" >&5
4186 $as_echo "no" >&6; }
4187                 PKG_CONFIG=""
4188         fi
4189
4190 fi
4191
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4202   CPP=
4203 fi
4204 if test -z "$CPP"; then
4205   if test "${ac_cv_prog_CPP+set}" = set; then
4206   $as_echo_n "(cached) " >&6
4207 else
4208       # Double quotes because CPP needs to be expanded
4209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4210     do
4211       ac_preproc_ok=false
4212 for ac_c_preproc_warn_flag in '' yes
4213 do
4214   # Use a header file that comes with gcc, so configuring glibc
4215   # with a fresh cross-compiler works.
4216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217   # <limits.h> exists even on freestanding compilers.
4218   # On the NeXT, cc -E runs the code through the compiler's parser,
4219   # not just through cpp. "Syntax error" is here to catch this case.
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 #ifdef __STDC__
4227 # include <limits.h>
4228 #else
4229 # include <assert.h>
4230 #endif
4231                      Syntax error
4232 _ACEOF
4233 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4239 $as_echo "$ac_try_echo") >&5
4240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4241   ac_status=$?
4242   grep -v '^ *+' conftest.er1 >conftest.err
4243   rm -f conftest.er1
4244   cat conftest.err >&5
4245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } >/dev/null && {
4247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4248          test ! -s conftest.err
4249        }; then
4250   :
4251 else
4252   $as_echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255   # Broken: fails on valid input.
4256 continue
4257 fi
4258
4259 rm -f conftest.err conftest.$ac_ext
4260
4261   # OK, works on sane cases.  Now check whether nonexistent headers
4262   # can be detected and how.
4263   cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h.  */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h.  */
4269 #include <ac_nonexistent.h>
4270 _ACEOF
4271 if { (ac_try="$ac_cpp conftest.$ac_ext"
4272 case "(($ac_try" in
4273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274   *) ac_try_echo=$ac_try;;
4275 esac
4276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4277 $as_echo "$ac_try_echo") >&5
4278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4279   ac_status=$?
4280   grep -v '^ *+' conftest.er1 >conftest.err
4281   rm -f conftest.er1
4282   cat conftest.err >&5
4283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } >/dev/null && {
4285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4286          test ! -s conftest.err
4287        }; then
4288   # Broken: success on invalid input.
4289 continue
4290 else
4291   $as_echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294   # Passes both tests.
4295 ac_preproc_ok=:
4296 break
4297 fi
4298
4299 rm -f conftest.err conftest.$ac_ext
4300
4301 done
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.err conftest.$ac_ext
4304 if $ac_preproc_ok; then
4305   break
4306 fi
4307
4308     done
4309     ac_cv_prog_CPP=$CPP
4310
4311 fi
4312   CPP=$ac_cv_prog_CPP
4313 else
4314   ac_cv_prog_CPP=$CPP
4315 fi
4316 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4317 $as_echo "$CPP" >&6; }
4318 ac_preproc_ok=false
4319 for ac_c_preproc_warn_flag in '' yes
4320 do
4321   # Use a header file that comes with gcc, so configuring glibc
4322   # with a fresh cross-compiler works.
4323   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324   # <limits.h> exists even on freestanding compilers.
4325   # On the NeXT, cc -E runs the code through the compiler's parser,
4326   # not just through cpp. "Syntax error" is here to catch this case.
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338                      Syntax error
4339 _ACEOF
4340 if { (ac_try="$ac_cpp conftest.$ac_ext"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4346 $as_echo "$ac_try_echo") >&5
4347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } >/dev/null && {
4354          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4355          test ! -s conftest.err
4356        }; then
4357   :
4358 else
4359   $as_echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362   # Broken: fails on valid input.
4363 continue
4364 fi
4365
4366 rm -f conftest.err conftest.$ac_ext
4367
4368   # OK, works on sane cases.  Now check whether nonexistent headers
4369   # can be detected and how.
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #include <ac_nonexistent.h>
4377 _ACEOF
4378 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4384 $as_echo "$ac_try_echo") >&5
4385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } >/dev/null && {
4392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4393          test ! -s conftest.err
4394        }; then
4395   # Broken: success on invalid input.
4396 continue
4397 else
4398   $as_echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401   # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4404 fi
4405
4406 rm -f conftest.err conftest.$ac_ext
4407
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4412   :
4413 else
4414   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4417 See \`config.log' for more details." >&5
4418 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4419 See \`config.log' for more details." >&2;}
4420    { (exit 1); exit 1; }; }; }
4421 fi
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428
4429
4430 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4431 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4432 if test "${ac_cv_path_GREP+set}" = set; then
4433   $as_echo_n "(cached) " >&6
4434 else
4435   if test -z "$GREP"; then
4436   ac_path_GREP_found=false
4437   # Loop through the user's path and test for each of PROGNAME-LIST
4438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_prog in grep ggrep; do
4444     for ac_exec_ext in '' $ac_executable_extensions; do
4445       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4446       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4447 # Check for GNU ac_path_GREP and select it if it is found.
4448   # Check for GNU $ac_path_GREP
4449 case `"$ac_path_GREP" --version 2>&1` in
4450 *GNU*)
4451   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4452 *)
4453   ac_count=0
4454   $as_echo_n 0123456789 >"conftest.in"
4455   while :
4456   do
4457     cat "conftest.in" "conftest.in" >"conftest.tmp"
4458     mv "conftest.tmp" "conftest.in"
4459     cp "conftest.in" "conftest.nl"
4460     $as_echo 'GREP' >> "conftest.nl"
4461     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4462     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4463     ac_count=`expr $ac_count + 1`
4464     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4465       # Best one so far, save it but keep looking for a better one
4466       ac_cv_path_GREP="$ac_path_GREP"
4467       ac_path_GREP_max=$ac_count
4468     fi
4469     # 10*(2^10) chars as input seems more than enough
4470     test $ac_count -gt 10 && break
4471   done
4472   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4473 esac
4474
4475       $ac_path_GREP_found && break 3
4476     done
4477   done
4478 done
4479 IFS=$as_save_IFS
4480   if test -z "$ac_cv_path_GREP"; then
4481     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4482 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4483    { (exit 1); exit 1; }; }
4484   fi
4485 else
4486   ac_cv_path_GREP=$GREP
4487 fi
4488
4489 fi
4490 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4491 $as_echo "$ac_cv_path_GREP" >&6; }
4492  GREP="$ac_cv_path_GREP"
4493
4494
4495 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4496 $as_echo_n "checking for egrep... " >&6; }
4497 if test "${ac_cv_path_EGREP+set}" = set; then
4498   $as_echo_n "(cached) " >&6
4499 else
4500   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4501    then ac_cv_path_EGREP="$GREP -E"
4502    else
4503      if test -z "$EGREP"; then
4504   ac_path_EGREP_found=false
4505   # Loop through the user's path and test for each of PROGNAME-LIST
4506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_prog in egrep; do
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4515 # Check for GNU ac_path_EGREP and select it if it is found.
4516   # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4518 *GNU*)
4519   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4520 *)
4521   ac_count=0
4522   $as_echo_n 0123456789 >"conftest.in"
4523   while :
4524   do
4525     cat "conftest.in" "conftest.in" >"conftest.tmp"
4526     mv "conftest.tmp" "conftest.in"
4527     cp "conftest.in" "conftest.nl"
4528     $as_echo 'EGREP' >> "conftest.nl"
4529     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531     ac_count=`expr $ac_count + 1`
4532     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533       # Best one so far, save it but keep looking for a better one
4534       ac_cv_path_EGREP="$ac_path_EGREP"
4535       ac_path_EGREP_max=$ac_count
4536     fi
4537     # 10*(2^10) chars as input seems more than enough
4538     test $ac_count -gt 10 && break
4539   done
4540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4541 esac
4542
4543       $ac_path_EGREP_found && break 3
4544     done
4545   done
4546 done
4547 IFS=$as_save_IFS
4548   if test -z "$ac_cv_path_EGREP"; then
4549     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4550 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4551    { (exit 1); exit 1; }; }
4552   fi
4553 else
4554   ac_cv_path_EGREP=$EGREP
4555 fi
4556
4557    fi
4558 fi
4559 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4560 $as_echo "$ac_cv_path_EGREP" >&6; }
4561  EGREP="$ac_cv_path_EGREP"
4562
4563
4564 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4565 $as_echo_n "checking for ANSI C header files... " >&6; }
4566 if test "${ac_cv_header_stdc+set}" = set; then
4567   $as_echo_n "(cached) " >&6
4568 else
4569   cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h.  */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h.  */
4575 #include <stdlib.h>
4576 #include <stdarg.h>
4577 #include <string.h>
4578 #include <float.h>
4579
4580 int
4581 main ()
4582 {
4583
4584   ;
4585   return 0;
4586 }
4587 _ACEOF
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4590 case "(($ac_try" in
4591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592   *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4595 $as_echo "$ac_try_echo") >&5
4596   (eval "$ac_compile") 2>conftest.er1
4597   ac_status=$?
4598   grep -v '^ *+' conftest.er1 >conftest.err
4599   rm -f conftest.er1
4600   cat conftest.err >&5
4601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } && {
4603          test -z "$ac_c_werror_flag" ||
4604          test ! -s conftest.err
4605        } && test -s conftest.$ac_objext; then
4606   ac_cv_header_stdc=yes
4607 else
4608   $as_echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611         ac_cv_header_stdc=no
4612 fi
4613
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615
4616 if test $ac_cv_header_stdc = yes; then
4617   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 #include <string.h>
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628   $EGREP "memchr" >/dev/null 2>&1; then
4629   :
4630 else
4631   ac_cv_header_stdc=no
4632 fi
4633 rm -f conftest*
4634
4635 fi
4636
4637 if test $ac_cv_header_stdc = yes; then
4638   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #include <stdlib.h>
4646
4647 _ACEOF
4648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4649   $EGREP "free" >/dev/null 2>&1; then
4650   :
4651 else
4652   ac_cv_header_stdc=no
4653 fi
4654 rm -f conftest*
4655
4656 fi
4657
4658 if test $ac_cv_header_stdc = yes; then
4659   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4660   if test "$cross_compiling" = yes; then
4661   :
4662 else
4663   cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669 #include <ctype.h>
4670 #include <stdlib.h>
4671 #if ((' ' & 0x0FF) == 0x020)
4672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4674 #else
4675 # define ISLOWER(c) \
4676                    (('a' <= (c) && (c) <= 'i') \
4677                      || ('j' <= (c) && (c) <= 'r') \
4678                      || ('s' <= (c) && (c) <= 'z'))
4679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4680 #endif
4681
4682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4683 int
4684 main ()
4685 {
4686   int i;
4687   for (i = 0; i < 256; i++)
4688     if (XOR (islower (i), ISLOWER (i))
4689         || toupper (i) != TOUPPER (i))
4690       return 2;
4691   return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest$ac_exeext
4695 if { (ac_try="$ac_link"
4696 case "(($ac_try" in
4697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698   *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702   (eval "$ac_link") 2>&5
4703   ac_status=$?
4704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4706   { (case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712   (eval "$ac_try") 2>&5
4713   ac_status=$?
4714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; }; then
4716   :
4717 else
4718   $as_echo "$as_me: program exited with status $ac_status" >&5
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ( exit $ac_status )
4723 ac_cv_header_stdc=no
4724 fi
4725 rm -rf conftest.dSYM
4726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4727 fi
4728
4729
4730 fi
4731 fi
4732 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733 $as_echo "$ac_cv_header_stdc" >&6; }
4734 if test $ac_cv_header_stdc = yes; then
4735
4736 cat >>confdefs.h <<\_ACEOF
4737 #define STDC_HEADERS 1
4738 _ACEOF
4739
4740 fi
4741
4742
4743 # Check whether --enable-shared was given.
4744 if test "${enable_shared+set}" = set; then
4745   enableval=$enable_shared; p=${PACKAGE-default}
4746     case $enableval in
4747     yes) enable_shared=yes ;;
4748     no) enable_shared=no ;;
4749     *)
4750       enable_shared=no
4751       # Look at the argument we got.  We use all the common list separators.
4752       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4753       for pkg in $enableval; do
4754         IFS="$lt_save_ifs"
4755         if test "X$pkg" = "X$p"; then
4756           enable_shared=yes
4757         fi
4758       done
4759       IFS="$lt_save_ifs"
4760       ;;
4761     esac
4762 else
4763   enable_shared=yes
4764 fi
4765
4766
4767 # Check whether --enable-static was given.
4768 if test "${enable_static+set}" = set; then
4769   enableval=$enable_static; p=${PACKAGE-default}
4770     case $enableval in
4771     yes) enable_static=yes ;;
4772     no) enable_static=no ;;
4773     *)
4774      enable_static=no
4775       # Look at the argument we got.  We use all the common list separators.
4776       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4777       for pkg in $enableval; do
4778         IFS="$lt_save_ifs"
4779         if test "X$pkg" = "X$p"; then
4780           enable_static=yes
4781         fi
4782       done
4783       IFS="$lt_save_ifs"
4784       ;;
4785     esac
4786 else
4787   enable_static=no
4788 fi
4789
4790
4791
4792
4793
4794 # Check whether --enable-fast-install was given.
4795 if test "${enable_fast_install+set}" = set; then
4796   enableval=$enable_fast_install; p=${PACKAGE-default}
4797     case $enableval in
4798     yes) enable_fast_install=yes ;;
4799     no) enable_fast_install=no ;;
4800     *)
4801       enable_fast_install=no
4802       # Look at the argument we got.  We use all the common list separators.
4803       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804       for pkg in $enableval; do
4805         IFS="$lt_save_ifs"
4806         if test "X$pkg" = "X$p"; then
4807           enable_fast_install=yes
4808         fi
4809       done
4810       IFS="$lt_save_ifs"
4811       ;;
4812     esac
4813 else
4814   enable_fast_install=yes
4815 fi
4816
4817
4818 # Make sure we can run config.sub.
4819 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4820   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4821 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4822    { (exit 1); exit 1; }; }
4823
4824 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4825 $as_echo_n "checking build system type... " >&6; }
4826 if test "${ac_cv_build+set}" = set; then
4827   $as_echo_n "(cached) " >&6
4828 else
4829   ac_build_alias=$build_alias
4830 test "x$ac_build_alias" = x &&
4831   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4832 test "x$ac_build_alias" = x &&
4833   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4834 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4835    { (exit 1); exit 1; }; }
4836 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4837   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4838 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4839    { (exit 1); exit 1; }; }
4840
4841 fi
4842 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4843 $as_echo "$ac_cv_build" >&6; }
4844 case $ac_cv_build in
4845 *-*-*) ;;
4846 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4847 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4848    { (exit 1); exit 1; }; };;
4849 esac
4850 build=$ac_cv_build
4851 ac_save_IFS=$IFS; IFS='-'
4852 set x $ac_cv_build
4853 shift
4854 build_cpu=$1
4855 build_vendor=$2
4856 shift; shift
4857 # Remember, the first character of IFS is used to create $*,
4858 # except with old shells:
4859 build_os=$*
4860 IFS=$ac_save_IFS
4861 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4862
4863
4864 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4865 $as_echo_n "checking host system type... " >&6; }
4866 if test "${ac_cv_host+set}" = set; then
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test "x$host_alias" = x; then
4870   ac_cv_host=$ac_cv_build
4871 else
4872   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4873     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4874 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4875    { (exit 1); exit 1; }; }
4876 fi
4877
4878 fi
4879 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4880 $as_echo "$ac_cv_host" >&6; }
4881 case $ac_cv_host in
4882 *-*-*) ;;
4883 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4884 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4885    { (exit 1); exit 1; }; };;
4886 esac
4887 host=$ac_cv_host
4888 ac_save_IFS=$IFS; IFS='-'
4889 set x $ac_cv_host
4890 shift
4891 host_cpu=$1
4892 host_vendor=$2
4893 shift; shift
4894 # Remember, the first character of IFS is used to create $*,
4895 # except with old shells:
4896 host_os=$*
4897 IFS=$ac_save_IFS
4898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4899
4900
4901 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4902 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4903 if test "${lt_cv_path_SED+set}" = set; then
4904   $as_echo_n "(cached) " >&6
4905 else
4906   # Loop through the user's path and test for sed and gsed.
4907 # Then use that list of sed's as ones to test for truncation.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913   for lt_ac_prog in sed gsed; do
4914     for ac_exec_ext in '' $ac_executable_extensions; do
4915       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4916         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4917       fi
4918     done
4919   done
4920 done
4921 IFS=$as_save_IFS
4922 lt_ac_max=0
4923 lt_ac_count=0
4924 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4925 # along with /bin/sed that truncates output.
4926 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4927   test ! -f $lt_ac_sed && continue
4928   cat /dev/null > conftest.in
4929   lt_ac_count=0
4930   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4931   # Check for GNU sed and select it if it is found.
4932   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4933     lt_cv_path_SED=$lt_ac_sed
4934     break
4935   fi
4936   while true; do
4937     cat conftest.in conftest.in >conftest.tmp
4938     mv conftest.tmp conftest.in
4939     cp conftest.in conftest.nl
4940     echo >>conftest.nl
4941     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4942     cmp -s conftest.out conftest.nl || break
4943     # 10000 chars as input seems more than enough
4944     test $lt_ac_count -gt 10 && break
4945     lt_ac_count=`expr $lt_ac_count + 1`
4946     if test $lt_ac_count -gt $lt_ac_max; then
4947       lt_ac_max=$lt_ac_count
4948       lt_cv_path_SED=$lt_ac_sed
4949     fi
4950   done
4951 done
4952
4953 fi
4954
4955 SED=$lt_cv_path_SED
4956
4957 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4958 $as_echo "$SED" >&6; }
4959
4960
4961 # Check whether --with-gnu-ld was given.
4962 if test "${with_gnu_ld+set}" = set; then
4963   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4964 else
4965   with_gnu_ld=no
4966 fi
4967
4968 ac_prog=ld
4969 if test "$GCC" = yes; then
4970   # Check if gcc -print-prog-name=ld gives a path.
4971   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4972 $as_echo_n "checking for ld used by $CC... " >&6; }
4973   case $host in
4974   *-*-mingw*)
4975     # gcc leaves a trailing carriage return which upsets mingw
4976     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4977   *)
4978     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4979   esac
4980   case $ac_prog in
4981     # Accept absolute paths.
4982     [\\/]* | ?:[\\/]*)
4983       re_direlt='/[^/][^/]*/\.\./'
4984       # Canonicalize the pathname of ld
4985       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4986       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4987         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4988       done
4989       test -z "$LD" && LD="$ac_prog"
4990       ;;
4991   "")
4992     # If it fails, then pretend we aren't using GCC.
4993     ac_prog=ld
4994     ;;
4995   *)
4996     # If it is relative, then search for the first ld in PATH.
4997     with_gnu_ld=unknown
4998     ;;
4999   esac
5000 elif test "$with_gnu_ld" = yes; then
5001   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5002 $as_echo_n "checking for GNU ld... " >&6; }
5003 else
5004   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5005 $as_echo_n "checking for non-GNU ld... " >&6; }
5006 fi
5007 if test "${lt_cv_path_LD+set}" = set; then
5008   $as_echo_n "(cached) " >&6
5009 else
5010   if test -z "$LD"; then
5011   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5012   for ac_dir in $PATH; do
5013     IFS="$lt_save_ifs"
5014     test -z "$ac_dir" && ac_dir=.
5015     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5016       lt_cv_path_LD="$ac_dir/$ac_prog"
5017       # Check to see if the program is GNU ld.  I'd rather use --version,
5018       # but apparently some variants of GNU ld only accept -v.
5019       # Break only if it was the GNU/non-GNU ld that we prefer.
5020       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5021       *GNU* | *'with BFD'*)
5022         test "$with_gnu_ld" != no && break
5023         ;;
5024       *)
5025         test "$with_gnu_ld" != yes && break
5026         ;;
5027       esac
5028     fi
5029   done
5030   IFS="$lt_save_ifs"
5031 else
5032   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5033 fi
5034 fi
5035
5036 LD="$lt_cv_path_LD"
5037 if test -n "$LD"; then
5038   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5039 $as_echo "$LD" >&6; }
5040 else
5041   { $as_echo "$as_me:$LINENO: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5045 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5046    { (exit 1); exit 1; }; }
5047 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5048 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5049 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5050   $as_echo_n "(cached) " >&6
5051 else
5052   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5053 case `$LD -v 2>&1 </dev/null` in
5054 *GNU* | *'with BFD'*)
5055   lt_cv_prog_gnu_ld=yes
5056   ;;
5057 *)
5058   lt_cv_prog_gnu_ld=no
5059   ;;
5060 esac
5061 fi
5062 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5063 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5064 with_gnu_ld=$lt_cv_prog_gnu_ld
5065
5066
5067 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5068 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5069 if test "${lt_cv_ld_reload_flag+set}" = set; then
5070   $as_echo_n "(cached) " >&6
5071 else
5072   lt_cv_ld_reload_flag='-r'
5073 fi
5074 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5075 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5076 reload_flag=$lt_cv_ld_reload_flag
5077 case $reload_flag in
5078 "" | " "*) ;;
5079 *) reload_flag=" $reload_flag" ;;
5080 esac
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082 case $host_os in
5083   darwin*)
5084     if test "$GCC" = yes; then
5085       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5086     else
5087       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088     fi
5089     ;;
5090 esac
5091
5092 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5093 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5094 if test "${lt_cv_path_NM+set}" = set; then
5095   $as_echo_n "(cached) " >&6
5096 else
5097   if test -n "$NM"; then
5098   # Let the user override the test.
5099   lt_cv_path_NM="$NM"
5100 else
5101   lt_nm_to_check="${ac_tool_prefix}nm"
5102   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5103     lt_nm_to_check="$lt_nm_to_check nm"
5104   fi
5105   for lt_tmp_nm in $lt_nm_to_check; do
5106     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5107     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5108       IFS="$lt_save_ifs"
5109       test -z "$ac_dir" && ac_dir=.
5110       tmp_nm="$ac_dir/$lt_tmp_nm"
5111       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5112         # Check to see if the nm accepts a BSD-compat flag.
5113         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5114         #   nm: unknown option "B" ignored
5115         # Tru64's nm complains that /dev/null is an invalid object file
5116         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5117         */dev/null* | *'Invalid file or object type'*)
5118           lt_cv_path_NM="$tmp_nm -B"
5119           break
5120           ;;
5121         *)
5122           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5123           */dev/null*)
5124             lt_cv_path_NM="$tmp_nm -p"
5125             break
5126             ;;
5127           *)
5128             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5129             continue # so that we can try to find one that supports BSD flags
5130             ;;
5131           esac
5132           ;;
5133         esac
5134       fi
5135     done
5136     IFS="$lt_save_ifs"
5137   done
5138   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5139 fi
5140 fi
5141 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5142 $as_echo "$lt_cv_path_NM" >&6; }
5143 NM="$lt_cv_path_NM"
5144
5145 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5146 $as_echo_n "checking whether ln -s works... " >&6; }
5147 LN_S=$as_ln_s
5148 if test "$LN_S" = "ln -s"; then
5149   { $as_echo "$as_me:$LINENO: result: yes" >&5
5150 $as_echo "yes" >&6; }
5151 else
5152   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5153 $as_echo "no, using $LN_S" >&6; }
5154 fi
5155
5156 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5157 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5158 if test "${lt_cv_deplibs_check_method+set}" = set; then
5159   $as_echo_n "(cached) " >&6
5160 else
5161   lt_cv_file_magic_cmd='$MAGIC_CMD'
5162 lt_cv_file_magic_test_file=
5163 lt_cv_deplibs_check_method='unknown'
5164 # Need to set the preceding variable on all platforms that support
5165 # interlibrary dependencies.
5166 # 'none' -- dependencies not supported.
5167 # `unknown' -- same as none, but documents that we really don't know.
5168 # 'pass_all' -- all dependencies passed with no checks.
5169 # 'test_compile' -- check by making test program.
5170 # 'file_magic [[regex]]' -- check by looking for files in library path
5171 # which responds to the $file_magic_cmd with a given extended regex.
5172 # If you have `file' or equivalent on your system and you're not sure
5173 # whether `pass_all' will *always* work, you probably want this one.
5174
5175 case $host_os in
5176 aix[4-9]*)
5177   lt_cv_deplibs_check_method=pass_all
5178   ;;
5179
5180 beos*)
5181   lt_cv_deplibs_check_method=pass_all
5182   ;;
5183
5184 bsdi[45]*)
5185   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5186   lt_cv_file_magic_cmd='/usr/bin/file -L'
5187   lt_cv_file_magic_test_file=/shlib/libc.so
5188   ;;
5189
5190 cygwin*)
5191   # func_win32_libid is a shell function defined in ltmain.sh
5192   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5193   lt_cv_file_magic_cmd='func_win32_libid'
5194   ;;
5195
5196 mingw* | pw32*)
5197   # Base MSYS/MinGW do not provide the 'file' command needed by
5198   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5199   # unless we find 'file', for example because we are cross-compiling.
5200   if ( file / ) >/dev/null 2>&1; then
5201     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5202     lt_cv_file_magic_cmd='func_win32_libid'
5203   else
5204     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5205     lt_cv_file_magic_cmd='$OBJDUMP -f'
5206   fi
5207   ;;
5208
5209 darwin* | rhapsody*)
5210   lt_cv_deplibs_check_method=pass_all
5211   ;;
5212
5213 freebsd* | dragonfly*)
5214   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5215     case $host_cpu in
5216     i*86 )
5217       # Not sure whether the presence of OpenBSD here was a mistake.
5218       # Let's accept both of them until this is cleared up.
5219       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5220       lt_cv_file_magic_cmd=/usr/bin/file
5221       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5222       ;;
5223     esac
5224   else
5225     lt_cv_deplibs_check_method=pass_all
5226   fi
5227   ;;
5228
5229 gnu*)
5230   lt_cv_deplibs_check_method=pass_all
5231   ;;
5232
5233 hpux10.20* | hpux11*)
5234   lt_cv_file_magic_cmd=/usr/bin/file
5235   case $host_cpu in
5236   ia64*)
5237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5238     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5239     ;;
5240   hppa*64*)
5241     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]'
5242     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5243     ;;
5244   *)
5245     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5246     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5247     ;;
5248   esac
5249   ;;
5250
5251 interix[3-9]*)
5252   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5253   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5254   ;;
5255
5256 irix5* | irix6* | nonstopux*)
5257   case $LD in
5258   *-32|*"-32 ") libmagic=32-bit;;
5259   *-n32|*"-n32 ") libmagic=N32;;
5260   *-64|*"-64 ") libmagic=64-bit;;
5261   *) libmagic=never-match;;
5262   esac
5263   lt_cv_deplibs_check_method=pass_all
5264   ;;
5265
5266 # This must be Linux ELF.
5267 linux* | k*bsd*-gnu)
5268   lt_cv_deplibs_check_method=pass_all
5269   ;;
5270
5271 netbsd*)
5272   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5273     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5274   else
5275     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5276   fi
5277   ;;
5278
5279 newos6*)
5280   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5281   lt_cv_file_magic_cmd=/usr/bin/file
5282   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5283   ;;
5284
5285 nto-qnx*)
5286   lt_cv_deplibs_check_method=unknown
5287   ;;
5288
5289 openbsd*)
5290   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5291     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5292   else
5293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5294   fi
5295   ;;
5296
5297 osf3* | osf4* | osf5*)
5298   lt_cv_deplibs_check_method=pass_all
5299   ;;
5300
5301 rdos*)
5302   lt_cv_deplibs_check_method=pass_all
5303   ;;
5304
5305 solaris*)
5306   lt_cv_deplibs_check_method=pass_all
5307   ;;
5308
5309 sysv4 | sysv4.3*)
5310   case $host_vendor in
5311   motorola)
5312     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]'
5313     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5314     ;;
5315   ncr)
5316     lt_cv_deplibs_check_method=pass_all
5317     ;;
5318   sequent)
5319     lt_cv_file_magic_cmd='/bin/file'
5320     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5321     ;;
5322   sni)
5323     lt_cv_file_magic_cmd='/bin/file'
5324     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5325     lt_cv_file_magic_test_file=/lib/libc.so
5326     ;;
5327   siemens)
5328     lt_cv_deplibs_check_method=pass_all
5329     ;;
5330   pc)
5331     lt_cv_deplibs_check_method=pass_all
5332     ;;
5333   esac
5334   ;;
5335
5336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5337   lt_cv_deplibs_check_method=pass_all
5338   ;;
5339 esac
5340
5341 fi
5342 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5343 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5344 file_magic_cmd=$lt_cv_file_magic_cmd
5345 deplibs_check_method=$lt_cv_deplibs_check_method
5346 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5347
5348
5349
5350
5351 # If no C compiler was specified, use CC.
5352 LTCC=${LTCC-"$CC"}
5353
5354 # If no C compiler flags were specified, use CFLAGS.
5355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5356
5357 # Allow CC to be a program name with arguments.
5358 compiler=$CC
5359
5360 # Check whether --enable-libtool-lock was given.
5361 if test "${enable_libtool_lock+set}" = set; then
5362   enableval=$enable_libtool_lock;
5363 fi
5364
5365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5366
5367 # Some flags need to be propagated to the compiler or linker for good
5368 # libtool support.
5369 case $host in
5370 ia64-*-hpux*)
5371   # Find out which ABI we are using.
5372   echo 'int i;' > conftest.$ac_ext
5373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374   (eval $ac_compile) 2>&5
5375   ac_status=$?
5376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); }; then
5378     case `/usr/bin/file conftest.$ac_objext` in
5379     *ELF-32*)
5380       HPUX_IA64_MODE="32"
5381       ;;
5382     *ELF-64*)
5383       HPUX_IA64_MODE="64"
5384       ;;
5385     esac
5386   fi
5387   rm -rf conftest*
5388   ;;
5389 *-*-irix6*)
5390   # Find out which ABI we are using.
5391   echo '#line 5391 "configure"' > conftest.$ac_ext
5392   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>&5
5394   ac_status=$?
5395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; then
5397    if test "$lt_cv_prog_gnu_ld" = yes; then
5398     case `/usr/bin/file conftest.$ac_objext` in
5399     *32-bit*)
5400       LD="${LD-ld} -melf32bsmip"
5401       ;;
5402     *N32*)
5403       LD="${LD-ld} -melf32bmipn32"
5404       ;;
5405     *64-bit*)
5406       LD="${LD-ld} -melf64bmip"
5407       ;;
5408     esac
5409    else
5410     case `/usr/bin/file conftest.$ac_objext` in
5411     *32-bit*)
5412       LD="${LD-ld} -32"
5413       ;;
5414     *N32*)
5415       LD="${LD-ld} -n32"
5416       ;;
5417     *64-bit*)
5418       LD="${LD-ld} -64"
5419       ;;
5420     esac
5421    fi
5422   fi
5423   rm -rf conftest*
5424   ;;
5425
5426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5427 s390*-*linux*|sparc*-*linux*)
5428   # Find out which ABI we are using.
5429   echo 'int i;' > conftest.$ac_ext
5430   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431   (eval $ac_compile) 2>&5
5432   ac_status=$?
5433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; then
5435     case `/usr/bin/file conftest.o` in
5436     *32-bit*)
5437       case $host in
5438         x86_64-*kfreebsd*-gnu)
5439           LD="${LD-ld} -m elf_i386_fbsd"
5440           ;;
5441         x86_64-*linux*)
5442           LD="${LD-ld} -m elf_i386"
5443           ;;
5444         ppc64-*linux*|powerpc64-*linux*)
5445           LD="${LD-ld} -m elf32ppclinux"
5446           ;;
5447         s390x-*linux*)
5448           LD="${LD-ld} -m elf_s390"
5449           ;;
5450         sparc64-*linux*)
5451           LD="${LD-ld} -m elf32_sparc"
5452           ;;
5453       esac
5454       ;;
5455     *64-bit*)
5456       libsuff=64
5457       case $host in
5458         x86_64-*kfreebsd*-gnu)
5459           LD="${LD-ld} -m elf_x86_64_fbsd"
5460           ;;
5461         x86_64-*linux*)
5462           LD="${LD-ld} -m elf_x86_64"
5463           ;;
5464         ppc*-*linux*|powerpc*-*linux*)
5465           LD="${LD-ld} -m elf64ppc"
5466           ;;
5467         s390*-*linux*)
5468           LD="${LD-ld} -m elf64_s390"
5469           ;;
5470         sparc*-*linux*)
5471           LD="${LD-ld} -m elf64_sparc"
5472           ;;
5473       esac
5474       ;;
5475     esac
5476   fi
5477   rm -rf conftest*
5478   ;;
5479
5480 *-*-sco3.2v5*)
5481   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5482   SAVE_CFLAGS="$CFLAGS"
5483   CFLAGS="$CFLAGS -belf"
5484   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5485 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5486 if test "${lt_cv_cc_needs_belf+set}" = set; then
5487   $as_echo_n "(cached) " >&6
5488 else
5489   ac_ext=c
5490 ac_cpp='$CPP $CPPFLAGS'
5491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5494
5495      cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501
5502 int
5503 main ()
5504 {
5505
5506   ;
5507   return 0;
5508 }
5509 _ACEOF
5510 rm -f conftest.$ac_objext conftest$ac_exeext
5511 if { (ac_try="$ac_link"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5517 $as_echo "$ac_try_echo") >&5
5518   (eval "$ac_link") 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } && {
5525          test -z "$ac_c_werror_flag" ||
5526          test ! -s conftest.err
5527        } && test -s conftest$ac_exeext && {
5528          test "$cross_compiling" = yes ||
5529          $as_test_x conftest$ac_exeext
5530        }; then
5531   lt_cv_cc_needs_belf=yes
5532 else
5533   $as_echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536         lt_cv_cc_needs_belf=no
5537 fi
5538
5539 rm -rf conftest.dSYM
5540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5541       conftest$ac_exeext conftest.$ac_ext
5542      ac_ext=c
5543 ac_cpp='$CPP $CPPFLAGS'
5544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5547
5548 fi
5549 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5550 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5551   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5552     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5553     CFLAGS="$SAVE_CFLAGS"
5554   fi
5555   ;;
5556 sparc*-*solaris*)
5557   # Find out which ABI we are using.
5558   echo 'int i;' > conftest.$ac_ext
5559   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560   (eval $ac_compile) 2>&5
5561   ac_status=$?
5562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; then
5564     case `/usr/bin/file conftest.o` in
5565     *64-bit*)
5566       case $lt_cv_prog_gnu_ld in
5567       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5568       *)
5569         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5570           LD="${LD-ld} -64"
5571         fi
5572         ;;
5573       esac
5574       ;;
5575     esac
5576   fi
5577   rm -rf conftest*
5578   ;;
5579
5580
5581 esac
5582
5583 need_locks="$enable_libtool_lock"
5584
5585
5586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5597                   inttypes.h stdint.h unistd.h
5598 do
5599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5601 $as_echo_n "checking for $ac_header... " >&6; }
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603   $as_echo_n "(cached) " >&6
5604 else
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 $ac_includes_default
5612
5613 #include <$ac_header>
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619   *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622 $as_echo "$ac_try_echo") >&5
5623   (eval "$ac_compile") 2>conftest.er1
5624   ac_status=$?
5625   grep -v '^ *+' conftest.er1 >conftest.err
5626   rm -f conftest.er1
5627   cat conftest.err >&5
5628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); } && {
5630          test -z "$ac_c_werror_flag" ||
5631          test ! -s conftest.err
5632        } && test -s conftest.$ac_objext; then
5633   eval "$as_ac_Header=yes"
5634 else
5635   $as_echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638         eval "$as_ac_Header=no"
5639 fi
5640
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 fi
5643 ac_res=`eval 'as_val=${'$as_ac_Header'}
5644                  $as_echo "$as_val"'`
5645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5646 $as_echo "$ac_res" >&6; }
5647 as_val=`eval 'as_val=${'$as_ac_Header'}
5648                  $as_echo "$as_val"'`
5649    if test "x$as_val" = x""yes; then
5650   cat >>confdefs.h <<_ACEOF
5651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5652 _ACEOF
5653
5654 fi
5655
5656 done
5657
5658
5659
5660 for ac_header in dlfcn.h
5661 do
5662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5664   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5665 $as_echo_n "checking for $ac_header... " >&6; }
5666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5667   $as_echo_n "(cached) " >&6
5668 fi
5669 ac_res=`eval 'as_val=${'$as_ac_Header'}
5670                  $as_echo "$as_val"'`
5671                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5672 $as_echo "$ac_res" >&6; }
5673 else
5674   # Is the header compilable?
5675 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5676 $as_echo_n "checking $ac_header usability... " >&6; }
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h.  */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h.  */
5683 $ac_includes_default
5684 #include <$ac_header>
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690   *) ac_try_echo=$ac_try;;
5691 esac
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694   (eval "$ac_compile") 2>conftest.er1
5695   ac_status=$?
5696   grep -v '^ *+' conftest.er1 >conftest.err
5697   rm -f conftest.er1
5698   cat conftest.err >&5
5699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); } && {
5701          test -z "$ac_c_werror_flag" ||
5702          test ! -s conftest.err
5703        } && test -s conftest.$ac_objext; then
5704   ac_header_compiler=yes
5705 else
5706   $as_echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709         ac_header_compiler=no
5710 fi
5711
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5714 $as_echo "$ac_header_compiler" >&6; }
5715
5716 # Is the header present?
5717 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5718 $as_echo_n "checking $ac_header presence... " >&6; }
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725 #include <$ac_header>
5726 _ACEOF
5727 if { (ac_try="$ac_cpp conftest.$ac_ext"
5728 case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733 $as_echo "$ac_try_echo") >&5
5734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } >/dev/null && {
5741          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5742          test ! -s conftest.err
5743        }; then
5744   ac_header_preproc=yes
5745 else
5746   $as_echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749   ac_header_preproc=no
5750 fi
5751
5752 rm -f conftest.err conftest.$ac_ext
5753 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5754 $as_echo "$ac_header_preproc" >&6; }
5755
5756 # So?  What about this header?
5757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5758   yes:no: )
5759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5760 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5762 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5763     ac_header_preproc=yes
5764     ;;
5765   no:yes:* )
5766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5767 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5769 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5770     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5771 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5773 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5777 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5778     ( cat <<\_ASBOX
5779 ## -------------------------------------------------------- ##
5780 ## Report this to enlightenment-devel@lists.sourceforge.net ##
5781 ## -------------------------------------------------------- ##
5782 _ASBOX
5783      ) | sed "s/^/$as_me: WARNING:     /" >&2
5784     ;;
5785 esac
5786 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5787 $as_echo_n "checking for $ac_header... " >&6; }
5788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5789   $as_echo_n "(cached) " >&6
5790 else
5791   eval "$as_ac_Header=\$ac_header_preproc"
5792 fi
5793 ac_res=`eval 'as_val=${'$as_ac_Header'}
5794                  $as_echo "$as_val"'`
5795                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5796 $as_echo "$ac_res" >&6; }
5797
5798 fi
5799 as_val=`eval 'as_val=${'$as_ac_Header'}
5800                  $as_echo "$as_val"'`
5801    if test "x$as_val" = x""yes; then
5802   cat >>confdefs.h <<_ACEOF
5803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804 _ACEOF
5805
5806 fi
5807
5808 done
5809
5810
5811 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5812 # find the maximum length of command line arguments
5813 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5816   $as_echo_n "(cached) " >&6
5817 else
5818     i=0
5819   teststring="ABCD"
5820
5821   case $build_os in
5822   msdosdjgpp*)
5823     # On DJGPP, this test can blow up pretty badly due to problems in libc
5824     # (any single argument exceeding 2000 bytes causes a buffer overrun
5825     # during glob expansion).  Even if it were fixed, the result of this
5826     # check would be larger than it should be.
5827     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5828     ;;
5829
5830   gnu*)
5831     # Under GNU Hurd, this test is not required because there is
5832     # no limit to the length of command line arguments.
5833     # Libtool will interpret -1 as no limit whatsoever
5834     lt_cv_sys_max_cmd_len=-1;
5835     ;;
5836
5837   cygwin* | mingw*)
5838     # On Win9x/ME, this test blows up -- it succeeds, but takes
5839     # about 5 minutes as the teststring grows exponentially.
5840     # Worse, since 9x/ME are not pre-emptively multitasking,
5841     # you end up with a "frozen" computer, even though with patience
5842     # the test eventually succeeds (with a max line length of 256k).
5843     # Instead, let's just punt: use the minimum linelength reported by
5844     # all of the supported platforms: 8192 (on NT/2K/XP).
5845     lt_cv_sys_max_cmd_len=8192;
5846     ;;
5847
5848   amigaos*)
5849     # On AmigaOS with pdksh, this test takes hours, literally.
5850     # So we just punt and use a minimum line length of 8192.
5851     lt_cv_sys_max_cmd_len=8192;
5852     ;;
5853
5854   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5855     # This has been around since 386BSD, at least.  Likely further.
5856     if test -x /sbin/sysctl; then
5857       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5858     elif test -x /usr/sbin/sysctl; then
5859       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5860     else
5861       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5862     fi
5863     # And add a safety zone
5864     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5865     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5866     ;;
5867
5868   interix*)
5869     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5870     lt_cv_sys_max_cmd_len=196608
5871     ;;
5872
5873   osf*)
5874     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5875     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5876     # nice to cause kernel panics so lets avoid the loop below.
5877     # First set a reasonable default.
5878     lt_cv_sys_max_cmd_len=16384
5879     #
5880     if test -x /sbin/sysconfig; then
5881       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5882         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5883       esac
5884     fi
5885     ;;
5886   sco3.2v5*)
5887     lt_cv_sys_max_cmd_len=102400
5888     ;;
5889   sysv5* | sco5v6* | sysv4.2uw2*)
5890     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5891     if test -n "$kargmax"; then
5892       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5893     else
5894       lt_cv_sys_max_cmd_len=32768
5895     fi
5896     ;;
5897   *)
5898     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5899     if test -n "$lt_cv_sys_max_cmd_len"; then
5900       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5901       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5902     else
5903       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5904       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5905                = "XX$teststring") >/dev/null 2>&1 &&
5906               new_result=`expr "X$teststring" : ".*" 2>&1` &&
5907               lt_cv_sys_max_cmd_len=$new_result &&
5908               test $i != 17 # 1/2 MB should be enough
5909       do
5910         i=`expr $i + 1`
5911         teststring=$teststring$teststring
5912       done
5913       teststring=
5914       # Add a significant safety factor because C++ compilers can tack on massive
5915       # amounts of additional arguments before passing them to the linker.
5916       # It appears as though 1/2 is a usable value.
5917       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5918     fi
5919     ;;
5920   esac
5921
5922 fi
5923
5924 if test -n $lt_cv_sys_max_cmd_len ; then
5925   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5926 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5927 else
5928   { $as_echo "$as_me:$LINENO: result: none" >&5
5929 $as_echo "none" >&6; }
5930 fi
5931
5932
5933
5934
5935
5936 # Check for command to grab the raw symbol name followed by C symbol from nm.
5937 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5938 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5939 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5940   $as_echo_n "(cached) " >&6
5941 else
5942
5943 # These are sane defaults that work on at least a few old systems.
5944 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5945
5946 # Character class describing NM global symbol codes.
5947 symcode='[BCDEGRST]'
5948
5949 # Regexp to match symbols that can be accessed directly from C.
5950 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5951
5952 # Transform an extracted symbol line into a proper C declaration
5953 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5954
5955 # Transform an extracted symbol line into symbol name and symbol address
5956 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5957
5958 # Define system-specific variables.
5959 case $host_os in
5960 aix*)
5961   symcode='[BCDT]'
5962   ;;
5963 cygwin* | mingw* | pw32*)
5964   symcode='[ABCDGISTW]'
5965   ;;
5966 hpux*) # Its linker distinguishes data from code symbols
5967   if test "$host_cpu" = ia64; then
5968     symcode='[ABCDEGRST]'
5969   fi
5970   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5971   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5972   ;;
5973 linux* | k*bsd*-gnu)
5974   if test "$host_cpu" = ia64; then
5975     symcode='[ABCDGIRSTW]'
5976     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5977     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5978   fi
5979   ;;
5980 irix* | nonstopux*)
5981   symcode='[BCDEGRST]'
5982   ;;
5983 osf*)
5984   symcode='[BCDEGQRST]'
5985   ;;
5986 solaris*)
5987   symcode='[BDRT]'
5988   ;;
5989 sco3.2v5*)
5990   symcode='[DT]'
5991   ;;
5992 sysv4.2uw2*)
5993   symcode='[DT]'
5994   ;;
5995 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5996   symcode='[ABDT]'
5997   ;;
5998 sysv4)
5999   symcode='[DFNSTU]'
6000   ;;
6001 esac
6002
6003 # Handle CRLF in mingw tool chain
6004 opt_cr=
6005 case $build_os in
6006 mingw*)
6007   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6008   ;;
6009 esac
6010
6011 # If we're using GNU nm, then use its standard symbol codes.
6012 case `$NM -V 2>&1` in
6013 *GNU* | *'with BFD'*)
6014   symcode='[ABCDGIRSTW]' ;;
6015 esac
6016
6017 # Try without a prefix undercore, then with it.
6018 for ac_symprfx in "" "_"; do
6019
6020   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6021   symxfrm="\\1 $ac_symprfx\\2 \\2"
6022
6023   # Write the raw and C identifiers.
6024   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6025
6026   # Check to see that the pipe works correctly.
6027   pipe_works=no
6028
6029   rm -f conftest*
6030   cat > conftest.$ac_ext <<EOF
6031 #ifdef __cplusplus
6032 extern "C" {
6033 #endif
6034 char nm_test_var;
6035 void nm_test_func(){}
6036 #ifdef __cplusplus
6037 }
6038 #endif
6039 int main(){nm_test_var='a';nm_test_func();return(0);}
6040 EOF
6041
6042   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043   (eval $ac_compile) 2>&5
6044   ac_status=$?
6045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); }; then
6047     # Now try to grab the symbols.
6048     nlist=conftest.nm
6049     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6050   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6051   ac_status=$?
6052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } && test -s "$nlist"; then
6054       # Try sorting and uniquifying the output.
6055       if sort "$nlist" | uniq > "$nlist"T; then
6056         mv -f "$nlist"T "$nlist"
6057       else
6058         rm -f "$nlist"T
6059       fi
6060
6061       # Make sure that we snagged all the symbols we need.
6062       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6063         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6064           cat <<EOF > conftest.$ac_ext
6065 #ifdef __cplusplus
6066 extern "C" {
6067 #endif
6068
6069 EOF
6070           # Now generate the symbol file.
6071           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6072
6073           cat <<EOF >> conftest.$ac_ext
6074 #if defined (__STDC__) && __STDC__
6075 # define lt_ptr_t void *
6076 #else
6077 # define lt_ptr_t char *
6078 # define const
6079 #endif
6080
6081 /* The mapping between symbol names and symbols. */
6082 const struct {
6083   const char *name;
6084   lt_ptr_t address;
6085 }
6086 lt_preloaded_symbols[] =
6087 {
6088 EOF
6089           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6090           cat <<\EOF >> conftest.$ac_ext
6091   {0, (lt_ptr_t) 0}
6092 };
6093
6094 #ifdef __cplusplus
6095 }
6096 #endif
6097 EOF
6098           # Now try linking the two files.
6099           mv conftest.$ac_objext conftstm.$ac_objext
6100           lt_save_LIBS="$LIBS"
6101           lt_save_CFLAGS="$CFLAGS"
6102           LIBS="conftstm.$ac_objext"
6103           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6104           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105   (eval $ac_link) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6109             pipe_works=yes
6110           fi
6111           LIBS="$lt_save_LIBS"
6112           CFLAGS="$lt_save_CFLAGS"
6113         else
6114           echo "cannot find nm_test_func in $nlist" >&5
6115         fi
6116       else
6117         echo "cannot find nm_test_var in $nlist" >&5
6118       fi
6119     else
6120       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6121     fi
6122   else
6123     echo "$progname: failed program was:" >&5
6124     cat conftest.$ac_ext >&5
6125   fi
6126   rm -rf conftest* conftst*
6127
6128   # Do not use the global_symbol_pipe unless it works.
6129   if test "$pipe_works" = yes; then
6130     break
6131   else
6132     lt_cv_sys_global_symbol_pipe=
6133   fi
6134 done
6135
6136 fi
6137
6138 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6139   lt_cv_sys_global_symbol_to_cdecl=
6140 fi
6141 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6142   { $as_echo "$as_me:$LINENO: result: failed" >&5
6143 $as_echo "failed" >&6; }
6144 else
6145   { $as_echo "$as_me:$LINENO: result: ok" >&5
6146 $as_echo "ok" >&6; }
6147 fi
6148
6149 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6150 $as_echo_n "checking for objdir... " >&6; }
6151 if test "${lt_cv_objdir+set}" = set; then
6152   $as_echo_n "(cached) " >&6
6153 else
6154   rm -f .libs 2>/dev/null
6155 mkdir .libs 2>/dev/null
6156 if test -d .libs; then
6157   lt_cv_objdir=.libs
6158 else
6159   # MS-DOS does not allow filenames that begin with a dot.
6160   lt_cv_objdir=_libs
6161 fi
6162 rmdir .libs 2>/dev/null
6163 fi
6164 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6165 $as_echo "$lt_cv_objdir" >&6; }
6166 objdir=$lt_cv_objdir
6167
6168
6169
6170
6171
6172 case $host_os in
6173 aix3*)
6174   # AIX sometimes has problems with the GCC collect2 program.  For some
6175   # reason, if we set the COLLECT_NAMES environment variable, the problems
6176   # vanish in a puff of smoke.
6177   if test "X${COLLECT_NAMES+set}" != Xset; then
6178     COLLECT_NAMES=
6179     export COLLECT_NAMES
6180   fi
6181   ;;
6182 esac
6183
6184 # Sed substitution that helps us do robust quoting.  It backslashifies
6185 # metacharacters that are still active within double-quoted strings.
6186 Xsed='sed -e 1s/^X//'
6187 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6188
6189 # Same as above, but do not quote variable references.
6190 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6191
6192 # Sed substitution to delay expansion of an escaped shell variable in a
6193 # double_quote_subst'ed string.
6194 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6195
6196 # Sed substitution to avoid accidental globbing in evaled expressions
6197 no_glob_subst='s/\*/\\\*/g'
6198
6199 # Constants:
6200 rm="rm -f"
6201
6202 # Global variables:
6203 default_ofile=libtool
6204 can_build_shared=yes
6205
6206 # All known linkers require a `.a' archive for static linking (except MSVC,
6207 # which needs '.lib').
6208 libext=a
6209 ltmain="$ac_aux_dir/ltmain.sh"
6210 ofile="$default_ofile"
6211 with_gnu_ld="$lt_cv_prog_gnu_ld"
6212
6213 if test -n "$ac_tool_prefix"; then
6214   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}ar; ac_word=$2
6216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if test "${ac_cv_prog_AR+set}" = set; then
6219   $as_echo_n "(cached) " >&6
6220 else
6221   if test -n "$AR"; then
6222   ac_cv_prog_AR="$AR" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229   for ac_exec_ext in '' $ac_executable_extensions; do
6230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231     ac_cv_prog_AR="${ac_tool_prefix}ar"
6232     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236 done
6237 IFS=$as_save_IFS
6238
6239 fi
6240 fi
6241 AR=$ac_cv_prog_AR
6242 if test -n "$AR"; then
6243   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6244 $as_echo "$AR" >&6; }
6245 else
6246   { $as_echo "$as_me:$LINENO: result: no" >&5
6247 $as_echo "no" >&6; }
6248 fi
6249
6250
6251 fi
6252 if test -z "$ac_cv_prog_AR"; then
6253   ac_ct_AR=$AR
6254   # Extract the first word of "ar", so it can be a program name with args.
6255 set dummy ar; ac_word=$2
6256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6259   $as_echo_n "(cached) " >&6
6260 else
6261   if test -n "$ac_ct_AR"; then
6262   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269   for ac_exec_ext in '' $ac_executable_extensions; do
6270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271     ac_cv_prog_ac_ct_AR="ar"
6272     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 fi
6280 fi
6281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282 if test -n "$ac_ct_AR"; then
6283   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6284 $as_echo "$ac_ct_AR" >&6; }
6285 else
6286   { $as_echo "$as_me:$LINENO: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6289
6290   if test "x$ac_ct_AR" = x; then
6291     AR="false"
6292   else
6293     case $cross_compiling:$ac_tool_warned in
6294 yes:)
6295 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6298 esac
6299     AR=$ac_ct_AR
6300   fi
6301 else
6302   AR="$ac_cv_prog_AR"
6303 fi
6304
6305 if test -n "$ac_tool_prefix"; then
6306   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if test "${ac_cv_prog_RANLIB+set}" = set; then
6311   $as_echo_n "(cached) " >&6
6312 else
6313   if test -n "$RANLIB"; then
6314   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321   for ac_exec_ext in '' $ac_executable_extensions; do
6322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325     break 2
6326   fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 RANLIB=$ac_cv_prog_RANLIB
6334 if test -n "$RANLIB"; then
6335   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6336 $as_echo "$RANLIB" >&6; }
6337 else
6338   { $as_echo "$as_me:$LINENO: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_RANLIB"; then
6345   ac_ct_RANLIB=$RANLIB
6346   # Extract the first word of "ranlib", so it can be a program name with args.
6347 set dummy ranlib; ac_word=$2
6348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6351   $as_echo_n "(cached) " >&6
6352 else
6353   if test -n "$ac_ct_RANLIB"; then
6354   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361   for ac_exec_ext in '' $ac_executable_extensions; do
6362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363     ac_cv_prog_ac_ct_RANLIB="ranlib"
6364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6374 if test -n "$ac_ct_RANLIB"; then
6375   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6376 $as_echo "$ac_ct_RANLIB" >&6; }
6377 else
6378   { $as_echo "$as_me:$LINENO: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382   if test "x$ac_ct_RANLIB" = x; then
6383     RANLIB=":"
6384   else
6385     case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391     RANLIB=$ac_ct_RANLIB
6392   fi
6393 else
6394   RANLIB="$ac_cv_prog_RANLIB"
6395 fi
6396
6397 if test -n "$ac_tool_prefix"; then
6398   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}strip; ac_word=$2
6400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_STRIP+set}" = set; then
6403   $as_echo_n "(cached) " >&6
6404 else
6405   if test -n "$STRIP"; then
6406   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413   for ac_exec_ext in '' $ac_executable_extensions; do
6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6416     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 STRIP=$ac_cv_prog_STRIP
6426 if test -n "$STRIP"; then
6427   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6428 $as_echo "$STRIP" >&6; }
6429 else
6430   { $as_echo "$as_me:$LINENO: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_STRIP"; then
6437   ac_ct_STRIP=$STRIP
6438   # Extract the first word of "strip", so it can be a program name with args.
6439 set dummy strip; ac_word=$2
6440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$ac_ct_STRIP"; then
6446   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453   for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_ac_ct_STRIP="strip"
6456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6466 if test -n "$ac_ct_STRIP"; then
6467   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6468 $as_echo "$ac_ct_STRIP" >&6; }
6469 else
6470   { $as_echo "$as_me:$LINENO: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474   if test "x$ac_ct_STRIP" = x; then
6475     STRIP=":"
6476   else
6477     case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483     STRIP=$ac_ct_STRIP
6484   fi
6485 else
6486   STRIP="$ac_cv_prog_STRIP"
6487 fi
6488
6489
6490 old_CC="$CC"
6491 old_CFLAGS="$CFLAGS"
6492
6493 # Set sane defaults for various variables
6494 test -z "$AR" && AR=ar
6495 test -z "$AR_FLAGS" && AR_FLAGS=cru
6496 test -z "$AS" && AS=as
6497 test -z "$CC" && CC=cc
6498 test -z "$LTCC" && LTCC=$CC
6499 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6500 test -z "$DLLTOOL" && DLLTOOL=dlltool
6501 test -z "$LD" && LD=ld
6502 test -z "$LN_S" && LN_S="ln -s"
6503 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6504 test -z "$NM" && NM=nm
6505 test -z "$SED" && SED=sed
6506 test -z "$OBJDUMP" && OBJDUMP=objdump
6507 test -z "$RANLIB" && RANLIB=:
6508 test -z "$STRIP" && STRIP=:
6509 test -z "$ac_objext" && ac_objext=o
6510
6511 # Determine commands to create old-style static archives.
6512 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6513 old_postinstall_cmds='chmod 644 $oldlib'
6514 old_postuninstall_cmds=
6515
6516 if test -n "$RANLIB"; then
6517   case $host_os in
6518   openbsd*)
6519     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6520     ;;
6521   *)
6522     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6523     ;;
6524   esac
6525   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6526 fi
6527
6528 for cc_temp in $compiler""; do
6529   case $cc_temp in
6530     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6531     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6532     \-*) ;;
6533     *) break;;
6534   esac
6535 done
6536 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6537
6538
6539 # Only perform the check for file, if the check method requires it
6540 case $deplibs_check_method in
6541 file_magic*)
6542   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6543     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6544 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6545 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6546   $as_echo_n "(cached) " >&6
6547 else
6548   case $MAGIC_CMD in
6549 [\\/*] |  ?:[\\/]*)
6550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6551   ;;
6552 *)
6553   lt_save_MAGIC_CMD="$MAGIC_CMD"
6554   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6555   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6556   for ac_dir in $ac_dummy; do
6557     IFS="$lt_save_ifs"
6558     test -z "$ac_dir" && ac_dir=.
6559     if test -f $ac_dir/${ac_tool_prefix}file; then
6560       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6561       if test -n "$file_magic_test_file"; then
6562         case $deplibs_check_method in
6563         "file_magic "*)
6564           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6567             $EGREP "$file_magic_regex" > /dev/null; then
6568             :
6569           else
6570             cat <<EOF 1>&2
6571
6572 *** Warning: the command libtool uses to detect shared libraries,
6573 *** $file_magic_cmd, produces output that libtool cannot recognize.
6574 *** The result is that libtool may fail to recognize shared libraries
6575 *** as such.  This will affect the creation of libtool libraries that
6576 *** depend on shared libraries, but programs linked with such libtool
6577 *** libraries will work regardless of this problem.  Nevertheless, you
6578 *** may want to report the problem to your system manager and/or to
6579 *** bug-libtool@gnu.org
6580
6581 EOF
6582           fi ;;
6583         esac
6584       fi
6585       break
6586     fi
6587   done
6588   IFS="$lt_save_ifs"
6589   MAGIC_CMD="$lt_save_MAGIC_CMD"
6590   ;;
6591 esac
6592 fi
6593
6594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6595 if test -n "$MAGIC_CMD"; then
6596   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6597 $as_echo "$MAGIC_CMD" >&6; }
6598 else
6599   { $as_echo "$as_me:$LINENO: result: no" >&5
6600 $as_echo "no" >&6; }
6601 fi
6602
6603 if test -z "$lt_cv_path_MAGIC_CMD"; then
6604   if test -n "$ac_tool_prefix"; then
6605     { $as_echo "$as_me:$LINENO: checking for file" >&5
6606 $as_echo_n "checking for file... " >&6; }
6607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6608   $as_echo_n "(cached) " >&6
6609 else
6610   case $MAGIC_CMD in
6611 [\\/*] |  ?:[\\/]*)
6612   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6613   ;;
6614 *)
6615   lt_save_MAGIC_CMD="$MAGIC_CMD"
6616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6617   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6618   for ac_dir in $ac_dummy; do
6619     IFS="$lt_save_ifs"
6620     test -z "$ac_dir" && ac_dir=.
6621     if test -f $ac_dir/file; then
6622       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6623       if test -n "$file_magic_test_file"; then
6624         case $deplibs_check_method in
6625         "file_magic "*)
6626           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6627           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6628           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6629             $EGREP "$file_magic_regex" > /dev/null; then
6630             :
6631           else
6632             cat <<EOF 1>&2
6633
6634 *** Warning: the command libtool uses to detect shared libraries,
6635 *** $file_magic_cmd, produces output that libtool cannot recognize.
6636 *** The result is that libtool may fail to recognize shared libraries
6637 *** as such.  This will affect the creation of libtool libraries that
6638 *** depend on shared libraries, but programs linked with such libtool
6639 *** libraries will work regardless of this problem.  Nevertheless, you
6640 *** may want to report the problem to your system manager and/or to
6641 *** bug-libtool@gnu.org
6642
6643 EOF
6644           fi ;;
6645         esac
6646       fi
6647       break
6648     fi
6649   done
6650   IFS="$lt_save_ifs"
6651   MAGIC_CMD="$lt_save_MAGIC_CMD"
6652   ;;
6653 esac
6654 fi
6655
6656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6657 if test -n "$MAGIC_CMD"; then
6658   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6659 $as_echo "$MAGIC_CMD" >&6; }
6660 else
6661   { $as_echo "$as_me:$LINENO: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665   else
6666     MAGIC_CMD=:
6667   fi
6668 fi
6669
6670   fi
6671   ;;
6672 esac
6673
6674
6675   case $host_os in
6676     rhapsody* | darwin*)
6677     if test -n "$ac_tool_prefix"; then
6678   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6683   $as_echo_n "(cached) " >&6
6684 else
6685   if test -n "$DSYMUTIL"; then
6686   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6696     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6706 if test -n "$DSYMUTIL"; then
6707   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6708 $as_echo "$DSYMUTIL" >&6; }
6709 else
6710   { $as_echo "$as_me:$LINENO: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714
6715 fi
6716 if test -z "$ac_cv_prog_DSYMUTIL"; then
6717   ac_ct_DSYMUTIL=$DSYMUTIL
6718   # Extract the first word of "dsymutil", so it can be a program name with args.
6719 set dummy dsymutil; ac_word=$2
6720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6723   $as_echo_n "(cached) " >&6
6724 else
6725   if test -n "$ac_ct_DSYMUTIL"; then
6726   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6736     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6746 if test -n "$ac_ct_DSYMUTIL"; then
6747   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6748 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6749 else
6750   { $as_echo "$as_me:$LINENO: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754   if test "x$ac_ct_DSYMUTIL" = x; then
6755     DSYMUTIL=":"
6756   else
6757     case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763     DSYMUTIL=$ac_ct_DSYMUTIL
6764   fi
6765 else
6766   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6767 fi
6768
6769     if test -n "$ac_tool_prefix"; then
6770   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6771 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6772 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6775   $as_echo_n "(cached) " >&6
6776 else
6777   if test -n "$NMEDIT"; then
6778   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6788     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 NMEDIT=$ac_cv_prog_NMEDIT
6798 if test -n "$NMEDIT"; then
6799   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6800 $as_echo "$NMEDIT" >&6; }
6801 else
6802   { $as_echo "$as_me:$LINENO: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806
6807 fi
6808 if test -z "$ac_cv_prog_NMEDIT"; then
6809   ac_ct_NMEDIT=$NMEDIT
6810   # Extract the first word of "nmedit", so it can be a program name with args.
6811 set dummy nmedit; ac_word=$2
6812 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6815   $as_echo_n "(cached) " >&6
6816 else
6817   if test -n "$ac_ct_NMEDIT"; then
6818   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823   IFS=$as_save_IFS
6824   test -z "$as_dir" && as_dir=.
6825   for ac_exec_ext in '' $ac_executable_extensions; do
6826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6828     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829     break 2
6830   fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6838 if test -n "$ac_ct_NMEDIT"; then
6839   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6840 $as_echo "$ac_ct_NMEDIT" >&6; }
6841 else
6842   { $as_echo "$as_me:$LINENO: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846   if test "x$ac_ct_NMEDIT" = x; then
6847     NMEDIT=":"
6848   else
6849     case $cross_compiling:$ac_tool_warned in
6850 yes:)
6851 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6853 ac_tool_warned=yes ;;
6854 esac
6855     NMEDIT=$ac_ct_NMEDIT
6856   fi
6857 else
6858   NMEDIT="$ac_cv_prog_NMEDIT"
6859 fi
6860
6861
6862     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6863 $as_echo_n "checking for -single_module linker flag... " >&6; }
6864 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6865   $as_echo_n "(cached) " >&6
6866 else
6867   lt_cv_apple_cc_single_mod=no
6868       if test -z "${LT_MULTI_MODULE}"; then
6869    # By default we will add the -single_module flag. You can override
6870    # by either setting the environment variable LT_MULTI_MODULE
6871    # non-empty at configure time, or by adding -multi_module to the
6872    # link flags.
6873    echo "int foo(void){return 1;}" > conftest.c
6874    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6875      -dynamiclib ${wl}-single_module conftest.c
6876    if test -f libconftest.dylib; then
6877      lt_cv_apple_cc_single_mod=yes
6878      rm -rf libconftest.dylib*
6879    fi
6880    rm conftest.c
6881       fi
6882 fi
6883 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6884 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6885     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6886 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6887 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6888   $as_echo_n "(cached) " >&6
6889 else
6890   lt_cv_ld_exported_symbols_list=no
6891       save_LDFLAGS=$LDFLAGS
6892       echo "_main" > conftest.sym
6893       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6894       cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h.  */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h.  */
6900
6901 int
6902 main ()
6903 {
6904
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913   *) ac_try_echo=$ac_try;;
6914 esac
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917   (eval "$ac_link") 2>conftest.er1
6918   ac_status=$?
6919   grep -v '^ *+' conftest.er1 >conftest.err
6920   rm -f conftest.er1
6921   cat conftest.err >&5
6922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); } && {
6924          test -z "$ac_c_werror_flag" ||
6925          test ! -s conftest.err
6926        } && test -s conftest$ac_exeext && {
6927          test "$cross_compiling" = yes ||
6928          $as_test_x conftest$ac_exeext
6929        }; then
6930   lt_cv_ld_exported_symbols_list=yes
6931 else
6932   $as_echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935         lt_cv_ld_exported_symbols_list=no
6936 fi
6937
6938 rm -rf conftest.dSYM
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940       conftest$ac_exeext conftest.$ac_ext
6941    LDFLAGS="$save_LDFLAGS"
6942
6943 fi
6944 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6946     case $host_os in
6947     rhapsody* | darwin1.[0123])
6948       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6949     darwin1.*)
6950      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6951     darwin*)
6952       # if running on 10.5 or later, the deployment target defaults
6953       # to the OS version, if on x86, and 10.4, the deployment
6954       # target defaults to 10.4. Don't you love it?
6955       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6956    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6957      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6958    10.[012]*)
6959      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6960    10.*)
6961      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6962       esac
6963     ;;
6964   esac
6965     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6966       _lt_dar_single_mod='$single_module'
6967     fi
6968     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6969       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6970     else
6971       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6972     fi
6973     if test "$DSYMUTIL" != ":"; then
6974       _lt_dsymutil="~$DSYMUTIL \$lib || :"
6975     else
6976       _lt_dsymutil=
6977     fi
6978     ;;
6979   esac
6980
6981
6982 enable_dlopen=yes
6983 enable_win32_dll=no
6984
6985 # Check whether --enable-libtool-lock was given.
6986 if test "${enable_libtool_lock+set}" = set; then
6987   enableval=$enable_libtool_lock;
6988 fi
6989
6990 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6991
6992
6993 # Check whether --with-pic was given.
6994 if test "${with_pic+set}" = set; then
6995   withval=$with_pic; pic_mode="$withval"
6996 else
6997   pic_mode=default
6998 fi
6999
7000 test -z "$pic_mode" && pic_mode=default
7001
7002 # Use C for the default configuration in the libtool script
7003 tagname=
7004 lt_save_CC="$CC"
7005 ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
7011
7012 # Source file extension for C test sources.
7013 ac_ext=c
7014
7015 # Object file extension for compiled C test sources.
7016 objext=o
7017 objext=$objext
7018
7019 # Code to be used in simple compile tests
7020 lt_simple_compile_test_code="int some_variable = 0;"
7021
7022 # Code to be used in simple link tests
7023 lt_simple_link_test_code='int main(){return(0);}'
7024
7025
7026 # If no C compiler was specified, use CC.
7027 LTCC=${LTCC-"$CC"}
7028
7029 # If no C compiler flags were specified, use CFLAGS.
7030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7031
7032 # Allow CC to be a program name with arguments.
7033 compiler=$CC
7034
7035
7036 # save warnings/boilerplate of simple test code
7037 ac_outfile=conftest.$ac_objext
7038 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7039 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7040 _lt_compiler_boilerplate=`cat conftest.err`
7041 $rm conftest*
7042
7043 ac_outfile=conftest.$ac_objext
7044 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7045 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7046 _lt_linker_boilerplate=`cat conftest.err`
7047 $rm -r conftest*
7048
7049
7050
7051 lt_prog_compiler_no_builtin_flag=
7052
7053 if test "$GCC" = yes; then
7054   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7055
7056
7057 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7058 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7059 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7060   $as_echo_n "(cached) " >&6
7061 else
7062   lt_cv_prog_compiler_rtti_exceptions=no
7063   ac_outfile=conftest.$ac_objext
7064    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7065    lt_compiler_flag="-fno-rtti -fno-exceptions"
7066    # Insert the option either (1) after the last *FLAGS variable, or
7067    # (2) before a word containing "conftest.", or (3) at the end.
7068    # Note that $ac_compile itself does not contain backslashes and begins
7069    # with a dollar sign (not a hyphen), so the echo should work correctly.
7070    # The option is referenced via a variable to avoid confusing sed.
7071    lt_compile=`echo "$ac_compile" | $SED \
7072    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7073    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7074    -e 's:$: $lt_compiler_flag:'`
7075    (eval echo "\"\$as_me:7075: $lt_compile\"" >&5)
7076    (eval "$lt_compile" 2>conftest.err)
7077    ac_status=$?
7078    cat conftest.err >&5
7079    echo "$as_me:7079: \$? = $ac_status" >&5
7080    if (exit $ac_status) && test -s "$ac_outfile"; then
7081      # The compiler can only warn and ignore the option if not recognized
7082      # So say no if there are warnings other than the usual output.
7083      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7084      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7085      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7086        lt_cv_prog_compiler_rtti_exceptions=yes
7087      fi
7088    fi
7089    $rm conftest*
7090
7091 fi
7092 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7093 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7094
7095 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7096     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7097 else
7098     :
7099 fi
7100
7101 fi
7102
7103 lt_prog_compiler_wl=
7104 lt_prog_compiler_pic=
7105 lt_prog_compiler_static=
7106
7107 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7108 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7109
7110   if test "$GCC" = yes; then
7111     lt_prog_compiler_wl='-Wl,'
7112     lt_prog_compiler_static='-static'
7113
7114     case $host_os in
7115       aix*)
7116       # All AIX code is PIC.
7117       if test "$host_cpu" = ia64; then
7118         # AIX 5 now supports IA64 processor
7119         lt_prog_compiler_static='-Bstatic'
7120       fi
7121       ;;
7122
7123     amigaos*)
7124       # FIXME: we need at least 68020 code to build shared libraries, but
7125       # adding the `-m68020' flag to GCC prevents building anything better,
7126       # like `-m68040'.
7127       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7128       ;;
7129
7130     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7131       # PIC is the default for these OSes.
7132       ;;
7133
7134     mingw* | cygwin* | pw32* | os2*)
7135       # This hack is so that the source file can tell whether it is being
7136       # built for inclusion in a dll (and should export symbols for example).
7137       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7138       # (--disable-auto-import) libraries
7139       lt_prog_compiler_pic='-DDLL_EXPORT'
7140       ;;
7141
7142     darwin* | rhapsody*)
7143       # PIC is the default on this platform
7144       # Common symbols not allowed in MH_DYLIB files
7145       lt_prog_compiler_pic='-fno-common'
7146       ;;
7147
7148     interix[3-9]*)
7149       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7150       # Instead, we relocate shared libraries at runtime.
7151       ;;
7152
7153     msdosdjgpp*)
7154       # Just because we use GCC doesn't mean we suddenly get shared libraries
7155       # on systems that don't support them.
7156       lt_prog_compiler_can_build_shared=no
7157       enable_shared=no
7158       ;;
7159
7160     sysv4*MP*)
7161       if test -d /usr/nec; then
7162         lt_prog_compiler_pic=-Kconform_pic
7163       fi
7164       ;;
7165
7166     hpux*)
7167       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7168       # not for PA HP-UX.
7169       case $host_cpu in
7170       hppa*64*|ia64*)
7171         # +Z the default
7172         ;;
7173       *)
7174         lt_prog_compiler_pic='-fPIC'
7175         ;;
7176       esac
7177       ;;
7178
7179     *)
7180       lt_prog_compiler_pic='-fPIC'
7181       ;;
7182     esac
7183   else
7184     # PORTME Check for flag to pass linker flags through the system compiler.
7185     case $host_os in
7186     aix*)
7187       lt_prog_compiler_wl='-Wl,'
7188       if test "$host_cpu" = ia64; then
7189         # AIX 5 now supports IA64 processor
7190         lt_prog_compiler_static='-Bstatic'
7191       else
7192         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7193       fi
7194       ;;
7195       darwin*)
7196         # PIC is the default on this platform
7197         # Common symbols not allowed in MH_DYLIB files
7198        case $cc_basename in
7199          xlc*)
7200          lt_prog_compiler_pic='-qnocommon'
7201          lt_prog_compiler_wl='-Wl,'
7202          ;;
7203        esac
7204        ;;
7205
7206     mingw* | cygwin* | pw32* | os2*)
7207       # This hack is so that the source file can tell whether it is being
7208       # built for inclusion in a dll (and should export symbols for example).
7209       lt_prog_compiler_pic='-DDLL_EXPORT'
7210       ;;
7211
7212     hpux9* | hpux10* | hpux11*)
7213       lt_prog_compiler_wl='-Wl,'
7214       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7215       # not for PA HP-UX.
7216       case $host_cpu in
7217       hppa*64*|ia64*)
7218         # +Z the default
7219         ;;
7220       *)
7221         lt_prog_compiler_pic='+Z'
7222         ;;
7223       esac
7224       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7225       lt_prog_compiler_static='${wl}-a ${wl}archive'
7226       ;;
7227
7228     irix5* | irix6* | nonstopux*)
7229       lt_prog_compiler_wl='-Wl,'
7230       # PIC (with -KPIC) is the default.
7231       lt_prog_compiler_static='-non_shared'
7232       ;;
7233
7234     newsos6)
7235       lt_prog_compiler_pic='-KPIC'
7236       lt_prog_compiler_static='-Bstatic'
7237       ;;
7238
7239     linux* | k*bsd*-gnu)
7240       case $cc_basename in
7241       icc* | ecc*)
7242         lt_prog_compiler_wl='-Wl,'
7243         lt_prog_compiler_pic='-KPIC'
7244         lt_prog_compiler_static='-static'
7245         ;;
7246       pgcc* | pgf77* | pgf90* | pgf95*)
7247         # Portland Group compilers (*not* the Pentium gcc compiler,
7248         # which looks to be a dead project)
7249         lt_prog_compiler_wl='-Wl,'
7250         lt_prog_compiler_pic='-fpic'
7251         lt_prog_compiler_static='-Bstatic'
7252         ;;
7253       ccc*)
7254         lt_prog_compiler_wl='-Wl,'
7255         # All Alpha code is PIC.
7256         lt_prog_compiler_static='-non_shared'
7257         ;;
7258       *)
7259         case `$CC -V 2>&1 | sed 5q` in
7260         *Sun\ C*)
7261           # Sun C 5.9
7262           lt_prog_compiler_pic='-KPIC'
7263           lt_prog_compiler_static='-Bstatic'
7264           lt_prog_compiler_wl='-Wl,'
7265           ;;
7266         *Sun\ F*)
7267           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7268           lt_prog_compiler_pic='-KPIC'
7269           lt_prog_compiler_static='-Bstatic'
7270           lt_prog_compiler_wl=''
7271           ;;
7272         esac
7273         ;;
7274       esac
7275       ;;
7276
7277     osf3* | osf4* | osf5*)
7278       lt_prog_compiler_wl='-Wl,'
7279       # All OSF/1 code is PIC.
7280       lt_prog_compiler_static='-non_shared'
7281       ;;
7282
7283     rdos*)
7284       lt_prog_compiler_static='-non_shared'
7285       ;;
7286
7287     solaris*)
7288       lt_prog_compiler_pic='-KPIC'
7289       lt_prog_compiler_static='-Bstatic'
7290       case $cc_basename in
7291       f77* | f90* | f95*)
7292         lt_prog_compiler_wl='-Qoption ld ';;
7293       *)
7294         lt_prog_compiler_wl='-Wl,';;
7295       esac
7296       ;;
7297
7298     sunos4*)
7299       lt_prog_compiler_wl='-Qoption ld '
7300       lt_prog_compiler_pic='-PIC'
7301       lt_prog_compiler_static='-Bstatic'
7302       ;;
7303
7304     sysv4 | sysv4.2uw2* | sysv4.3*)
7305       lt_prog_compiler_wl='-Wl,'
7306       lt_prog_compiler_pic='-KPIC'
7307       lt_prog_compiler_static='-Bstatic'
7308       ;;
7309
7310     sysv4*MP*)
7311       if test -d /usr/nec ;then
7312         lt_prog_compiler_pic='-Kconform_pic'
7313         lt_prog_compiler_static='-Bstatic'
7314       fi
7315       ;;
7316
7317     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7318       lt_prog_compiler_wl='-Wl,'
7319       lt_prog_compiler_pic='-KPIC'
7320       lt_prog_compiler_static='-Bstatic'
7321       ;;
7322
7323     unicos*)
7324       lt_prog_compiler_wl='-Wl,'
7325       lt_prog_compiler_can_build_shared=no
7326       ;;
7327
7328     uts4*)
7329       lt_prog_compiler_pic='-pic'
7330       lt_prog_compiler_static='-Bstatic'
7331       ;;
7332
7333     *)
7334       lt_prog_compiler_can_build_shared=no
7335       ;;
7336     esac
7337   fi
7338
7339 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7340 $as_echo "$lt_prog_compiler_pic" >&6; }
7341
7342 #
7343 # Check to make sure the PIC flag actually works.
7344 #
7345 if test -n "$lt_prog_compiler_pic"; then
7346
7347 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7348 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7349 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7350   $as_echo_n "(cached) " >&6
7351 else
7352   lt_cv_prog_compiler_pic_works=no
7353   ac_outfile=conftest.$ac_objext
7354    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7355    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7356    # Insert the option either (1) after the last *FLAGS variable, or
7357    # (2) before a word containing "conftest.", or (3) at the end.
7358    # Note that $ac_compile itself does not contain backslashes and begins
7359    # with a dollar sign (not a hyphen), so the echo should work correctly.
7360    # The option is referenced via a variable to avoid confusing sed.
7361    lt_compile=`echo "$ac_compile" | $SED \
7362    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7364    -e 's:$: $lt_compiler_flag:'`
7365    (eval echo "\"\$as_me:7365: $lt_compile\"" >&5)
7366    (eval "$lt_compile" 2>conftest.err)
7367    ac_status=$?
7368    cat conftest.err >&5
7369    echo "$as_me:7369: \$? = $ac_status" >&5
7370    if (exit $ac_status) && test -s "$ac_outfile"; then
7371      # The compiler can only warn and ignore the option if not recognized
7372      # So say no if there are warnings other than the usual output.
7373      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7374      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7375      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7376        lt_cv_prog_compiler_pic_works=yes
7377      fi
7378    fi
7379    $rm conftest*
7380
7381 fi
7382 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7383 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7384
7385 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7386     case $lt_prog_compiler_pic in
7387      "" | " "*) ;;
7388      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7389      esac
7390 else
7391     lt_prog_compiler_pic=
7392      lt_prog_compiler_can_build_shared=no
7393 fi
7394
7395 fi
7396 case $host_os in
7397   # For platforms which do not support PIC, -DPIC is meaningless:
7398   *djgpp*)
7399     lt_prog_compiler_pic=
7400     ;;
7401   *)
7402     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7403     ;;
7404 esac
7405
7406 #
7407 # Check to make sure the static flag actually works.
7408 #
7409 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7410 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7411 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7412 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415   lt_cv_prog_compiler_static_works=no
7416    save_LDFLAGS="$LDFLAGS"
7417    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7418    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7419    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7420      # The linker can only warn and ignore the option if not recognized
7421      # So say no if there are warnings
7422      if test -s conftest.err; then
7423        # Append any errors to the config.log.
7424        cat conftest.err 1>&5
7425        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7426        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427        if diff conftest.exp conftest.er2 >/dev/null; then
7428          lt_cv_prog_compiler_static_works=yes
7429        fi
7430      else
7431        lt_cv_prog_compiler_static_works=yes
7432      fi
7433    fi
7434    $rm -r conftest*
7435    LDFLAGS="$save_LDFLAGS"
7436
7437 fi
7438 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7439 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7440
7441 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7442     :
7443 else
7444     lt_prog_compiler_static=
7445 fi
7446
7447
7448 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7450 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7451   $as_echo_n "(cached) " >&6
7452 else
7453   lt_cv_prog_compiler_c_o=no
7454    $rm -r conftest 2>/dev/null
7455    mkdir conftest
7456    cd conftest
7457    mkdir out
7458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7459
7460    lt_compiler_flag="-o out/conftest2.$ac_objext"
7461    # Insert the option either (1) after the last *FLAGS variable, or
7462    # (2) before a word containing "conftest.", or (3) at the end.
7463    # Note that $ac_compile itself does not contain backslashes and begins
7464    # with a dollar sign (not a hyphen), so the echo should work correctly.
7465    lt_compile=`echo "$ac_compile" | $SED \
7466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7468    -e 's:$: $lt_compiler_flag:'`
7469    (eval echo "\"\$as_me:7469: $lt_compile\"" >&5)
7470    (eval "$lt_compile" 2>out/conftest.err)
7471    ac_status=$?
7472    cat out/conftest.err >&5
7473    echo "$as_me:7473: \$? = $ac_status" >&5
7474    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7475    then
7476      # The compiler can only warn and ignore the option if not recognized
7477      # So say no if there are warnings
7478      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7479      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7480      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7481        lt_cv_prog_compiler_c_o=yes
7482      fi
7483    fi
7484    chmod u+w . 2>&5
7485    $rm conftest*
7486    # SGI C++ compiler will create directory out/ii_files/ for
7487    # template instantiation
7488    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7489    $rm out/* && rmdir out
7490    cd ..
7491    rmdir conftest
7492    $rm conftest*
7493
7494 fi
7495 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7496 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7497
7498
7499 hard_links="nottested"
7500 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7501   # do not overwrite the value of need_locks provided by the user
7502   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7503 $as_echo_n "checking if we can lock with hard links... " >&6; }
7504   hard_links=yes
7505   $rm conftest*
7506   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7507   touch conftest.a
7508   ln conftest.a conftest.b 2>&5 || hard_links=no
7509   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7510   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7511 $as_echo "$hard_links" >&6; }
7512   if test "$hard_links" = no; then
7513     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7514 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7515     need_locks=warn
7516   fi
7517 else
7518   need_locks=no
7519 fi
7520
7521 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7522 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7523
7524   runpath_var=
7525   allow_undefined_flag=
7526   enable_shared_with_static_runtimes=no
7527   archive_cmds=
7528   archive_expsym_cmds=
7529   old_archive_From_new_cmds=
7530   old_archive_from_expsyms_cmds=
7531   export_dynamic_flag_spec=
7532   whole_archive_flag_spec=
7533   thread_safe_flag_spec=
7534   hardcode_libdir_flag_spec=
7535   hardcode_libdir_flag_spec_ld=
7536   hardcode_libdir_separator=
7537   hardcode_direct=no
7538   hardcode_minus_L=no
7539   hardcode_shlibpath_var=unsupported
7540   link_all_deplibs=unknown
7541   hardcode_automatic=no
7542   module_cmds=
7543   module_expsym_cmds=
7544   always_export_symbols=no
7545   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7546   # include_expsyms should be a list of space-separated symbols to be *always*
7547   # included in the symbol list
7548   include_expsyms=
7549   # exclude_expsyms can be an extended regexp of symbols to exclude
7550   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7551   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7552   # as well as any symbol that contains `d'.
7553   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7554   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7555   # platforms (ab)use it in PIC code, but their linkers get confused if
7556   # the symbol is explicitly referenced.  Since portable code cannot
7557   # rely on this symbol name, it's probably fine to never include it in
7558   # preloaded symbol tables.
7559   # Exclude shared library initialization/finalization symbols.
7560   extract_expsyms_cmds=
7561   # Just being paranoid about ensuring that cc_basename is set.
7562   for cc_temp in $compiler""; do
7563   case $cc_temp in
7564     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7565     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7566     \-*) ;;
7567     *) break;;
7568   esac
7569 done
7570 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7571
7572   case $host_os in
7573   cygwin* | mingw* | pw32*)
7574     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7575     # When not using gcc, we currently assume that we are using
7576     # Microsoft Visual C++.
7577     if test "$GCC" != yes; then
7578       with_gnu_ld=no
7579     fi
7580     ;;
7581   interix*)
7582     # we just hope/assume this is gcc and not c89 (= MSVC++)
7583     with_gnu_ld=yes
7584     ;;
7585   openbsd*)
7586     with_gnu_ld=no
7587     ;;
7588   esac
7589
7590   ld_shlibs=yes
7591   if test "$with_gnu_ld" = yes; then
7592     # If archive_cmds runs LD, not CC, wlarc should be empty
7593     wlarc='${wl}'
7594
7595     # Set some defaults for GNU ld with shared library support. These
7596     # are reset later if shared libraries are not supported. Putting them
7597     # here allows them to be overridden if necessary.
7598     runpath_var=LD_RUN_PATH
7599     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7600     export_dynamic_flag_spec='${wl}--export-dynamic'
7601     # ancient GNU ld didn't support --whole-archive et. al.
7602     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7603         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7604       else
7605         whole_archive_flag_spec=
7606     fi
7607     supports_anon_versioning=no
7608     case `$LD -v 2>/dev/null` in
7609       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7610       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7611       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7612       *\ 2.11.*) ;; # other 2.11 versions
7613       *) supports_anon_versioning=yes ;;
7614     esac
7615
7616     # See if GNU ld supports shared libraries.
7617     case $host_os in
7618     aix[3-9]*)
7619       # On AIX/PPC, the GNU linker is very broken
7620       if test "$host_cpu" != ia64; then
7621         ld_shlibs=no
7622         cat <<EOF 1>&2
7623
7624 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7625 *** to be unable to reliably create shared libraries on AIX.
7626 *** Therefore, libtool is disabling shared libraries support.  If you
7627 *** really care for shared libraries, you may want to modify your PATH
7628 *** so that a non-GNU linker is found, and then restart.
7629
7630 EOF
7631       fi
7632       ;;
7633
7634     amigaos*)
7635       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)'
7636       hardcode_libdir_flag_spec='-L$libdir'
7637       hardcode_minus_L=yes
7638
7639       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7640       # that the semantics of dynamic libraries on AmigaOS, at least up
7641       # to version 4, is to share data among multiple programs linked
7642       # with the same dynamic library.  Since this doesn't match the
7643       # behavior of shared libraries on other platforms, we can't use
7644       # them.
7645       ld_shlibs=no
7646       ;;
7647
7648     beos*)
7649       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7650         allow_undefined_flag=unsupported
7651         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7652         # support --undefined.  This deserves some investigation.  FIXME
7653         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654       else
7655         ld_shlibs=no
7656       fi
7657       ;;
7658
7659     cygwin* | mingw* | pw32*)
7660       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7661       # as there is no search path for DLLs.
7662       hardcode_libdir_flag_spec='-L$libdir'
7663       allow_undefined_flag=unsupported
7664       always_export_symbols=no
7665       enable_shared_with_static_runtimes=yes
7666       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7667
7668       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7669         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7670         # If the export-symbols file already is a .def file (1st line
7671         # is EXPORTS), use it as is; otherwise, prepend...
7672         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7673           cp $export_symbols $output_objdir/$soname.def;
7674         else
7675           echo EXPORTS > $output_objdir/$soname.def;
7676           cat $export_symbols >> $output_objdir/$soname.def;
7677         fi~
7678         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7679       else
7680         ld_shlibs=no
7681       fi
7682       ;;
7683
7684     interix[3-9]*)
7685       hardcode_direct=no
7686       hardcode_shlibpath_var=no
7687       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7688       export_dynamic_flag_spec='${wl}-E'
7689       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7690       # Instead, shared libraries are loaded at an image base (0x10000000 by
7691       # default) and relocated if they conflict, which is a slow very memory
7692       # consuming and fragmenting process.  To avoid this, we pick a random,
7693       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7694       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7695       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7696       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'
7697       ;;
7698
7699     gnu* | linux* | k*bsd*-gnu)
7700       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7701         tmp_addflag=
7702         case $cc_basename,$host_cpu in
7703         pgcc*)                          # Portland Group C compiler
7704           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'
7705           tmp_addflag=' $pic_flag'
7706           ;;
7707         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7708           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'
7709           tmp_addflag=' $pic_flag -Mnomain' ;;
7710         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7711           tmp_addflag=' -i_dynamic' ;;
7712         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7713           tmp_addflag=' -i_dynamic -nofor_main' ;;
7714         ifc* | ifort*)                  # Intel Fortran compiler
7715           tmp_addflag=' -nofor_main' ;;
7716         esac
7717         case `$CC -V 2>&1 | sed 5q` in
7718         *Sun\ C*)                       # Sun C 5.9
7719           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'
7720           tmp_sharedflag='-G' ;;
7721         *Sun\ F*)                       # Sun Fortran 8.3
7722           tmp_sharedflag='-G' ;;
7723         *)
7724           tmp_sharedflag='-shared' ;;
7725         esac
7726         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7727
7728         if test $supports_anon_versioning = yes; then
7729           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7730   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7731   $echo "local: *; };" >> $output_objdir/$libname.ver~
7732           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7733         fi
7734       else
7735         ld_shlibs=no
7736       fi
7737       ;;
7738
7739     netbsd*)
7740       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7741         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7742         wlarc=
7743       else
7744         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7745         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7746       fi
7747       ;;
7748
7749     solaris*)
7750       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7751         ld_shlibs=no
7752         cat <<EOF 1>&2
7753
7754 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7755 *** create shared libraries on Solaris systems.  Therefore, libtool
7756 *** is disabling shared libraries support.  We urge you to upgrade GNU
7757 *** binutils to release 2.9.1 or newer.  Another option is to modify
7758 *** your PATH or compiler configuration so that the native linker is
7759 *** used, and then restart.
7760
7761 EOF
7762       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7764         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7765       else
7766         ld_shlibs=no
7767       fi
7768       ;;
7769
7770     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7771       case `$LD -v 2>&1` in
7772         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7773         ld_shlibs=no
7774         cat <<_LT_EOF 1>&2
7775
7776 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7777 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7778 *** is disabling shared libraries support.  We urge you to upgrade GNU
7779 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7780 *** your PATH or compiler configuration so that the native linker is
7781 *** used, and then restart.
7782
7783 _LT_EOF
7784         ;;
7785         *)
7786           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7787             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7788             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7789             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7790           else
7791             ld_shlibs=no
7792           fi
7793         ;;
7794       esac
7795       ;;
7796
7797     sunos4*)
7798       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7799       wlarc=
7800       hardcode_direct=yes
7801       hardcode_shlibpath_var=no
7802       ;;
7803
7804     *)
7805       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7806         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7808       else
7809         ld_shlibs=no
7810       fi
7811       ;;
7812     esac
7813
7814     if test "$ld_shlibs" = no; then
7815       runpath_var=
7816       hardcode_libdir_flag_spec=
7817       export_dynamic_flag_spec=
7818       whole_archive_flag_spec=
7819     fi
7820   else
7821     # PORTME fill in a description of your system's linker (not GNU ld)
7822     case $host_os in
7823     aix3*)
7824       allow_undefined_flag=unsupported
7825       always_export_symbols=yes
7826       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'
7827       # Note: this linker hardcodes the directories in LIBPATH if there
7828       # are no directories specified by -L.
7829       hardcode_minus_L=yes
7830       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7831         # Neither direct hardcoding nor static linking is supported with a
7832         # broken collect2.
7833         hardcode_direct=unsupported
7834       fi
7835       ;;
7836
7837     aix[4-9]*)
7838       if test "$host_cpu" = ia64; then
7839         # On IA64, the linker does run time linking by default, so we don't
7840         # have to do anything special.
7841         aix_use_runtimelinking=no
7842         exp_sym_flag='-Bexport'
7843         no_entry_flag=""
7844       else
7845         # If we're using GNU nm, then we don't want the "-C" option.
7846         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7847         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7848           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'
7849         else
7850           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'
7851         fi
7852         aix_use_runtimelinking=no
7853
7854         # Test if we are trying to use run time linking or normal
7855         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7856         # need to do runtime linking.
7857         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7858           for ld_flag in $LDFLAGS; do
7859           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7860             aix_use_runtimelinking=yes
7861             break
7862           fi
7863           done
7864           ;;
7865         esac
7866
7867         exp_sym_flag='-bexport'
7868         no_entry_flag='-bnoentry'
7869       fi
7870
7871       # When large executables or shared objects are built, AIX ld can
7872       # have problems creating the table of contents.  If linking a library
7873       # or program results in "error TOC overflow" add -mminimal-toc to
7874       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7875       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7876
7877       archive_cmds=''
7878       hardcode_direct=yes
7879       hardcode_libdir_separator=':'
7880       link_all_deplibs=yes
7881
7882       if test "$GCC" = yes; then
7883         case $host_os in aix4.[012]|aix4.[012].*)
7884         # We only want to do this on AIX 4.2 and lower, the check
7885         # below for broken collect2 doesn't work under 4.3+
7886           collect2name=`${CC} -print-prog-name=collect2`
7887           if test -f "$collect2name" && \
7888            strings "$collect2name" | grep resolve_lib_name >/dev/null
7889           then
7890           # We have reworked collect2
7891           :
7892           else
7893           # We have old collect2
7894           hardcode_direct=unsupported
7895           # It fails to find uninstalled libraries when the uninstalled
7896           # path is not listed in the libpath.  Setting hardcode_minus_L
7897           # to unsupported forces relinking
7898           hardcode_minus_L=yes
7899           hardcode_libdir_flag_spec='-L$libdir'
7900           hardcode_libdir_separator=
7901           fi
7902           ;;
7903         esac
7904         shared_flag='-shared'
7905         if test "$aix_use_runtimelinking" = yes; then
7906           shared_flag="$shared_flag "'${wl}-G'
7907         fi
7908       else
7909         # not using gcc
7910         if test "$host_cpu" = ia64; then
7911         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7912         # chokes on -Wl,-G. The following line is correct:
7913           shared_flag='-G'
7914         else
7915           if test "$aix_use_runtimelinking" = yes; then
7916             shared_flag='${wl}-G'
7917           else
7918             shared_flag='${wl}-bM:SRE'
7919           fi
7920         fi
7921       fi
7922
7923       # It seems that -bexpall does not export symbols beginning with
7924       # underscore (_), so it is better to generate a list of symbols to export.
7925       always_export_symbols=yes
7926       if test "$aix_use_runtimelinking" = yes; then
7927         # Warning - without using the other runtime loading flags (-brtl),
7928         # -berok will link without error, but may produce a broken library.
7929         allow_undefined_flag='-berok'
7930        # Determine the default libpath from the value encoded in an empty executable.
7931        cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937
7938 int
7939 main ()
7940 {
7941
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7953 $as_echo "$ac_try_echo") >&5
7954   (eval "$ac_link") 2>conftest.er1
7955   ac_status=$?
7956   grep -v '^ *+' conftest.er1 >conftest.err
7957   rm -f conftest.er1
7958   cat conftest.err >&5
7959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } && {
7961          test -z "$ac_c_werror_flag" ||
7962          test ! -s conftest.err
7963        } && test -s conftest$ac_exeext && {
7964          test "$cross_compiling" = yes ||
7965          $as_test_x conftest$ac_exeext
7966        }; then
7967
7968 lt_aix_libpath_sed='
7969     /Import File Strings/,/^$/ {
7970         /^0/ {
7971             s/^0  *\(.*\)$/\1/
7972             p
7973         }
7974     }'
7975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7976 # Check for a 64-bit object if we didn't find anything.
7977 if test -z "$aix_libpath"; then
7978   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7979 fi
7980 else
7981   $as_echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984
7985 fi
7986
7987 rm -rf conftest.dSYM
7988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7989       conftest$ac_exeext conftest.$ac_ext
7990 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7991
7992        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7993         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7994        else
7995         if test "$host_cpu" = ia64; then
7996           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7997           allow_undefined_flag="-z nodefs"
7998           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"
7999         else
8000          # Determine the default libpath from the value encoded in an empty executable.
8001          cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h.  */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h.  */
8007
8008 int
8009 main ()
8010 {
8011
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020   *) ac_try_echo=$ac_try;;
8021 esac
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024   (eval "$ac_link") 2>conftest.er1
8025   ac_status=$?
8026   grep -v '^ *+' conftest.er1 >conftest.err
8027   rm -f conftest.er1
8028   cat conftest.err >&5
8029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } && {
8031          test -z "$ac_c_werror_flag" ||
8032          test ! -s conftest.err
8033        } && test -s conftest$ac_exeext && {
8034          test "$cross_compiling" = yes ||
8035          $as_test_x conftest$ac_exeext
8036        }; then
8037
8038 lt_aix_libpath_sed='
8039     /Import File Strings/,/^$/ {
8040         /^0/ {
8041             s/^0  *\(.*\)$/\1/
8042             p
8043         }
8044     }'
8045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8046 # Check for a 64-bit object if we didn't find anything.
8047 if test -z "$aix_libpath"; then
8048   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8049 fi
8050 else
8051   $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054
8055 fi
8056
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059       conftest$ac_exeext conftest.$ac_ext
8060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8061
8062          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8063           # Warning - without using the other run time loading flags,
8064           # -berok will link without error, but may produce a broken library.
8065           no_undefined_flag=' ${wl}-bernotok'
8066           allow_undefined_flag=' ${wl}-berok'
8067           # Exported symbols can be pulled into shared objects from archives
8068           whole_archive_flag_spec='$convenience'
8069           archive_cmds_need_lc=yes
8070           # This is similar to how AIX traditionally builds its shared libraries.
8071           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'
8072         fi
8073       fi
8074       ;;
8075
8076     amigaos*)
8077       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)'
8078       hardcode_libdir_flag_spec='-L$libdir'
8079       hardcode_minus_L=yes
8080       # see comment about different semantics on the GNU ld section
8081       ld_shlibs=no
8082       ;;
8083
8084     bsdi[45]*)
8085       export_dynamic_flag_spec=-rdynamic
8086       ;;
8087
8088     cygwin* | mingw* | pw32*)
8089       # When not using gcc, we currently assume that we are using
8090       # Microsoft Visual C++.
8091       # hardcode_libdir_flag_spec is actually meaningless, as there is
8092       # no search path for DLLs.
8093       hardcode_libdir_flag_spec=' '
8094       allow_undefined_flag=unsupported
8095       # Tell ltmain to make .lib files, not .a files.
8096       libext=lib
8097       # Tell ltmain to make .dll files, not .so files.
8098       shrext_cmds=".dll"
8099       # FIXME: Setting linknames here is a bad hack.
8100       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8101       # The linker will automatically build a .lib file if we build a DLL.
8102       old_archive_From_new_cmds='true'
8103       # FIXME: Should let the user specify the lib program.
8104       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8105       fix_srcfile_path='`cygpath -w "$srcfile"`'
8106       enable_shared_with_static_runtimes=yes
8107       ;;
8108
8109     darwin* | rhapsody*)
8110       case $host_os in
8111         rhapsody* | darwin1.[012])
8112          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8113          ;;
8114        *) # Darwin 1.3 on
8115          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8116            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8117          else
8118            case ${MACOSX_DEPLOYMENT_TARGET} in
8119              10.[012])
8120                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8121                ;;
8122              10.*)
8123                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8124                ;;
8125            esac
8126          fi
8127          ;;
8128       esac
8129       archive_cmds_need_lc=no
8130       hardcode_direct=no
8131       hardcode_automatic=yes
8132       hardcode_shlibpath_var=unsupported
8133       whole_archive_flag_spec=''
8134       link_all_deplibs=yes
8135     if test "$GCC" = yes ; then
8136         output_verbose_link_cmd='echo'
8137         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8138         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8139         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}"
8140         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}"
8141     else
8142       case $cc_basename in
8143         xlc*)
8144          output_verbose_link_cmd='echo'
8145          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8146          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8147           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8148          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8149           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8150           ;;
8151        *)
8152          ld_shlibs=no
8153           ;;
8154       esac
8155     fi
8156       ;;
8157
8158     dgux*)
8159       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8160       hardcode_libdir_flag_spec='-L$libdir'
8161       hardcode_shlibpath_var=no
8162       ;;
8163
8164     freebsd1*)
8165       ld_shlibs=no
8166       ;;
8167
8168     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8169     # support.  Future versions do this automatically, but an explicit c++rt0.o
8170     # does not break anything, and helps significantly (at the cost of a little
8171     # extra space).
8172     freebsd2.2*)
8173       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8174       hardcode_libdir_flag_spec='-R$libdir'
8175       hardcode_direct=yes
8176       hardcode_shlibpath_var=no
8177       ;;
8178
8179     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8180     freebsd2*)
8181       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8182       hardcode_direct=yes
8183       hardcode_minus_L=yes
8184       hardcode_shlibpath_var=no
8185       ;;
8186
8187     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8188     freebsd* | dragonfly*)
8189       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8190       hardcode_libdir_flag_spec='-R$libdir'
8191       hardcode_direct=yes
8192       hardcode_shlibpath_var=no
8193       ;;
8194
8195     hpux9*)
8196       if test "$GCC" = yes; then
8197         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'
8198       else
8199         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'
8200       fi
8201       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8202       hardcode_libdir_separator=:
8203       hardcode_direct=yes
8204
8205       # hardcode_minus_L: Not really in the search PATH,
8206       # but as the default location of the library.
8207       hardcode_minus_L=yes
8208       export_dynamic_flag_spec='${wl}-E'
8209       ;;
8210
8211     hpux10*)
8212       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8213         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8214       else
8215         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8216       fi
8217       if test "$with_gnu_ld" = no; then
8218         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8219         hardcode_libdir_separator=:
8220
8221         hardcode_direct=yes
8222         export_dynamic_flag_spec='${wl}-E'
8223
8224         # hardcode_minus_L: Not really in the search PATH,
8225         # but as the default location of the library.
8226         hardcode_minus_L=yes
8227       fi
8228       ;;
8229
8230     hpux11*)
8231       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8232         case $host_cpu in
8233         hppa*64*)
8234           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8235           ;;
8236         ia64*)
8237           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8238           ;;
8239         *)
8240           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8241           ;;
8242         esac
8243       else
8244         case $host_cpu in
8245         hppa*64*)
8246           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247           ;;
8248         ia64*)
8249           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8250           ;;
8251         *)
8252           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253           ;;
8254         esac
8255       fi
8256       if test "$with_gnu_ld" = no; then
8257         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8258         hardcode_libdir_separator=:
8259
8260         case $host_cpu in
8261         hppa*64*|ia64*)
8262           hardcode_libdir_flag_spec_ld='+b $libdir'
8263           hardcode_direct=no
8264           hardcode_shlibpath_var=no
8265           ;;
8266         *)
8267           hardcode_direct=yes
8268           export_dynamic_flag_spec='${wl}-E'
8269
8270           # hardcode_minus_L: Not really in the search PATH,
8271           # but as the default location of the library.
8272           hardcode_minus_L=yes
8273           ;;
8274         esac
8275       fi
8276       ;;
8277
8278     irix5* | irix6* | nonstopux*)
8279       if test "$GCC" = yes; then
8280         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8281       else
8282         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8283         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8284       fi
8285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286       hardcode_libdir_separator=:
8287       link_all_deplibs=yes
8288       ;;
8289
8290     netbsd*)
8291       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8292         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8293       else
8294         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8295       fi
8296       hardcode_libdir_flag_spec='-R$libdir'
8297       hardcode_direct=yes
8298       hardcode_shlibpath_var=no
8299       ;;
8300
8301     newsos6)
8302       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303       hardcode_direct=yes
8304       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8305       hardcode_libdir_separator=:
8306       hardcode_shlibpath_var=no
8307       ;;
8308
8309     openbsd*)
8310       if test -f /usr/libexec/ld.so; then
8311         hardcode_direct=yes
8312         hardcode_shlibpath_var=no
8313         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8314           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8315           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8316           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317           export_dynamic_flag_spec='${wl}-E'
8318         else
8319           case $host_os in
8320            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8321              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8322              hardcode_libdir_flag_spec='-R$libdir'
8323              ;;
8324            *)
8325              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8326              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8327              ;;
8328           esac
8329         fi
8330       else
8331         ld_shlibs=no
8332       fi
8333       ;;
8334
8335     os2*)
8336       hardcode_libdir_flag_spec='-L$libdir'
8337       hardcode_minus_L=yes
8338       allow_undefined_flag=unsupported
8339       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'
8340       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8341       ;;
8342
8343     osf3*)
8344       if test "$GCC" = yes; then
8345         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8346         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8347       else
8348         allow_undefined_flag=' -expect_unresolved \*'
8349         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8350       fi
8351       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8352       hardcode_libdir_separator=:
8353       ;;
8354
8355     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8356       if test "$GCC" = yes; then
8357         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8358         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8359         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360       else
8361         allow_undefined_flag=' -expect_unresolved \*'
8362         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8363         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8364         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8365
8366         # Both c and cxx compiler support -rpath directly
8367         hardcode_libdir_flag_spec='-rpath $libdir'
8368       fi
8369       hardcode_libdir_separator=:
8370       ;;
8371
8372     solaris*)
8373       no_undefined_flag=' -z text'
8374       if test "$GCC" = yes; then
8375         wlarc='${wl}'
8376         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8377         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8378           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8379       else
8380         wlarc=''
8381         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8383         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8384       fi
8385       hardcode_libdir_flag_spec='-R$libdir'
8386       hardcode_shlibpath_var=no
8387       case $host_os in
8388       solaris2.[0-5] | solaris2.[0-5].*) ;;
8389       *)
8390         # The compiler driver will combine and reorder linker options,
8391         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8392         # but is careful enough not to reorder.
8393         # Supported since Solaris 2.6 (maybe 2.5.1?)
8394         if test "$GCC" = yes; then
8395           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8396         else
8397           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8398         fi
8399         ;;
8400       esac
8401       link_all_deplibs=yes
8402       ;;
8403
8404     sunos4*)
8405       if test "x$host_vendor" = xsequent; then
8406         # Use $CC to link under sequent, because it throws in some extra .o
8407         # files that make .init and .fini sections work.
8408         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8409       else
8410         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8411       fi
8412       hardcode_libdir_flag_spec='-L$libdir'
8413       hardcode_direct=yes
8414       hardcode_minus_L=yes
8415       hardcode_shlibpath_var=no
8416       ;;
8417
8418     sysv4)
8419       case $host_vendor in
8420         sni)
8421           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422           hardcode_direct=yes # is this really true???
8423         ;;
8424         siemens)
8425           ## LD is ld it makes a PLAMLIB
8426           ## CC just makes a GrossModule.
8427           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8428           reload_cmds='$CC -r -o $output$reload_objs'
8429           hardcode_direct=no
8430         ;;
8431         motorola)
8432           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8434         ;;
8435       esac
8436       runpath_var='LD_RUN_PATH'
8437       hardcode_shlibpath_var=no
8438       ;;
8439
8440     sysv4.3*)
8441       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442       hardcode_shlibpath_var=no
8443       export_dynamic_flag_spec='-Bexport'
8444       ;;
8445
8446     sysv4*MP*)
8447       if test -d /usr/nec; then
8448         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449         hardcode_shlibpath_var=no
8450         runpath_var=LD_RUN_PATH
8451         hardcode_runpath_var=yes
8452         ld_shlibs=yes
8453       fi
8454       ;;
8455
8456     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8457       no_undefined_flag='${wl}-z,text'
8458       archive_cmds_need_lc=no
8459       hardcode_shlibpath_var=no
8460       runpath_var='LD_RUN_PATH'
8461
8462       if test "$GCC" = yes; then
8463         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8464         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8465       else
8466         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8467         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8468       fi
8469       ;;
8470
8471     sysv5* | sco3.2v5* | sco5v6*)
8472       # Note: We can NOT use -z defs as we might desire, because we do not
8473       # link with -lc, and that would cause any symbols used from libc to
8474       # always be unresolved, which means just about no library would
8475       # ever link correctly.  If we're not using GNU ld we use -z text
8476       # though, which does catch some bad symbols but isn't as heavy-handed
8477       # as -z defs.
8478       no_undefined_flag='${wl}-z,text'
8479       allow_undefined_flag='${wl}-z,nodefs'
8480       archive_cmds_need_lc=no
8481       hardcode_shlibpath_var=no
8482       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8483       hardcode_libdir_separator=':'
8484       link_all_deplibs=yes
8485       export_dynamic_flag_spec='${wl}-Bexport'
8486       runpath_var='LD_RUN_PATH'
8487
8488       if test "$GCC" = yes; then
8489         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8491       else
8492         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8493         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8494       fi
8495       ;;
8496
8497     uts4*)
8498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499       hardcode_libdir_flag_spec='-L$libdir'
8500       hardcode_shlibpath_var=no
8501       ;;
8502
8503     *)
8504       ld_shlibs=no
8505       ;;
8506     esac
8507   fi
8508
8509 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8510 $as_echo "$ld_shlibs" >&6; }
8511 test "$ld_shlibs" = no && can_build_shared=no
8512
8513 #
8514 # Do we need to explicitly link libc?
8515 #
8516 case "x$archive_cmds_need_lc" in
8517 x|xyes)
8518   # Assume -lc should be added
8519   archive_cmds_need_lc=yes
8520
8521   if test "$enable_shared" = yes && test "$GCC" = yes; then
8522     case $archive_cmds in
8523     *'~'*)
8524       # FIXME: we may have to deal with multi-command sequences.
8525       ;;
8526     '$CC '*)
8527       # Test whether the compiler implicitly links with -lc since on some
8528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8529       # to ld, don't add -lc before -lgcc.
8530       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8531 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8532       $rm conftest*
8533       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8534
8535       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536   (eval $ac_compile) 2>&5
8537   ac_status=$?
8538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } 2>conftest.err; then
8540         soname=conftest
8541         lib=conftest
8542         libobjs=conftest.$ac_objext
8543         deplibs=
8544         wl=$lt_prog_compiler_wl
8545         pic_flag=$lt_prog_compiler_pic
8546         compiler_flags=-v
8547         linker_flags=-v
8548         verstring=
8549         output_objdir=.
8550         libname=conftest
8551         lt_save_allow_undefined_flag=$allow_undefined_flag
8552         allow_undefined_flag=
8553         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8554   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8555   ac_status=$?
8556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }
8558         then
8559           archive_cmds_need_lc=no
8560         else
8561           archive_cmds_need_lc=yes
8562         fi
8563         allow_undefined_flag=$lt_save_allow_undefined_flag
8564       else
8565         cat conftest.err 1>&5
8566       fi
8567       $rm conftest*
8568       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8569 $as_echo "$archive_cmds_need_lc" >&6; }
8570       ;;
8571     esac
8572   fi
8573   ;;
8574 esac
8575
8576 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8577 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8578 library_names_spec=
8579 libname_spec='lib$name'
8580 soname_spec=
8581 shrext_cmds=".so"
8582 postinstall_cmds=
8583 postuninstall_cmds=
8584 finish_cmds=
8585 finish_eval=
8586 shlibpath_var=
8587 shlibpath_overrides_runpath=unknown
8588 version_type=none
8589 dynamic_linker="$host_os ld.so"
8590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8591
8592 if test "$GCC" = yes; then
8593   case $host_os in
8594     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8595     *) lt_awk_arg="/^libraries:/" ;;
8596   esac
8597   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8598   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8599     # if the path contains ";" then we assume it to be the separator
8600     # otherwise default to the standard path separator (i.e. ":") - it is
8601     # assumed that no part of a normal pathname contains ";" but that should
8602     # okay in the real world where ";" in dirpaths is itself problematic.
8603     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8604   else
8605     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8606   fi
8607   # Ok, now we have the path, separated by spaces, we can step through it
8608   # and add multilib dir if necessary.
8609   lt_tmp_lt_search_path_spec=
8610   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8611   for lt_sys_path in $lt_search_path_spec; do
8612     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8613       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8614     else
8615       test -d "$lt_sys_path" && \
8616         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8617     fi
8618   done
8619   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8620 BEGIN {RS=" "; FS="/|\n";} {
8621   lt_foo="";
8622   lt_count=0;
8623   for (lt_i = NF; lt_i > 0; lt_i--) {
8624     if ($lt_i != "" && $lt_i != ".") {
8625       if ($lt_i == "..") {
8626         lt_count++;
8627       } else {
8628         if (lt_count == 0) {
8629           lt_foo="/" $lt_i lt_foo;
8630         } else {
8631           lt_count--;
8632         }
8633       }
8634     }
8635   }
8636   if (lt_foo != "") { lt_freq[lt_foo]++; }
8637   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8638 }'`
8639   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8640 else
8641   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8642 fi
8643 need_lib_prefix=unknown
8644 hardcode_into_libs=no
8645
8646 # when you set need_version to no, make sure it does not cause -set_version
8647 # flags to be left without arguments
8648 need_version=unknown
8649
8650 case $host_os in
8651 aix3*)
8652   version_type=linux
8653   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8654   shlibpath_var=LIBPATH
8655
8656   # AIX 3 has no versioning support, so we append a major version to the name.
8657   soname_spec='${libname}${release}${shared_ext}$major'
8658   ;;
8659
8660 aix[4-9]*)
8661   version_type=linux
8662   need_lib_prefix=no
8663   need_version=no
8664   hardcode_into_libs=yes
8665   if test "$host_cpu" = ia64; then
8666     # AIX 5 supports IA64
8667     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8668     shlibpath_var=LD_LIBRARY_PATH
8669   else
8670     # With GCC up to 2.95.x, collect2 would create an import file
8671     # for dependence libraries.  The import file would start with
8672     # the line `#! .'.  This would cause the generated library to
8673     # depend on `.', always an invalid library.  This was fixed in
8674     # development snapshots of GCC prior to 3.0.
8675     case $host_os in
8676       aix4 | aix4.[01] | aix4.[01].*)
8677       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8678            echo ' yes '
8679            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8680         :
8681       else
8682         can_build_shared=no
8683       fi
8684       ;;
8685     esac
8686     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8687     # soname into executable. Probably we can add versioning support to
8688     # collect2, so additional links can be useful in future.
8689     if test "$aix_use_runtimelinking" = yes; then
8690       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8691       # instead of lib<name>.a to let people know that these are not
8692       # typical AIX shared libraries.
8693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694     else
8695       # We preserve .a as extension for shared libraries through AIX4.2
8696       # and later when we are not doing run time linking.
8697       library_names_spec='${libname}${release}.a $libname.a'
8698       soname_spec='${libname}${release}${shared_ext}$major'
8699     fi
8700     shlibpath_var=LIBPATH
8701   fi
8702   ;;
8703
8704 amigaos*)
8705   library_names_spec='$libname.ixlibrary $libname.a'
8706   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8707   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'
8708   ;;
8709
8710 beos*)
8711   library_names_spec='${libname}${shared_ext}'
8712   dynamic_linker="$host_os ld.so"
8713   shlibpath_var=LIBRARY_PATH
8714   ;;
8715
8716 bsdi[45]*)
8717   version_type=linux
8718   need_version=no
8719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720   soname_spec='${libname}${release}${shared_ext}$major'
8721   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8722   shlibpath_var=LD_LIBRARY_PATH
8723   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8724   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8725   # the default ld.so.conf also contains /usr/contrib/lib and
8726   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8727   # libtool to hard-code these into programs
8728   ;;
8729
8730 cygwin* | mingw* | pw32*)
8731   version_type=windows
8732   shrext_cmds=".dll"
8733   need_version=no
8734   need_lib_prefix=no
8735
8736   case $GCC,$host_os in
8737   yes,cygwin* | yes,mingw* | yes,pw32*)
8738     library_names_spec='$libname.dll.a'
8739     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8740     postinstall_cmds='base_file=`basename \${file}`~
8741       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8742       dldir=$destdir/`dirname \$dlpath`~
8743       test -d \$dldir || mkdir -p \$dldir~
8744       $install_prog $dir/$dlname \$dldir/$dlname~
8745       chmod a+x \$dldir/$dlname'
8746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8747       dlpath=$dir/\$dldll~
8748        $rm \$dlpath'
8749     shlibpath_overrides_runpath=yes
8750
8751     case $host_os in
8752     cygwin*)
8753       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8754       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8756       ;;
8757     mingw*)
8758       # MinGW DLLs use traditional 'lib' prefix
8759       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8762         # It is most probably a Windows format PATH printed by
8763         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8764         # path with ; separators, and with drive letters. We can handle the
8765         # drive letters (cygwin fileutils understands them), so leave them,
8766         # especially as we might pass files found there to a mingw objdump,
8767         # which wouldn't understand a cygwinified path. Ahh.
8768         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769       else
8770         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8771       fi
8772       ;;
8773     pw32*)
8774       # pw32 DLLs use 'pw' prefix rather than 'lib'
8775       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8776       ;;
8777     esac
8778     ;;
8779
8780   *)
8781     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8782     ;;
8783   esac
8784   dynamic_linker='Win32 ld.exe'
8785   # FIXME: first we should search . and the directory the executable is in
8786   shlibpath_var=PATH
8787   ;;
8788
8789 darwin* | rhapsody*)
8790   dynamic_linker="$host_os dyld"
8791   version_type=darwin
8792   need_lib_prefix=no
8793   need_version=no
8794   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8795   soname_spec='${libname}${release}${major}$shared_ext'
8796   shlibpath_overrides_runpath=yes
8797   shlibpath_var=DYLD_LIBRARY_PATH
8798   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8799
8800   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8801   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8802   ;;
8803
8804 dgux*)
8805   version_type=linux
8806   need_lib_prefix=no
8807   need_version=no
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8809   soname_spec='${libname}${release}${shared_ext}$major'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   ;;
8812
8813 freebsd1*)
8814   dynamic_linker=no
8815   ;;
8816
8817 freebsd* | dragonfly*)
8818   # DragonFly does not have aout.  When/if they implement a new
8819   # versioning mechanism, adjust this.
8820   if test -x /usr/bin/objformat; then
8821     objformat=`/usr/bin/objformat`
8822   else
8823     case $host_os in
8824     freebsd[123]*) objformat=aout ;;
8825     *) objformat=elf ;;
8826     esac
8827   fi
8828   version_type=freebsd-$objformat
8829   case $version_type in
8830     freebsd-elf*)
8831       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8832       need_version=no
8833       need_lib_prefix=no
8834       ;;
8835     freebsd-*)
8836       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8837       need_version=yes
8838       ;;
8839   esac
8840   shlibpath_var=LD_LIBRARY_PATH
8841   case $host_os in
8842   freebsd2*)
8843     shlibpath_overrides_runpath=yes
8844     ;;
8845   freebsd3.[01]* | freebsdelf3.[01]*)
8846     shlibpath_overrides_runpath=yes
8847     hardcode_into_libs=yes
8848     ;;
8849   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8850   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8851     shlibpath_overrides_runpath=no
8852     hardcode_into_libs=yes
8853     ;;
8854   *) # from 4.6 on, and DragonFly
8855     shlibpath_overrides_runpath=yes
8856     hardcode_into_libs=yes
8857     ;;
8858   esac
8859   ;;
8860
8861 gnu*)
8862   version_type=linux
8863   need_lib_prefix=no
8864   need_version=no
8865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8866   soname_spec='${libname}${release}${shared_ext}$major'
8867   shlibpath_var=LD_LIBRARY_PATH
8868   hardcode_into_libs=yes
8869   ;;
8870
8871 hpux9* | hpux10* | hpux11*)
8872   # Give a soname corresponding to the major version so that dld.sl refuses to
8873   # link against other versions.
8874   version_type=sunos
8875   need_lib_prefix=no
8876   need_version=no
8877   case $host_cpu in
8878   ia64*)
8879     shrext_cmds='.so'
8880     hardcode_into_libs=yes
8881     dynamic_linker="$host_os dld.so"
8882     shlibpath_var=LD_LIBRARY_PATH
8883     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885     soname_spec='${libname}${release}${shared_ext}$major'
8886     if test "X$HPUX_IA64_MODE" = X32; then
8887       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8888     else
8889       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8890     fi
8891     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8892     ;;
8893    hppa*64*)
8894      shrext_cmds='.sl'
8895      hardcode_into_libs=yes
8896      dynamic_linker="$host_os dld.sl"
8897      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8898      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900      soname_spec='${libname}${release}${shared_ext}$major'
8901      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8902      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8903      ;;
8904    *)
8905     shrext_cmds='.sl'
8906     dynamic_linker="$host_os dld.sl"
8907     shlibpath_var=SHLIB_PATH
8908     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910     soname_spec='${libname}${release}${shared_ext}$major'
8911     ;;
8912   esac
8913   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8914   postinstall_cmds='chmod 555 $lib'
8915   ;;
8916
8917 interix[3-9]*)
8918   version_type=linux
8919   need_lib_prefix=no
8920   need_version=no
8921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922   soname_spec='${libname}${release}${shared_ext}$major'
8923   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8924   shlibpath_var=LD_LIBRARY_PATH
8925   shlibpath_overrides_runpath=no
8926   hardcode_into_libs=yes
8927   ;;
8928
8929 irix5* | irix6* | nonstopux*)
8930   case $host_os in
8931     nonstopux*) version_type=nonstopux ;;
8932     *)
8933         if test "$lt_cv_prog_gnu_ld" = yes; then
8934                 version_type=linux
8935         else
8936                 version_type=irix
8937         fi ;;
8938   esac
8939   need_lib_prefix=no
8940   need_version=no
8941   soname_spec='${libname}${release}${shared_ext}$major'
8942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8943   case $host_os in
8944   irix5* | nonstopux*)
8945     libsuff= shlibsuff=
8946     ;;
8947   *)
8948     case $LD in # libtool.m4 will add one of these switches to LD
8949     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8950       libsuff= shlibsuff= libmagic=32-bit;;
8951     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8952       libsuff=32 shlibsuff=N32 libmagic=N32;;
8953     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8954       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8955     *) libsuff= shlibsuff= libmagic=never-match;;
8956     esac
8957     ;;
8958   esac
8959   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8960   shlibpath_overrides_runpath=no
8961   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8962   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8963   hardcode_into_libs=yes
8964   ;;
8965
8966 # No shared lib support for Linux oldld, aout, or coff.
8967 linux*oldld* | linux*aout* | linux*coff*)
8968   dynamic_linker=no
8969   ;;
8970
8971 # This must be Linux ELF.
8972 linux* | k*bsd*-gnu)
8973   version_type=linux
8974   need_lib_prefix=no
8975   need_version=no
8976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977   soname_spec='${libname}${release}${shared_ext}$major'
8978   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8979   shlibpath_var=LD_LIBRARY_PATH
8980   shlibpath_overrides_runpath=no
8981   # This implies no fast_install, which is unacceptable.
8982   # Some rework will be needed to allow for fast_install
8983   # before this can be enabled.
8984   hardcode_into_libs=yes
8985   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8986   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8987
8988   # Append ld.so.conf contents to the search path
8989   if test -f /etc/ld.so.conf; then
8990     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' ' '`
8991     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8992   fi
8993
8994   # We used to test for /lib/ld.so.1 and disable shared libraries on
8995   # powerpc, because MkLinux only supported shared libraries with the
8996   # GNU dynamic linker.  Since this was broken with cross compilers,
8997   # most powerpc-linux boxes support dynamic linking these days and
8998   # people can always --disable-shared, the test was removed, and we
8999   # assume the GNU/Linux dynamic linker is in use.
9000   dynamic_linker='GNU/Linux ld.so'
9001   ;;
9002
9003 netbsd*)
9004   version_type=sunos
9005   need_lib_prefix=no
9006   need_version=no
9007   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9009     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9010     dynamic_linker='NetBSD (a.out) ld.so'
9011   else
9012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9013     soname_spec='${libname}${release}${shared_ext}$major'
9014     dynamic_linker='NetBSD ld.elf_so'
9015   fi
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=yes
9018   hardcode_into_libs=yes
9019   ;;
9020
9021 newsos6)
9022   version_type=linux
9023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024   shlibpath_var=LD_LIBRARY_PATH
9025   shlibpath_overrides_runpath=yes
9026   ;;
9027
9028 nto-qnx*)
9029   version_type=linux
9030   need_lib_prefix=no
9031   need_version=no
9032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033   soname_spec='${libname}${release}${shared_ext}$major'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   shlibpath_overrides_runpath=yes
9036   ;;
9037
9038 openbsd*)
9039   version_type=sunos
9040   sys_lib_dlsearch_path_spec="/usr/lib"
9041   need_lib_prefix=no
9042   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9043   case $host_os in
9044     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9045     *)                         need_version=no  ;;
9046   esac
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9051     case $host_os in
9052       openbsd2.[89] | openbsd2.[89].*)
9053         shlibpath_overrides_runpath=no
9054         ;;
9055       *)
9056         shlibpath_overrides_runpath=yes
9057         ;;
9058       esac
9059   else
9060     shlibpath_overrides_runpath=yes
9061   fi
9062   ;;
9063
9064 os2*)
9065   libname_spec='$name'
9066   shrext_cmds=".dll"
9067   need_lib_prefix=no
9068   library_names_spec='$libname${shared_ext} $libname.a'
9069   dynamic_linker='OS/2 ld.exe'
9070   shlibpath_var=LIBPATH
9071   ;;
9072
9073 osf3* | osf4* | osf5*)
9074   version_type=osf
9075   need_lib_prefix=no
9076   need_version=no
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079   shlibpath_var=LD_LIBRARY_PATH
9080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9081   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9082   ;;
9083
9084 rdos*)
9085   dynamic_linker=no
9086   ;;
9087
9088 solaris*)
9089   version_type=linux
9090   need_lib_prefix=no
9091   need_version=no
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   shlibpath_overrides_runpath=yes
9096   hardcode_into_libs=yes
9097   # ldd complains unless libraries are executable
9098   postinstall_cmds='chmod +x $lib'
9099   ;;
9100
9101 sunos4*)
9102   version_type=sunos
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9104   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   shlibpath_overrides_runpath=yes
9107   if test "$with_gnu_ld" = yes; then
9108     need_lib_prefix=no
9109   fi
9110   need_version=yes
9111   ;;
9112
9113 sysv4 | sysv4.3*)
9114   version_type=linux
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   case $host_vendor in
9119     sni)
9120       shlibpath_overrides_runpath=no
9121       need_lib_prefix=no
9122       export_dynamic_flag_spec='${wl}-Blargedynsym'
9123       runpath_var=LD_RUN_PATH
9124       ;;
9125     siemens)
9126       need_lib_prefix=no
9127       ;;
9128     motorola)
9129       need_lib_prefix=no
9130       need_version=no
9131       shlibpath_overrides_runpath=no
9132       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9133       ;;
9134   esac
9135   ;;
9136
9137 sysv4*MP*)
9138   if test -d /usr/nec ;then
9139     version_type=linux
9140     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9141     soname_spec='$libname${shared_ext}.$major'
9142     shlibpath_var=LD_LIBRARY_PATH
9143   fi
9144   ;;
9145
9146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9147   version_type=freebsd-elf
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   hardcode_into_libs=yes
9154   if test "$with_gnu_ld" = yes; then
9155     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9156     shlibpath_overrides_runpath=no
9157   else
9158     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9159     shlibpath_overrides_runpath=yes
9160     case $host_os in
9161       sco3.2v5*)
9162         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9163         ;;
9164     esac
9165   fi
9166   sys_lib_dlsearch_path_spec='/usr/lib'
9167   ;;
9168
9169 uts4*)
9170   version_type=linux
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   ;;
9175
9176 *)
9177   dynamic_linker=no
9178   ;;
9179 esac
9180 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9181 $as_echo "$dynamic_linker" >&6; }
9182 test "$dynamic_linker" = no && can_build_shared=no
9183
9184 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9185   $as_echo_n "(cached) " >&6
9186 else
9187   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9188 fi
9189
9190 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9191 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9192   $as_echo_n "(cached) " >&6
9193 else
9194   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9195 fi
9196
9197 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9198
9199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9200 if test "$GCC" = yes; then
9201   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9202 fi
9203
9204 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9205 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9206 hardcode_action=
9207 if test -n "$hardcode_libdir_flag_spec" || \
9208    test -n "$runpath_var" || \
9209    test "X$hardcode_automatic" = "Xyes" ; then
9210
9211   # We can hardcode non-existant directories.
9212   if test "$hardcode_direct" != no &&
9213      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9214      # have to relink, otherwise we might link with an installed library
9215      # when we should be linking with a yet-to-be-installed one
9216      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9217      test "$hardcode_minus_L" != no; then
9218     # Linking always hardcodes the temporary library directory.
9219     hardcode_action=relink
9220   else
9221     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9222     hardcode_action=immediate
9223   fi
9224 else
9225   # We cannot hardcode anything, or else we can only hardcode existing
9226   # directories.
9227   hardcode_action=unsupported
9228 fi
9229 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9230 $as_echo "$hardcode_action" >&6; }
9231
9232 if test "$hardcode_action" = relink; then
9233   # Fast installation is not supported
9234   enable_fast_install=no
9235 elif test "$shlibpath_overrides_runpath" = yes ||
9236      test "$enable_shared" = no; then
9237   # Fast installation is not necessary
9238   enable_fast_install=needless
9239 fi
9240
9241 striplib=
9242 old_striplib=
9243 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9244 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9245 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9246   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9247   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9248   { $as_echo "$as_me:$LINENO: result: yes" >&5
9249 $as_echo "yes" >&6; }
9250 else
9251 # FIXME - insert some real tests, host_os isn't really good enough
9252   case $host_os in
9253    darwin*)
9254        if test -n "$STRIP" ; then
9255          striplib="$STRIP -x"
9256          old_striplib="$STRIP -S"
9257          { $as_echo "$as_me:$LINENO: result: yes" >&5
9258 $as_echo "yes" >&6; }
9259        else
9260   { $as_echo "$as_me:$LINENO: result: no" >&5
9261 $as_echo "no" >&6; }
9262 fi
9263        ;;
9264    *)
9265   { $as_echo "$as_me:$LINENO: result: no" >&5
9266 $as_echo "no" >&6; }
9267     ;;
9268   esac
9269 fi
9270
9271 if test "x$enable_dlopen" != xyes; then
9272   enable_dlopen=unknown
9273   enable_dlopen_self=unknown
9274   enable_dlopen_self_static=unknown
9275 else
9276   lt_cv_dlopen=no
9277   lt_cv_dlopen_libs=
9278
9279   case $host_os in
9280   beos*)
9281     lt_cv_dlopen="load_add_on"
9282     lt_cv_dlopen_libs=
9283     lt_cv_dlopen_self=yes
9284     ;;
9285
9286   mingw* | pw32*)
9287     lt_cv_dlopen="LoadLibrary"
9288     lt_cv_dlopen_libs=
9289    ;;
9290
9291   cygwin*)
9292     lt_cv_dlopen="dlopen"
9293     lt_cv_dlopen_libs=
9294    ;;
9295
9296   darwin*)
9297   # if libdl is installed we need to link against it
9298     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9299 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9301   $as_echo_n "(cached) " >&6
9302 else
9303   ac_check_lib_save_LIBS=$LIBS
9304 LIBS="-ldl  $LIBS"
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h.  */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h.  */
9311
9312 /* Override any GCC internal prototype to avoid an error.
9313    Use char because int might match the return type of a GCC
9314    builtin and then its argument prototype would still apply.  */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char dlopen ();
9319 int
9320 main ()
9321 {
9322 return dlopen ();
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (ac_try="$ac_link"
9329 case "(($ac_try" in
9330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9331   *) ac_try_echo=$ac_try;;
9332 esac
9333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9334 $as_echo "$ac_try_echo") >&5
9335   (eval "$ac_link") 2>conftest.er1
9336   ac_status=$?
9337   grep -v '^ *+' conftest.er1 >conftest.err
9338   rm -f conftest.er1
9339   cat conftest.err >&5
9340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } && {
9342          test -z "$ac_c_werror_flag" ||
9343          test ! -s conftest.err
9344        } && test -s conftest$ac_exeext && {
9345          test "$cross_compiling" = yes ||
9346          $as_test_x conftest$ac_exeext
9347        }; then
9348   ac_cv_lib_dl_dlopen=yes
9349 else
9350   $as_echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9352
9353         ac_cv_lib_dl_dlopen=no
9354 fi
9355
9356 rm -rf conftest.dSYM
9357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9358       conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9360 fi
9361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9362 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9363 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9365 else
9366
9367     lt_cv_dlopen="dyld"
9368     lt_cv_dlopen_libs=
9369     lt_cv_dlopen_self=yes
9370
9371 fi
9372
9373    ;;
9374
9375   *)
9376     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9377 $as_echo_n "checking for shl_load... " >&6; }
9378 if test "${ac_cv_func_shl_load+set}" = set; then
9379   $as_echo_n "(cached) " >&6
9380 else
9381   cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h.  */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h.  */
9387 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9389 #define shl_load innocuous_shl_load
9390
9391 /* System header to define __stub macros and hopefully few prototypes,
9392     which can conflict with char shl_load (); below.
9393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394     <limits.h> exists even on freestanding compilers.  */
9395
9396 #ifdef __STDC__
9397 # include <limits.h>
9398 #else
9399 # include <assert.h>
9400 #endif
9401
9402 #undef shl_load
9403
9404 /* Override any GCC internal prototype to avoid an error.
9405    Use char because int might match the return type of a GCC
9406    builtin and then its argument prototype would still apply.  */
9407 #ifdef __cplusplus
9408 extern "C"
9409 #endif
9410 char shl_load ();
9411 /* The GNU C library defines this for functions which it implements
9412     to always fail with ENOSYS.  Some functions are actually named
9413     something starting with __ and the normal name is an alias.  */
9414 #if defined __stub_shl_load || defined __stub___shl_load
9415 choke me
9416 #endif
9417
9418 int
9419 main ()
9420 {
9421 return shl_load ();
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (ac_try="$ac_link"
9428 case "(($ac_try" in
9429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430   *) ac_try_echo=$ac_try;;
9431 esac
9432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9433 $as_echo "$ac_try_echo") >&5
9434   (eval "$ac_link") 2>conftest.er1
9435   ac_status=$?
9436   grep -v '^ *+' conftest.er1 >conftest.err
9437   rm -f conftest.er1
9438   cat conftest.err >&5
9439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } && {
9441          test -z "$ac_c_werror_flag" ||
9442          test ! -s conftest.err
9443        } && test -s conftest$ac_exeext && {
9444          test "$cross_compiling" = yes ||
9445          $as_test_x conftest$ac_exeext
9446        }; then
9447   ac_cv_func_shl_load=yes
9448 else
9449   $as_echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452         ac_cv_func_shl_load=no
9453 fi
9454
9455 rm -rf conftest.dSYM
9456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9457       conftest$ac_exeext conftest.$ac_ext
9458 fi
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9460 $as_echo "$ac_cv_func_shl_load" >&6; }
9461 if test "x$ac_cv_func_shl_load" = x""yes; then
9462   lt_cv_dlopen="shl_load"
9463 else
9464   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9465 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9466 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9467   $as_echo_n "(cached) " >&6
9468 else
9469   ac_check_lib_save_LIBS=$LIBS
9470 LIBS="-ldld  $LIBS"
9471 cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477
9478 /* Override any GCC internal prototype to avoid an error.
9479    Use char because int might match the return type of a GCC
9480    builtin and then its argument prototype would still apply.  */
9481 #ifdef __cplusplus
9482 extern "C"
9483 #endif
9484 char shl_load ();
9485 int
9486 main ()
9487 {
9488 return shl_load ();
9489   ;
9490   return 0;
9491 }
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (ac_try="$ac_link"
9495 case "(($ac_try" in
9496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497   *) ac_try_echo=$ac_try;;
9498 esac
9499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9500 $as_echo "$ac_try_echo") >&5
9501   (eval "$ac_link") 2>conftest.er1
9502   ac_status=$?
9503   grep -v '^ *+' conftest.er1 >conftest.err
9504   rm -f conftest.er1
9505   cat conftest.err >&5
9506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && {
9508          test -z "$ac_c_werror_flag" ||
9509          test ! -s conftest.err
9510        } && test -s conftest$ac_exeext && {
9511          test "$cross_compiling" = yes ||
9512          $as_test_x conftest$ac_exeext
9513        }; then
9514   ac_cv_lib_dld_shl_load=yes
9515 else
9516   $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519         ac_cv_lib_dld_shl_load=no
9520 fi
9521
9522 rm -rf conftest.dSYM
9523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9524       conftest$ac_exeext conftest.$ac_ext
9525 LIBS=$ac_check_lib_save_LIBS
9526 fi
9527 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9528 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9529 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9530   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9531 else
9532   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9533 $as_echo_n "checking for dlopen... " >&6; }
9534 if test "${ac_cv_func_dlopen+set}" = set; then
9535   $as_echo_n "(cached) " >&6
9536 else
9537   cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9545 #define dlopen innocuous_dlopen
9546
9547 /* System header to define __stub macros and hopefully few prototypes,
9548     which can conflict with char dlopen (); below.
9549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9550     <limits.h> exists even on freestanding compilers.  */
9551
9552 #ifdef __STDC__
9553 # include <limits.h>
9554 #else
9555 # include <assert.h>
9556 #endif
9557
9558 #undef dlopen
9559
9560 /* Override any GCC internal prototype to avoid an error.
9561    Use char because int might match the return type of a GCC
9562    builtin and then its argument prototype would still apply.  */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char dlopen ();
9567 /* The GNU C library defines this for functions which it implements
9568     to always fail with ENOSYS.  Some functions are actually named
9569     something starting with __ and the normal name is an alias.  */
9570 #if defined __stub_dlopen || defined __stub___dlopen
9571 choke me
9572 #endif
9573
9574 int
9575 main ()
9576 {
9577 return dlopen ();
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9589 $as_echo "$ac_try_echo") >&5
9590   (eval "$ac_link") 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } && {
9597          test -z "$ac_c_werror_flag" ||
9598          test ! -s conftest.err
9599        } && test -s conftest$ac_exeext && {
9600          test "$cross_compiling" = yes ||
9601          $as_test_x conftest$ac_exeext
9602        }; then
9603   ac_cv_func_dlopen=yes
9604 else
9605   $as_echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608         ac_cv_func_dlopen=no
9609 fi
9610
9611 rm -rf conftest.dSYM
9612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9613       conftest$ac_exeext conftest.$ac_ext
9614 fi
9615 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9616 $as_echo "$ac_cv_func_dlopen" >&6; }
9617 if test "x$ac_cv_func_dlopen" = x""yes; then
9618   lt_cv_dlopen="dlopen"
9619 else
9620   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9623   $as_echo_n "(cached) " >&6
9624 else
9625   ac_check_lib_save_LIBS=$LIBS
9626 LIBS="-ldl  $LIBS"
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635    Use char because int might match the return type of a GCC
9636    builtin and then its argument prototype would still apply.  */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char dlopen ();
9641 int
9642 main ()
9643 {
9644 return dlopen ();
9645   ;
9646   return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653   *) ac_try_echo=$ac_try;;
9654 esac
9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656 $as_echo "$ac_try_echo") >&5
9657   (eval "$ac_link") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && {
9664          test -z "$ac_c_werror_flag" ||
9665          test ! -s conftest.err
9666        } && test -s conftest$ac_exeext && {
9667          test "$cross_compiling" = yes ||
9668          $as_test_x conftest$ac_exeext
9669        }; then
9670   ac_cv_lib_dl_dlopen=yes
9671 else
9672   $as_echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675         ac_cv_lib_dl_dlopen=no
9676 fi
9677
9678 rm -rf conftest.dSYM
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680       conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9682 fi
9683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9684 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9685 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9686   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9687 else
9688   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9689 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9690 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9691   $as_echo_n "(cached) " >&6
9692 else
9693   ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-lsvld  $LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702 /* Override any GCC internal prototype to avoid an error.
9703    Use char because int might match the return type of a GCC
9704    builtin and then its argument prototype would still apply.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char dlopen ();
9709 int
9710 main ()
9711 {
9712 return dlopen ();
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9719 case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9724 $as_echo "$ac_try_echo") >&5
9725   (eval "$ac_link") 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } && {
9732          test -z "$ac_c_werror_flag" ||
9733          test ! -s conftest.err
9734        } && test -s conftest$ac_exeext && {
9735          test "$cross_compiling" = yes ||
9736          $as_test_x conftest$ac_exeext
9737        }; then
9738   ac_cv_lib_svld_dlopen=yes
9739 else
9740   $as_echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9742
9743         ac_cv_lib_svld_dlopen=no
9744 fi
9745
9746 rm -rf conftest.dSYM
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748       conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9750 fi
9751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9752 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9753 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9754   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9755 else
9756   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9757 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9758 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9759   $as_echo_n "(cached) " >&6
9760 else
9761   ac_check_lib_save_LIBS=$LIBS
9762 LIBS="-ldld  $LIBS"
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770 /* Override any GCC internal prototype to avoid an error.
9771    Use char because int might match the return type of a GCC
9772    builtin and then its argument prototype would still apply.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char dld_link ();
9777 int
9778 main ()
9779 {
9780 return dld_link ();
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9787 case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9792 $as_echo "$ac_try_echo") >&5
9793   (eval "$ac_link") 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } && {
9800          test -z "$ac_c_werror_flag" ||
9801          test ! -s conftest.err
9802        } && test -s conftest$ac_exeext && {
9803          test "$cross_compiling" = yes ||
9804          $as_test_x conftest$ac_exeext
9805        }; then
9806   ac_cv_lib_dld_dld_link=yes
9807 else
9808   $as_echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         ac_cv_lib_dld_dld_link=no
9812 fi
9813
9814 rm -rf conftest.dSYM
9815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9816       conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9818 fi
9819 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9820 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9821 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
9822   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9823 fi
9824
9825
9826 fi
9827
9828
9829 fi
9830
9831
9832 fi
9833
9834
9835 fi
9836
9837
9838 fi
9839
9840     ;;
9841   esac
9842
9843   if test "x$lt_cv_dlopen" != xno; then
9844     enable_dlopen=yes
9845   else
9846     enable_dlopen=no
9847   fi
9848
9849   case $lt_cv_dlopen in
9850   dlopen)
9851     save_CPPFLAGS="$CPPFLAGS"
9852     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9853
9854     save_LDFLAGS="$LDFLAGS"
9855     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9856
9857     save_LIBS="$LIBS"
9858     LIBS="$lt_cv_dlopen_libs $LIBS"
9859
9860     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9861 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9862 if test "${lt_cv_dlopen_self+set}" = set; then
9863   $as_echo_n "(cached) " >&6
9864 else
9865           if test "$cross_compiling" = yes; then :
9866   lt_cv_dlopen_self=cross
9867 else
9868   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9869   lt_status=$lt_dlunknown
9870   cat > conftest.$ac_ext <<EOF
9871 #line 9871 "configure"
9872 #include "confdefs.h"
9873
9874 #if HAVE_DLFCN_H
9875 #include <dlfcn.h>
9876 #endif
9877
9878 #include <stdio.h>
9879
9880 #ifdef RTLD_GLOBAL
9881 #  define LT_DLGLOBAL           RTLD_GLOBAL
9882 #else
9883 #  ifdef DL_GLOBAL
9884 #    define LT_DLGLOBAL         DL_GLOBAL
9885 #  else
9886 #    define LT_DLGLOBAL         0
9887 #  endif
9888 #endif
9889
9890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9891    find out it does not work in some platform. */
9892 #ifndef LT_DLLAZY_OR_NOW
9893 #  ifdef RTLD_LAZY
9894 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9895 #  else
9896 #    ifdef DL_LAZY
9897 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9898 #    else
9899 #      ifdef RTLD_NOW
9900 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9901 #      else
9902 #        ifdef DL_NOW
9903 #          define LT_DLLAZY_OR_NOW      DL_NOW
9904 #        else
9905 #          define LT_DLLAZY_OR_NOW      0
9906 #        endif
9907 #      endif
9908 #    endif
9909 #  endif
9910 #endif
9911
9912 #ifdef __cplusplus
9913 extern "C" void exit (int);
9914 #endif
9915
9916 void fnord() { int i=42;}
9917 int main ()
9918 {
9919   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9920   int status = $lt_dlunknown;
9921
9922   if (self)
9923     {
9924       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9925       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9926       /* dlclose (self); */
9927     }
9928   else
9929     puts (dlerror ());
9930
9931     exit (status);
9932 }
9933 EOF
9934   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935   (eval $ac_link) 2>&5
9936   ac_status=$?
9937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9939     (./conftest; exit; ) >&5 2>/dev/null
9940     lt_status=$?
9941     case x$lt_status in
9942       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9943       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9944       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9945     esac
9946   else :
9947     # compilation failed
9948     lt_cv_dlopen_self=no
9949   fi
9950 fi
9951 rm -fr conftest*
9952
9953
9954 fi
9955 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9956 $as_echo "$lt_cv_dlopen_self" >&6; }
9957
9958     if test "x$lt_cv_dlopen_self" = xyes; then
9959       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9960       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9961 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9962 if test "${lt_cv_dlopen_self_static+set}" = set; then
9963   $as_echo_n "(cached) " >&6
9964 else
9965           if test "$cross_compiling" = yes; then :
9966   lt_cv_dlopen_self_static=cross
9967 else
9968   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9969   lt_status=$lt_dlunknown
9970   cat > conftest.$ac_ext <<EOF
9971 #line 9971 "configure"
9972 #include "confdefs.h"
9973
9974 #if HAVE_DLFCN_H
9975 #include <dlfcn.h>
9976 #endif
9977
9978 #include <stdio.h>
9979
9980 #ifdef RTLD_GLOBAL
9981 #  define LT_DLGLOBAL           RTLD_GLOBAL
9982 #else
9983 #  ifdef DL_GLOBAL
9984 #    define LT_DLGLOBAL         DL_GLOBAL
9985 #  else
9986 #    define LT_DLGLOBAL         0
9987 #  endif
9988 #endif
9989
9990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9991    find out it does not work in some platform. */
9992 #ifndef LT_DLLAZY_OR_NOW
9993 #  ifdef RTLD_LAZY
9994 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9995 #  else
9996 #    ifdef DL_LAZY
9997 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9998 #    else
9999 #      ifdef RTLD_NOW
10000 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10001 #      else
10002 #        ifdef DL_NOW
10003 #          define LT_DLLAZY_OR_NOW      DL_NOW
10004 #        else
10005 #          define LT_DLLAZY_OR_NOW      0
10006 #        endif
10007 #      endif
10008 #    endif
10009 #  endif
10010 #endif
10011
10012 #ifdef __cplusplus
10013 extern "C" void exit (int);
10014 #endif
10015
10016 void fnord() { int i=42;}
10017 int main ()
10018 {
10019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10020   int status = $lt_dlunknown;
10021
10022   if (self)
10023     {
10024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10025       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10026       /* dlclose (self); */
10027     }
10028   else
10029     puts (dlerror ());
10030
10031     exit (status);
10032 }
10033 EOF
10034   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035   (eval $ac_link) 2>&5
10036   ac_status=$?
10037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10039     (./conftest; exit; ) >&5 2>/dev/null
10040     lt_status=$?
10041     case x$lt_status in
10042       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10043       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10044       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10045     esac
10046   else :
10047     # compilation failed
10048     lt_cv_dlopen_self_static=no
10049   fi
10050 fi
10051 rm -fr conftest*
10052
10053
10054 fi
10055 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10056 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10057     fi
10058
10059     CPPFLAGS="$save_CPPFLAGS"
10060     LDFLAGS="$save_LDFLAGS"
10061     LIBS="$save_LIBS"
10062     ;;
10063   esac
10064
10065   case $lt_cv_dlopen_self in
10066   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10067   *) enable_dlopen_self=unknown ;;
10068   esac
10069
10070   case $lt_cv_dlopen_self_static in
10071   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10072   *) enable_dlopen_self_static=unknown ;;
10073   esac
10074 fi
10075
10076
10077 # Report which library types will actually be built
10078 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10079 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10080 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10081 $as_echo "$can_build_shared" >&6; }
10082
10083 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10084 $as_echo_n "checking whether to build shared libraries... " >&6; }
10085 test "$can_build_shared" = "no" && enable_shared=no
10086
10087 # On AIX, shared libraries and static libraries use the same namespace, and
10088 # are all built from PIC.
10089 case $host_os in
10090 aix3*)
10091   test "$enable_shared" = yes && enable_static=no
10092   if test -n "$RANLIB"; then
10093     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10094     postinstall_cmds='$RANLIB $lib'
10095   fi
10096   ;;
10097
10098 aix[4-9]*)
10099   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10100     test "$enable_shared" = yes && enable_static=no
10101   fi
10102     ;;
10103 esac
10104 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10105 $as_echo "$enable_shared" >&6; }
10106
10107 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10108 $as_echo_n "checking whether to build static libraries... " >&6; }
10109 # Make sure either enable_shared or enable_static is yes.
10110 test "$enable_shared" = yes || enable_static=yes
10111 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10112 $as_echo "$enable_static" >&6; }
10113
10114 # The else clause should only fire when bootstrapping the
10115 # libtool distribution, otherwise you forgot to ship ltmain.sh
10116 # with your package, and you will get complaints that there are
10117 # no rules to generate ltmain.sh.
10118 if test -f "$ltmain"; then
10119   # See if we are running on zsh, and set the options which allow our commands through
10120   # without removal of \ escapes.
10121   if test -n "${ZSH_VERSION+set}" ; then
10122     setopt NO_GLOB_SUBST
10123   fi
10124   # Now quote all the things that may contain metacharacters while being
10125   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10126   # variables and quote the copies for generation of the libtool script.
10127   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10128     SED SHELL STRIP \
10129     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10130     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10131     deplibs_check_method reload_flag reload_cmds need_locks \
10132     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10133     lt_cv_sys_global_symbol_to_c_name_address \
10134     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10135     old_postinstall_cmds old_postuninstall_cmds \
10136     compiler \
10137     CC \
10138     LD \
10139     lt_prog_compiler_wl \
10140     lt_prog_compiler_pic \
10141     lt_prog_compiler_static \
10142     lt_prog_compiler_no_builtin_flag \
10143     export_dynamic_flag_spec \
10144     thread_safe_flag_spec \
10145     whole_archive_flag_spec \
10146     enable_shared_with_static_runtimes \
10147     old_archive_cmds \
10148     old_archive_from_new_cmds \
10149     predep_objects \
10150     postdep_objects \
10151     predeps \
10152     postdeps \
10153     compiler_lib_search_path \
10154     compiler_lib_search_dirs \
10155     archive_cmds \
10156     archive_expsym_cmds \
10157     postinstall_cmds \
10158     postuninstall_cmds \
10159     old_archive_from_expsyms_cmds \
10160     allow_undefined_flag \
10161     no_undefined_flag \
10162     export_symbols_cmds \
10163     hardcode_libdir_flag_spec \
10164     hardcode_libdir_flag_spec_ld \
10165     hardcode_libdir_separator \
10166     hardcode_automatic \
10167     module_cmds \
10168     module_expsym_cmds \
10169     lt_cv_prog_compiler_c_o \
10170     fix_srcfile_path \
10171     exclude_expsyms \
10172     include_expsyms; do
10173
10174     case $var in
10175     old_archive_cmds | \
10176     old_archive_from_new_cmds | \
10177     archive_cmds | \
10178     archive_expsym_cmds | \
10179     module_cmds | \
10180     module_expsym_cmds | \
10181     old_archive_from_expsyms_cmds | \
10182     export_symbols_cmds | \
10183     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10184     postinstall_cmds | postuninstall_cmds | \
10185     old_postinstall_cmds | old_postuninstall_cmds | \
10186     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10187       # Double-quote double-evaled strings.
10188       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10189       ;;
10190     *)
10191       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10192       ;;
10193     esac
10194   done
10195
10196   case $lt_echo in
10197   *'\$0 --fallback-echo"')
10198     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10199     ;;
10200   esac
10201
10202 cfgfile="${ofile}T"
10203   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10204   $rm -f "$cfgfile"
10205   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10206 $as_echo "$as_me: creating $ofile" >&6;}
10207
10208   cat <<__EOF__ >> "$cfgfile"
10209 #! $SHELL
10210
10211 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10212 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10214 #
10215 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10216 # Free Software Foundation, Inc.
10217 #
10218 # This file is part of GNU Libtool:
10219 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10220 #
10221 # This program is free software; you can redistribute it and/or modify
10222 # it under the terms of the GNU General Public License as published by
10223 # the Free Software Foundation; either version 2 of the License, or
10224 # (at your option) any later version.
10225 #
10226 # This program is distributed in the hope that it will be useful, but
10227 # WITHOUT ANY WARRANTY; without even the implied warranty of
10228 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10229 # General Public License for more details.
10230 #
10231 # You should have received a copy of the GNU General Public License
10232 # along with this program; if not, write to the Free Software
10233 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10234 #
10235 # As a special exception to the GNU General Public License, if you
10236 # distribute this file as part of a program that contains a
10237 # configuration script generated by Autoconf, you may include it under
10238 # the same distribution terms that you use for the rest of that program.
10239
10240 # A sed program that does not truncate output.
10241 SED=$lt_SED
10242
10243 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10244 Xsed="$SED -e 1s/^X//"
10245
10246 # The HP-UX ksh and POSIX shell print the target directory to stdout
10247 # if CDPATH is set.
10248 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10249
10250 # The names of the tagged configurations supported by this script.
10251 available_tags=
10252
10253 # ### BEGIN LIBTOOL CONFIG
10254
10255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10256
10257 # Shell to use when invoking shell scripts.
10258 SHELL=$lt_SHELL
10259
10260 # Whether or not to build shared libraries.
10261 build_libtool_libs=$enable_shared
10262
10263 # Whether or not to build static libraries.
10264 build_old_libs=$enable_static
10265
10266 # Whether or not to add -lc for building shared libraries.
10267 build_libtool_need_lc=$archive_cmds_need_lc
10268
10269 # Whether or not to disallow shared libs when runtime libs are static
10270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10271
10272 # Whether or not to optimize for fast installation.
10273 fast_install=$enable_fast_install
10274
10275 # The host system.
10276 host_alias=$host_alias
10277 host=$host
10278 host_os=$host_os
10279
10280 # The build system.
10281 build_alias=$build_alias
10282 build=$build
10283 build_os=$build_os
10284
10285 # An echo program that does not interpret backslashes.
10286 echo=$lt_echo
10287
10288 # The archiver.
10289 AR=$lt_AR
10290 AR_FLAGS=$lt_AR_FLAGS
10291
10292 # A C compiler.
10293 LTCC=$lt_LTCC
10294
10295 # LTCC compiler flags.
10296 LTCFLAGS=$lt_LTCFLAGS
10297
10298 # A language-specific compiler.
10299 CC=$lt_compiler
10300
10301 # Is the compiler the GNU C compiler?
10302 with_gcc=$GCC
10303
10304 # An ERE matcher.
10305 EGREP=$lt_EGREP
10306
10307 # The linker used to build libraries.
10308 LD=$lt_LD
10309
10310 # Whether we need hard or soft links.
10311 LN_S=$lt_LN_S
10312
10313 # A BSD-compatible nm program.
10314 NM=$lt_NM
10315
10316 # A symbol stripping program
10317 STRIP=$lt_STRIP
10318
10319 # Used to examine libraries when file_magic_cmd begins "file"
10320 MAGIC_CMD=$MAGIC_CMD
10321
10322 # Used on cygwin: DLL creation program.
10323 DLLTOOL="$DLLTOOL"
10324
10325 # Used on cygwin: object dumper.
10326 OBJDUMP="$OBJDUMP"
10327
10328 # Used on cygwin: assembler.
10329 AS="$AS"
10330
10331 # The name of the directory that contains temporary libtool files.
10332 objdir=$objdir
10333
10334 # How to create reloadable object files.
10335 reload_flag=$lt_reload_flag
10336 reload_cmds=$lt_reload_cmds
10337
10338 # How to pass a linker flag through the compiler.
10339 wl=$lt_lt_prog_compiler_wl
10340
10341 # Object file suffix (normally "o").
10342 objext="$ac_objext"
10343
10344 # Old archive suffix (normally "a").
10345 libext="$libext"
10346
10347 # Shared library suffix (normally ".so").
10348 shrext_cmds='$shrext_cmds'
10349
10350 # Executable file suffix (normally "").
10351 exeext="$exeext"
10352
10353 # Additional compiler flags for building library objects.
10354 pic_flag=$lt_lt_prog_compiler_pic
10355 pic_mode=$pic_mode
10356
10357 # What is the maximum length of a command?
10358 max_cmd_len=$lt_cv_sys_max_cmd_len
10359
10360 # Does compiler simultaneously support -c and -o options?
10361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10362
10363 # Must we lock files when doing compilation?
10364 need_locks=$lt_need_locks
10365
10366 # Do we need the lib prefix for modules?
10367 need_lib_prefix=$need_lib_prefix
10368
10369 # Do we need a version for libraries?
10370 need_version=$need_version
10371
10372 # Whether dlopen is supported.
10373 dlopen_support=$enable_dlopen
10374
10375 # Whether dlopen of programs is supported.
10376 dlopen_self=$enable_dlopen_self
10377
10378 # Whether dlopen of statically linked programs is supported.
10379 dlopen_self_static=$enable_dlopen_self_static
10380
10381 # Compiler flag to prevent dynamic linking.
10382 link_static_flag=$lt_lt_prog_compiler_static
10383
10384 # Compiler flag to turn off builtin functions.
10385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10386
10387 # Compiler flag to allow reflexive dlopens.
10388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10389
10390 # Compiler flag to generate shared objects directly from archives.
10391 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10392
10393 # Compiler flag to generate thread-safe objects.
10394 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10395
10396 # Library versioning type.
10397 version_type=$version_type
10398
10399 # Format of library name prefix.
10400 libname_spec=$lt_libname_spec
10401
10402 # List of archive names.  First name is the real one, the rest are links.
10403 # The last name is the one that the linker finds with -lNAME.
10404 library_names_spec=$lt_library_names_spec
10405
10406 # The coded name of the library, if different from the real name.
10407 soname_spec=$lt_soname_spec
10408
10409 # Commands used to build and install an old-style archive.
10410 RANLIB=$lt_RANLIB
10411 old_archive_cmds=$lt_old_archive_cmds
10412 old_postinstall_cmds=$lt_old_postinstall_cmds
10413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10414
10415 # Create an old-style archive from a shared archive.
10416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10417
10418 # Create a temporary old-style archive to link instead of a shared archive.
10419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10420
10421 # Commands used to build and install a shared archive.
10422 archive_cmds=$lt_archive_cmds
10423 archive_expsym_cmds=$lt_archive_expsym_cmds
10424 postinstall_cmds=$lt_postinstall_cmds
10425 postuninstall_cmds=$lt_postuninstall_cmds
10426
10427 # Commands used to build a loadable module (assumed same as above if empty)
10428 module_cmds=$lt_module_cmds
10429 module_expsym_cmds=$lt_module_expsym_cmds
10430
10431 # Commands to strip libraries.
10432 old_striplib=$lt_old_striplib
10433 striplib=$lt_striplib
10434
10435 # Dependencies to place before the objects being linked to create a
10436 # shared library.
10437 predep_objects=$lt_predep_objects
10438
10439 # Dependencies to place after the objects being linked to create a
10440 # shared library.
10441 postdep_objects=$lt_postdep_objects
10442
10443 # Dependencies to place before the objects being linked to create a
10444 # shared library.
10445 predeps=$lt_predeps
10446
10447 # Dependencies to place after the objects being linked to create a
10448 # shared library.
10449 postdeps=$lt_postdeps
10450
10451 # The directories searched by this compiler when creating a shared
10452 # library
10453 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10454
10455 # The library search path used internally by the compiler when linking
10456 # a shared library.
10457 compiler_lib_search_path=$lt_compiler_lib_search_path
10458
10459 # Method to check whether dependent libraries are shared objects.
10460 deplibs_check_method=$lt_deplibs_check_method
10461
10462 # Command to use when deplibs_check_method == file_magic.
10463 file_magic_cmd=$lt_file_magic_cmd
10464
10465 # Flag that allows shared libraries with undefined symbols to be built.
10466 allow_undefined_flag=$lt_allow_undefined_flag
10467
10468 # Flag that forces no undefined symbols.
10469 no_undefined_flag=$lt_no_undefined_flag
10470
10471 # Commands used to finish a libtool library installation in a directory.
10472 finish_cmds=$lt_finish_cmds
10473
10474 # Same as above, but a single script fragment to be evaled but not shown.
10475 finish_eval=$lt_finish_eval
10476
10477 # Take the output of nm and produce a listing of raw symbols and C names.
10478 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10479
10480 # Transform the output of nm in a proper C declaration
10481 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10482
10483 # Transform the output of nm in a C name address pair
10484 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10485
10486 # This is the shared library runtime path variable.
10487 runpath_var=$runpath_var
10488
10489 # This is the shared library path variable.
10490 shlibpath_var=$shlibpath_var
10491
10492 # Is shlibpath searched before the hard-coded library search path?
10493 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10494
10495 # How to hardcode a shared library path into an executable.
10496 hardcode_action=$hardcode_action
10497
10498 # Whether we should hardcode library paths into libraries.
10499 hardcode_into_libs=$hardcode_into_libs
10500
10501 # Flag to hardcode \$libdir into a binary during linking.
10502 # This must work even if \$libdir does not exist.
10503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10504
10505 # If ld is used when linking, flag to hardcode \$libdir into
10506 # a binary during linking. This must work even if \$libdir does
10507 # not exist.
10508 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10509
10510 # Whether we need a single -rpath flag with a separated argument.
10511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10512
10513 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10514 # resulting binary.
10515 hardcode_direct=$hardcode_direct
10516
10517 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10518 # resulting binary.
10519 hardcode_minus_L=$hardcode_minus_L
10520
10521 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10522 # the resulting binary.
10523 hardcode_shlibpath_var=$hardcode_shlibpath_var
10524
10525 # Set to yes if building a shared library automatically hardcodes DIR into the library
10526 # and all subsequent libraries and executables linked against it.
10527 hardcode_automatic=$hardcode_automatic
10528
10529 # Variables whose values should be saved in libtool wrapper scripts and
10530 # restored at relink time.
10531 variables_saved_for_relink="$variables_saved_for_relink"
10532
10533 # Whether libtool must link a program against all its dependency libraries.
10534 link_all_deplibs=$link_all_deplibs
10535
10536 # Compile-time system search path for libraries
10537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10538
10539 # Run-time system search path for libraries
10540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10541
10542 # Fix the shell variable \$srcfile for the compiler.
10543 fix_srcfile_path=$lt_fix_srcfile_path
10544
10545 # Set to yes if exported symbols are required.
10546 always_export_symbols=$always_export_symbols
10547
10548 # The commands to list exported symbols.
10549 export_symbols_cmds=$lt_export_symbols_cmds
10550
10551 # The commands to extract the exported symbol list from a shared archive.
10552 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10553
10554 # Symbols that should not be listed in the preloaded symbols.
10555 exclude_expsyms=$lt_exclude_expsyms
10556
10557 # Symbols that must always be exported.
10558 include_expsyms=$lt_include_expsyms
10559
10560 # ### END LIBTOOL CONFIG
10561
10562 __EOF__
10563
10564
10565   case $host_os in
10566   aix3*)
10567     cat <<\EOF >> "$cfgfile"
10568
10569 # AIX sometimes has problems with the GCC collect2 program.  For some
10570 # reason, if we set the COLLECT_NAMES environment variable, the problems
10571 # vanish in a puff of smoke.
10572 if test "X${COLLECT_NAMES+set}" != Xset; then
10573   COLLECT_NAMES=
10574   export COLLECT_NAMES
10575 fi
10576 EOF
10577     ;;
10578   esac
10579
10580   # We use sed instead of cat because bash on DJGPP gets confused if
10581   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10582   # text mode, it properly converts lines to CR/LF.  This bash problem
10583   # is reportedly fixed, but why not run on old versions too?
10584   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10585
10586   mv -f "$cfgfile" "$ofile" || \
10587     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10588   chmod +x "$ofile"
10589
10590 else
10591   # If there is no Makefile yet, we rely on a make rule to execute
10592   # `config.status --recheck' to rerun these tests and create the
10593   # libtool script then.
10594   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10595   if test -f "$ltmain_in"; then
10596     test -f Makefile && make "$ltmain"
10597   fi
10598 fi
10599
10600
10601 ac_ext=c
10602 ac_cpp='$CPP $CPPFLAGS'
10603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10606
10607 CC="$lt_save_CC"
10608
10609
10610 # Check whether --with-tags was given.
10611 if test "${with_tags+set}" = set; then
10612   withval=$with_tags; tagnames="$withval"
10613 fi
10614
10615
10616 if test -f "$ltmain" && test -n "$tagnames"; then
10617   if test ! -f "${ofile}"; then
10618     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10619 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10620   fi
10621
10622   if test -z "$LTCC"; then
10623     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10624     if test -z "$LTCC"; then
10625       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10626 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10627     else
10628       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10629 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10630     fi
10631   fi
10632   if test -z "$LTCFLAGS"; then
10633     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10634   fi
10635
10636   # Extract list of available tagged configurations in $ofile.
10637   # Note that this assumes the entire list is on one line.
10638   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10639
10640   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10641   for tagname in $tagnames; do
10642     IFS="$lt_save_ifs"
10643     # Check whether tagname contains only valid characters
10644     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10645     "") ;;
10646     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10647 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10648    { (exit 1); exit 1; }; }
10649         ;;
10650     esac
10651
10652     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10653     then
10654       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10655 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10656    { (exit 1); exit 1; }; }
10657     fi
10658
10659     # Update the list of available tags.
10660     if test -n "$tagname"; then
10661       echo appending configuration tag \"$tagname\" to $ofile
10662
10663       case $tagname in
10664       CXX)
10665         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10666             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10667             (test "X$CXX" != "Xg++"))) ; then
10668           :
10669         else
10670           tagname=""
10671         fi
10672         ;;
10673
10674       F77)
10675         if test -n "$F77" && test "X$F77" != "Xno"; then
10676           :
10677         else
10678           tagname=""
10679         fi
10680         ;;
10681
10682       GCJ)
10683         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10684           :
10685         else
10686           tagname=""
10687         fi
10688         ;;
10689
10690       RC)
10691
10692
10693 # Source file extension for RC test sources.
10694 ac_ext=rc
10695
10696 # Object file extension for compiled RC test sources.
10697 objext=o
10698 objext_RC=$objext
10699
10700 # Code to be used in simple compile tests
10701 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10702
10703 # Code to be used in simple link tests
10704 lt_simple_link_test_code="$lt_simple_compile_test_code"
10705
10706 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10707
10708 # If no C compiler was specified, use CC.
10709 LTCC=${LTCC-"$CC"}
10710
10711 # If no C compiler flags were specified, use CFLAGS.
10712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10713
10714 # Allow CC to be a program name with arguments.
10715 compiler=$CC
10716
10717
10718 # save warnings/boilerplate of simple test code
10719 ac_outfile=conftest.$ac_objext
10720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10722 _lt_compiler_boilerplate=`cat conftest.err`
10723 $rm conftest*
10724
10725 ac_outfile=conftest.$ac_objext
10726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10728 _lt_linker_boilerplate=`cat conftest.err`
10729 $rm -r conftest*
10730
10731
10732 # Allow CC to be a program name with arguments.
10733 lt_save_CC="$CC"
10734 CC=${RC-"windres"}
10735 compiler=$CC
10736 compiler_RC=$CC
10737 for cc_temp in $compiler""; do
10738   case $cc_temp in
10739     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10740     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10741     \-*) ;;
10742     *) break;;
10743   esac
10744 done
10745 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10746
10747 lt_cv_prog_compiler_c_o_RC=yes
10748
10749 # The else clause should only fire when bootstrapping the
10750 # libtool distribution, otherwise you forgot to ship ltmain.sh
10751 # with your package, and you will get complaints that there are
10752 # no rules to generate ltmain.sh.
10753 if test -f "$ltmain"; then
10754   # See if we are running on zsh, and set the options which allow our commands through
10755   # without removal of \ escapes.
10756   if test -n "${ZSH_VERSION+set}" ; then
10757     setopt NO_GLOB_SUBST
10758   fi
10759   # Now quote all the things that may contain metacharacters while being
10760   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10761   # variables and quote the copies for generation of the libtool script.
10762   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10763     SED SHELL STRIP \
10764     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10765     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10766     deplibs_check_method reload_flag reload_cmds need_locks \
10767     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10768     lt_cv_sys_global_symbol_to_c_name_address \
10769     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10770     old_postinstall_cmds old_postuninstall_cmds \
10771     compiler_RC \
10772     CC_RC \
10773     LD_RC \
10774     lt_prog_compiler_wl_RC \
10775     lt_prog_compiler_pic_RC \
10776     lt_prog_compiler_static_RC \
10777     lt_prog_compiler_no_builtin_flag_RC \
10778     export_dynamic_flag_spec_RC \
10779     thread_safe_flag_spec_RC \
10780     whole_archive_flag_spec_RC \
10781     enable_shared_with_static_runtimes_RC \
10782     old_archive_cmds_RC \
10783     old_archive_from_new_cmds_RC \
10784     predep_objects_RC \
10785     postdep_objects_RC \
10786     predeps_RC \
10787     postdeps_RC \
10788     compiler_lib_search_path_RC \
10789     compiler_lib_search_dirs_RC \
10790     archive_cmds_RC \
10791     archive_expsym_cmds_RC \
10792     postinstall_cmds_RC \
10793     postuninstall_cmds_RC \
10794     old_archive_from_expsyms_cmds_RC \
10795     allow_undefined_flag_RC \
10796     no_undefined_flag_RC \
10797     export_symbols_cmds_RC \
10798     hardcode_libdir_flag_spec_RC \
10799     hardcode_libdir_flag_spec_ld_RC \
10800     hardcode_libdir_separator_RC \
10801     hardcode_automatic_RC \
10802     module_cmds_RC \
10803     module_expsym_cmds_RC \
10804     lt_cv_prog_compiler_c_o_RC \
10805     fix_srcfile_path_RC \
10806     exclude_expsyms_RC \
10807     include_expsyms_RC; do
10808
10809     case $var in
10810     old_archive_cmds_RC | \
10811     old_archive_from_new_cmds_RC | \
10812     archive_cmds_RC | \
10813     archive_expsym_cmds_RC | \
10814     module_cmds_RC | \
10815     module_expsym_cmds_RC | \
10816     old_archive_from_expsyms_cmds_RC | \
10817     export_symbols_cmds_RC | \
10818     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10819     postinstall_cmds | postuninstall_cmds | \
10820     old_postinstall_cmds | old_postuninstall_cmds | \
10821     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10822       # Double-quote double-evaled strings.
10823       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10824       ;;
10825     *)
10826       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10827       ;;
10828     esac
10829   done
10830
10831   case $lt_echo in
10832   *'\$0 --fallback-echo"')
10833     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10834     ;;
10835   esac
10836
10837 cfgfile="$ofile"
10838
10839   cat <<__EOF__ >> "$cfgfile"
10840 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
10841
10842 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10843
10844 # Shell to use when invoking shell scripts.
10845 SHELL=$lt_SHELL
10846
10847 # Whether or not to build shared libraries.
10848 build_libtool_libs=$enable_shared
10849
10850 # Whether or not to build static libraries.
10851 build_old_libs=$enable_static
10852
10853 # Whether or not to add -lc for building shared libraries.
10854 build_libtool_need_lc=$archive_cmds_need_lc_RC
10855
10856 # Whether or not to disallow shared libs when runtime libs are static
10857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
10858
10859 # Whether or not to optimize for fast installation.
10860 fast_install=$enable_fast_install
10861
10862 # The host system.
10863 host_alias=$host_alias
10864 host=$host
10865 host_os=$host_os
10866
10867 # The build system.
10868 build_alias=$build_alias
10869 build=$build
10870 build_os=$build_os
10871
10872 # An echo program that does not interpret backslashes.
10873 echo=$lt_echo
10874
10875 # The archiver.
10876 AR=$lt_AR
10877 AR_FLAGS=$lt_AR_FLAGS
10878
10879 # A C compiler.
10880 LTCC=$lt_LTCC
10881
10882 # LTCC compiler flags.
10883 LTCFLAGS=$lt_LTCFLAGS
10884
10885 # A language-specific compiler.
10886 CC=$lt_compiler_RC
10887
10888 # Is the compiler the GNU C compiler?
10889 with_gcc=$GCC_RC
10890
10891 # An ERE matcher.
10892 EGREP=$lt_EGREP
10893
10894 # The linker used to build libraries.
10895 LD=$lt_LD_RC
10896
10897 # Whether we need hard or soft links.
10898 LN_S=$lt_LN_S
10899
10900 # A BSD-compatible nm program.
10901 NM=$lt_NM
10902
10903 # A symbol stripping program
10904 STRIP=$lt_STRIP
10905
10906 # Used to examine libraries when file_magic_cmd begins "file"
10907 MAGIC_CMD=$MAGIC_CMD
10908
10909 # Used on cygwin: DLL creation program.
10910 DLLTOOL="$DLLTOOL"
10911
10912 # Used on cygwin: object dumper.
10913 OBJDUMP="$OBJDUMP"
10914
10915 # Used on cygwin: assembler.
10916 AS="$AS"
10917
10918 # The name of the directory that contains temporary libtool files.
10919 objdir=$objdir
10920
10921 # How to create reloadable object files.
10922 reload_flag=$lt_reload_flag
10923 reload_cmds=$lt_reload_cmds
10924
10925 # How to pass a linker flag through the compiler.
10926 wl=$lt_lt_prog_compiler_wl_RC
10927
10928 # Object file suffix (normally "o").
10929 objext="$ac_objext"
10930
10931 # Old archive suffix (normally "a").
10932 libext="$libext"
10933
10934 # Shared library suffix (normally ".so").
10935 shrext_cmds='$shrext_cmds'
10936
10937 # Executable file suffix (normally "").
10938 exeext="$exeext"
10939
10940 # Additional compiler flags for building library objects.
10941 pic_flag=$lt_lt_prog_compiler_pic_RC
10942 pic_mode=$pic_mode
10943
10944 # What is the maximum length of a command?
10945 max_cmd_len=$lt_cv_sys_max_cmd_len
10946
10947 # Does compiler simultaneously support -c and -o options?
10948 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
10949
10950 # Must we lock files when doing compilation?
10951 need_locks=$lt_need_locks
10952
10953 # Do we need the lib prefix for modules?
10954 need_lib_prefix=$need_lib_prefix
10955
10956 # Do we need a version for libraries?
10957 need_version=$need_version
10958
10959 # Whether dlopen is supported.
10960 dlopen_support=$enable_dlopen
10961
10962 # Whether dlopen of programs is supported.
10963 dlopen_self=$enable_dlopen_self
10964
10965 # Whether dlopen of statically linked programs is supported.
10966 dlopen_self_static=$enable_dlopen_self_static
10967
10968 # Compiler flag to prevent dynamic linking.
10969 link_static_flag=$lt_lt_prog_compiler_static_RC
10970
10971 # Compiler flag to turn off builtin functions.
10972 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
10973
10974 # Compiler flag to allow reflexive dlopens.
10975 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
10976
10977 # Compiler flag to generate shared objects directly from archives.
10978 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
10979
10980 # Compiler flag to generate thread-safe objects.
10981 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
10982
10983 # Library versioning type.
10984 version_type=$version_type
10985
10986 # Format of library name prefix.
10987 libname_spec=$lt_libname_spec
10988
10989 # List of archive names.  First name is the real one, the rest are links.
10990 # The last name is the one that the linker finds with -lNAME.
10991 library_names_spec=$lt_library_names_spec
10992
10993 # The coded name of the library, if different from the real name.
10994 soname_spec=$lt_soname_spec
10995
10996 # Commands used to build and install an old-style archive.
10997 RANLIB=$lt_RANLIB
10998 old_archive_cmds=$lt_old_archive_cmds_RC
10999 old_postinstall_cmds=$lt_old_postinstall_cmds
11000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11001
11002 # Create an old-style archive from a shared archive.
11003 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11004
11005 # Create a temporary old-style archive to link instead of a shared archive.
11006 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11007
11008 # Commands used to build and install a shared archive.
11009 archive_cmds=$lt_archive_cmds_RC
11010 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11011 postinstall_cmds=$lt_postinstall_cmds
11012 postuninstall_cmds=$lt_postuninstall_cmds
11013
11014 # Commands used to build a loadable module (assumed same as above if empty)
11015 module_cmds=$lt_module_cmds_RC
11016 module_expsym_cmds=$lt_module_expsym_cmds_RC
11017
11018 # Commands to strip libraries.
11019 old_striplib=$lt_old_striplib
11020 striplib=$lt_striplib
11021
11022 # Dependencies to place before the objects being linked to create a
11023 # shared library.
11024 predep_objects=$lt_predep_objects_RC
11025
11026 # Dependencies to place after the objects being linked to create a
11027 # shared library.
11028 postdep_objects=$lt_postdep_objects_RC
11029
11030 # Dependencies to place before the objects being linked to create a
11031 # shared library.
11032 predeps=$lt_predeps_RC
11033
11034 # Dependencies to place after the objects being linked to create a
11035 # shared library.
11036 postdeps=$lt_postdeps_RC
11037
11038 # The directories searched by this compiler when creating a shared
11039 # library
11040 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
11041
11042 # The library search path used internally by the compiler when linking
11043 # a shared library.
11044 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11045
11046 # Method to check whether dependent libraries are shared objects.
11047 deplibs_check_method=$lt_deplibs_check_method
11048
11049 # Command to use when deplibs_check_method == file_magic.
11050 file_magic_cmd=$lt_file_magic_cmd
11051
11052 # Flag that allows shared libraries with undefined symbols to be built.
11053 allow_undefined_flag=$lt_allow_undefined_flag_RC
11054
11055 # Flag that forces no undefined symbols.
11056 no_undefined_flag=$lt_no_undefined_flag_RC
11057
11058 # Commands used to finish a libtool library installation in a directory.
11059 finish_cmds=$lt_finish_cmds
11060
11061 # Same as above, but a single script fragment to be evaled but not shown.
11062 finish_eval=$lt_finish_eval
11063
11064 # Take the output of nm and produce a listing of raw symbols and C names.
11065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11066
11067 # Transform the output of nm in a proper C declaration
11068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11069
11070 # Transform the output of nm in a C name address pair
11071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11072
11073 # This is the shared library runtime path variable.
11074 runpath_var=$runpath_var
11075
11076 # This is the shared library path variable.
11077 shlibpath_var=$shlibpath_var
11078
11079 # Is shlibpath searched before the hard-coded library search path?
11080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11081
11082 # How to hardcode a shared library path into an executable.
11083 hardcode_action=$hardcode_action_RC
11084
11085 # Whether we should hardcode library paths into libraries.
11086 hardcode_into_libs=$hardcode_into_libs
11087
11088 # Flag to hardcode \$libdir into a binary during linking.
11089 # This must work even if \$libdir does not exist.
11090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11091
11092 # If ld is used when linking, flag to hardcode \$libdir into
11093 # a binary during linking. This must work even if \$libdir does
11094 # not exist.
11095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11096
11097 # Whether we need a single -rpath flag with a separated argument.
11098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11099
11100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11101 # resulting binary.
11102 hardcode_direct=$hardcode_direct_RC
11103
11104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11105 # resulting binary.
11106 hardcode_minus_L=$hardcode_minus_L_RC
11107
11108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11109 # the resulting binary.
11110 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11111
11112 # Set to yes if building a shared library automatically hardcodes DIR into the library
11113 # and all subsequent libraries and executables linked against it.
11114 hardcode_automatic=$hardcode_automatic_RC
11115
11116 # Variables whose values should be saved in libtool wrapper scripts and
11117 # restored at relink time.
11118 variables_saved_for_relink="$variables_saved_for_relink"
11119
11120 # Whether libtool must link a program against all its dependency libraries.
11121 link_all_deplibs=$link_all_deplibs_RC
11122
11123 # Compile-time system search path for libraries
11124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11125
11126 # Run-time system search path for libraries
11127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11128
11129 # Fix the shell variable \$srcfile for the compiler.
11130 fix_srcfile_path=$lt_fix_srcfile_path
11131
11132 # Set to yes if exported symbols are required.
11133 always_export_symbols=$always_export_symbols_RC
11134
11135 # The commands to list exported symbols.
11136 export_symbols_cmds=$lt_export_symbols_cmds_RC
11137
11138 # The commands to extract the exported symbol list from a shared archive.
11139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11140
11141 # Symbols that should not be listed in the preloaded symbols.
11142 exclude_expsyms=$lt_exclude_expsyms_RC
11143
11144 # Symbols that must always be exported.
11145 include_expsyms=$lt_include_expsyms_RC
11146
11147 # ### END LIBTOOL TAG CONFIG: $tagname
11148
11149 __EOF__
11150
11151
11152 else
11153   # If there is no Makefile yet, we rely on a make rule to execute
11154   # `config.status --recheck' to rerun these tests and create the
11155   # libtool script then.
11156   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11157   if test -f "$ltmain_in"; then
11158     test -f Makefile && make "$ltmain"
11159   fi
11160 fi
11161
11162
11163 ac_ext=c
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11168
11169 CC="$lt_save_CC"
11170
11171         ;;
11172
11173       *)
11174         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11175 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11176    { (exit 1); exit 1; }; }
11177         ;;
11178       esac
11179
11180       # Append the new tag name to the list of available tags.
11181       if test -n "$tagname" ; then
11182       available_tags="$available_tags $tagname"
11183     fi
11184     fi
11185   done
11186   IFS="$lt_save_ifs"
11187
11188   # Now substitute the updated list of available tags.
11189   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11190     mv "${ofile}T" "$ofile"
11191     chmod +x "$ofile"
11192   else
11193     rm -f "${ofile}T"
11194     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11195 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11196    { (exit 1); exit 1; }; }
11197   fi
11198 fi
11199
11200
11201
11202 # This can be used to rebuild libtool when needed
11203 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11204
11205 # Always use our own libtool.
11206 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11207
11208 # Prevent multiple expansion
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219 { $as_echo "$as_me:$LINENO: checking for X" >&5
11220 $as_echo_n "checking for X... " >&6; }
11221
11222
11223 # Check whether --with-x was given.
11224 if test "${with_x+set}" = set; then
11225   withval=$with_x;
11226 fi
11227
11228 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11229 if test "x$with_x" = xno; then
11230   # The user explicitly disabled X.
11231   have_x=disabled
11232 else
11233   case $x_includes,$x_libraries in #(
11234     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
11235 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
11236    { (exit 1); exit 1; }; };; #(
11237     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11238   $as_echo_n "(cached) " >&6
11239 else
11240   # One or both of the vars are not set, and there is no cached value.
11241 ac_x_includes=no ac_x_libraries=no
11242 rm -f -r conftest.dir
11243 if mkdir conftest.dir; then
11244   cd conftest.dir
11245   cat >Imakefile <<'_ACEOF'
11246 incroot:
11247         @echo incroot='${INCROOT}'
11248 usrlibdir:
11249         @echo usrlibdir='${USRLIBDIR}'
11250 libdir:
11251         @echo libdir='${LIBDIR}'
11252 _ACEOF
11253   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11254     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11255     for ac_var in incroot usrlibdir libdir; do
11256       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11257     done
11258     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11259     for ac_extension in a so sl dylib la dll; do
11260       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11261          test -f "$ac_im_libdir/libX11.$ac_extension"; then
11262         ac_im_usrlibdir=$ac_im_libdir; break
11263       fi
11264     done
11265     # Screen out bogus values from the imake configuration.  They are
11266     # bogus both because they are the default anyway, and because
11267     # using them would break gcc on systems where it needs fixed includes.
11268     case $ac_im_incroot in
11269         /usr/include) ac_x_includes= ;;
11270         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11271     esac
11272     case $ac_im_usrlibdir in
11273         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11274         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11275     esac
11276   fi
11277   cd ..
11278   rm -f -r conftest.dir
11279 fi
11280
11281 # Standard set of common directories for X headers.
11282 # Check X11 before X11Rn because it is often a symlink to the current release.
11283 ac_x_header_dirs='
11284 /usr/X11/include
11285 /usr/X11R6/include
11286 /usr/X11R5/include
11287 /usr/X11R4/include
11288
11289 /usr/include/X11
11290 /usr/include/X11R6
11291 /usr/include/X11R5
11292 /usr/include/X11R4
11293
11294 /usr/local/X11/include
11295 /usr/local/X11R6/include
11296 /usr/local/X11R5/include
11297 /usr/local/X11R4/include
11298
11299 /usr/local/include/X11
11300 /usr/local/include/X11R6
11301 /usr/local/include/X11R5
11302 /usr/local/include/X11R4
11303
11304 /usr/X386/include
11305 /usr/x386/include
11306 /usr/XFree86/include/X11
11307
11308 /usr/include
11309 /usr/local/include
11310 /usr/unsupported/include
11311 /usr/athena/include
11312 /usr/local/x11r5/include
11313 /usr/lpp/Xamples/include
11314
11315 /usr/openwin/include
11316 /usr/openwin/share/include'
11317
11318 if test "$ac_x_includes" = no; then
11319   # Guess where to find include files, by looking for Xlib.h.
11320   # First, try using that file with no special directory specified.
11321   cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <X11/Xlib.h>
11328 _ACEOF
11329 if { (ac_try="$ac_cpp conftest.$ac_ext"
11330 case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11335 $as_echo "$ac_try_echo") >&5
11336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } >/dev/null && {
11343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11344          test ! -s conftest.err
11345        }; then
11346   # We can compile using X headers with no special include directory.
11347 ac_x_includes=
11348 else
11349   $as_echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352   for ac_dir in $ac_x_header_dirs; do
11353   if test -r "$ac_dir/X11/Xlib.h"; then
11354     ac_x_includes=$ac_dir
11355     break
11356   fi
11357 done
11358 fi
11359
11360 rm -f conftest.err conftest.$ac_ext
11361 fi # $ac_x_includes = no
11362
11363 if test "$ac_x_libraries" = no; then
11364   # Check for the libraries.
11365   # See if we find them without any special options.
11366   # Don't add to $LIBS permanently.
11367   ac_save_LIBS=$LIBS
11368   LIBS="-lX11 $LIBS"
11369   cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375 #include <X11/Xlib.h>
11376 int
11377 main ()
11378 {
11379 XrmInitialize ()
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (ac_try="$ac_link"
11386 case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11391 $as_echo "$ac_try_echo") >&5
11392   (eval "$ac_link") 2>conftest.er1
11393   ac_status=$?
11394   grep -v '^ *+' conftest.er1 >conftest.err
11395   rm -f conftest.er1
11396   cat conftest.err >&5
11397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } && {
11399          test -z "$ac_c_werror_flag" ||
11400          test ! -s conftest.err
11401        } && test -s conftest$ac_exeext && {
11402          test "$cross_compiling" = yes ||
11403          $as_test_x conftest$ac_exeext
11404        }; then
11405   LIBS=$ac_save_LIBS
11406 # We can link X programs with no special library path.
11407 ac_x_libraries=
11408 else
11409   $as_echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11411
11412         LIBS=$ac_save_LIBS
11413 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11414 do
11415   # Don't even attempt the hair of trying to link an X program!
11416   for ac_extension in a so sl dylib la dll; do
11417     if test -r "$ac_dir/libX11.$ac_extension"; then
11418       ac_x_libraries=$ac_dir
11419       break 2
11420     fi
11421   done
11422 done
11423 fi
11424
11425 rm -rf conftest.dSYM
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427       conftest$ac_exeext conftest.$ac_ext
11428 fi # $ac_x_libraries = no
11429
11430 case $ac_x_includes,$ac_x_libraries in #(
11431   no,* | *,no | *\'*)
11432     # Didn't find X, or a directory has "'" in its name.
11433     ac_cv_have_x="have_x=no";; #(
11434   *)
11435     # Record where we found X for the cache.
11436     ac_cv_have_x="have_x=yes\
11437         ac_x_includes='$ac_x_includes'\
11438         ac_x_libraries='$ac_x_libraries'"
11439 esac
11440 fi
11441 ;; #(
11442     *) have_x=yes;;
11443   esac
11444   eval "$ac_cv_have_x"
11445 fi # $with_x != no
11446
11447 if test "$have_x" != yes; then
11448   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
11449 $as_echo "$have_x" >&6; }
11450   no_x=yes
11451 else
11452   # If each of the values was on the command line, it overrides each guess.
11453   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11454   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11455   # Update the cache value to reflect the command line values.
11456   ac_cv_have_x="have_x=yes\
11457         ac_x_includes='$x_includes'\
11458         ac_x_libraries='$x_libraries'"
11459   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11460 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11461 fi
11462
11463 if test "$no_x" = yes; then
11464   # Not all programs may use this symbol, but it does not hurt to define it.
11465
11466 cat >>confdefs.h <<\_ACEOF
11467 #define X_DISPLAY_MISSING 1
11468 _ACEOF
11469
11470   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11471 else
11472   if test -n "$x_includes"; then
11473     X_CFLAGS="$X_CFLAGS -I$x_includes"
11474   fi
11475
11476   # It would also be nice to do this for all -L options, not just this one.
11477   if test -n "$x_libraries"; then
11478     X_LIBS="$X_LIBS -L$x_libraries"
11479     # For Solaris; some versions of Sun CC require a space after -R and
11480     # others require no space.  Words are not sufficient . . . .
11481     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11482 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
11483     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11484     ac_xsave_c_werror_flag=$ac_c_werror_flag
11485     ac_c_werror_flag=yes
11486     cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492
11493 int
11494 main ()
11495 {
11496
11497   ;
11498   return 0;
11499 }
11500 _ACEOF
11501 rm -f conftest.$ac_objext conftest$ac_exeext
11502 if { (ac_try="$ac_link"
11503 case "(($ac_try" in
11504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505   *) ac_try_echo=$ac_try;;
11506 esac
11507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11508 $as_echo "$ac_try_echo") >&5
11509   (eval "$ac_link") 2>conftest.er1
11510   ac_status=$?
11511   grep -v '^ *+' conftest.er1 >conftest.err
11512   rm -f conftest.er1
11513   cat conftest.err >&5
11514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); } && {
11516          test -z "$ac_c_werror_flag" ||
11517          test ! -s conftest.err
11518        } && test -s conftest$ac_exeext && {
11519          test "$cross_compiling" = yes ||
11520          $as_test_x conftest$ac_exeext
11521        }; then
11522   { $as_echo "$as_me:$LINENO: result: no" >&5
11523 $as_echo "no" >&6; }
11524        X_LIBS="$X_LIBS -R$x_libraries"
11525 else
11526   $as_echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529         LIBS="$ac_xsave_LIBS -R $x_libraries"
11530        cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536
11537 int
11538 main ()
11539 {
11540
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext conftest$ac_exeext
11546 if { (ac_try="$ac_link"
11547 case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11552 $as_echo "$ac_try_echo") >&5
11553   (eval "$ac_link") 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } && {
11560          test -z "$ac_c_werror_flag" ||
11561          test ! -s conftest.err
11562        } && test -s conftest$ac_exeext && {
11563          test "$cross_compiling" = yes ||
11564          $as_test_x conftest$ac_exeext
11565        }; then
11566   { $as_echo "$as_me:$LINENO: result: yes" >&5
11567 $as_echo "yes" >&6; }
11568           X_LIBS="$X_LIBS -R $x_libraries"
11569 else
11570   $as_echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573         { $as_echo "$as_me:$LINENO: result: neither works" >&5
11574 $as_echo "neither works" >&6; }
11575 fi
11576
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579       conftest$ac_exeext conftest.$ac_ext
11580 fi
11581
11582 rm -rf conftest.dSYM
11583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11584       conftest$ac_exeext conftest.$ac_ext
11585     ac_c_werror_flag=$ac_xsave_c_werror_flag
11586     LIBS=$ac_xsave_LIBS
11587   fi
11588
11589   # Check for system-dependent libraries X programs must link with.
11590   # Do this before checking for the system-independent R6 libraries
11591   # (-lICE), since we may need -lsocket or whatever for X linking.
11592
11593   if test "$ISC" = yes; then
11594     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11595   else
11596     # Martyn Johnson says this is needed for Ultrix, if the X
11597     # libraries were built with DECnet support.  And Karl Berry says
11598     # the Alpha needs dnet_stub (dnet does not exist).
11599     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11600     cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608    Use char because int might match the return type of a GCC
11609    builtin and then its argument prototype would still apply.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char XOpenDisplay ();
11614 int
11615 main ()
11616 {
11617 return XOpenDisplay ();
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (ac_try="$ac_link"
11624 case "(($ac_try" in
11625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626   *) ac_try_echo=$ac_try;;
11627 esac
11628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11629 $as_echo "$ac_try_echo") >&5
11630   (eval "$ac_link") 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } && {
11637          test -z "$ac_c_werror_flag" ||
11638          test ! -s conftest.err
11639        } && test -s conftest$ac_exeext && {
11640          test "$cross_compiling" = yes ||
11641          $as_test_x conftest$ac_exeext
11642        }; then
11643   :
11644 else
11645   $as_echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11649 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11650 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11651   $as_echo_n "(cached) " >&6
11652 else
11653   ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-ldnet  $LIBS"
11655 cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661
11662 /* Override any GCC internal prototype to avoid an error.
11663    Use char because int might match the return type of a GCC
11664    builtin and then its argument prototype would still apply.  */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char dnet_ntoa ();
11669 int
11670 main ()
11671 {
11672 return dnet_ntoa ();
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684 $as_echo "$ac_try_echo") >&5
11685   (eval "$ac_link") 2>conftest.er1
11686   ac_status=$?
11687   grep -v '^ *+' conftest.er1 >conftest.err
11688   rm -f conftest.er1
11689   cat conftest.err >&5
11690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); } && {
11692          test -z "$ac_c_werror_flag" ||
11693          test ! -s conftest.err
11694        } && test -s conftest$ac_exeext && {
11695          test "$cross_compiling" = yes ||
11696          $as_test_x conftest$ac_exeext
11697        }; then
11698   ac_cv_lib_dnet_dnet_ntoa=yes
11699 else
11700   $as_echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703         ac_cv_lib_dnet_dnet_ntoa=no
11704 fi
11705
11706 rm -rf conftest.dSYM
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708       conftest$ac_exeext conftest.$ac_ext
11709 LIBS=$ac_check_lib_save_LIBS
11710 fi
11711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11712 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11713 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
11714   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11715 fi
11716
11717     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11718       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11719 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
11720 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11721   $as_echo_n "(cached) " >&6
11722 else
11723   ac_check_lib_save_LIBS=$LIBS
11724 LIBS="-ldnet_stub  $LIBS"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731
11732 /* Override any GCC internal prototype to avoid an error.
11733    Use char because int might match the return type of a GCC
11734    builtin and then its argument prototype would still apply.  */
11735 #ifdef __cplusplus
11736 extern "C"
11737 #endif
11738 char dnet_ntoa ();
11739 int
11740 main ()
11741 {
11742 return dnet_ntoa ();
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (ac_try="$ac_link"
11749 case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11754 $as_echo "$ac_try_echo") >&5
11755   (eval "$ac_link") 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } && {
11762          test -z "$ac_c_werror_flag" ||
11763          test ! -s conftest.err
11764        } && test -s conftest$ac_exeext && {
11765          test "$cross_compiling" = yes ||
11766          $as_test_x conftest$ac_exeext
11767        }; then
11768   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11769 else
11770   $as_echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773         ac_cv_lib_dnet_stub_dnet_ntoa=no
11774 fi
11775
11776 rm -rf conftest.dSYM
11777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11778       conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11780 fi
11781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11782 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
11783 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
11784   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11785 fi
11786
11787     fi
11788 fi
11789
11790 rm -rf conftest.dSYM
11791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11792       conftest$ac_exeext conftest.$ac_ext
11793     LIBS="$ac_xsave_LIBS"
11794
11795     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11796     # to get the SysV transport functions.
11797     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
11798     # needs -lnsl.
11799     # The nsl library prevents programs from opening the X display
11800     # on Irix 5.2, according to T.E. Dickey.
11801     # The functions gethostbyname, getservbyname, and inet_addr are
11802     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
11803     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
11804 $as_echo_n "checking for gethostbyname... " >&6; }
11805 if test "${ac_cv_func_gethostbyname+set}" = set; then
11806   $as_echo_n "(cached) " >&6
11807 else
11808   cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h.  */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h.  */
11814 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11816 #define gethostbyname innocuous_gethostbyname
11817
11818 /* System header to define __stub macros and hopefully few prototypes,
11819     which can conflict with char gethostbyname (); below.
11820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11821     <limits.h> exists even on freestanding compilers.  */
11822
11823 #ifdef __STDC__
11824 # include <limits.h>
11825 #else
11826 # include <assert.h>
11827 #endif
11828
11829 #undef gethostbyname
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832    Use char because int might match the return type of a GCC
11833    builtin and then its argument prototype would still apply.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 char gethostbyname ();
11838 /* The GNU C library defines this for functions which it implements
11839     to always fail with ENOSYS.  Some functions are actually named
11840     something starting with __ and the normal name is an alias.  */
11841 #if defined __stub_gethostbyname || defined __stub___gethostbyname
11842 choke me
11843 #endif
11844
11845 int
11846 main ()
11847 {
11848 return gethostbyname ();
11849   ;
11850   return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (ac_try="$ac_link"
11855 case "(($ac_try" in
11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857   *) ac_try_echo=$ac_try;;
11858 esac
11859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11860 $as_echo "$ac_try_echo") >&5
11861   (eval "$ac_link") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } && {
11868          test -z "$ac_c_werror_flag" ||
11869          test ! -s conftest.err
11870        } && test -s conftest$ac_exeext && {
11871          test "$cross_compiling" = yes ||
11872          $as_test_x conftest$ac_exeext
11873        }; then
11874   ac_cv_func_gethostbyname=yes
11875 else
11876   $as_echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879         ac_cv_func_gethostbyname=no
11880 fi
11881
11882 rm -rf conftest.dSYM
11883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11884       conftest$ac_exeext conftest.$ac_ext
11885 fi
11886 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11887 $as_echo "$ac_cv_func_gethostbyname" >&6; }
11888
11889     if test $ac_cv_func_gethostbyname = no; then
11890       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11891 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
11892 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11893   $as_echo_n "(cached) " >&6
11894 else
11895   ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-lnsl  $LIBS"
11897 cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905    Use char because int might match the return type of a GCC
11906    builtin and then its argument prototype would still apply.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char gethostbyname ();
11911 int
11912 main ()
11913 {
11914 return gethostbyname ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923   *) ac_try_echo=$ac_try;;
11924 esac
11925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11926 $as_echo "$ac_try_echo") >&5
11927   (eval "$ac_link") 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } && {
11934          test -z "$ac_c_werror_flag" ||
11935          test ! -s conftest.err
11936        } && test -s conftest$ac_exeext && {
11937          test "$cross_compiling" = yes ||
11938          $as_test_x conftest$ac_exeext
11939        }; then
11940   ac_cv_lib_nsl_gethostbyname=yes
11941 else
11942   $as_echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945         ac_cv_lib_nsl_gethostbyname=no
11946 fi
11947
11948 rm -rf conftest.dSYM
11949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11950       conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11952 fi
11953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11954 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
11955 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
11956   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11957 fi
11958
11959       if test $ac_cv_lib_nsl_gethostbyname = no; then
11960         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
11961 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
11962 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
11963   $as_echo_n "(cached) " >&6
11964 else
11965   ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-lbsd  $LIBS"
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
11974 /* Override any GCC internal prototype to avoid an error.
11975    Use char because int might match the return type of a GCC
11976    builtin and then its argument prototype would still apply.  */
11977 #ifdef __cplusplus
11978 extern "C"
11979 #endif
11980 char gethostbyname ();
11981 int
11982 main ()
11983 {
11984 return gethostbyname ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996 $as_echo "$ac_try_echo") >&5
11997   (eval "$ac_link") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } && {
12004          test -z "$ac_c_werror_flag" ||
12005          test ! -s conftest.err
12006        } && test -s conftest$ac_exeext && {
12007          test "$cross_compiling" = yes ||
12008          $as_test_x conftest$ac_exeext
12009        }; then
12010   ac_cv_lib_bsd_gethostbyname=yes
12011 else
12012   $as_echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015         ac_cv_lib_bsd_gethostbyname=no
12016 fi
12017
12018 rm -rf conftest.dSYM
12019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12020       conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12024 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12025 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
12026   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12027 fi
12028
12029       fi
12030     fi
12031
12032     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12033     # socket/setsockopt and other routines are undefined under SCO ODT
12034     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12035     # on later versions), says Simon Leinen: it contains gethostby*
12036     # variants that don't use the name server (or something).  -lsocket
12037     # must be given before -lnsl if both are needed.  We assume that
12038     # if connect needs -lnsl, so does gethostbyname.
12039     { $as_echo "$as_me:$LINENO: checking for connect" >&5
12040 $as_echo_n "checking for connect... " >&6; }
12041 if test "${ac_cv_func_connect+set}" = set; then
12042   $as_echo_n "(cached) " >&6
12043 else
12044   cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h.  */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h.  */
12050 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12052 #define connect innocuous_connect
12053
12054 /* System header to define __stub macros and hopefully few prototypes,
12055     which can conflict with char connect (); below.
12056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057     <limits.h> exists even on freestanding compilers.  */
12058
12059 #ifdef __STDC__
12060 # include <limits.h>
12061 #else
12062 # include <assert.h>
12063 #endif
12064
12065 #undef connect
12066
12067 /* Override any GCC internal prototype to avoid an error.
12068    Use char because int might match the return type of a GCC
12069    builtin and then its argument prototype would still apply.  */
12070 #ifdef __cplusplus
12071 extern "C"
12072 #endif
12073 char connect ();
12074 /* The GNU C library defines this for functions which it implements
12075     to always fail with ENOSYS.  Some functions are actually named
12076     something starting with __ and the normal name is an alias.  */
12077 #if defined __stub_connect || defined __stub___connect
12078 choke me
12079 #endif
12080
12081 int
12082 main ()
12083 {
12084 return connect ();
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (ac_try="$ac_link"
12091 case "(($ac_try" in
12092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093   *) ac_try_echo=$ac_try;;
12094 esac
12095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096 $as_echo "$ac_try_echo") >&5
12097   (eval "$ac_link") 2>conftest.er1
12098   ac_status=$?
12099   grep -v '^ *+' conftest.er1 >conftest.err
12100   rm -f conftest.er1
12101   cat conftest.err >&5
12102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } && {
12104          test -z "$ac_c_werror_flag" ||
12105          test ! -s conftest.err
12106        } && test -s conftest$ac_exeext && {
12107          test "$cross_compiling" = yes ||
12108          $as_test_x conftest$ac_exeext
12109        }; then
12110   ac_cv_func_connect=yes
12111 else
12112   $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115         ac_cv_func_connect=no
12116 fi
12117
12118 rm -rf conftest.dSYM
12119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12120       conftest$ac_exeext conftest.$ac_ext
12121 fi
12122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12123 $as_echo "$ac_cv_func_connect" >&6; }
12124
12125     if test $ac_cv_func_connect = no; then
12126       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12127 $as_echo_n "checking for connect in -lsocket... " >&6; }
12128 if test "${ac_cv_lib_socket_connect+set}" = set; then
12129   $as_echo_n "(cached) " >&6
12130 else
12131   ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139
12140 /* Override any GCC internal prototype to avoid an error.
12141    Use char because int might match the return type of a GCC
12142    builtin and then its argument prototype would still apply.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char connect ();
12147 int
12148 main ()
12149 {
12150 return connect ();
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12162 $as_echo "$ac_try_echo") >&5
12163   (eval "$ac_link") 2>conftest.er1
12164   ac_status=$?
12165   grep -v '^ *+' conftest.er1 >conftest.err
12166   rm -f conftest.er1
12167   cat conftest.err >&5
12168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); } && {
12170          test -z "$ac_c_werror_flag" ||
12171          test ! -s conftest.err
12172        } && test -s conftest$ac_exeext && {
12173          test "$cross_compiling" = yes ||
12174          $as_test_x conftest$ac_exeext
12175        }; then
12176   ac_cv_lib_socket_connect=yes
12177 else
12178   $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181         ac_cv_lib_socket_connect=no
12182 fi
12183
12184 rm -rf conftest.dSYM
12185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12186       conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12190 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12191 if test "x$ac_cv_lib_socket_connect" = x""yes; then
12192   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12193 fi
12194
12195     fi
12196
12197     # Guillermo Gomez says -lposix is necessary on A/UX.
12198     { $as_echo "$as_me:$LINENO: checking for remove" >&5
12199 $as_echo_n "checking for remove... " >&6; }
12200 if test "${ac_cv_func_remove+set}" = set; then
12201   $as_echo_n "(cached) " >&6
12202 else
12203   cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h.  */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h.  */
12209 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12211 #define remove innocuous_remove
12212
12213 /* System header to define __stub macros and hopefully few prototypes,
12214     which can conflict with char remove (); below.
12215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12216     <limits.h> exists even on freestanding compilers.  */
12217
12218 #ifdef __STDC__
12219 # include <limits.h>
12220 #else
12221 # include <assert.h>
12222 #endif
12223
12224 #undef remove
12225
12226 /* Override any GCC internal prototype to avoid an error.
12227    Use char because int might match the return type of a GCC
12228    builtin and then its argument prototype would still apply.  */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char remove ();
12233 /* The GNU C library defines this for functions which it implements
12234     to always fail with ENOSYS.  Some functions are actually named
12235     something starting with __ and the normal name is an alias.  */
12236 #if defined __stub_remove || defined __stub___remove
12237 choke me
12238 #endif
12239
12240 int
12241 main ()
12242 {
12243 return remove ();
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (ac_try="$ac_link"
12250 case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256   (eval "$ac_link") 2>conftest.er1
12257   ac_status=$?
12258   grep -v '^ *+' conftest.er1 >conftest.err
12259   rm -f conftest.er1
12260   cat conftest.err >&5
12261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } && {
12263          test -z "$ac_c_werror_flag" ||
12264          test ! -s conftest.err
12265        } && test -s conftest$ac_exeext && {
12266          test "$cross_compiling" = yes ||
12267          $as_test_x conftest$ac_exeext
12268        }; then
12269   ac_cv_func_remove=yes
12270 else
12271   $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274         ac_cv_func_remove=no
12275 fi
12276
12277 rm -rf conftest.dSYM
12278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12279       conftest$ac_exeext conftest.$ac_ext
12280 fi
12281 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12282 $as_echo "$ac_cv_func_remove" >&6; }
12283
12284     if test $ac_cv_func_remove = no; then
12285       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12286 $as_echo_n "checking for remove in -lposix... " >&6; }
12287 if test "${ac_cv_lib_posix_remove+set}" = set; then
12288   $as_echo_n "(cached) " >&6
12289 else
12290   ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-lposix  $LIBS"
12292 cat >conftest.$ac_ext <<_ACEOF
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298
12299 /* Override any GCC internal prototype to avoid an error.
12300    Use char because int might match the return type of a GCC
12301    builtin and then its argument prototype would still apply.  */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 char remove ();
12306 int
12307 main ()
12308 {
12309 return remove ();
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12321 $as_echo "$ac_try_echo") >&5
12322   (eval "$ac_link") 2>conftest.er1
12323   ac_status=$?
12324   grep -v '^ *+' conftest.er1 >conftest.err
12325   rm -f conftest.er1
12326   cat conftest.err >&5
12327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } && {
12329          test -z "$ac_c_werror_flag" ||
12330          test ! -s conftest.err
12331        } && test -s conftest$ac_exeext && {
12332          test "$cross_compiling" = yes ||
12333          $as_test_x conftest$ac_exeext
12334        }; then
12335   ac_cv_lib_posix_remove=yes
12336 else
12337   $as_echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340         ac_cv_lib_posix_remove=no
12341 fi
12342
12343 rm -rf conftest.dSYM
12344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12345       conftest$ac_exeext conftest.$ac_ext
12346 LIBS=$ac_check_lib_save_LIBS
12347 fi
12348 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12349 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12350 if test "x$ac_cv_lib_posix_remove" = x""yes; then
12351   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12352 fi
12353
12354     fi
12355
12356     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12357     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
12358 $as_echo_n "checking for shmat... " >&6; }
12359 if test "${ac_cv_func_shmat+set}" = set; then
12360   $as_echo_n "(cached) " >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12370 #define shmat innocuous_shmat
12371
12372 /* System header to define __stub macros and hopefully few prototypes,
12373     which can conflict with char shmat (); below.
12374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375     <limits.h> exists even on freestanding compilers.  */
12376
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12382
12383 #undef shmat
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386    Use char because int might match the return type of a GCC
12387    builtin and then its argument prototype would still apply.  */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char shmat ();
12392 /* The GNU C library defines this for functions which it implements
12393     to always fail with ENOSYS.  Some functions are actually named
12394     something starting with __ and the normal name is an alias.  */
12395 #if defined __stub_shmat || defined __stub___shmat
12396 choke me
12397 #endif
12398
12399 int
12400 main ()
12401 {
12402 return shmat ();
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12414 $as_echo "$ac_try_echo") >&5
12415   (eval "$ac_link") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } && {
12422          test -z "$ac_c_werror_flag" ||
12423          test ! -s conftest.err
12424        } && test -s conftest$ac_exeext && {
12425          test "$cross_compiling" = yes ||
12426          $as_test_x conftest$ac_exeext
12427        }; then
12428   ac_cv_func_shmat=yes
12429 else
12430   $as_echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433         ac_cv_func_shmat=no
12434 fi
12435
12436 rm -rf conftest.dSYM
12437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12438       conftest$ac_exeext conftest.$ac_ext
12439 fi
12440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12441 $as_echo "$ac_cv_func_shmat" >&6; }
12442
12443     if test $ac_cv_func_shmat = no; then
12444       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12445 $as_echo_n "checking for shmat in -lipc... " >&6; }
12446 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12447   $as_echo_n "(cached) " >&6
12448 else
12449   ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lipc  $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459    Use char because int might match the return type of a GCC
12460    builtin and then its argument prototype would still apply.  */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char shmat ();
12465 int
12466 main ()
12467 {
12468 return shmat ();
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12480 $as_echo "$ac_try_echo") >&5
12481   (eval "$ac_link") 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
12485   cat conftest.err >&5
12486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } && {
12488          test -z "$ac_c_werror_flag" ||
12489          test ! -s conftest.err
12490        } && test -s conftest$ac_exeext && {
12491          test "$cross_compiling" = yes ||
12492          $as_test_x conftest$ac_exeext
12493        }; then
12494   ac_cv_lib_ipc_shmat=yes
12495 else
12496   $as_echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499         ac_cv_lib_ipc_shmat=no
12500 fi
12501
12502 rm -rf conftest.dSYM
12503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12504       conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12506 fi
12507 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12508 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12509 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
12510   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12511 fi
12512
12513     fi
12514   fi
12515
12516   # Check for libraries that X11R6 Xt/Xaw programs need.
12517   ac_save_LDFLAGS=$LDFLAGS
12518   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12519   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12520   # check for ICE first), but we must link in the order -lSM -lICE or
12521   # we get undefined symbols.  So assume we have SM if we have ICE.
12522   # These have to be linked with before -lX11, unlike the other
12523   # libraries we check for below, so use a different variable.
12524   # John Interrante, Karl Berry
12525   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12526 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12527 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12528   $as_echo_n "(cached) " >&6
12529 else
12530   ac_check_lib_save_LIBS=$LIBS
12531 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538
12539 /* Override any GCC internal prototype to avoid an error.
12540    Use char because int might match the return type of a GCC
12541    builtin and then its argument prototype would still apply.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 char IceConnectionNumber ();
12546 int
12547 main ()
12548 {
12549 return IceConnectionNumber ();
12550   ;
12551   return 0;
12552 }
12553 _ACEOF
12554 rm -f conftest.$ac_objext conftest$ac_exeext
12555 if { (ac_try="$ac_link"
12556 case "(($ac_try" in
12557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558   *) ac_try_echo=$ac_try;;
12559 esac
12560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12561 $as_echo "$ac_try_echo") >&5
12562   (eval "$ac_link") 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } && {
12569          test -z "$ac_c_werror_flag" ||
12570          test ! -s conftest.err
12571        } && test -s conftest$ac_exeext && {
12572          test "$cross_compiling" = yes ||
12573          $as_test_x conftest$ac_exeext
12574        }; then
12575   ac_cv_lib_ICE_IceConnectionNumber=yes
12576 else
12577   $as_echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580         ac_cv_lib_ICE_IceConnectionNumber=no
12581 fi
12582
12583 rm -rf conftest.dSYM
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585       conftest$ac_exeext conftest.$ac_ext
12586 LIBS=$ac_check_lib_save_LIBS
12587 fi
12588 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12589 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12590 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
12591   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12592 fi
12593
12594   LDFLAGS=$ac_save_LDFLAGS
12595
12596 fi
12597
12598
12599
12600
12601
12602
12603 for ac_header in alloca.h locale.h stdarg.h wctype.h
12604 do
12605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12607   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12608 $as_echo_n "checking for $ac_header... " >&6; }
12609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12610   $as_echo_n "(cached) " >&6
12611 fi
12612 ac_res=`eval 'as_val=${'$as_ac_Header'}
12613                  $as_echo "$as_val"'`
12614                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12615 $as_echo "$ac_res" >&6; }
12616 else
12617   # Is the header compilable?
12618 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12619 $as_echo_n "checking $ac_header usability... " >&6; }
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626 $ac_includes_default
12627 #include <$ac_header>
12628 _ACEOF
12629 rm -f conftest.$ac_objext
12630 if { (ac_try="$ac_compile"
12631 case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12636 $as_echo "$ac_try_echo") >&5
12637   (eval "$ac_compile") 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } && {
12644          test -z "$ac_c_werror_flag" ||
12645          test ! -s conftest.err
12646        } && test -s conftest.$ac_objext; then
12647   ac_header_compiler=yes
12648 else
12649   $as_echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652         ac_header_compiler=no
12653 fi
12654
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12657 $as_echo "$ac_header_compiler" >&6; }
12658
12659 # Is the header present?
12660 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12661 $as_echo_n "checking $ac_header presence... " >&6; }
12662 cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668 #include <$ac_header>
12669 _ACEOF
12670 if { (ac_try="$ac_cpp conftest.$ac_ext"
12671 case "(($ac_try" in
12672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673   *) ac_try_echo=$ac_try;;
12674 esac
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12678   ac_status=$?
12679   grep -v '^ *+' conftest.er1 >conftest.err
12680   rm -f conftest.er1
12681   cat conftest.err >&5
12682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } >/dev/null && {
12684          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12685          test ! -s conftest.err
12686        }; then
12687   ac_header_preproc=yes
12688 else
12689   $as_echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692   ac_header_preproc=no
12693 fi
12694
12695 rm -f conftest.err conftest.$ac_ext
12696 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12697 $as_echo "$ac_header_preproc" >&6; }
12698
12699 # So?  What about this header?
12700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12701   yes:no: )
12702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12703 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12705 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12706     ac_header_preproc=yes
12707     ;;
12708   no:yes:* )
12709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12710 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12712 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12714 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12716 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12717     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12719     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12720 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12721     ( cat <<\_ASBOX
12722 ## -------------------------------------------------------- ##
12723 ## Report this to enlightenment-devel@lists.sourceforge.net ##
12724 ## -------------------------------------------------------- ##
12725 _ASBOX
12726      ) | sed "s/^/$as_me: WARNING:     /" >&2
12727     ;;
12728 esac
12729 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12730 $as_echo_n "checking for $ac_header... " >&6; }
12731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12732   $as_echo_n "(cached) " >&6
12733 else
12734   eval "$as_ac_Header=\$ac_header_preproc"
12735 fi
12736 ac_res=`eval 'as_val=${'$as_ac_Header'}
12737                  $as_echo "$as_val"'`
12738                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12739 $as_echo "$ac_res" >&6; }
12740
12741 fi
12742 as_val=`eval 'as_val=${'$as_ac_Header'}
12743                  $as_echo "$as_val"'`
12744    if test "x$as_val" = x""yes; then
12745   cat >>confdefs.h <<_ACEOF
12746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12747 _ACEOF
12748
12749 fi
12750
12751 done
12752
12753
12754 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12755 $as_echo_n "checking return type of signal handlers... " >&6; }
12756 if test "${ac_cv_type_signal+set}" = set; then
12757   $as_echo_n "(cached) " >&6
12758 else
12759   cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h.  */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h.  */
12765 #include <sys/types.h>
12766 #include <signal.h>
12767
12768 int
12769 main ()
12770 {
12771 return *(signal (0, 0)) (0) == 1;
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12783 $as_echo "$ac_try_echo") >&5
12784   (eval "$ac_compile") 2>conftest.er1
12785   ac_status=$?
12786   grep -v '^ *+' conftest.er1 >conftest.err
12787   rm -f conftest.er1
12788   cat conftest.err >&5
12789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } && {
12791          test -z "$ac_c_werror_flag" ||
12792          test ! -s conftest.err
12793        } && test -s conftest.$ac_objext; then
12794   ac_cv_type_signal=int
12795 else
12796   $as_echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799         ac_cv_type_signal=void
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12805 $as_echo "$ac_cv_type_signal" >&6; }
12806
12807 cat >>confdefs.h <<_ACEOF
12808 #define RETSIGTYPE $ac_cv_type_signal
12809 _ACEOF
12810
12811
12812
12813
12814  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12815 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12816 if test "${ac_cv_c_bigendian+set}" = set; then
12817   $as_echo_n "(cached) " >&6
12818 else
12819   ac_cv_c_bigendian=unknown
12820     # See if we're dealing with a universal compiler.
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 #ifndef __APPLE_CC__
12828                not a universal capable compiler
12829              #endif
12830              typedef int dummy;
12831
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12840 $as_echo "$ac_try_echo") >&5
12841   (eval "$ac_compile") 2>conftest.er1
12842   ac_status=$?
12843   grep -v '^ *+' conftest.er1 >conftest.err
12844   rm -f conftest.er1
12845   cat conftest.err >&5
12846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } && {
12848          test -z "$ac_c_werror_flag" ||
12849          test ! -s conftest.err
12850        } && test -s conftest.$ac_objext; then
12851
12852         # Check for potential -arch flags.  It is not universal unless
12853         # there are some -arch flags.  Note that *ppc* also matches
12854         # ppc64.  This check is also rather less than ideal.
12855         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
12856           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
12857         esac
12858 else
12859   $as_echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12861
12862
12863 fi
12864
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866     if test $ac_cv_c_bigendian = unknown; then
12867       # See if sys/param.h defines the BYTE_ORDER macro.
12868       cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 #include <sys/types.h>
12875              #include <sys/param.h>
12876
12877 int
12878 main ()
12879 {
12880 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12881                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12882                      && LITTLE_ENDIAN)
12883               bogus endian macros
12884              #endif
12885
12886   ;
12887   return 0;
12888 }
12889 _ACEOF
12890 rm -f conftest.$ac_objext
12891 if { (ac_try="$ac_compile"
12892 case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898   (eval "$ac_compile") 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } && {
12905          test -z "$ac_c_werror_flag" ||
12906          test ! -s conftest.err
12907        } && test -s conftest.$ac_objext; then
12908   # It does; now see whether it defined to BIG_ENDIAN or not.
12909          cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h.  */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h.  */
12915 #include <sys/types.h>
12916                 #include <sys/param.h>
12917
12918 int
12919 main ()
12920 {
12921 #if BYTE_ORDER != BIG_ENDIAN
12922                  not big endian
12923                 #endif
12924
12925   ;
12926   return 0;
12927 }
12928 _ACEOF
12929 rm -f conftest.$ac_objext
12930 if { (ac_try="$ac_compile"
12931 case "(($ac_try" in
12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933   *) ac_try_echo=$ac_try;;
12934 esac
12935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936 $as_echo "$ac_try_echo") >&5
12937   (eval "$ac_compile") 2>conftest.er1
12938   ac_status=$?
12939   grep -v '^ *+' conftest.er1 >conftest.err
12940   rm -f conftest.er1
12941   cat conftest.err >&5
12942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } && {
12944          test -z "$ac_c_werror_flag" ||
12945          test ! -s conftest.err
12946        } && test -s conftest.$ac_objext; then
12947   ac_cv_c_bigendian=yes
12948 else
12949   $as_echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952         ac_cv_c_bigendian=no
12953 fi
12954
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 else
12957   $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960
12961 fi
12962
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964     fi
12965     if test $ac_cv_c_bigendian = unknown; then
12966       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12967       cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973 #include <limits.h>
12974
12975 int
12976 main ()
12977 {
12978 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12979               bogus endian macros
12980              #endif
12981
12982   ;
12983   return 0;
12984 }
12985 _ACEOF
12986 rm -f conftest.$ac_objext
12987 if { (ac_try="$ac_compile"
12988 case "(($ac_try" in
12989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990   *) ac_try_echo=$ac_try;;
12991 esac
12992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993 $as_echo "$ac_try_echo") >&5
12994   (eval "$ac_compile") 2>conftest.er1
12995   ac_status=$?
12996   grep -v '^ *+' conftest.er1 >conftest.err
12997   rm -f conftest.er1
12998   cat conftest.err >&5
12999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } && {
13001          test -z "$ac_c_werror_flag" ||
13002          test ! -s conftest.err
13003        } && test -s conftest.$ac_objext; then
13004   # It does; now see whether it defined to _BIG_ENDIAN or not.
13005          cat >conftest.$ac_ext <<_ACEOF
13006 /* confdefs.h.  */
13007 _ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h.  */
13011 #include <limits.h>
13012
13013 int
13014 main ()
13015 {
13016 #ifndef _BIG_ENDIAN
13017                  not big endian
13018                 #endif
13019
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext
13025 if { (ac_try="$ac_compile"
13026 case "(($ac_try" in
13027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028   *) ac_try_echo=$ac_try;;
13029 esac
13030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13031 $as_echo "$ac_try_echo") >&5
13032   (eval "$ac_compile") 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } && {
13039          test -z "$ac_c_werror_flag" ||
13040          test ! -s conftest.err
13041        } && test -s conftest.$ac_objext; then
13042   ac_cv_c_bigendian=yes
13043 else
13044   $as_echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047         ac_cv_c_bigendian=no
13048 fi
13049
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 else
13052   $as_echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055
13056 fi
13057
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059     fi
13060     if test $ac_cv_c_bigendian = unknown; then
13061       # Compile a test program.
13062       if test "$cross_compiling" = yes; then
13063   # Try to guess by grepping values from an object file.
13064          cat >conftest.$ac_ext <<_ACEOF
13065 /* confdefs.h.  */
13066 _ACEOF
13067 cat confdefs.h >>conftest.$ac_ext
13068 cat >>conftest.$ac_ext <<_ACEOF
13069 /* end confdefs.h.  */
13070 short int ascii_mm[] =
13071                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13072                 short int ascii_ii[] =
13073                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13074                 int use_ascii (int i) {
13075                   return ascii_mm[i] + ascii_ii[i];
13076                 }
13077                 short int ebcdic_ii[] =
13078                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13079                 short int ebcdic_mm[] =
13080                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13081                 int use_ebcdic (int i) {
13082                   return ebcdic_mm[i] + ebcdic_ii[i];
13083                 }
13084                 extern int foo;
13085
13086 int
13087 main ()
13088 {
13089 return use_ascii (foo) == use_ebcdic (foo);
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext
13095 if { (ac_try="$ac_compile"
13096 case "(($ac_try" in
13097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098   *) ac_try_echo=$ac_try;;
13099 esac
13100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 $as_echo "$ac_try_echo") >&5
13102   (eval "$ac_compile") 2>conftest.er1
13103   ac_status=$?
13104   grep -v '^ *+' conftest.er1 >conftest.err
13105   rm -f conftest.er1
13106   cat conftest.err >&5
13107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); } && {
13109          test -z "$ac_c_werror_flag" ||
13110          test ! -s conftest.err
13111        } && test -s conftest.$ac_objext; then
13112   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13113               ac_cv_c_bigendian=yes
13114             fi
13115             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13116               if test "$ac_cv_c_bigendian" = unknown; then
13117                 ac_cv_c_bigendian=no
13118               else
13119                 # finding both strings is unlikely to happen, but who knows?
13120                 ac_cv_c_bigendian=unknown
13121               fi
13122             fi
13123 else
13124   $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127
13128 fi
13129
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 else
13132   cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138 $ac_includes_default
13139 int
13140 main ()
13141 {
13142
13143              /* Are we little or big endian?  From Harbison&Steele.  */
13144              union
13145              {
13146                long int l;
13147                char c[sizeof (long int)];
13148              } u;
13149              u.l = 1;
13150              return u.c[sizeof (long int) - 1] == 1;
13151
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest$ac_exeext
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13163 $as_echo "$ac_try_echo") >&5
13164   (eval "$ac_link") 2>&5
13165   ac_status=$?
13166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13168   { (case "(($ac_try" in
13169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170   *) ac_try_echo=$ac_try;;
13171 esac
13172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13173 $as_echo "$ac_try_echo") >&5
13174   (eval "$ac_try") 2>&5
13175   ac_status=$?
13176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; }; then
13178   ac_cv_c_bigendian=no
13179 else
13180   $as_echo "$as_me: program exited with status $ac_status" >&5
13181 $as_echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 ( exit $ac_status )
13185 ac_cv_c_bigendian=yes
13186 fi
13187 rm -rf conftest.dSYM
13188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13189 fi
13190
13191
13192     fi
13193 fi
13194 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13195 $as_echo "$ac_cv_c_bigendian" >&6; }
13196  case $ac_cv_c_bigendian in #(
13197    yes)
13198      cat >>confdefs.h <<\_ACEOF
13199 #define WORDS_BIGENDIAN 1
13200 _ACEOF
13201 ;; #(
13202    no)
13203       ;; #(
13204    universal)
13205
13206 cat >>confdefs.h <<\_ACEOF
13207 #define AC_APPLE_UNIVERSAL_BUILD 1
13208 _ACEOF
13209
13210      ;; #(
13211    *)
13212      { { $as_echo "$as_me:$LINENO: error: unknown endianness
13213  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13214 $as_echo "$as_me: error: unknown endianness
13215  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13216    { (exit 1); exit 1; }; } ;;
13217  esac
13218
13219 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13220 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13221 if test "${ac_cv_c_const+set}" = set; then
13222   $as_echo_n "(cached) " >&6
13223 else
13224   cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230
13231 int
13232 main ()
13233 {
13234 /* FIXME: Include the comments suggested by Paul. */
13235 #ifndef __cplusplus
13236   /* Ultrix mips cc rejects this.  */
13237   typedef int charset[2];
13238   const charset cs;
13239   /* SunOS 4.1.1 cc rejects this.  */
13240   char const *const *pcpcc;
13241   char **ppc;
13242   /* NEC SVR4.0.2 mips cc rejects this.  */
13243   struct point {int x, y;};
13244   static struct point const zero = {0,0};
13245   /* AIX XL C 1.02.0.0 rejects this.
13246      It does not let you subtract one const X* pointer from another in
13247      an arm of an if-expression whose if-part is not a constant
13248      expression */
13249   const char *g = "string";
13250   pcpcc = &g + (g ? g-g : 0);
13251   /* HPUX 7.0 cc rejects these. */
13252   ++pcpcc;
13253   ppc = (char**) pcpcc;
13254   pcpcc = (char const *const *) ppc;
13255   { /* SCO 3.2v4 cc rejects this.  */
13256     char *t;
13257     char const *s = 0 ? (char *) 0 : (char const *) 0;
13258
13259     *t++ = 0;
13260     if (s) return 0;
13261   }
13262   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13263     int x[] = {25, 17};
13264     const int *foo = &x[0];
13265     ++foo;
13266   }
13267   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13268     typedef const int *iptr;
13269     iptr p = 0;
13270     ++p;
13271   }
13272   { /* AIX XL C 1.02.0.0 rejects this saying
13273        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13274     struct s { int j; const int *ap[3]; };
13275     struct s *b; b->j = 5;
13276   }
13277   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13278     const int foo = 10;
13279     if (!foo) return 0;
13280   }
13281   return !cs[0] && !zero.x;
13282 #endif
13283
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (ac_try="$ac_compile"
13290 case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13295 $as_echo "$ac_try_echo") >&5
13296   (eval "$ac_compile") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } && {
13303          test -z "$ac_c_werror_flag" ||
13304          test ! -s conftest.err
13305        } && test -s conftest.$ac_objext; then
13306   ac_cv_c_const=yes
13307 else
13308   $as_echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311         ac_cv_c_const=no
13312 fi
13313
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 fi
13316 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13317 $as_echo "$ac_cv_c_const" >&6; }
13318 if test $ac_cv_c_const = no; then
13319
13320 cat >>confdefs.h <<\_ACEOF
13321 #define const /**/
13322 _ACEOF
13323
13324 fi
13325
13326 { $as_echo "$as_me:$LINENO: checking for inline" >&5
13327 $as_echo_n "checking for inline... " >&6; }
13328 if test "${ac_cv_c_inline+set}" = set; then
13329   $as_echo_n "(cached) " >&6
13330 else
13331   ac_cv_c_inline=no
13332 for ac_kw in inline __inline__ __inline; do
13333   cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339 #ifndef __cplusplus
13340 typedef int foo_t;
13341 static $ac_kw foo_t static_foo () {return 0; }
13342 $ac_kw foo_t foo () {return 0; }
13343 #endif
13344
13345 _ACEOF
13346 rm -f conftest.$ac_objext
13347 if { (ac_try="$ac_compile"
13348 case "(($ac_try" in
13349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350   *) ac_try_echo=$ac_try;;
13351 esac
13352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13353 $as_echo "$ac_try_echo") >&5
13354   (eval "$ac_compile") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } && {
13361          test -z "$ac_c_werror_flag" ||
13362          test ! -s conftest.err
13363        } && test -s conftest.$ac_objext; then
13364   ac_cv_c_inline=$ac_kw
13365 else
13366   $as_echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13368
13369
13370 fi
13371
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373   test "$ac_cv_c_inline" != no && break
13374 done
13375
13376 fi
13377 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13378 $as_echo "$ac_cv_c_inline" >&6; }
13379
13380
13381 case $ac_cv_c_inline in
13382   inline | yes) ;;
13383   *)
13384     case $ac_cv_c_inline in
13385       no) ac_val=;;
13386       *) ac_val=$ac_cv_c_inline;;
13387     esac
13388     cat >>confdefs.h <<_ACEOF
13389 #ifndef __cplusplus
13390 #define inline $ac_val
13391 #endif
13392 _ACEOF
13393     ;;
13394 esac
13395
13396
13397   { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
13398 $as_echo_n "checking for __attribute__... " >&6; }
13399   if test "${ac_cv___attribute__+set}" = set; then
13400   $as_echo_n "(cached) " >&6
13401 else
13402
13403   cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 #include <stdlib.h>
13410 int
13411 main ()
13412 {
13413 int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }
13414   ;
13415   return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (ac_try="$ac_compile"
13420 case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13425 $as_echo "$ac_try_echo") >&5
13426   (eval "$ac_compile") 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } && {
13433          test -z "$ac_c_werror_flag" ||
13434          test ! -s conftest.err
13435        } && test -s conftest.$ac_objext; then
13436   ac_cv___attribute__=yes
13437 else
13438   $as_echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441         ac_cv___attribute__=no
13442 fi
13443
13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13445 fi
13446
13447   if test "$ac_cv___attribute__" = "yes"; then
13448
13449 cat >>confdefs.h <<\_ACEOF
13450 #define HAVE___ATTRIBUTE__ 1
13451 _ACEOF
13452
13453
13454 cat >>confdefs.h <<\_ACEOF
13455 #define __UNUSED__ __attribute__((unused))
13456 _ACEOF
13457
13458   else
13459
13460 cat >>confdefs.h <<\_ACEOF
13461 #define __UNUSED__ /**/
13462 _ACEOF
13463
13464   fi
13465   { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
13466 $as_echo "$ac_cv___attribute__" >&6; }
13467
13468 # The cast to long int works around a bug in the HP C Compiler
13469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13471 # This bug is HP SR number 8606223364.
13472 { $as_echo "$as_me:$LINENO: checking size of int" >&5
13473 $as_echo_n "checking size of int... " >&6; }
13474 if test "${ac_cv_sizeof_int+set}" = set; then
13475   $as_echo_n "(cached) " >&6
13476 else
13477   if test "$cross_compiling" = yes; then
13478   # Depending upon the size, compute the lo and hi bounds.
13479 cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 $ac_includes_default
13486 int
13487 main ()
13488 {
13489 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
13490 test_array [0] = 0
13491
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext
13497 if { (ac_try="$ac_compile"
13498 case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13503 $as_echo "$ac_try_echo") >&5
13504   (eval "$ac_compile") 2>conftest.er1
13505   ac_status=$?
13506   grep -v '^ *+' conftest.er1 >conftest.err
13507   rm -f conftest.er1
13508   cat conftest.err >&5
13509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); } && {
13511          test -z "$ac_c_werror_flag" ||
13512          test ! -s conftest.err
13513        } && test -s conftest.$ac_objext; then
13514   ac_lo=0 ac_mid=0
13515   while :; do
13516     cat >conftest.$ac_ext <<_ACEOF
13517 /* confdefs.h.  */
13518 _ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h.  */
13522 $ac_includes_default
13523 int
13524 main ()
13525 {
13526 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13527 test_array [0] = 0
13528
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (ac_try="$ac_compile"
13535 case "(($ac_try" in
13536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537   *) ac_try_echo=$ac_try;;
13538 esac
13539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13540 $as_echo "$ac_try_echo") >&5
13541   (eval "$ac_compile") 2>conftest.er1
13542   ac_status=$?
13543   grep -v '^ *+' conftest.er1 >conftest.err
13544   rm -f conftest.er1
13545   cat conftest.err >&5
13546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); } && {
13548          test -z "$ac_c_werror_flag" ||
13549          test ! -s conftest.err
13550        } && test -s conftest.$ac_objext; then
13551   ac_hi=$ac_mid; break
13552 else
13553   $as_echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556         ac_lo=`expr $ac_mid + 1`
13557                         if test $ac_lo -le $ac_mid; then
13558                           ac_lo= ac_hi=
13559                           break
13560                         fi
13561                         ac_mid=`expr 2 '*' $ac_mid + 1`
13562 fi
13563
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565   done
13566 else
13567   $as_echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570         cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h.  */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h.  */
13576 $ac_includes_default
13577 int
13578 main ()
13579 {
13580 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
13581 test_array [0] = 0
13582
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 rm -f conftest.$ac_objext
13588 if { (ac_try="$ac_compile"
13589 case "(($ac_try" in
13590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591   *) ac_try_echo=$ac_try;;
13592 esac
13593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13594 $as_echo "$ac_try_echo") >&5
13595   (eval "$ac_compile") 2>conftest.er1
13596   ac_status=$?
13597   grep -v '^ *+' conftest.er1 >conftest.err
13598   rm -f conftest.er1
13599   cat conftest.err >&5
13600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); } && {
13602          test -z "$ac_c_werror_flag" ||
13603          test ! -s conftest.err
13604        } && test -s conftest.$ac_objext; then
13605   ac_hi=-1 ac_mid=-1
13606   while :; do
13607     cat >conftest.$ac_ext <<_ACEOF
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613 $ac_includes_default
13614 int
13615 main ()
13616 {
13617 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
13618 test_array [0] = 0
13619
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 rm -f conftest.$ac_objext
13625 if { (ac_try="$ac_compile"
13626 case "(($ac_try" in
13627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628   *) ac_try_echo=$ac_try;;
13629 esac
13630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13631 $as_echo "$ac_try_echo") >&5
13632   (eval "$ac_compile") 2>conftest.er1
13633   ac_status=$?
13634   grep -v '^ *+' conftest.er1 >conftest.err
13635   rm -f conftest.er1
13636   cat conftest.err >&5
13637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } && {
13639          test -z "$ac_c_werror_flag" ||
13640          test ! -s conftest.err
13641        } && test -s conftest.$ac_objext; then
13642   ac_lo=$ac_mid; break
13643 else
13644   $as_echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13646
13647         ac_hi=`expr '(' $ac_mid ')' - 1`
13648                         if test $ac_mid -le $ac_hi; then
13649                           ac_lo= ac_hi=
13650                           break
13651                         fi
13652                         ac_mid=`expr 2 '*' $ac_mid`
13653 fi
13654
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656   done
13657 else
13658   $as_echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13660
13661         ac_lo= ac_hi=
13662 fi
13663
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 fi
13666
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 # Binary search between lo and hi bounds.
13669 while test "x$ac_lo" != "x$ac_hi"; do
13670   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13671   cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h.  */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h.  */
13677 $ac_includes_default
13678 int
13679 main ()
13680 {
13681 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13682 test_array [0] = 0
13683
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (ac_try="$ac_compile"
13690 case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696   (eval "$ac_compile") 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } && {
13703          test -z "$ac_c_werror_flag" ||
13704          test ! -s conftest.err
13705        } && test -s conftest.$ac_objext; then
13706   ac_hi=$ac_mid
13707 else
13708   $as_echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711         ac_lo=`expr '(' $ac_mid ')' + 1`
13712 fi
13713
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 done
13716 case $ac_lo in
13717 ?*) ac_cv_sizeof_int=$ac_lo;;
13718 '') if test "$ac_cv_type_int" = yes; then
13719      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13722 See \`config.log' for more details." >&5
13723 $as_echo "$as_me: error: cannot compute sizeof (int)
13724 See \`config.log' for more details." >&2;}
13725    { (exit 77); exit 77; }; }; }
13726    else
13727      ac_cv_sizeof_int=0
13728    fi ;;
13729 esac
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737 $ac_includes_default
13738 static long int longval () { return (long int) (sizeof (int)); }
13739 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
13740 #include <stdio.h>
13741 #include <stdlib.h>
13742 int
13743 main ()
13744 {
13745
13746   FILE *f = fopen ("conftest.val", "w");
13747   if (! f)
13748     return 1;
13749   if (((long int) (sizeof (int))) < 0)
13750     {
13751       long int i = longval ();
13752       if (i != ((long int) (sizeof (int))))
13753         return 1;
13754       fprintf (f, "%ld", i);
13755     }
13756   else
13757     {
13758       unsigned long int i = ulongval ();
13759       if (i != ((long int) (sizeof (int))))
13760         return 1;
13761       fprintf (f, "%lu", i);
13762     }
13763   /* Do not output a trailing newline, as this causes \r\n confusion
13764      on some platforms.  */
13765   return ferror (f) || fclose (f) != 0;
13766
13767   ;
13768   return 0;
13769 }
13770 _ACEOF
13771 rm -f conftest$ac_exeext
13772 if { (ac_try="$ac_link"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13778 $as_echo "$ac_try_echo") >&5
13779   (eval "$ac_link") 2>&5
13780   ac_status=$?
13781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13783   { (case "(($ac_try" in
13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785   *) ac_try_echo=$ac_try;;
13786 esac
13787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13788 $as_echo "$ac_try_echo") >&5
13789   (eval "$ac_try") 2>&5
13790   ac_status=$?
13791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; }; then
13793   ac_cv_sizeof_int=`cat conftest.val`
13794 else
13795   $as_echo "$as_me: program exited with status $ac_status" >&5
13796 $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ( exit $ac_status )
13800 if test "$ac_cv_type_int" = yes; then
13801      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13803 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13804 See \`config.log' for more details." >&5
13805 $as_echo "$as_me: error: cannot compute sizeof (int)
13806 See \`config.log' for more details." >&2;}
13807    { (exit 77); exit 77; }; }; }
13808    else
13809      ac_cv_sizeof_int=0
13810    fi
13811 fi
13812 rm -rf conftest.dSYM
13813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13814 fi
13815 rm -f conftest.val
13816 fi
13817 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13818 $as_echo "$ac_cv_sizeof_int" >&6; }
13819
13820
13821
13822 cat >>confdefs.h <<_ACEOF
13823 #define SIZEOF_INT $ac_cv_sizeof_int
13824 _ACEOF
13825
13826
13827 # The cast to long int works around a bug in the HP C Compiler
13828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13830 # This bug is HP SR number 8606223364.
13831 { $as_echo "$as_me:$LINENO: checking size of long" >&5
13832 $as_echo_n "checking size of long... " >&6; }
13833 if test "${ac_cv_sizeof_long+set}" = set; then
13834   $as_echo_n "(cached) " >&6
13835 else
13836   if test "$cross_compiling" = yes; then
13837   # Depending upon the size, compute the lo and hi bounds.
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 $ac_includes_default
13845 int
13846 main ()
13847 {
13848 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
13849 test_array [0] = 0
13850
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext
13856 if { (ac_try="$ac_compile"
13857 case "(($ac_try" in
13858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859   *) ac_try_echo=$ac_try;;
13860 esac
13861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862 $as_echo "$ac_try_echo") >&5
13863   (eval "$ac_compile") 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } && {
13870          test -z "$ac_c_werror_flag" ||
13871          test ! -s conftest.err
13872        } && test -s conftest.$ac_objext; then
13873   ac_lo=0 ac_mid=0
13874   while :; do
13875     cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h.  */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h.  */
13881 $ac_includes_default
13882 int
13883 main ()
13884 {
13885 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
13886 test_array [0] = 0
13887
13888   ;
13889   return 0;
13890 }
13891 _ACEOF
13892 rm -f conftest.$ac_objext
13893 if { (ac_try="$ac_compile"
13894 case "(($ac_try" in
13895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896   *) ac_try_echo=$ac_try;;
13897 esac
13898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13899 $as_echo "$ac_try_echo") >&5
13900   (eval "$ac_compile") 2>conftest.er1
13901   ac_status=$?
13902   grep -v '^ *+' conftest.er1 >conftest.err
13903   rm -f conftest.er1
13904   cat conftest.err >&5
13905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); } && {
13907          test -z "$ac_c_werror_flag" ||
13908          test ! -s conftest.err
13909        } && test -s conftest.$ac_objext; then
13910   ac_hi=$ac_mid; break
13911 else
13912   $as_echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915         ac_lo=`expr $ac_mid + 1`
13916                         if test $ac_lo -le $ac_mid; then
13917                           ac_lo= ac_hi=
13918                           break
13919                         fi
13920                         ac_mid=`expr 2 '*' $ac_mid + 1`
13921 fi
13922
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924   done
13925 else
13926   $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929         cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h.  */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h.  */
13935 $ac_includes_default
13936 int
13937 main ()
13938 {
13939 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
13940 test_array [0] = 0
13941
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13953 $as_echo "$ac_try_echo") >&5
13954   (eval "$ac_compile") 2>conftest.er1
13955   ac_status=$?
13956   grep -v '^ *+' conftest.er1 >conftest.err
13957   rm -f conftest.er1
13958   cat conftest.err >&5
13959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); } && {
13961          test -z "$ac_c_werror_flag" ||
13962          test ! -s conftest.err
13963        } && test -s conftest.$ac_objext; then
13964   ac_hi=-1 ac_mid=-1
13965   while :; do
13966     cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h.  */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h.  */
13972 $ac_includes_default
13973 int
13974 main ()
13975 {
13976 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
13977 test_array [0] = 0
13978
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13990 $as_echo "$ac_try_echo") >&5
13991   (eval "$ac_compile") 2>conftest.er1
13992   ac_status=$?
13993   grep -v '^ *+' conftest.er1 >conftest.err
13994   rm -f conftest.er1
13995   cat conftest.err >&5
13996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } && {
13998          test -z "$ac_c_werror_flag" ||
13999          test ! -s conftest.err
14000        } && test -s conftest.$ac_objext; then
14001   ac_lo=$ac_mid; break
14002 else
14003   $as_echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14005
14006         ac_hi=`expr '(' $ac_mid ')' - 1`
14007                         if test $ac_mid -le $ac_hi; then
14008                           ac_lo= ac_hi=
14009                           break
14010                         fi
14011                         ac_mid=`expr 2 '*' $ac_mid`
14012 fi
14013
14014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015   done
14016 else
14017   $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020         ac_lo= ac_hi=
14021 fi
14022
14023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 fi
14025
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 # Binary search between lo and hi bounds.
14028 while test "x$ac_lo" != "x$ac_hi"; do
14029   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14030   cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036 $ac_includes_default
14037 int
14038 main ()
14039 {
14040 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14041 test_array [0] = 0
14042
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051   *) ac_try_echo=$ac_try;;
14052 esac
14053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14054 $as_echo "$ac_try_echo") >&5
14055   (eval "$ac_compile") 2>conftest.er1
14056   ac_status=$?
14057   grep -v '^ *+' conftest.er1 >conftest.err
14058   rm -f conftest.er1
14059   cat conftest.err >&5
14060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); } && {
14062          test -z "$ac_c_werror_flag" ||
14063          test ! -s conftest.err
14064        } && test -s conftest.$ac_objext; then
14065   ac_hi=$ac_mid
14066 else
14067   $as_echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070         ac_lo=`expr '(' $ac_mid ')' + 1`
14071 fi
14072
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 done
14075 case $ac_lo in
14076 ?*) ac_cv_sizeof_long=$ac_lo;;
14077 '') if test "$ac_cv_type_long" = yes; then
14078      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14080 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14081 See \`config.log' for more details." >&5
14082 $as_echo "$as_me: error: cannot compute sizeof (long)
14083 See \`config.log' for more details." >&2;}
14084    { (exit 77); exit 77; }; }; }
14085    else
14086      ac_cv_sizeof_long=0
14087    fi ;;
14088 esac
14089 else
14090   cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 $ac_includes_default
14097 static long int longval () { return (long int) (sizeof (long)); }
14098 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
14099 #include <stdio.h>
14100 #include <stdlib.h>
14101 int
14102 main ()
14103 {
14104
14105   FILE *f = fopen ("conftest.val", "w");
14106   if (! f)
14107     return 1;
14108   if (((long int) (sizeof (long))) < 0)
14109     {
14110       long int i = longval ();
14111       if (i != ((long int) (sizeof (long))))
14112         return 1;
14113       fprintf (f, "%ld", i);
14114     }
14115   else
14116     {
14117       unsigned long int i = ulongval ();
14118       if (i != ((long int) (sizeof (long))))
14119         return 1;
14120       fprintf (f, "%lu", i);
14121     }
14122   /* Do not output a trailing newline, as this causes \r\n confusion
14123      on some platforms.  */
14124   return ferror (f) || fclose (f) != 0;
14125
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest$ac_exeext
14131 if { (ac_try="$ac_link"
14132 case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14137 $as_echo "$ac_try_echo") >&5
14138   (eval "$ac_link") 2>&5
14139   ac_status=$?
14140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14142   { (case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14147 $as_echo "$ac_try_echo") >&5
14148   (eval "$ac_try") 2>&5
14149   ac_status=$?
14150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }; then
14152   ac_cv_sizeof_long=`cat conftest.val`
14153 else
14154   $as_echo "$as_me: program exited with status $ac_status" >&5
14155 $as_echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 ( exit $ac_status )
14159 if test "$ac_cv_type_long" = yes; then
14160      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14162 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14163 See \`config.log' for more details." >&5
14164 $as_echo "$as_me: error: cannot compute sizeof (long)
14165 See \`config.log' for more details." >&2;}
14166    { (exit 77); exit 77; }; }; }
14167    else
14168      ac_cv_sizeof_long=0
14169    fi
14170 fi
14171 rm -rf conftest.dSYM
14172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14173 fi
14174 rm -f conftest.val
14175 fi
14176 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14177 $as_echo "$ac_cv_sizeof_long" >&6; }
14178
14179
14180
14181 cat >>confdefs.h <<_ACEOF
14182 #define SIZEOF_LONG $ac_cv_sizeof_long
14183 _ACEOF
14184
14185
14186 # The cast to long int works around a bug in the HP C Compiler
14187 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14188 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14189 # This bug is HP SR number 8606223364.
14190 { $as_echo "$as_me:$LINENO: checking size of wchar_t" >&5
14191 $as_echo_n "checking size of wchar_t... " >&6; }
14192 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
14193   $as_echo_n "(cached) " >&6
14194 else
14195   if test "$cross_compiling" = yes; then
14196   # Depending upon the size, compute the lo and hi bounds.
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 $ac_includes_default
14204 int
14205 main ()
14206 {
14207 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= 0)];
14208 test_array [0] = 0
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext
14215 if { (ac_try="$ac_compile"
14216 case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14221 $as_echo "$ac_try_echo") >&5
14222   (eval "$ac_compile") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } && {
14229          test -z "$ac_c_werror_flag" ||
14230          test ! -s conftest.err
14231        } && test -s conftest.$ac_objext; then
14232   ac_lo=0 ac_mid=0
14233   while :; do
14234     cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h.  */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h.  */
14240 $ac_includes_default
14241 int
14242 main ()
14243 {
14244 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
14245 test_array [0] = 0
14246
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext
14252 if { (ac_try="$ac_compile"
14253 case "(($ac_try" in
14254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255   *) ac_try_echo=$ac_try;;
14256 esac
14257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14258 $as_echo "$ac_try_echo") >&5
14259   (eval "$ac_compile") 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } && {
14266          test -z "$ac_c_werror_flag" ||
14267          test ! -s conftest.err
14268        } && test -s conftest.$ac_objext; then
14269   ac_hi=$ac_mid; break
14270 else
14271   $as_echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274         ac_lo=`expr $ac_mid + 1`
14275                         if test $ac_lo -le $ac_mid; then
14276                           ac_lo= ac_hi=
14277                           break
14278                         fi
14279                         ac_mid=`expr 2 '*' $ac_mid + 1`
14280 fi
14281
14282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283   done
14284 else
14285   $as_echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288         cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 int
14296 main ()
14297 {
14298 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) < 0)];
14299 test_array [0] = 0
14300
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309   *) ac_try_echo=$ac_try;;
14310 esac
14311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14312 $as_echo "$ac_try_echo") >&5
14313   (eval "$ac_compile") 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } && {
14320          test -z "$ac_c_werror_flag" ||
14321          test ! -s conftest.err
14322        } && test -s conftest.$ac_objext; then
14323   ac_hi=-1 ac_mid=-1
14324   while :; do
14325     cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 $ac_includes_default
14332 int
14333 main ()
14334 {
14335 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) >= $ac_mid)];
14336 test_array [0] = 0
14337
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (ac_try="$ac_compile"
14344 case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14349 $as_echo "$ac_try_echo") >&5
14350   (eval "$ac_compile") 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } && {
14357          test -z "$ac_c_werror_flag" ||
14358          test ! -s conftest.err
14359        } && test -s conftest.$ac_objext; then
14360   ac_lo=$ac_mid; break
14361 else
14362   $as_echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14364
14365         ac_hi=`expr '(' $ac_mid ')' - 1`
14366                         if test $ac_mid -le $ac_hi; then
14367                           ac_lo= ac_hi=
14368                           break
14369                         fi
14370                         ac_mid=`expr 2 '*' $ac_mid`
14371 fi
14372
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374   done
14375 else
14376   $as_echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14378
14379         ac_lo= ac_hi=
14380 fi
14381
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 fi
14384
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 # Binary search between lo and hi bounds.
14387 while test "x$ac_lo" != "x$ac_hi"; do
14388   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14389   cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 $ac_includes_default
14396 int
14397 main ()
14398 {
14399 static int test_array [1 - 2 * !(((long int) (sizeof (wchar_t))) <= $ac_mid)];
14400 test_array [0] = 0
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410   *) ac_try_echo=$ac_try;;
14411 esac
14412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14413 $as_echo "$ac_try_echo") >&5
14414   (eval "$ac_compile") 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } && {
14421          test -z "$ac_c_werror_flag" ||
14422          test ! -s conftest.err
14423        } && test -s conftest.$ac_objext; then
14424   ac_hi=$ac_mid
14425 else
14426   $as_echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14428
14429         ac_lo=`expr '(' $ac_mid ')' + 1`
14430 fi
14431
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 done
14434 case $ac_lo in
14435 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
14436 '') if test "$ac_cv_type_wchar_t" = yes; then
14437      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14439 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
14440 See \`config.log' for more details." >&5
14441 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
14442 See \`config.log' for more details." >&2;}
14443    { (exit 77); exit 77; }; }; }
14444    else
14445      ac_cv_sizeof_wchar_t=0
14446    fi ;;
14447 esac
14448 else
14449   cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h.  */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h.  */
14455 $ac_includes_default
14456 static long int longval () { return (long int) (sizeof (wchar_t)); }
14457 static unsigned long int ulongval () { return (long int) (sizeof (wchar_t)); }
14458 #include <stdio.h>
14459 #include <stdlib.h>
14460 int
14461 main ()
14462 {
14463
14464   FILE *f = fopen ("conftest.val", "w");
14465   if (! f)
14466     return 1;
14467   if (((long int) (sizeof (wchar_t))) < 0)
14468     {
14469       long int i = longval ();
14470       if (i != ((long int) (sizeof (wchar_t))))
14471         return 1;
14472       fprintf (f, "%ld", i);
14473     }
14474   else
14475     {
14476       unsigned long int i = ulongval ();
14477       if (i != ((long int) (sizeof (wchar_t))))
14478         return 1;
14479       fprintf (f, "%lu", i);
14480     }
14481   /* Do not output a trailing newline, as this causes \r\n confusion
14482      on some platforms.  */
14483   return ferror (f) || fclose (f) != 0;
14484
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest$ac_exeext
14490 if { (ac_try="$ac_link"
14491 case "(($ac_try" in
14492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493   *) ac_try_echo=$ac_try;;
14494 esac
14495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14496 $as_echo "$ac_try_echo") >&5
14497   (eval "$ac_link") 2>&5
14498   ac_status=$?
14499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14501   { (case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14506 $as_echo "$ac_try_echo") >&5
14507   (eval "$ac_try") 2>&5
14508   ac_status=$?
14509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; }; then
14511   ac_cv_sizeof_wchar_t=`cat conftest.val`
14512 else
14513   $as_echo "$as_me: program exited with status $ac_status" >&5
14514 $as_echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14516
14517 ( exit $ac_status )
14518 if test "$ac_cv_type_wchar_t" = yes; then
14519      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14521 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
14522 See \`config.log' for more details." >&5
14523 $as_echo "$as_me: error: cannot compute sizeof (wchar_t)
14524 See \`config.log' for more details." >&2;}
14525    { (exit 77); exit 77; }; }; }
14526    else
14527      ac_cv_sizeof_wchar_t=0
14528    fi
14529 fi
14530 rm -rf conftest.dSYM
14531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14532 fi
14533 rm -f conftest.val
14534 fi
14535 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
14536 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
14537
14538
14539
14540 cat >>confdefs.h <<_ACEOF
14541 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
14542 _ACEOF
14543
14544
14545
14546
14547 for ac_func in snprintf
14548 do
14549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14551 $as_echo_n "checking for $ac_func... " >&6; }
14552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14553   $as_echo_n "(cached) " >&6
14554 else
14555   cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h.  */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h.  */
14561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14563 #define $ac_func innocuous_$ac_func
14564
14565 /* System header to define __stub macros and hopefully few prototypes,
14566     which can conflict with char $ac_func (); below.
14567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14568     <limits.h> exists even on freestanding compilers.  */
14569
14570 #ifdef __STDC__
14571 # include <limits.h>
14572 #else
14573 # include <assert.h>
14574 #endif
14575
14576 #undef $ac_func
14577
14578 /* Override any GCC internal prototype to avoid an error.
14579    Use char because int might match the return type of a GCC
14580    builtin and then its argument prototype would still apply.  */
14581 #ifdef __cplusplus
14582 extern "C"
14583 #endif
14584 char $ac_func ();
14585 /* The GNU C library defines this for functions which it implements
14586     to always fail with ENOSYS.  Some functions are actually named
14587     something starting with __ and the normal name is an alias.  */
14588 #if defined __stub_$ac_func || defined __stub___$ac_func
14589 choke me
14590 #endif
14591
14592 int
14593 main ()
14594 {
14595 return $ac_func ();
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604   *) ac_try_echo=$ac_try;;
14605 esac
14606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14607 $as_echo "$ac_try_echo") >&5
14608   (eval "$ac_link") 2>conftest.er1
14609   ac_status=$?
14610   grep -v '^ *+' conftest.er1 >conftest.err
14611   rm -f conftest.er1
14612   cat conftest.err >&5
14613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } && {
14615          test -z "$ac_c_werror_flag" ||
14616          test ! -s conftest.err
14617        } && test -s conftest$ac_exeext && {
14618          test "$cross_compiling" = yes ||
14619          $as_test_x conftest$ac_exeext
14620        }; then
14621   eval "$as_ac_var=yes"
14622 else
14623   $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626         eval "$as_ac_var=no"
14627 fi
14628
14629 rm -rf conftest.dSYM
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631       conftest$ac_exeext conftest.$ac_ext
14632 fi
14633 ac_res=`eval 'as_val=${'$as_ac_var'}
14634                  $as_echo "$as_val"'`
14635                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14636 $as_echo "$ac_res" >&6; }
14637 as_val=`eval 'as_val=${'$as_ac_var'}
14638                  $as_echo "$as_val"'`
14639    if test "x$as_val" = x""yes; then
14640   cat >>confdefs.h <<_ACEOF
14641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14642 _ACEOF
14643
14644 fi
14645 done
14646
14647  if test "x$ac_cv_func_snprintf" != "xyes"; then
14648   USE_ESNPRINTF_TRUE=
14649   USE_ESNPRINTF_FALSE='#'
14650 else
14651   USE_ESNPRINTF_TRUE='#'
14652   USE_ESNPRINTF_FALSE=
14653 fi
14654
14655
14656
14657 for ac_func in strcasecmp strcasestr
14658 do
14659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14661 $as_echo_n "checking for $ac_func... " >&6; }
14662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14663   $as_echo_n "(cached) " >&6
14664 else
14665   cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14673 #define $ac_func innocuous_$ac_func
14674
14675 /* System header to define __stub macros and hopefully few prototypes,
14676     which can conflict with char $ac_func (); below.
14677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14678     <limits.h> exists even on freestanding compilers.  */
14679
14680 #ifdef __STDC__
14681 # include <limits.h>
14682 #else
14683 # include <assert.h>
14684 #endif
14685
14686 #undef $ac_func
14687
14688 /* Override any GCC internal prototype to avoid an error.
14689    Use char because int might match the return type of a GCC
14690    builtin and then its argument prototype would still apply.  */
14691 #ifdef __cplusplus
14692 extern "C"
14693 #endif
14694 char $ac_func ();
14695 /* The GNU C library defines this for functions which it implements
14696     to always fail with ENOSYS.  Some functions are actually named
14697     something starting with __ and the normal name is an alias.  */
14698 #if defined __stub_$ac_func || defined __stub___$ac_func
14699 choke me
14700 #endif
14701
14702 int
14703 main ()
14704 {
14705 return $ac_func ();
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext conftest$ac_exeext
14711 if { (ac_try="$ac_link"
14712 case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718   (eval "$ac_link") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } && {
14725          test -z "$ac_c_werror_flag" ||
14726          test ! -s conftest.err
14727        } && test -s conftest$ac_exeext && {
14728          test "$cross_compiling" = yes ||
14729          $as_test_x conftest$ac_exeext
14730        }; then
14731   eval "$as_ac_var=yes"
14732 else
14733   $as_echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736         eval "$as_ac_var=no"
14737 fi
14738
14739 rm -rf conftest.dSYM
14740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14741       conftest$ac_exeext conftest.$ac_ext
14742 fi
14743 ac_res=`eval 'as_val=${'$as_ac_var'}
14744                  $as_echo "$as_val"'`
14745                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14746 $as_echo "$ac_res" >&6; }
14747 as_val=`eval 'as_val=${'$as_ac_var'}
14748                  $as_echo "$as_val"'`
14749    if test "x$as_val" = x""yes; then
14750   cat >>confdefs.h <<_ACEOF
14751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14752 _ACEOF
14753
14754 fi
14755 done
14756
14757
14758
14759 for ac_func in setenv unsetenv
14760 do
14761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14762 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14763 $as_echo_n "checking for $ac_func... " >&6; }
14764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14765   $as_echo_n "(cached) " >&6
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h.  */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h.  */
14773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14775 #define $ac_func innocuous_$ac_func
14776
14777 /* System header to define __stub macros and hopefully few prototypes,
14778     which can conflict with char $ac_func (); below.
14779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14780     <limits.h> exists even on freestanding compilers.  */
14781
14782 #ifdef __STDC__
14783 # include <limits.h>
14784 #else
14785 # include <assert.h>
14786 #endif
14787
14788 #undef $ac_func
14789
14790 /* Override any GCC internal prototype to avoid an error.
14791    Use char because int might match the return type of a GCC
14792    builtin and then its argument prototype would still apply.  */
14793 #ifdef __cplusplus
14794 extern "C"
14795 #endif
14796 char $ac_func ();
14797 /* The GNU C library defines this for functions which it implements
14798     to always fail with ENOSYS.  Some functions are actually named
14799     something starting with __ and the normal name is an alias.  */
14800 #if defined __stub_$ac_func || defined __stub___$ac_func
14801 choke me
14802 #endif
14803
14804 int
14805 main ()
14806 {
14807 return $ac_func ();
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (ac_try="$ac_link"
14814 case "(($ac_try" in
14815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816   *) ac_try_echo=$ac_try;;
14817 esac
14818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14819 $as_echo "$ac_try_echo") >&5
14820   (eval "$ac_link") 2>conftest.er1
14821   ac_status=$?
14822   grep -v '^ *+' conftest.er1 >conftest.err
14823   rm -f conftest.er1
14824   cat conftest.err >&5
14825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); } && {
14827          test -z "$ac_c_werror_flag" ||
14828          test ! -s conftest.err
14829        } && test -s conftest$ac_exeext && {
14830          test "$cross_compiling" = yes ||
14831          $as_test_x conftest$ac_exeext
14832        }; then
14833   eval "$as_ac_var=yes"
14834 else
14835   $as_echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14837
14838         eval "$as_ac_var=no"
14839 fi
14840
14841 rm -rf conftest.dSYM
14842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14843       conftest$ac_exeext conftest.$ac_ext
14844 fi
14845 ac_res=`eval 'as_val=${'$as_ac_var'}
14846                  $as_echo "$as_val"'`
14847                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14848 $as_echo "$ac_res" >&6; }
14849 as_val=`eval 'as_val=${'$as_ac_var'}
14850                  $as_echo "$as_val"'`
14851    if test "x$as_val" = x""yes; then
14852   cat >>confdefs.h <<_ACEOF
14853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14854 _ACEOF
14855
14856 fi
14857 done
14858
14859
14860
14861 for ac_func in strdup strndup
14862 do
14863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14864 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14865 $as_echo_n "checking for $ac_func... " >&6; }
14866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14867   $as_echo_n "(cached) " >&6
14868 else
14869   cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14877 #define $ac_func innocuous_$ac_func
14878
14879 /* System header to define __stub macros and hopefully few prototypes,
14880     which can conflict with char $ac_func (); below.
14881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14882     <limits.h> exists even on freestanding compilers.  */
14883
14884 #ifdef __STDC__
14885 # include <limits.h>
14886 #else
14887 # include <assert.h>
14888 #endif
14889
14890 #undef $ac_func
14891
14892 /* Override any GCC internal prototype to avoid an error.
14893    Use char because int might match the return type of a GCC
14894    builtin and then its argument prototype would still apply.  */
14895 #ifdef __cplusplus
14896 extern "C"
14897 #endif
14898 char $ac_func ();
14899 /* The GNU C library defines this for functions which it implements
14900     to always fail with ENOSYS.  Some functions are actually named
14901     something starting with __ and the normal name is an alias.  */
14902 #if defined __stub_$ac_func || defined __stub___$ac_func
14903 choke me
14904 #endif
14905
14906 int
14907 main ()
14908 {
14909 return $ac_func ();
14910   ;
14911   return 0;
14912 }
14913 _ACEOF
14914 rm -f conftest.$ac_objext conftest$ac_exeext
14915 if { (ac_try="$ac_link"
14916 case "(($ac_try" in
14917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918   *) ac_try_echo=$ac_try;;
14919 esac
14920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14921 $as_echo "$ac_try_echo") >&5
14922   (eval "$ac_link") 2>conftest.er1
14923   ac_status=$?
14924   grep -v '^ *+' conftest.er1 >conftest.err
14925   rm -f conftest.er1
14926   cat conftest.err >&5
14927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } && {
14929          test -z "$ac_c_werror_flag" ||
14930          test ! -s conftest.err
14931        } && test -s conftest$ac_exeext && {
14932          test "$cross_compiling" = yes ||
14933          $as_test_x conftest$ac_exeext
14934        }; then
14935   eval "$as_ac_var=yes"
14936 else
14937   $as_echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940         eval "$as_ac_var=no"
14941 fi
14942
14943 rm -rf conftest.dSYM
14944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14945       conftest$ac_exeext conftest.$ac_ext
14946 fi
14947 ac_res=`eval 'as_val=${'$as_ac_var'}
14948                  $as_echo "$as_val"'`
14949                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14950 $as_echo "$ac_res" >&6; }
14951 as_val=`eval 'as_val=${'$as_ac_var'}
14952                  $as_echo "$as_val"'`
14953    if test "x$as_val" = x""yes; then
14954   cat >>confdefs.h <<_ACEOF
14955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14956 _ACEOF
14957
14958 fi
14959 done
14960
14961
14962
14963 for ac_func in blumfrub
14964 do
14965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14966 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14967 $as_echo_n "checking for $ac_func... " >&6; }
14968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14969   $as_echo_n "(cached) " >&6
14970 else
14971   cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h.  */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h.  */
14977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14979 #define $ac_func innocuous_$ac_func
14980
14981 /* System header to define __stub macros and hopefully few prototypes,
14982     which can conflict with char $ac_func (); below.
14983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14984     <limits.h> exists even on freestanding compilers.  */
14985
14986 #ifdef __STDC__
14987 # include <limits.h>
14988 #else
14989 # include <assert.h>
14990 #endif
14991
14992 #undef $ac_func
14993
14994 /* Override any GCC internal prototype to avoid an error.
14995    Use char because int might match the return type of a GCC
14996    builtin and then its argument prototype would still apply.  */
14997 #ifdef __cplusplus
14998 extern "C"
14999 #endif
15000 char $ac_func ();
15001 /* The GNU C library defines this for functions which it implements
15002     to always fail with ENOSYS.  Some functions are actually named
15003     something starting with __ and the normal name is an alias.  */
15004 #if defined __stub_$ac_func || defined __stub___$ac_func
15005 choke me
15006 #endif
15007
15008 int
15009 main ()
15010 {
15011 return $ac_func ();
15012   ;
15013   return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (ac_try="$ac_link"
15018 case "(($ac_try" in
15019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020   *) ac_try_echo=$ac_try;;
15021 esac
15022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15023 $as_echo "$ac_try_echo") >&5
15024   (eval "$ac_link") 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } && {
15031          test -z "$ac_c_werror_flag" ||
15032          test ! -s conftest.err
15033        } && test -s conftest$ac_exeext && {
15034          test "$cross_compiling" = yes ||
15035          $as_test_x conftest$ac_exeext
15036        }; then
15037   eval "$as_ac_var=yes"
15038 else
15039   $as_echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042         eval "$as_ac_var=no"
15043 fi
15044
15045 rm -rf conftest.dSYM
15046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047       conftest$ac_exeext conftest.$ac_ext
15048 fi
15049 ac_res=`eval 'as_val=${'$as_ac_var'}
15050                  $as_echo "$as_val"'`
15051                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15052 $as_echo "$ac_res" >&6; }
15053 as_val=`eval 'as_val=${'$as_ac_var'}
15054                  $as_echo "$as_val"'`
15055    if test "x$as_val" = x""yes; then
15056   cat >>confdefs.h <<_ACEOF
15057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15058 _ACEOF
15059
15060 fi
15061 done
15062
15063
15064 for ac_func in buckets_of_erogenous_nym
15065 do
15066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15068 $as_echo_n "checking for $ac_func... " >&6; }
15069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15070   $as_echo_n "(cached) " >&6
15071 else
15072   cat >conftest.$ac_ext <<_ACEOF
15073 /* confdefs.h.  */
15074 _ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h.  */
15078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15080 #define $ac_func innocuous_$ac_func
15081
15082 /* System header to define __stub macros and hopefully few prototypes,
15083     which can conflict with char $ac_func (); below.
15084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15085     <limits.h> exists even on freestanding compilers.  */
15086
15087 #ifdef __STDC__
15088 # include <limits.h>
15089 #else
15090 # include <assert.h>
15091 #endif
15092
15093 #undef $ac_func
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096    Use char because int might match the return type of a GCC
15097    builtin and then its argument prototype would still apply.  */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char $ac_func ();
15102 /* The GNU C library defines this for functions which it implements
15103     to always fail with ENOSYS.  Some functions are actually named
15104     something starting with __ and the normal name is an alias.  */
15105 #if defined __stub_$ac_func || defined __stub___$ac_func
15106 choke me
15107 #endif
15108
15109 int
15110 main ()
15111 {
15112 return $ac_func ();
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15124 $as_echo "$ac_try_echo") >&5
15125   (eval "$ac_link") 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } && {
15132          test -z "$ac_c_werror_flag" ||
15133          test ! -s conftest.err
15134        } && test -s conftest$ac_exeext && {
15135          test "$cross_compiling" = yes ||
15136          $as_test_x conftest$ac_exeext
15137        }; then
15138   eval "$as_ac_var=yes"
15139 else
15140   $as_echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143         eval "$as_ac_var=no"
15144 fi
15145
15146 rm -rf conftest.dSYM
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15148       conftest$ac_exeext conftest.$ac_ext
15149 fi
15150 ac_res=`eval 'as_val=${'$as_ac_var'}
15151                  $as_echo "$as_val"'`
15152                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15153 $as_echo "$ac_res" >&6; }
15154 as_val=`eval 'as_val=${'$as_ac_var'}
15155                  $as_echo "$as_val"'`
15156    if test "x$as_val" = x""yes; then
15157   cat >>confdefs.h <<_ACEOF
15158 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15159 _ACEOF
15160
15161 fi
15162 done
15163
15164
15165 for ac_func in buttox
15166 do
15167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15168 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15169 $as_echo_n "checking for $ac_func... " >&6; }
15170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15171   $as_echo_n "(cached) " >&6
15172 else
15173   cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15181 #define $ac_func innocuous_$ac_func
15182
15183 /* System header to define __stub macros and hopefully few prototypes,
15184     which can conflict with char $ac_func (); below.
15185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15186     <limits.h> exists even on freestanding compilers.  */
15187
15188 #ifdef __STDC__
15189 # include <limits.h>
15190 #else
15191 # include <assert.h>
15192 #endif
15193
15194 #undef $ac_func
15195
15196 /* Override any GCC internal prototype to avoid an error.
15197    Use char because int might match the return type of a GCC
15198    builtin and then its argument prototype would still apply.  */
15199 #ifdef __cplusplus
15200 extern "C"
15201 #endif
15202 char $ac_func ();
15203 /* The GNU C library defines this for functions which it implements
15204     to always fail with ENOSYS.  Some functions are actually named
15205     something starting with __ and the normal name is an alias.  */
15206 #if defined __stub_$ac_func || defined __stub___$ac_func
15207 choke me
15208 #endif
15209
15210 int
15211 main ()
15212 {
15213 return $ac_func ();
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (ac_try="$ac_link"
15220 case "(($ac_try" in
15221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222   *) ac_try_echo=$ac_try;;
15223 esac
15224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15225 $as_echo "$ac_try_echo") >&5
15226   (eval "$ac_link") 2>conftest.er1
15227   ac_status=$?
15228   grep -v '^ *+' conftest.er1 >conftest.err
15229   rm -f conftest.er1
15230   cat conftest.err >&5
15231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); } && {
15233          test -z "$ac_c_werror_flag" ||
15234          test ! -s conftest.err
15235        } && test -s conftest$ac_exeext && {
15236          test "$cross_compiling" = yes ||
15237          $as_test_x conftest$ac_exeext
15238        }; then
15239   eval "$as_ac_var=yes"
15240 else
15241   $as_echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244         eval "$as_ac_var=no"
15245 fi
15246
15247 rm -rf conftest.dSYM
15248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15249       conftest$ac_exeext conftest.$ac_ext
15250 fi
15251 ac_res=`eval 'as_val=${'$as_ac_var'}
15252                  $as_echo "$as_val"'`
15253                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15254 $as_echo "$ac_res" >&6; }
15255 as_val=`eval 'as_val=${'$as_ac_var'}
15256                  $as_echo "$as_val"'`
15257    if test "x$as_val" = x""yes; then
15258   cat >>confdefs.h <<_ACEOF
15259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15260 _ACEOF
15261
15262 fi
15263 done
15264
15265
15266
15267       if test "X$prefix" = "XNONE"; then
15268     acl_final_prefix="$ac_default_prefix"
15269   else
15270     acl_final_prefix="$prefix"
15271   fi
15272   if test "X$exec_prefix" = "XNONE"; then
15273     acl_final_exec_prefix='${prefix}'
15274   else
15275     acl_final_exec_prefix="$exec_prefix"
15276   fi
15277   acl_save_prefix="$prefix"
15278   prefix="$acl_final_prefix"
15279   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15280   prefix="$acl_save_prefix"
15281
15282
15283 # Check whether --with-gnu-ld was given.
15284 if test "${with_gnu_ld+set}" = set; then
15285   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15286 else
15287   with_gnu_ld=no
15288 fi
15289
15290 # Prepare PATH_SEPARATOR.
15291 # The user is always right.
15292 if test "${PATH_SEPARATOR+set}" != set; then
15293   echo "#! /bin/sh" >conf$$.sh
15294   echo  "exit 0"   >>conf$$.sh
15295   chmod +x conf$$.sh
15296   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15297     PATH_SEPARATOR=';'
15298   else
15299     PATH_SEPARATOR=:
15300   fi
15301   rm -f conf$$.sh
15302 fi
15303 ac_prog=ld
15304 if test "$GCC" = yes; then
15305   # Check if gcc -print-prog-name=ld gives a path.
15306   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15307 $as_echo_n "checking for ld used by GCC... " >&6; }
15308   case $host in
15309   *-*-mingw*)
15310     # gcc leaves a trailing carriage return which upsets mingw
15311     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15312   *)
15313     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15314   esac
15315   case $ac_prog in
15316     # Accept absolute paths.
15317     [\\/]* | [A-Za-z]:[\\/]*)
15318       re_direlt='/[^/][^/]*/\.\./'
15319       # Canonicalize the path of ld
15320       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15321       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15322         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15323       done
15324       test -z "$LD" && LD="$ac_prog"
15325       ;;
15326   "")
15327     # If it fails, then pretend we aren't using GCC.
15328     ac_prog=ld
15329     ;;
15330   *)
15331     # If it is relative, then search for the first ld in PATH.
15332     with_gnu_ld=unknown
15333     ;;
15334   esac
15335 elif test "$with_gnu_ld" = yes; then
15336   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15337 $as_echo_n "checking for GNU ld... " >&6; }
15338 else
15339   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15340 $as_echo_n "checking for non-GNU ld... " >&6; }
15341 fi
15342 if test "${acl_cv_path_LD+set}" = set; then
15343   $as_echo_n "(cached) " >&6
15344 else
15345   if test -z "$LD"; then
15346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15347   for ac_dir in $PATH; do
15348     test -z "$ac_dir" && ac_dir=.
15349     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15350       acl_cv_path_LD="$ac_dir/$ac_prog"
15351       # Check to see if the program is GNU ld.  I'd rather use --version,
15352       # but apparently some GNU ld's only accept -v.
15353       # Break only if it was the GNU/non-GNU ld that we prefer.
15354       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15355         test "$with_gnu_ld" != no && break
15356       else
15357         test "$with_gnu_ld" != yes && break
15358       fi
15359     fi
15360   done
15361   IFS="$ac_save_ifs"
15362 else
15363   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15364 fi
15365 fi
15366
15367 LD="$acl_cv_path_LD"
15368 if test -n "$LD"; then
15369   { $as_echo "$as_me:$LINENO: result: $LD" >&5
15370 $as_echo "$LD" >&6; }
15371 else
15372   { $as_echo "$as_me:$LINENO: result: no" >&5
15373 $as_echo "no" >&6; }
15374 fi
15375 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15376 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15377    { (exit 1); exit 1; }; }
15378 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15380 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15381   $as_echo_n "(cached) " >&6
15382 else
15383   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15384 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15385   acl_cv_prog_gnu_ld=yes
15386 else
15387   acl_cv_prog_gnu_ld=no
15388 fi
15389 fi
15390 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15391 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15392 with_gnu_ld=$acl_cv_prog_gnu_ld
15393
15394
15395
15396                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15397 $as_echo_n "checking for shared library run path origin... " >&6; }
15398 if test "${acl_cv_rpath+set}" = set; then
15399   $as_echo_n "(cached) " >&6
15400 else
15401
15402     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15403     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15404     . ./conftest.sh
15405     rm -f ./conftest.sh
15406     acl_cv_rpath=done
15407
15408 fi
15409 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15410 $as_echo "$acl_cv_rpath" >&6; }
15411   wl="$acl_cv_wl"
15412   libext="$acl_cv_libext"
15413   shlibext="$acl_cv_shlibext"
15414   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15415   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15416   hardcode_direct="$acl_cv_hardcode_direct"
15417   hardcode_minus_L="$acl_cv_hardcode_minus_L"
15418     # Check whether --enable-rpath was given.
15419 if test "${enable_rpath+set}" = set; then
15420   enableval=$enable_rpath; :
15421 else
15422   enable_rpath=yes
15423 fi
15424
15425
15426
15427
15428
15429
15430
15431
15432     use_additional=yes
15433
15434   acl_save_prefix="$prefix"
15435   prefix="$acl_final_prefix"
15436   acl_save_exec_prefix="$exec_prefix"
15437   exec_prefix="$acl_final_exec_prefix"
15438
15439     eval additional_includedir=\"$includedir\"
15440     eval additional_libdir=\"$libdir\"
15441
15442   exec_prefix="$acl_save_exec_prefix"
15443   prefix="$acl_save_prefix"
15444
15445
15446 # Check whether --with-libiconv-prefix was given.
15447 if test "${with_libiconv_prefix+set}" = set; then
15448   withval=$with_libiconv_prefix;
15449     if test "X$withval" = "Xno"; then
15450       use_additional=no
15451     else
15452       if test "X$withval" = "X"; then
15453
15454   acl_save_prefix="$prefix"
15455   prefix="$acl_final_prefix"
15456   acl_save_exec_prefix="$exec_prefix"
15457   exec_prefix="$acl_final_exec_prefix"
15458
15459           eval additional_includedir=\"$includedir\"
15460           eval additional_libdir=\"$libdir\"
15461
15462   exec_prefix="$acl_save_exec_prefix"
15463   prefix="$acl_save_prefix"
15464
15465       else
15466         additional_includedir="$withval/include"
15467         additional_libdir="$withval/lib"
15468       fi
15469     fi
15470
15471 fi
15472
15473       LIBICONV=
15474   LTLIBICONV=
15475   INCICONV=
15476   rpathdirs=
15477   ltrpathdirs=
15478   names_already_handled=
15479   names_next_round='iconv '
15480   while test -n "$names_next_round"; do
15481     names_this_round="$names_next_round"
15482     names_next_round=
15483     for name in $names_this_round; do
15484       already_handled=
15485       for n in $names_already_handled; do
15486         if test "$n" = "$name"; then
15487           already_handled=yes
15488           break
15489         fi
15490       done
15491       if test -z "$already_handled"; then
15492         names_already_handled="$names_already_handled $name"
15493                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15494         eval value=\"\$HAVE_LIB$uppername\"
15495         if test -n "$value"; then
15496           if test "$value" = yes; then
15497             eval value=\"\$LIB$uppername\"
15498             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15499             eval value=\"\$LTLIB$uppername\"
15500             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15501           else
15502                                     :
15503           fi
15504         else
15505                               found_dir=
15506           found_la=
15507           found_so=
15508           found_a=
15509           if test $use_additional = yes; then
15510             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15511               found_dir="$additional_libdir"
15512               found_so="$additional_libdir/lib$name.$shlibext"
15513               if test -f "$additional_libdir/lib$name.la"; then
15514                 found_la="$additional_libdir/lib$name.la"
15515               fi
15516             else
15517               if test -f "$additional_libdir/lib$name.$libext"; then
15518                 found_dir="$additional_libdir"
15519                 found_a="$additional_libdir/lib$name.$libext"
15520                 if test -f "$additional_libdir/lib$name.la"; then
15521                   found_la="$additional_libdir/lib$name.la"
15522                 fi
15523               fi
15524             fi
15525           fi
15526           if test "X$found_dir" = "X"; then
15527             for x in $LDFLAGS $LTLIBICONV; do
15528
15529   acl_save_prefix="$prefix"
15530   prefix="$acl_final_prefix"
15531   acl_save_exec_prefix="$exec_prefix"
15532   exec_prefix="$acl_final_exec_prefix"
15533   eval x=\"$x\"
15534   exec_prefix="$acl_save_exec_prefix"
15535   prefix="$acl_save_prefix"
15536
15537               case "$x" in
15538                 -L*)
15539                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15540                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15541                     found_dir="$dir"
15542                     found_so="$dir/lib$name.$shlibext"
15543                     if test -f "$dir/lib$name.la"; then
15544                       found_la="$dir/lib$name.la"
15545                     fi
15546                   else
15547                     if test -f "$dir/lib$name.$libext"; then
15548                       found_dir="$dir"
15549                       found_a="$dir/lib$name.$libext"
15550                       if test -f "$dir/lib$name.la"; then
15551                         found_la="$dir/lib$name.la"
15552                       fi
15553                     fi
15554                   fi
15555                   ;;
15556               esac
15557               if test "X$found_dir" != "X"; then
15558                 break
15559               fi
15560             done
15561           fi
15562           if test "X$found_dir" != "X"; then
15563                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15564             if test "X$found_so" != "X"; then
15565                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15566                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15567               else
15568                                                                                 haveit=
15569                 for x in $ltrpathdirs; do
15570                   if test "X$x" = "X$found_dir"; then
15571                     haveit=yes
15572                     break
15573                   fi
15574                 done
15575                 if test -z "$haveit"; then
15576                   ltrpathdirs="$ltrpathdirs $found_dir"
15577                 fi
15578                                 if test "$hardcode_direct" = yes; then
15579                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15580                 else
15581                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15582                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15583                                                             haveit=
15584                     for x in $rpathdirs; do
15585                       if test "X$x" = "X$found_dir"; then
15586                         haveit=yes
15587                         break
15588                       fi
15589                     done
15590                     if test -z "$haveit"; then
15591                       rpathdirs="$rpathdirs $found_dir"
15592                     fi
15593                   else
15594                                                                                 haveit=
15595                     for x in $LDFLAGS $LIBICONV; do
15596
15597   acl_save_prefix="$prefix"
15598   prefix="$acl_final_prefix"
15599   acl_save_exec_prefix="$exec_prefix"
15600   exec_prefix="$acl_final_exec_prefix"
15601   eval x=\"$x\"
15602   exec_prefix="$acl_save_exec_prefix"
15603   prefix="$acl_save_prefix"
15604
15605                       if test "X$x" = "X-L$found_dir"; then
15606                         haveit=yes
15607                         break
15608                       fi
15609                     done
15610                     if test -z "$haveit"; then
15611                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15612                     fi
15613                     if test "$hardcode_minus_L" != no; then
15614                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15615                     else
15616                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15617                     fi
15618                   fi
15619                 fi
15620               fi
15621             else
15622               if test "X$found_a" != "X"; then
15623                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15624               else
15625                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15626               fi
15627             fi
15628                         additional_includedir=
15629             case "$found_dir" in
15630               */lib | */lib/)
15631                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15632                 additional_includedir="$basedir/include"
15633                 ;;
15634             esac
15635             if test "X$additional_includedir" != "X"; then
15636                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15637                 haveit=
15638                 if test "X$additional_includedir" = "X/usr/local/include"; then
15639                   if test -n "$GCC"; then
15640                     case $host_os in
15641                       linux*) haveit=yes;;
15642                     esac
15643                   fi
15644                 fi
15645                 if test -z "$haveit"; then
15646                   for x in $CPPFLAGS $INCICONV; do
15647
15648   acl_save_prefix="$prefix"
15649   prefix="$acl_final_prefix"
15650   acl_save_exec_prefix="$exec_prefix"
15651   exec_prefix="$acl_final_exec_prefix"
15652   eval x=\"$x\"
15653   exec_prefix="$acl_save_exec_prefix"
15654   prefix="$acl_save_prefix"
15655
15656                     if test "X$x" = "X-I$additional_includedir"; then
15657                       haveit=yes
15658                       break
15659                     fi
15660                   done
15661                   if test -z "$haveit"; then
15662                     if test -d "$additional_includedir"; then
15663                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15664                     fi
15665                   fi
15666                 fi
15667               fi
15668             fi
15669                         if test -n "$found_la"; then
15670                                                         save_libdir="$libdir"
15671               case "$found_la" in
15672                 */* | *\\*) . "$found_la" ;;
15673                 *) . "./$found_la" ;;
15674               esac
15675               libdir="$save_libdir"
15676                             for dep in $dependency_libs; do
15677                 case "$dep" in
15678                   -L*)
15679                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15680                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15681                       haveit=
15682                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15683                         if test -n "$GCC"; then
15684                           case $host_os in
15685                             linux*) haveit=yes;;
15686                           esac
15687                         fi
15688                       fi
15689                       if test -z "$haveit"; then
15690                         haveit=
15691                         for x in $LDFLAGS $LIBICONV; do
15692
15693   acl_save_prefix="$prefix"
15694   prefix="$acl_final_prefix"
15695   acl_save_exec_prefix="$exec_prefix"
15696   exec_prefix="$acl_final_exec_prefix"
15697   eval x=\"$x\"
15698   exec_prefix="$acl_save_exec_prefix"
15699   prefix="$acl_save_prefix"
15700
15701                           if test "X$x" = "X-L$additional_libdir"; then
15702                             haveit=yes
15703                             break
15704                           fi
15705                         done
15706                         if test -z "$haveit"; then
15707                           if test -d "$additional_libdir"; then
15708                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15709                           fi
15710                         fi
15711                         haveit=
15712                         for x in $LDFLAGS $LTLIBICONV; do
15713
15714   acl_save_prefix="$prefix"
15715   prefix="$acl_final_prefix"
15716   acl_save_exec_prefix="$exec_prefix"
15717   exec_prefix="$acl_final_exec_prefix"
15718   eval x=\"$x\"
15719   exec_prefix="$acl_save_exec_prefix"
15720   prefix="$acl_save_prefix"
15721
15722                           if test "X$x" = "X-L$additional_libdir"; then
15723                             haveit=yes
15724                             break
15725                           fi
15726                         done
15727                         if test -z "$haveit"; then
15728                           if test -d "$additional_libdir"; then
15729                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15730                           fi
15731                         fi
15732                       fi
15733                     fi
15734                     ;;
15735                   -R*)
15736                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15737                     if test "$enable_rpath" != no; then
15738                                                                   haveit=
15739                       for x in $rpathdirs; do
15740                         if test "X$x" = "X$dir"; then
15741                           haveit=yes
15742                           break
15743                         fi
15744                       done
15745                       if test -z "$haveit"; then
15746                         rpathdirs="$rpathdirs $dir"
15747                       fi
15748                                                                   haveit=
15749                       for x in $ltrpathdirs; do
15750                         if test "X$x" = "X$dir"; then
15751                           haveit=yes
15752                           break
15753                         fi
15754                       done
15755                       if test -z "$haveit"; then
15756                         ltrpathdirs="$ltrpathdirs $dir"
15757                       fi
15758                     fi
15759                     ;;
15760                   -l*)
15761                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15762                     ;;
15763                   *.la)
15764                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15765                     ;;
15766                   *)
15767                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15768                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15769                     ;;
15770                 esac
15771               done
15772             fi
15773           else
15774                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15775             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15776           fi
15777         fi
15778       fi
15779     done
15780   done
15781   if test "X$rpathdirs" != "X"; then
15782     if test -n "$hardcode_libdir_separator"; then
15783                         alldirs=
15784       for found_dir in $rpathdirs; do
15785         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15786       done
15787             acl_save_libdir="$libdir"
15788       libdir="$alldirs"
15789       eval flag=\"$hardcode_libdir_flag_spec\"
15790       libdir="$acl_save_libdir"
15791       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15792     else
15793             for found_dir in $rpathdirs; do
15794         acl_save_libdir="$libdir"
15795         libdir="$found_dir"
15796         eval flag=\"$hardcode_libdir_flag_spec\"
15797         libdir="$acl_save_libdir"
15798         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15799       done
15800     fi
15801   fi
15802   if test "X$ltrpathdirs" != "X"; then
15803             for found_dir in $ltrpathdirs; do
15804       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15805     done
15806   fi
15807
15808
15809
15810
15811
15812
15813
15814           am_save_CPPFLAGS="$CPPFLAGS"
15815
15816   for element in $INCICONV; do
15817     haveit=
15818     for x in $CPPFLAGS; do
15819
15820   acl_save_prefix="$prefix"
15821   prefix="$acl_final_prefix"
15822   acl_save_exec_prefix="$exec_prefix"
15823   exec_prefix="$acl_final_exec_prefix"
15824   eval x=\"$x\"
15825   exec_prefix="$acl_save_exec_prefix"
15826   prefix="$acl_save_prefix"
15827
15828       if test "X$x" = "X$element"; then
15829         haveit=yes
15830         break
15831       fi
15832     done
15833     if test -z "$haveit"; then
15834       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15835     fi
15836   done
15837
15838
15839   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
15840 $as_echo_n "checking for iconv... " >&6; }
15841 if test "${am_cv_func_iconv+set}" = set; then
15842   $as_echo_n "(cached) " >&6
15843 else
15844
15845     am_cv_func_iconv="no, consider installing GNU libiconv"
15846     am_cv_lib_iconv=no
15847     cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 #include <stdlib.h>
15854 #include <iconv.h>
15855 int
15856 main ()
15857 {
15858 iconv_t cd = iconv_open("","");
15859        iconv(cd,NULL,NULL,NULL,NULL);
15860        iconv_close(cd);
15861   ;
15862   return 0;
15863 }
15864 _ACEOF
15865 rm -f conftest.$ac_objext conftest$ac_exeext
15866 if { (ac_try="$ac_link"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872 $as_echo "$ac_try_echo") >&5
15873   (eval "$ac_link") 2>conftest.er1
15874   ac_status=$?
15875   grep -v '^ *+' conftest.er1 >conftest.err
15876   rm -f conftest.er1
15877   cat conftest.err >&5
15878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); } && {
15880          test -z "$ac_c_werror_flag" ||
15881          test ! -s conftest.err
15882        } && test -s conftest$ac_exeext && {
15883          test "$cross_compiling" = yes ||
15884          $as_test_x conftest$ac_exeext
15885        }; then
15886   am_cv_func_iconv=yes
15887 else
15888   $as_echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891
15892 fi
15893
15894 rm -rf conftest.dSYM
15895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15896       conftest$ac_exeext conftest.$ac_ext
15897     if test "$am_cv_func_iconv" != yes; then
15898       am_save_LIBS="$LIBS"
15899       LIBS="$LIBS $LIBICONV"
15900       cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 #include <stdlib.h>
15907 #include <iconv.h>
15908 int
15909 main ()
15910 {
15911 iconv_t cd = iconv_open("","");
15912          iconv(cd,NULL,NULL,NULL,NULL);
15913          iconv_close(cd);
15914   ;
15915   return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926   (eval "$ac_link") 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } && {
15933          test -z "$ac_c_werror_flag" ||
15934          test ! -s conftest.err
15935        } && test -s conftest$ac_exeext && {
15936          test "$cross_compiling" = yes ||
15937          $as_test_x conftest$ac_exeext
15938        }; then
15939   am_cv_lib_iconv=yes
15940         am_cv_func_iconv=yes
15941 else
15942   $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945
15946 fi
15947
15948 rm -rf conftest.dSYM
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950       conftest$ac_exeext conftest.$ac_ext
15951       LIBS="$am_save_LIBS"
15952     fi
15953
15954 fi
15955 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15956 $as_echo "$am_cv_func_iconv" >&6; }
15957   if test "$am_cv_func_iconv" = yes; then
15958
15959 cat >>confdefs.h <<\_ACEOF
15960 #define HAVE_ICONV 1
15961 _ACEOF
15962
15963   fi
15964   if test "$am_cv_lib_iconv" = yes; then
15965     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15966 $as_echo_n "checking how to link with libiconv... " >&6; }
15967     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
15968 $as_echo "$LIBICONV" >&6; }
15969   else
15970             CPPFLAGS="$am_save_CPPFLAGS"
15971     LIBICONV=
15972     LTLIBICONV=
15973   fi
15974
15975
15976
15977   if test "$am_cv_func_iconv" = yes; then
15978     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
15979 $as_echo_n "checking for iconv declaration... " >&6; }
15980     if test "${am_cv_proto_iconv+set}" = set; then
15981   $as_echo_n "(cached) " >&6
15982 else
15983
15984       cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h.  */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h.  */
15990
15991 #include <stdlib.h>
15992 #include <iconv.h>
15993 extern
15994 #ifdef __cplusplus
15995 "C"
15996 #endif
15997 #if defined(__STDC__) || defined(__cplusplus)
15998 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15999 #else
16000 size_t iconv();
16001 #endif
16002
16003 int
16004 main ()
16005 {
16006
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext
16012 if { (ac_try="$ac_compile"
16013 case "(($ac_try" in
16014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015   *) ac_try_echo=$ac_try;;
16016 esac
16017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019   (eval "$ac_compile") 2>conftest.er1
16020   ac_status=$?
16021   grep -v '^ *+' conftest.er1 >conftest.err
16022   rm -f conftest.er1
16023   cat conftest.err >&5
16024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); } && {
16026          test -z "$ac_c_werror_flag" ||
16027          test ! -s conftest.err
16028        } && test -s conftest.$ac_objext; then
16029   am_cv_proto_iconv_arg1=""
16030 else
16031   $as_echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034         am_cv_proto_iconv_arg1="const"
16035 fi
16036
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16039 fi
16040
16041     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16042     { $as_echo "$as_me:$LINENO: result: ${ac_t:-
16043          }$am_cv_proto_iconv" >&5
16044 $as_echo "${ac_t:-
16045          }$am_cv_proto_iconv" >&6; }
16046
16047 cat >>confdefs.h <<_ACEOF
16048 #define ICONV_CONST $am_cv_proto_iconv_arg1
16049 _ACEOF
16050
16051   fi
16052
16053
16054   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16055 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16056 if test "${am_cv_langinfo_codeset+set}" = set; then
16057   $as_echo_n "(cached) " >&6
16058 else
16059   cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 #include <langinfo.h>
16066 int
16067 main ()
16068 {
16069 char* cs = nl_langinfo(CODESET);
16070   ;
16071   return 0;
16072 }
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (ac_try="$ac_link"
16076 case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16081 $as_echo "$ac_try_echo") >&5
16082   (eval "$ac_link") 2>conftest.er1
16083   ac_status=$?
16084   grep -v '^ *+' conftest.er1 >conftest.err
16085   rm -f conftest.er1
16086   cat conftest.err >&5
16087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); } && {
16089          test -z "$ac_c_werror_flag" ||
16090          test ! -s conftest.err
16091        } && test -s conftest$ac_exeext && {
16092          test "$cross_compiling" = yes ||
16093          $as_test_x conftest$ac_exeext
16094        }; then
16095   am_cv_langinfo_codeset=yes
16096 else
16097   $as_echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100         am_cv_langinfo_codeset=no
16101 fi
16102
16103 rm -rf conftest.dSYM
16104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16105       conftest$ac_exeext conftest.$ac_ext
16106
16107 fi
16108 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
16109 $as_echo "$am_cv_langinfo_codeset" >&6; }
16110   if test $am_cv_langinfo_codeset = yes; then
16111
16112 cat >>confdefs.h <<\_ACEOF
16113 #define HAVE_LANGINFO_CODESET 1
16114 _ACEOF
16115
16116   fi
16117
16118
16119
16120         MKINSTALLDIRS=
16121   if test -n "$ac_aux_dir"; then
16122     case "$ac_aux_dir" in
16123       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16124       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16125     esac
16126   fi
16127   if test -z "$MKINSTALLDIRS"; then
16128     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16129   fi
16130
16131
16132
16133   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16134 $as_echo_n "checking whether NLS is requested... " >&6; }
16135     # Check whether --enable-nls was given.
16136 if test "${enable_nls+set}" = set; then
16137   enableval=$enable_nls; USE_NLS=$enableval
16138 else
16139   USE_NLS=yes
16140 fi
16141
16142   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16143 $as_echo "$USE_NLS" >&6; }
16144
16145
16146
16147
16148
16149
16150 # Prepare PATH_SEPARATOR.
16151 # The user is always right.
16152 if test "${PATH_SEPARATOR+set}" != set; then
16153   echo "#! /bin/sh" >conf$$.sh
16154   echo  "exit 0"   >>conf$$.sh
16155   chmod +x conf$$.sh
16156   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16157     PATH_SEPARATOR=';'
16158   else
16159     PATH_SEPARATOR=:
16160   fi
16161   rm -f conf$$.sh
16162 fi
16163
16164 # Find out how to test for executable files. Don't use a zero-byte file,
16165 # as systems may use methods other than mode bits to determine executability.
16166 cat >conf$$.file <<_ASEOF
16167 #! /bin/sh
16168 exit 0
16169 _ASEOF
16170 chmod +x conf$$.file
16171 if test -x conf$$.file >/dev/null 2>&1; then
16172   ac_executable_p="test -x"
16173 else
16174   ac_executable_p="test -f"
16175 fi
16176 rm -f conf$$.file
16177
16178 # Extract the first word of "msgfmt", so it can be a program name with args.
16179 set dummy msgfmt; ac_word=$2
16180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16181 $as_echo_n "checking for $ac_word... " >&6; }
16182 if test "${ac_cv_path_MSGFMT+set}" = set; then
16183   $as_echo_n "(cached) " >&6
16184 else
16185   case "$MSGFMT" in
16186   [\\/]* | ?:[\\/]*)
16187     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16188     ;;
16189   *)
16190     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16191     for ac_dir in $PATH; do
16192       IFS="$ac_save_IFS"
16193       test -z "$ac_dir" && ac_dir=.
16194       for ac_exec_ext in '' $ac_executable_extensions; do
16195         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16196           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16197      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16198             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16199             break 2
16200           fi
16201         fi
16202       done
16203     done
16204     IFS="$ac_save_IFS"
16205   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16206     ;;
16207 esac
16208 fi
16209 MSGFMT="$ac_cv_path_MSGFMT"
16210 if test "$MSGFMT" != ":"; then
16211   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16212 $as_echo "$MSGFMT" >&6; }
16213 else
16214   { $as_echo "$as_me:$LINENO: result: no" >&5
16215 $as_echo "no" >&6; }
16216 fi
16217
16218   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16219 set dummy gmsgfmt; ac_word=$2
16220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16221 $as_echo_n "checking for $ac_word... " >&6; }
16222 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16223   $as_echo_n "(cached) " >&6
16224 else
16225   case $GMSGFMT in
16226   [\\/]* | ?:[\\/]*)
16227   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16228   ;;
16229   *)
16230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16231 for as_dir in $PATH
16232 do
16233   IFS=$as_save_IFS
16234   test -z "$as_dir" && as_dir=.
16235   for ac_exec_ext in '' $ac_executable_extensions; do
16236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16237     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16239     break 2
16240   fi
16241 done
16242 done
16243 IFS=$as_save_IFS
16244
16245   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16246   ;;
16247 esac
16248 fi
16249 GMSGFMT=$ac_cv_path_GMSGFMT
16250 if test -n "$GMSGFMT"; then
16251   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16252 $as_echo "$GMSGFMT" >&6; }
16253 else
16254   { $as_echo "$as_me:$LINENO: result: no" >&5
16255 $as_echo "no" >&6; }
16256 fi
16257
16258
16259
16260
16261 # Prepare PATH_SEPARATOR.
16262 # The user is always right.
16263 if test "${PATH_SEPARATOR+set}" != set; then
16264   echo "#! /bin/sh" >conf$$.sh
16265   echo  "exit 0"   >>conf$$.sh
16266   chmod +x conf$$.sh
16267   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16268     PATH_SEPARATOR=';'
16269   else
16270     PATH_SEPARATOR=:
16271   fi
16272   rm -f conf$$.sh
16273 fi
16274
16275 # Find out how to test for executable files. Don't use a zero-byte file,
16276 # as systems may use methods other than mode bits to determine executability.
16277 cat >conf$$.file <<_ASEOF
16278 #! /bin/sh
16279 exit 0
16280 _ASEOF
16281 chmod +x conf$$.file
16282 if test -x conf$$.file >/dev/null 2>&1; then
16283   ac_executable_p="test -x"
16284 else
16285   ac_executable_p="test -f"
16286 fi
16287 rm -f conf$$.file
16288
16289 # Extract the first word of "xgettext", so it can be a program name with args.
16290 set dummy xgettext; ac_word=$2
16291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16292 $as_echo_n "checking for $ac_word... " >&6; }
16293 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16294   $as_echo_n "(cached) " >&6
16295 else
16296   case "$XGETTEXT" in
16297   [\\/]* | ?:[\\/]*)
16298     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16299     ;;
16300   *)
16301     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16302     for ac_dir in $PATH; do
16303       IFS="$ac_save_IFS"
16304       test -z "$ac_dir" && ac_dir=.
16305       for ac_exec_ext in '' $ac_executable_extensions; do
16306         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16307           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16308      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16309             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16310             break 2
16311           fi
16312         fi
16313       done
16314     done
16315     IFS="$ac_save_IFS"
16316   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16317     ;;
16318 esac
16319 fi
16320 XGETTEXT="$ac_cv_path_XGETTEXT"
16321 if test "$XGETTEXT" != ":"; then
16322   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16323 $as_echo "$XGETTEXT" >&6; }
16324 else
16325   { $as_echo "$as_me:$LINENO: result: no" >&5
16326 $as_echo "no" >&6; }
16327 fi
16328
16329     rm -f messages.po
16330
16331
16332 # Prepare PATH_SEPARATOR.
16333 # The user is always right.
16334 if test "${PATH_SEPARATOR+set}" != set; then
16335   echo "#! /bin/sh" >conf$$.sh
16336   echo  "exit 0"   >>conf$$.sh
16337   chmod +x conf$$.sh
16338   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16339     PATH_SEPARATOR=';'
16340   else
16341     PATH_SEPARATOR=:
16342   fi
16343   rm -f conf$$.sh
16344 fi
16345
16346 # Find out how to test for executable files. Don't use a zero-byte file,
16347 # as systems may use methods other than mode bits to determine executability.
16348 cat >conf$$.file <<_ASEOF
16349 #! /bin/sh
16350 exit 0
16351 _ASEOF
16352 chmod +x conf$$.file
16353 if test -x conf$$.file >/dev/null 2>&1; then
16354   ac_executable_p="test -x"
16355 else
16356   ac_executable_p="test -f"
16357 fi
16358 rm -f conf$$.file
16359
16360 # Extract the first word of "msgmerge", so it can be a program name with args.
16361 set dummy msgmerge; ac_word=$2
16362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16363 $as_echo_n "checking for $ac_word... " >&6; }
16364 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16365   $as_echo_n "(cached) " >&6
16366 else
16367   case "$MSGMERGE" in
16368   [\\/]* | ?:[\\/]*)
16369     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16370     ;;
16371   *)
16372     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16373     for ac_dir in $PATH; do
16374       IFS="$ac_save_IFS"
16375       test -z "$ac_dir" && ac_dir=.
16376       for ac_exec_ext in '' $ac_executable_extensions; do
16377         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16378           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16379             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16380             break 2
16381           fi
16382         fi
16383       done
16384     done
16385     IFS="$ac_save_IFS"
16386   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16387     ;;
16388 esac
16389 fi
16390 MSGMERGE="$ac_cv_path_MSGMERGE"
16391 if test "$MSGMERGE" != ":"; then
16392   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16393 $as_echo "$MSGMERGE" >&6; }
16394 else
16395   { $as_echo "$as_me:$LINENO: result: no" >&5
16396 $as_echo "no" >&6; }
16397 fi
16398
16399
16400       if test "$GMSGFMT" != ":"; then
16401             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16402        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16403       : ;
16404     else
16405       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16406       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16407 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16408       GMSGFMT=":"
16409     fi
16410   fi
16411
16412       if test "$XGETTEXT" != ":"; then
16413             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16414        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16415       : ;
16416     else
16417       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16418 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16419       XGETTEXT=":"
16420     fi
16421         rm -f messages.po
16422   fi
16423
16424   ac_config_commands="$ac_config_commands default-1"
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16444 $as_echo_n "checking whether NLS is requested... " >&6; }
16445     # Check whether --enable-nls was given.
16446 if test "${enable_nls+set}" = set; then
16447   enableval=$enable_nls; USE_NLS=$enableval
16448 else
16449   USE_NLS=yes
16450 fi
16451
16452   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16453 $as_echo "$USE_NLS" >&6; }
16454
16455
16456
16457
16458   LIBINTL=
16459   LTLIBINTL=
16460   POSUB=
16461
16462     if test "$USE_NLS" = "yes"; then
16463     gt_use_preinstalled_gnugettext=no
16464
16465
16466
16467
16468
16469
16470         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16471 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16472 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
16473   $as_echo_n "(cached) " >&6
16474 else
16475   cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h.  */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h.  */
16481 #include <libintl.h>
16482 extern int _nl_msg_cat_cntr;
16483 extern int *_nl_domain_bindings;
16484 int
16485 main ()
16486 {
16487 bindtextdomain ("", "");
16488 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (ac_try="$ac_link"
16495 case "(($ac_try" in
16496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497   *) ac_try_echo=$ac_try;;
16498 esac
16499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16500 $as_echo "$ac_try_echo") >&5
16501   (eval "$ac_link") 2>conftest.er1
16502   ac_status=$?
16503   grep -v '^ *+' conftest.er1 >conftest.err
16504   rm -f conftest.er1
16505   cat conftest.err >&5
16506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); } && {
16508          test -z "$ac_c_werror_flag" ||
16509          test ! -s conftest.err
16510        } && test -s conftest$ac_exeext && {
16511          test "$cross_compiling" = yes ||
16512          $as_test_x conftest$ac_exeext
16513        }; then
16514   gt_cv_func_gnugettext1_libc=yes
16515 else
16516   $as_echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519         gt_cv_func_gnugettext1_libc=no
16520 fi
16521
16522 rm -rf conftest.dSYM
16523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16524       conftest$ac_exeext conftest.$ac_ext
16525 fi
16526 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16527 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16528
16529         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16530
16531
16532
16533
16534
16535           am_save_CPPFLAGS="$CPPFLAGS"
16536
16537   for element in $INCICONV; do
16538     haveit=
16539     for x in $CPPFLAGS; do
16540
16541   acl_save_prefix="$prefix"
16542   prefix="$acl_final_prefix"
16543   acl_save_exec_prefix="$exec_prefix"
16544   exec_prefix="$acl_final_exec_prefix"
16545   eval x=\"$x\"
16546   exec_prefix="$acl_save_exec_prefix"
16547   prefix="$acl_save_prefix"
16548
16549       if test "X$x" = "X$element"; then
16550         haveit=yes
16551         break
16552       fi
16553     done
16554     if test -z "$haveit"; then
16555       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16556     fi
16557   done
16558
16559
16560   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
16561 $as_echo_n "checking for iconv... " >&6; }
16562 if test "${am_cv_func_iconv+set}" = set; then
16563   $as_echo_n "(cached) " >&6
16564 else
16565
16566     am_cv_func_iconv="no, consider installing GNU libiconv"
16567     am_cv_lib_iconv=no
16568     cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 #include <stdlib.h>
16575 #include <iconv.h>
16576 int
16577 main ()
16578 {
16579 iconv_t cd = iconv_open("","");
16580        iconv(cd,NULL,NULL,NULL,NULL);
16581        iconv_close(cd);
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 rm -f conftest.$ac_objext conftest$ac_exeext
16587 if { (ac_try="$ac_link"
16588 case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16593 $as_echo "$ac_try_echo") >&5
16594   (eval "$ac_link") 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } && {
16601          test -z "$ac_c_werror_flag" ||
16602          test ! -s conftest.err
16603        } && test -s conftest$ac_exeext && {
16604          test "$cross_compiling" = yes ||
16605          $as_test_x conftest$ac_exeext
16606        }; then
16607   am_cv_func_iconv=yes
16608 else
16609   $as_echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612
16613 fi
16614
16615 rm -rf conftest.dSYM
16616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16617       conftest$ac_exeext conftest.$ac_ext
16618     if test "$am_cv_func_iconv" != yes; then
16619       am_save_LIBS="$LIBS"
16620       LIBS="$LIBS $LIBICONV"
16621       cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 #include <stdlib.h>
16628 #include <iconv.h>
16629 int
16630 main ()
16631 {
16632 iconv_t cd = iconv_open("","");
16633          iconv(cd,NULL,NULL,NULL,NULL);
16634          iconv_close(cd);
16635   ;
16636   return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643   *) ac_try_echo=$ac_try;;
16644 esac
16645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647   (eval "$ac_link") 2>conftest.er1
16648   ac_status=$?
16649   grep -v '^ *+' conftest.er1 >conftest.err
16650   rm -f conftest.er1
16651   cat conftest.err >&5
16652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); } && {
16654          test -z "$ac_c_werror_flag" ||
16655          test ! -s conftest.err
16656        } && test -s conftest$ac_exeext && {
16657          test "$cross_compiling" = yes ||
16658          $as_test_x conftest$ac_exeext
16659        }; then
16660   am_cv_lib_iconv=yes
16661         am_cv_func_iconv=yes
16662 else
16663   $as_echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666
16667 fi
16668
16669 rm -rf conftest.dSYM
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671       conftest$ac_exeext conftest.$ac_ext
16672       LIBS="$am_save_LIBS"
16673     fi
16674
16675 fi
16676 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16677 $as_echo "$am_cv_func_iconv" >&6; }
16678   if test "$am_cv_func_iconv" = yes; then
16679
16680 cat >>confdefs.h <<\_ACEOF
16681 #define HAVE_ICONV 1
16682 _ACEOF
16683
16684   fi
16685   if test "$am_cv_lib_iconv" = yes; then
16686     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16687 $as_echo_n "checking how to link with libiconv... " >&6; }
16688     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
16689 $as_echo "$LIBICONV" >&6; }
16690   else
16691             CPPFLAGS="$am_save_CPPFLAGS"
16692     LIBICONV=
16693     LTLIBICONV=
16694   fi
16695
16696
16697
16698
16699
16700
16701     use_additional=yes
16702
16703   acl_save_prefix="$prefix"
16704   prefix="$acl_final_prefix"
16705   acl_save_exec_prefix="$exec_prefix"
16706   exec_prefix="$acl_final_exec_prefix"
16707
16708     eval additional_includedir=\"$includedir\"
16709     eval additional_libdir=\"$libdir\"
16710
16711   exec_prefix="$acl_save_exec_prefix"
16712   prefix="$acl_save_prefix"
16713
16714
16715 # Check whether --with-libintl-prefix was given.
16716 if test "${with_libintl_prefix+set}" = set; then
16717   withval=$with_libintl_prefix;
16718     if test "X$withval" = "Xno"; then
16719       use_additional=no
16720     else
16721       if test "X$withval" = "X"; then
16722
16723   acl_save_prefix="$prefix"
16724   prefix="$acl_final_prefix"
16725   acl_save_exec_prefix="$exec_prefix"
16726   exec_prefix="$acl_final_exec_prefix"
16727
16728           eval additional_includedir=\"$includedir\"
16729           eval additional_libdir=\"$libdir\"
16730
16731   exec_prefix="$acl_save_exec_prefix"
16732   prefix="$acl_save_prefix"
16733
16734       else
16735         additional_includedir="$withval/include"
16736         additional_libdir="$withval/lib"
16737       fi
16738     fi
16739
16740 fi
16741
16742       LIBINTL=
16743   LTLIBINTL=
16744   INCINTL=
16745   rpathdirs=
16746   ltrpathdirs=
16747   names_already_handled=
16748   names_next_round='intl '
16749   while test -n "$names_next_round"; do
16750     names_this_round="$names_next_round"
16751     names_next_round=
16752     for name in $names_this_round; do
16753       already_handled=
16754       for n in $names_already_handled; do
16755         if test "$n" = "$name"; then
16756           already_handled=yes
16757           break
16758         fi
16759       done
16760       if test -z "$already_handled"; then
16761         names_already_handled="$names_already_handled $name"
16762                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16763         eval value=\"\$HAVE_LIB$uppername\"
16764         if test -n "$value"; then
16765           if test "$value" = yes; then
16766             eval value=\"\$LIB$uppername\"
16767             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16768             eval value=\"\$LTLIB$uppername\"
16769             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16770           else
16771                                     :
16772           fi
16773         else
16774                               found_dir=
16775           found_la=
16776           found_so=
16777           found_a=
16778           if test $use_additional = yes; then
16779             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16780               found_dir="$additional_libdir"
16781               found_so="$additional_libdir/lib$name.$shlibext"
16782               if test -f "$additional_libdir/lib$name.la"; then
16783                 found_la="$additional_libdir/lib$name.la"
16784               fi
16785             else
16786               if test -f "$additional_libdir/lib$name.$libext"; then
16787                 found_dir="$additional_libdir"
16788                 found_a="$additional_libdir/lib$name.$libext"
16789                 if test -f "$additional_libdir/lib$name.la"; then
16790                   found_la="$additional_libdir/lib$name.la"
16791                 fi
16792               fi
16793             fi
16794           fi
16795           if test "X$found_dir" = "X"; then
16796             for x in $LDFLAGS $LTLIBINTL; do
16797
16798   acl_save_prefix="$prefix"
16799   prefix="$acl_final_prefix"
16800   acl_save_exec_prefix="$exec_prefix"
16801   exec_prefix="$acl_final_exec_prefix"
16802   eval x=\"$x\"
16803   exec_prefix="$acl_save_exec_prefix"
16804   prefix="$acl_save_prefix"
16805
16806               case "$x" in
16807                 -L*)
16808                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16809                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16810                     found_dir="$dir"
16811                     found_so="$dir/lib$name.$shlibext"
16812                     if test -f "$dir/lib$name.la"; then
16813                       found_la="$dir/lib$name.la"
16814                     fi
16815                   else
16816                     if test -f "$dir/lib$name.$libext"; then
16817                       found_dir="$dir"
16818                       found_a="$dir/lib$name.$libext"
16819                       if test -f "$dir/lib$name.la"; then
16820                         found_la="$dir/lib$name.la"
16821                       fi
16822                     fi
16823                   fi
16824                   ;;
16825               esac
16826               if test "X$found_dir" != "X"; then
16827                 break
16828               fi
16829             done
16830           fi
16831           if test "X$found_dir" != "X"; then
16832                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16833             if test "X$found_so" != "X"; then
16834                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16835                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16836               else
16837                                                                                 haveit=
16838                 for x in $ltrpathdirs; do
16839                   if test "X$x" = "X$found_dir"; then
16840                     haveit=yes
16841                     break
16842                   fi
16843                 done
16844                 if test -z "$haveit"; then
16845                   ltrpathdirs="$ltrpathdirs $found_dir"
16846                 fi
16847                                 if test "$hardcode_direct" = yes; then
16848                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16849                 else
16850                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16851                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16852                                                             haveit=
16853                     for x in $rpathdirs; do
16854                       if test "X$x" = "X$found_dir"; then
16855                         haveit=yes
16856                         break
16857                       fi
16858                     done
16859                     if test -z "$haveit"; then
16860                       rpathdirs="$rpathdirs $found_dir"
16861                     fi
16862                   else
16863                                                                                 haveit=
16864                     for x in $LDFLAGS $LIBINTL; do
16865
16866   acl_save_prefix="$prefix"
16867   prefix="$acl_final_prefix"
16868   acl_save_exec_prefix="$exec_prefix"
16869   exec_prefix="$acl_final_exec_prefix"
16870   eval x=\"$x\"
16871   exec_prefix="$acl_save_exec_prefix"
16872   prefix="$acl_save_prefix"
16873
16874                       if test "X$x" = "X-L$found_dir"; then
16875                         haveit=yes
16876                         break
16877                       fi
16878                     done
16879                     if test -z "$haveit"; then
16880                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16881                     fi
16882                     if test "$hardcode_minus_L" != no; then
16883                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16884                     else
16885                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16886                     fi
16887                   fi
16888                 fi
16889               fi
16890             else
16891               if test "X$found_a" != "X"; then
16892                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16893               else
16894                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16895               fi
16896             fi
16897                         additional_includedir=
16898             case "$found_dir" in
16899               */lib | */lib/)
16900                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16901                 additional_includedir="$basedir/include"
16902                 ;;
16903             esac
16904             if test "X$additional_includedir" != "X"; then
16905                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16906                 haveit=
16907                 if test "X$additional_includedir" = "X/usr/local/include"; then
16908                   if test -n "$GCC"; then
16909                     case $host_os in
16910                       linux*) haveit=yes;;
16911                     esac
16912                   fi
16913                 fi
16914                 if test -z "$haveit"; then
16915                   for x in $CPPFLAGS $INCINTL; do
16916
16917   acl_save_prefix="$prefix"
16918   prefix="$acl_final_prefix"
16919   acl_save_exec_prefix="$exec_prefix"
16920   exec_prefix="$acl_final_exec_prefix"
16921   eval x=\"$x\"
16922   exec_prefix="$acl_save_exec_prefix"
16923   prefix="$acl_save_prefix"
16924
16925                     if test "X$x" = "X-I$additional_includedir"; then
16926                       haveit=yes
16927                       break
16928                     fi
16929                   done
16930                   if test -z "$haveit"; then
16931                     if test -d "$additional_includedir"; then
16932                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16933                     fi
16934                   fi
16935                 fi
16936               fi
16937             fi
16938                         if test -n "$found_la"; then
16939                                                         save_libdir="$libdir"
16940               case "$found_la" in
16941                 */* | *\\*) . "$found_la" ;;
16942                 *) . "./$found_la" ;;
16943               esac
16944               libdir="$save_libdir"
16945                             for dep in $dependency_libs; do
16946                 case "$dep" in
16947                   -L*)
16948                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16949                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16950                       haveit=
16951                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16952                         if test -n "$GCC"; then
16953                           case $host_os in
16954                             linux*) haveit=yes;;
16955                           esac
16956                         fi
16957                       fi
16958                       if test -z "$haveit"; then
16959                         haveit=
16960                         for x in $LDFLAGS $LIBINTL; do
16961
16962   acl_save_prefix="$prefix"
16963   prefix="$acl_final_prefix"
16964   acl_save_exec_prefix="$exec_prefix"
16965   exec_prefix="$acl_final_exec_prefix"
16966   eval x=\"$x\"
16967   exec_prefix="$acl_save_exec_prefix"
16968   prefix="$acl_save_prefix"
16969
16970                           if test "X$x" = "X-L$additional_libdir"; then
16971                             haveit=yes
16972                             break
16973                           fi
16974                         done
16975                         if test -z "$haveit"; then
16976                           if test -d "$additional_libdir"; then
16977                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16978                           fi
16979                         fi
16980                         haveit=
16981                         for x in $LDFLAGS $LTLIBINTL; do
16982
16983   acl_save_prefix="$prefix"
16984   prefix="$acl_final_prefix"
16985   acl_save_exec_prefix="$exec_prefix"
16986   exec_prefix="$acl_final_exec_prefix"
16987   eval x=\"$x\"
16988   exec_prefix="$acl_save_exec_prefix"
16989   prefix="$acl_save_prefix"
16990
16991                           if test "X$x" = "X-L$additional_libdir"; then
16992                             haveit=yes
16993                             break
16994                           fi
16995                         done
16996                         if test -z "$haveit"; then
16997                           if test -d "$additional_libdir"; then
16998                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16999                           fi
17000                         fi
17001                       fi
17002                     fi
17003                     ;;
17004                   -R*)
17005                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17006                     if test "$enable_rpath" != no; then
17007                                                                   haveit=
17008                       for x in $rpathdirs; do
17009                         if test "X$x" = "X$dir"; then
17010                           haveit=yes
17011                           break
17012                         fi
17013                       done
17014                       if test -z "$haveit"; then
17015                         rpathdirs="$rpathdirs $dir"
17016                       fi
17017                                                                   haveit=
17018                       for x in $ltrpathdirs; do
17019                         if test "X$x" = "X$dir"; then
17020                           haveit=yes
17021                           break
17022                         fi
17023                       done
17024                       if test -z "$haveit"; then
17025                         ltrpathdirs="$ltrpathdirs $dir"
17026                       fi
17027                     fi
17028                     ;;
17029                   -l*)
17030                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17031                     ;;
17032                   *.la)
17033                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17034                     ;;
17035                   *)
17036                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17037                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17038                     ;;
17039                 esac
17040               done
17041             fi
17042           else
17043                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17044             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17045           fi
17046         fi
17047       fi
17048     done
17049   done
17050   if test "X$rpathdirs" != "X"; then
17051     if test -n "$hardcode_libdir_separator"; then
17052                         alldirs=
17053       for found_dir in $rpathdirs; do
17054         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17055       done
17056             acl_save_libdir="$libdir"
17057       libdir="$alldirs"
17058       eval flag=\"$hardcode_libdir_flag_spec\"
17059       libdir="$acl_save_libdir"
17060       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17061     else
17062             for found_dir in $rpathdirs; do
17063         acl_save_libdir="$libdir"
17064         libdir="$found_dir"
17065         eval flag=\"$hardcode_libdir_flag_spec\"
17066         libdir="$acl_save_libdir"
17067         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17068       done
17069     fi
17070   fi
17071   if test "X$ltrpathdirs" != "X"; then
17072             for found_dir in $ltrpathdirs; do
17073       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17074     done
17075   fi
17076
17077           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
17078 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17079 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
17080   $as_echo_n "(cached) " >&6
17081 else
17082   gt_save_CPPFLAGS="$CPPFLAGS"
17083             CPPFLAGS="$CPPFLAGS $INCINTL"
17084             gt_save_LIBS="$LIBS"
17085             LIBS="$LIBS $LIBINTL"
17086                         cat >conftest.$ac_ext <<_ACEOF
17087 /* confdefs.h.  */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h.  */
17092 #include <libintl.h>
17093 extern int _nl_msg_cat_cntr;
17094 extern
17095 #ifdef __cplusplus
17096 "C"
17097 #endif
17098 const char *_nl_expand_alias ();
17099 int
17100 main ()
17101 {
17102 bindtextdomain ("", "");
17103 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17104   ;
17105   return 0;
17106 }
17107 _ACEOF
17108 rm -f conftest.$ac_objext conftest$ac_exeext
17109 if { (ac_try="$ac_link"
17110 case "(($ac_try" in
17111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112   *) ac_try_echo=$ac_try;;
17113 esac
17114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17115 $as_echo "$ac_try_echo") >&5
17116   (eval "$ac_link") 2>conftest.er1
17117   ac_status=$?
17118   grep -v '^ *+' conftest.er1 >conftest.err
17119   rm -f conftest.er1
17120   cat conftest.err >&5
17121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } && {
17123          test -z "$ac_c_werror_flag" ||
17124          test ! -s conftest.err
17125        } && test -s conftest$ac_exeext && {
17126          test "$cross_compiling" = yes ||
17127          $as_test_x conftest$ac_exeext
17128        }; then
17129   gt_cv_func_gnugettext1_libintl=yes
17130 else
17131   $as_echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134         gt_cv_func_gnugettext1_libintl=no
17135 fi
17136
17137 rm -rf conftest.dSYM
17138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17139       conftest$ac_exeext conftest.$ac_ext
17140                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17141               LIBS="$LIBS $LIBICONV"
17142               cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h.  */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h.  */
17148 #include <libintl.h>
17149 extern int _nl_msg_cat_cntr;
17150 extern
17151 #ifdef __cplusplus
17152 "C"
17153 #endif
17154 const char *_nl_expand_alias ();
17155 int
17156 main ()
17157 {
17158 bindtextdomain ("", "");
17159 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
17160   ;
17161   return 0;
17162 }
17163 _ACEOF
17164 rm -f conftest.$ac_objext conftest$ac_exeext
17165 if { (ac_try="$ac_link"
17166 case "(($ac_try" in
17167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168   *) ac_try_echo=$ac_try;;
17169 esac
17170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17171 $as_echo "$ac_try_echo") >&5
17172   (eval "$ac_link") 2>conftest.er1
17173   ac_status=$?
17174   grep -v '^ *+' conftest.er1 >conftest.err
17175   rm -f conftest.er1
17176   cat conftest.err >&5
17177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178   (exit $ac_status); } && {
17179          test -z "$ac_c_werror_flag" ||
17180          test ! -s conftest.err
17181        } && test -s conftest$ac_exeext && {
17182          test "$cross_compiling" = yes ||
17183          $as_test_x conftest$ac_exeext
17184        }; then
17185   LIBINTL="$LIBINTL $LIBICONV"
17186                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17187                 gt_cv_func_gnugettext1_libintl=yes
17188
17189 else
17190   $as_echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193
17194 fi
17195
17196 rm -rf conftest.dSYM
17197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17198       conftest$ac_exeext conftest.$ac_ext
17199             fi
17200             CPPFLAGS="$gt_save_CPPFLAGS"
17201             LIBS="$gt_save_LIBS"
17202 fi
17203 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
17204 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17205         fi
17206
17207                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17208            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17209                 && test "$PACKAGE" != gettext-runtime \
17210                 && test "$PACKAGE" != gettext-tools; }; then
17211           gt_use_preinstalled_gnugettext=yes
17212         else
17213                     LIBINTL=
17214           LTLIBINTL=
17215           INCINTL=
17216         fi
17217
17218
17219
17220     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17221        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17222
17223 cat >>confdefs.h <<\_ACEOF
17224 #define ENABLE_NLS 1
17225 _ACEOF
17226
17227     else
17228       USE_NLS=no
17229     fi
17230   fi
17231
17232   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
17233 $as_echo_n "checking whether to use NLS... " >&6; }
17234   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
17235 $as_echo "$USE_NLS" >&6; }
17236   if test "$USE_NLS" = "yes"; then
17237     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
17238 $as_echo_n "checking where the gettext function comes from... " >&6; }
17239     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17240       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17241         gt_source="external libintl"
17242       else
17243         gt_source="libc"
17244       fi
17245     else
17246       gt_source="included intl directory"
17247     fi
17248     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
17249 $as_echo "$gt_source" >&6; }
17250   fi
17251
17252   if test "$USE_NLS" = "yes"; then
17253
17254     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17255       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17256         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
17257 $as_echo_n "checking how to link with libintl... " >&6; }
17258         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
17259 $as_echo "$LIBINTL" >&6; }
17260
17261   for element in $INCINTL; do
17262     haveit=
17263     for x in $CPPFLAGS; do
17264
17265   acl_save_prefix="$prefix"
17266   prefix="$acl_final_prefix"
17267   acl_save_exec_prefix="$exec_prefix"
17268   exec_prefix="$acl_final_exec_prefix"
17269   eval x=\"$x\"
17270   exec_prefix="$acl_save_exec_prefix"
17271   prefix="$acl_save_prefix"
17272
17273       if test "X$x" = "X$element"; then
17274         haveit=yes
17275         break
17276       fi
17277     done
17278     if test -z "$haveit"; then
17279       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17280     fi
17281   done
17282
17283       fi
17284
17285
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_GETTEXT 1
17288 _ACEOF
17289
17290
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_DCGETTEXT 1
17293 _ACEOF
17294
17295     fi
17296
17297         POSUB=po
17298   fi
17299
17300
17301
17302     INTLLIBS="$LIBINTL"
17303
17304
17305
17306
17307
17308
17309
17310
17311 # Check whether --enable-hints-gnome was given.
17312 if test "${enable_hints_gnome+set}" = set; then
17313   enableval=$enable_hints_gnome;
17314 else
17315   enable_hints_gnome=no
17316 fi
17317
17318
17319 if test "x$enable_hints_gnome" = "xyes"; then
17320
17321 cat >>confdefs.h <<\_ACEOF
17322 #define ENABLE_GNOME 1
17323 _ACEOF
17324
17325 fi
17326  if test "x$enable_hints_gnome" = "xyes"; then
17327   ENABLE_GNOME_TRUE=
17328   ENABLE_GNOME_FALSE='#'
17329 else
17330   ENABLE_GNOME_TRUE='#'
17331   ENABLE_GNOME_FALSE=
17332 fi
17333
17334
17335 # Check whether --enable-sound was given.
17336 if test "${enable_sound+set}" = set; then
17337   enableval=$enable_sound;
17338 else
17339   enable_sound=yes
17340 fi
17341
17342 if test "x$enable_sound" = "xyes"; then
17343   # Check whether --enable-sound_pulse was given.
17344 if test "${enable_sound_pulse+set}" = set; then
17345   enableval=$enable_sound_pulse;
17346 else
17347   enable_sound_pulse=no
17348 fi
17349
17350   # Check whether --enable-sound_esound was given.
17351 if test "${enable_sound_esound+set}" = set; then
17352   enableval=$enable_sound_esound;
17353 else
17354   enable_sound_esound=yes
17355 fi
17356
17357 fi
17358 enable_sound=no
17359
17360 if test "x$enable_sound_pulse" = "xyes"; then
17361
17362 pkg_failed=no
17363 { $as_echo "$as_me:$LINENO: checking for PA" >&5
17364 $as_echo_n "checking for PA... " >&6; }
17365
17366 if test -n "$PA_CFLAGS"; then
17367     pkg_cv_PA_CFLAGS="$PA_CFLAGS"
17368  elif test -n "$PKG_CONFIG"; then
17369     if test -n "$PKG_CONFIG" && \
17370     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse\"") >&5
17371   ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
17372   ac_status=$?
17373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; then
17375   pkg_cv_PA_CFLAGS=`$PKG_CONFIG --cflags "libpulse" 2>/dev/null`
17376 else
17377   pkg_failed=yes
17378 fi
17379  else
17380     pkg_failed=untried
17381 fi
17382 if test -n "$PA_LIBS"; then
17383     pkg_cv_PA_LIBS="$PA_LIBS"
17384  elif test -n "$PKG_CONFIG"; then
17385     if test -n "$PKG_CONFIG" && \
17386     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse\"") >&5
17387   ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
17388   ac_status=$?
17389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; then
17391   pkg_cv_PA_LIBS=`$PKG_CONFIG --libs "libpulse" 2>/dev/null`
17392 else
17393   pkg_failed=yes
17394 fi
17395  else
17396     pkg_failed=untried
17397 fi
17398
17399
17400
17401 if test $pkg_failed = yes; then
17402
17403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17404         _pkg_short_errors_supported=yes
17405 else
17406         _pkg_short_errors_supported=no
17407 fi
17408         if test $_pkg_short_errors_supported = yes; then
17409                 PA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse" 2>&1`
17410         else
17411                 PA_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse" 2>&1`
17412         fi
17413         # Put the nasty error message in config.log where it belongs
17414         echo "$PA_PKG_ERRORS" >&5
17415
17416         { $as_echo "$as_me:$LINENO: result: no" >&5
17417 $as_echo "no" >&6; }
17418                 enable_sound_pulse=no
17419 elif test $pkg_failed = untried; then
17420         enable_sound_pulse=no
17421 else
17422         PA_CFLAGS=$pkg_cv_PA_CFLAGS
17423         PA_LIBS=$pkg_cv_PA_LIBS
17424         { $as_echo "$as_me:$LINENO: result: yes" >&5
17425 $as_echo "yes" >&6; }
17426         :
17427 fi
17428 fi
17429 if test "x$enable_sound_pulse" = "xyes"; then
17430
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_SOUND 1
17433 _ACEOF
17434
17435
17436 cat >>confdefs.h <<\_ACEOF
17437 #define HAVE_SOUND_PA 1
17438 _ACEOF
17439
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define USE_SOUND_LOADER_AUDIOFILE 1
17443 _ACEOF
17444
17445
17446 pkg_failed=no
17447 { $as_echo "$as_me:$LINENO: checking for AUDIOFILE" >&5
17448 $as_echo_n "checking for AUDIOFILE... " >&6; }
17449
17450 if test -n "$AUDIOFILE_CFLAGS"; then
17451     pkg_cv_AUDIOFILE_CFLAGS="$AUDIOFILE_CFLAGS"
17452  elif test -n "$PKG_CONFIG"; then
17453     if test -n "$PKG_CONFIG" && \
17454     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audiofile\"") >&5
17455   ($PKG_CONFIG --exists --print-errors "audiofile") 2>&5
17456   ac_status=$?
17457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; then
17459   pkg_cv_AUDIOFILE_CFLAGS=`$PKG_CONFIG --cflags "audiofile" 2>/dev/null`
17460 else
17461   pkg_failed=yes
17462 fi
17463  else
17464     pkg_failed=untried
17465 fi
17466 if test -n "$AUDIOFILE_LIBS"; then
17467     pkg_cv_AUDIOFILE_LIBS="$AUDIOFILE_LIBS"
17468  elif test -n "$PKG_CONFIG"; then
17469     if test -n "$PKG_CONFIG" && \
17470     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audiofile\"") >&5
17471   ($PKG_CONFIG --exists --print-errors "audiofile") 2>&5
17472   ac_status=$?
17473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }; then
17475   pkg_cv_AUDIOFILE_LIBS=`$PKG_CONFIG --libs "audiofile" 2>/dev/null`
17476 else
17477   pkg_failed=yes
17478 fi
17479  else
17480     pkg_failed=untried
17481 fi
17482
17483
17484
17485 if test $pkg_failed = yes; then
17486
17487 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17488         _pkg_short_errors_supported=yes
17489 else
17490         _pkg_short_errors_supported=no
17491 fi
17492         if test $_pkg_short_errors_supported = yes; then
17493                 AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "audiofile" 2>&1`
17494         else
17495                 AUDIOFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "audiofile" 2>&1`
17496         fi
17497         # Put the nasty error message in config.log where it belongs
17498         echo "$AUDIOFILE_PKG_ERRORS" >&5
17499
17500         { { $as_echo "$as_me:$LINENO: error: Package requirements (audiofile) were not met:
17501
17502 $AUDIOFILE_PKG_ERRORS
17503
17504 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17505 installed software in a non-standard prefix.
17506
17507 Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
17508 and AUDIOFILE_LIBS to avoid the need to call pkg-config.
17509 See the pkg-config man page for more details.
17510 " >&5
17511 $as_echo "$as_me: error: Package requirements (audiofile) were not met:
17512
17513 $AUDIOFILE_PKG_ERRORS
17514
17515 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17516 installed software in a non-standard prefix.
17517
17518 Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
17519 and AUDIOFILE_LIBS to avoid the need to call pkg-config.
17520 See the pkg-config man page for more details.
17521 " >&2;}
17522    { (exit 1); exit 1; }; }
17523 elif test $pkg_failed = untried; then
17524         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17526 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
17527 is in your PATH or set the PKG_CONFIG environment variable to the full
17528 path to pkg-config.
17529
17530 Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
17531 and AUDIOFILE_LIBS to avoid the need to call pkg-config.
17532 See the pkg-config man page for more details.
17533
17534 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17535 See \`config.log' for more details." >&5
17536 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
17537 is in your PATH or set the PKG_CONFIG environment variable to the full
17538 path to pkg-config.
17539
17540 Alternatively, you may set the environment variables AUDIOFILE_CFLAGS
17541 and AUDIOFILE_LIBS to avoid the need to call pkg-config.
17542 See the pkg-config man page for more details.
17543
17544 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17545 See \`config.log' for more details." >&2;}
17546    { (exit 1); exit 1; }; }; }
17547 else
17548         AUDIOFILE_CFLAGS=$pkg_cv_AUDIOFILE_CFLAGS
17549         AUDIOFILE_LIBS=$pkg_cv_AUDIOFILE_LIBS
17550         { $as_echo "$as_me:$LINENO: result: yes" >&5
17551 $as_echo "yes" >&6; }
17552         :
17553 fi
17554   enable_sound=pulseaudio
17555   enable_sound_esound=no
17556   PA_LIBS="$PA_LIBS $AUDIOFILE_LIBS"
17557 fi
17558  if test "x$enable_sound_pulse" = "xyes"; then
17559   USE_LIBPA_TRUE=
17560   USE_LIBPA_FALSE='#'
17561 else
17562   USE_LIBPA_TRUE='#'
17563   USE_LIBPA_FALSE=
17564 fi
17565
17566
17567 if test "x$enable_sound_esound" = "xyes"; then
17568
17569 # Check whether --with-esd-prefix was given.
17570 if test "${with_esd_prefix+set}" = set; then
17571   withval=$with_esd_prefix; esd_prefix="$withval"
17572 else
17573   esd_prefix=""
17574 fi
17575
17576
17577 # Check whether --with-esd-exec-prefix was given.
17578 if test "${with_esd_exec_prefix+set}" = set; then
17579   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
17580 else
17581   esd_exec_prefix=""
17582 fi
17583
17584 # Check whether --enable-esdtest was given.
17585 if test "${enable_esdtest+set}" = set; then
17586   enableval=$enable_esdtest;
17587 else
17588   enable_esdtest=yes
17589 fi
17590
17591
17592   if test x$esd_exec_prefix != x ; then
17593      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
17594      if test x${ESD_CONFIG+set} != xset ; then
17595         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
17596      fi
17597   fi
17598   if test x$esd_prefix != x ; then
17599      esd_args="$esd_args --prefix=$esd_prefix"
17600      if test x${ESD_CONFIG+set} != xset ; then
17601         ESD_CONFIG=$esd_prefix/bin/esd-config
17602      fi
17603   fi
17604
17605   # Extract the first word of "esd-config", so it can be a program name with args.
17606 set dummy esd-config; ac_word=$2
17607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17608 $as_echo_n "checking for $ac_word... " >&6; }
17609 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
17610   $as_echo_n "(cached) " >&6
17611 else
17612   case $ESD_CONFIG in
17613   [\\/]* | ?:[\\/]*)
17614   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
17615   ;;
17616   *)
17617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17618 for as_dir in $PATH
17619 do
17620   IFS=$as_save_IFS
17621   test -z "$as_dir" && as_dir=.
17622   for ac_exec_ext in '' $ac_executable_extensions; do
17623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17624     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17625     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17626     break 2
17627   fi
17628 done
17629 done
17630 IFS=$as_save_IFS
17631
17632   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
17633   ;;
17634 esac
17635 fi
17636 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
17637 if test -n "$ESD_CONFIG"; then
17638   { $as_echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
17639 $as_echo "$ESD_CONFIG" >&6; }
17640 else
17641   { $as_echo "$as_me:$LINENO: result: no" >&5
17642 $as_echo "no" >&6; }
17643 fi
17644
17645
17646   min_esd_version=0.2.17
17647   { $as_echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
17648 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
17649   no_esd=""
17650   if test "$ESD_CONFIG" = "no" ; then
17651     no_esd=yes
17652   else
17653     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
17654     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
17655
17656     esd_major_version=`$ESD_CONFIG $esd_args --version | \
17657            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17658     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
17659            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17660     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
17661            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17662     if test "x$enable_esdtest" = "xyes" ; then
17663       ac_save_CFLAGS="$CFLAGS"
17664       ac_save_LIBS="$LIBS"
17665       CFLAGS="$CFLAGS $ESD_CFLAGS"
17666       LIBS="$LIBS $ESD_LIBS"
17667       rm -f conf.esdtest
17668       if test "$cross_compiling" = yes; then
17669   echo $ac_n "cross compiling; assumed OK... $ac_c"
17670 else
17671   cat >conftest.$ac_ext <<_ACEOF
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677
17678 #include <stdio.h>
17679 #include <stdlib.h>
17680 #include <string.h>
17681 #include <esd.h>
17682
17683 char*
17684 my_strdup (char *str)
17685 {
17686   char *new_str;
17687
17688   if (str)
17689     {
17690       new_str = malloc ((strlen (str) + 1) * sizeof(char));
17691       strcpy (new_str, str);
17692     }
17693   else
17694     new_str = NULL;
17695
17696   return new_str;
17697 }
17698
17699 int main ()
17700 {
17701   int major, minor, micro;
17702   char *tmp_version;
17703
17704   system ("touch conf.esdtest");
17705
17706   /* HP/UX 9 (%@#!) writes to sscanf strings */
17707   tmp_version = my_strdup("$min_esd_version");
17708   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
17709      printf("%s, bad version string\n", "$min_esd_version");
17710      exit(1);
17711    }
17712
17713    if (($esd_major_version > major) ||
17714       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
17715       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
17716     {
17717       return 0;
17718     }
17719   else
17720     {
17721       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
17722       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
17723       printf("*** best to upgrade to the required version.\n");
17724       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
17725       printf("*** to point to the correct copy of esd-config, and remove the file\n");
17726       printf("*** config.cache before re-running configure\n");
17727       return 1;
17728     }
17729 }
17730
17731
17732 _ACEOF
17733 rm -f conftest$ac_exeext
17734 if { (ac_try="$ac_link"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741   (eval "$ac_link") 2>&5
17742   ac_status=$?
17743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17745   { (case "(($ac_try" in
17746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747   *) ac_try_echo=$ac_try;;
17748 esac
17749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17750 $as_echo "$ac_try_echo") >&5
17751   (eval "$ac_try") 2>&5
17752   ac_status=$?
17753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; }; then
17755   :
17756 else
17757   $as_echo "$as_me: program exited with status $ac_status" >&5
17758 $as_echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 ( exit $ac_status )
17762 no_esd=yes
17763 fi
17764 rm -rf conftest.dSYM
17765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17766 fi
17767
17768
17769        CFLAGS="$ac_save_CFLAGS"
17770        LIBS="$ac_save_LIBS"
17771      fi
17772   fi
17773   if test "x$no_esd" = x ; then
17774      { $as_echo "$as_me:$LINENO: result: yes" >&5
17775 $as_echo "yes" >&6; }
17776      :
17777   else
17778      { $as_echo "$as_me:$LINENO: result: no" >&5
17779 $as_echo "no" >&6; }
17780      if test "$ESD_CONFIG" = "no" ; then
17781        echo "*** The esd-config script installed by ESD could not be found"
17782        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
17783        echo "*** your path, or set the ESD_CONFIG environment variable to the"
17784        echo "*** full path to esd-config."
17785      else
17786        if test -f conf.esdtest ; then
17787         :
17788        else
17789           echo "*** Could not run ESD test program, checking why..."
17790           CFLAGS="$CFLAGS $ESD_CFLAGS"
17791           LIBS="$LIBS $ESD_LIBS"
17792           cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798
17799 #include <stdio.h>
17800 #include <esd.h>
17801
17802 int
17803 main ()
17804 {
17805  return 0;
17806   ;
17807   return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17817 $as_echo "$ac_try_echo") >&5
17818   (eval "$ac_link") 2>conftest.er1
17819   ac_status=$?
17820   grep -v '^ *+' conftest.er1 >conftest.err
17821   rm -f conftest.er1
17822   cat conftest.err >&5
17823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); } && {
17825          test -z "$ac_c_werror_flag" ||
17826          test ! -s conftest.err
17827        } && test -s conftest$ac_exeext && {
17828          test "$cross_compiling" = yes ||
17829          $as_test_x conftest$ac_exeext
17830        }; then
17831    echo "*** The test program compiled, but did not run. This usually means"
17832           echo "*** that the run-time linker is not finding ESD or finding the wrong"
17833           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
17834           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17835           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
17836           echo "*** is required on your system"
17837           echo "***"
17838           echo "*** If you have an old version installed, it is best to remove it, although"
17839           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17840 else
17841   $as_echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844          echo "*** The test program failed to compile or link. See the file config.log for the"
17845           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
17846           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
17847           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
17848 fi
17849
17850 rm -rf conftest.dSYM
17851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17852       conftest$ac_exeext conftest.$ac_ext
17853           CFLAGS="$ac_save_CFLAGS"
17854           LIBS="$ac_save_LIBS"
17855        fi
17856      fi
17857      ESD_CFLAGS=""
17858      ESD_LIBS=""
17859
17860     enable_sound_esound=no
17861     { $as_echo "$as_me:$LINENO: WARNING: EsounD sound support was requested but not found." >&5
17862 $as_echo "$as_me: WARNING: EsounD sound support was requested but not found." >&2;}
17863
17864   fi
17865
17866
17867   rm -f conf.esdtest
17868
17869
17870 for ac_header in audiofile.h
17871 do
17872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17874   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17875 $as_echo_n "checking for $ac_header... " >&6; }
17876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17877   $as_echo_n "(cached) " >&6
17878 fi
17879 ac_res=`eval 'as_val=${'$as_ac_Header'}
17880                  $as_echo "$as_val"'`
17881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17882 $as_echo "$ac_res" >&6; }
17883 else
17884   # Is the header compilable?
17885 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17886 $as_echo_n "checking $ac_header usability... " >&6; }
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893 $ac_includes_default
17894 #include <$ac_header>
17895 _ACEOF
17896 rm -f conftest.$ac_objext
17897 if { (ac_try="$ac_compile"
17898 case "(($ac_try" in
17899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900   *) ac_try_echo=$ac_try;;
17901 esac
17902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17903 $as_echo "$ac_try_echo") >&5
17904   (eval "$ac_compile") 2>conftest.er1
17905   ac_status=$?
17906   grep -v '^ *+' conftest.er1 >conftest.err
17907   rm -f conftest.er1
17908   cat conftest.err >&5
17909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); } && {
17911          test -z "$ac_c_werror_flag" ||
17912          test ! -s conftest.err
17913        } && test -s conftest.$ac_objext; then
17914   ac_header_compiler=yes
17915 else
17916   $as_echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919         ac_header_compiler=no
17920 fi
17921
17922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17923 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17924 $as_echo "$ac_header_compiler" >&6; }
17925
17926 # Is the header present?
17927 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17928 $as_echo_n "checking $ac_header presence... " >&6; }
17929 cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935 #include <$ac_header>
17936 _ACEOF
17937 if { (ac_try="$ac_cpp conftest.$ac_ext"
17938 case "(($ac_try" in
17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940   *) ac_try_echo=$ac_try;;
17941 esac
17942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17943 $as_echo "$ac_try_echo") >&5
17944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } >/dev/null && {
17951          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17952          test ! -s conftest.err
17953        }; then
17954   ac_header_preproc=yes
17955 else
17956   $as_echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959   ac_header_preproc=no
17960 fi
17961
17962 rm -f conftest.err conftest.$ac_ext
17963 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17964 $as_echo "$ac_header_preproc" >&6; }
17965
17966 # So?  What about this header?
17967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17968   yes:no: )
17969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17970 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17973     ac_header_preproc=yes
17974     ;;
17975   no:yes:* )
17976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17977 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17979 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17980     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17981 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17982     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17983 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17984     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17986     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17987 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17988     ( cat <<\_ASBOX
17989 ## -------------------------------------------------------- ##
17990 ## Report this to enlightenment-devel@lists.sourceforge.net ##
17991 ## -------------------------------------------------------- ##
17992 _ASBOX
17993      ) | sed "s/^/$as_me: WARNING:     /" >&2
17994     ;;
17995 esac
17996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17997 $as_echo_n "checking for $ac_header... " >&6; }
17998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17999   $as_echo_n "(cached) " >&6
18000 else
18001   eval "$as_ac_Header=\$ac_header_preproc"
18002 fi
18003 ac_res=`eval 'as_val=${'$as_ac_Header'}
18004                  $as_echo "$as_val"'`
18005                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18006 $as_echo "$ac_res" >&6; }
18007
18008 fi
18009 as_val=`eval 'as_val=${'$as_ac_Header'}
18010                  $as_echo "$as_val"'`
18011    if test "x$as_val" = x""yes; then
18012   cat >>confdefs.h <<_ACEOF
18013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18014 _ACEOF
18015
18016 else
18017   enable_sound_esound=no
18018 fi
18019
18020 done
18021
18022 fi
18023 if test "x$enable_sound_esound" = "xyes"; then
18024
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE_SOUND 1
18027 _ACEOF
18028
18029
18030 cat >>confdefs.h <<\_ACEOF
18031 #define HAVE_SOUND_ESD 1
18032 _ACEOF
18033
18034
18035 cat >>confdefs.h <<\_ACEOF
18036 #define USE_SOUND_LOADER_AUDIOFILE 1
18037 _ACEOF
18038
18039   enable_sound=esound
18040 fi
18041  if test "x$enable_sound_esound" = "xyes"; then
18042   USE_LIBESD_TRUE=
18043   USE_LIBESD_FALSE='#'
18044 else
18045   USE_LIBESD_TRUE='#'
18046   USE_LIBESD_FALSE=
18047 fi
18048
18049
18050 # Save CPPFLAGS/LDFLAGS and add X_... to each
18051 SAVE_CPPFLAGS="$CPPFLAGS"
18052 SAVE_LDFLAGS="$LDFLAGS"
18053 CPPFLAGS="$X_CFLAGS $CPPFLAGS"
18054 LDFLAGS="$X_LIBS $LDFLAGS"
18055
18056
18057 pkg_failed=no
18058 { $as_echo "$as_me:$LINENO: checking for IMLIB2" >&5
18059 $as_echo_n "checking for IMLIB2... " >&6; }
18060
18061 if test -n "$IMLIB2_CFLAGS"; then
18062     pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS"
18063  elif test -n "$PKG_CONFIG"; then
18064     if test -n "$PKG_CONFIG" && \
18065     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2 >= 1.2.0\"") >&5
18066   ($PKG_CONFIG --exists --print-errors "imlib2 >= 1.2.0") 2>&5
18067   ac_status=$?
18068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; then
18070   pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2 >= 1.2.0" 2>/dev/null`
18071 else
18072   pkg_failed=yes
18073 fi
18074  else
18075     pkg_failed=untried
18076 fi
18077 if test -n "$IMLIB2_LIBS"; then
18078     pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS"
18079  elif test -n "$PKG_CONFIG"; then
18080     if test -n "$PKG_CONFIG" && \
18081     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2 >= 1.2.0\"") >&5
18082   ($PKG_CONFIG --exists --print-errors "imlib2 >= 1.2.0") 2>&5
18083   ac_status=$?
18084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; then
18086   pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2 >= 1.2.0" 2>/dev/null`
18087 else
18088   pkg_failed=yes
18089 fi
18090  else
18091     pkg_failed=untried
18092 fi
18093
18094
18095
18096 if test $pkg_failed = yes; then
18097
18098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18099         _pkg_short_errors_supported=yes
18100 else
18101         _pkg_short_errors_supported=no
18102 fi
18103         if test $_pkg_short_errors_supported = yes; then
18104                 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "imlib2 >= 1.2.0" 2>&1`
18105         else
18106                 IMLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "imlib2 >= 1.2.0" 2>&1`
18107         fi
18108         # Put the nasty error message in config.log where it belongs
18109         echo "$IMLIB2_PKG_ERRORS" >&5
18110
18111         { { $as_echo "$as_me:$LINENO: error: Package requirements (imlib2 >= 1.2.0) were not met:
18112
18113 $IMLIB2_PKG_ERRORS
18114
18115 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18116 installed software in a non-standard prefix.
18117
18118 Alternatively, you may set the environment variables IMLIB2_CFLAGS
18119 and IMLIB2_LIBS to avoid the need to call pkg-config.
18120 See the pkg-config man page for more details.
18121 " >&5
18122 $as_echo "$as_me: error: Package requirements (imlib2 >= 1.2.0) were not met:
18123
18124 $IMLIB2_PKG_ERRORS
18125
18126 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18127 installed software in a non-standard prefix.
18128
18129 Alternatively, you may set the environment variables IMLIB2_CFLAGS
18130 and IMLIB2_LIBS to avoid the need to call pkg-config.
18131 See the pkg-config man page for more details.
18132 " >&2;}
18133    { (exit 1); exit 1; }; }
18134 elif test $pkg_failed = untried; then
18135         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18137 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
18138 is in your PATH or set the PKG_CONFIG environment variable to the full
18139 path to pkg-config.
18140
18141 Alternatively, you may set the environment variables IMLIB2_CFLAGS
18142 and IMLIB2_LIBS to avoid the need to call pkg-config.
18143 See the pkg-config man page for more details.
18144
18145 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18146 See \`config.log' for more details." >&5
18147 $as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
18148 is in your PATH or set the PKG_CONFIG environment variable to the full
18149 path to pkg-config.
18150
18151 Alternatively, you may set the environment variables IMLIB2_CFLAGS
18152 and IMLIB2_LIBS to avoid the need to call pkg-config.
18153 See the pkg-config man page for more details.
18154
18155 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18156 See \`config.log' for more details." >&2;}
18157    { (exit 1); exit 1; }; }; }
18158 else
18159         IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS
18160         IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS
18161         { $as_echo "$as_me:$LINENO: result: yes" >&5
18162 $as_echo "yes" >&6; }
18163         have_good_imlib2=yes
18164 fi
18165 { $as_echo "$as_me:$LINENO: checking for imlib_context_set_mask_alpha_threshold in -lImlib2" >&5
18166 $as_echo_n "checking for imlib_context_set_mask_alpha_threshold in -lImlib2... " >&6; }
18167 if test "${ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold+set}" = set; then
18168   $as_echo_n "(cached) " >&6
18169 else
18170   ac_check_lib_save_LIBS=$LIBS
18171 LIBS="-lImlib2 $IMLIB2_LIBS $LIBS"
18172 cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178
18179 /* Override any GCC internal prototype to avoid an error.
18180    Use char because int might match the return type of a GCC
18181    builtin and then its argument prototype would still apply.  */
18182 #ifdef __cplusplus
18183 extern "C"
18184 #endif
18185 char imlib_context_set_mask_alpha_threshold ();
18186 int
18187 main ()
18188 {
18189 return imlib_context_set_mask_alpha_threshold ();
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (ac_try="$ac_link"
18196 case "(($ac_try" in
18197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198   *) ac_try_echo=$ac_try;;
18199 esac
18200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18201 $as_echo "$ac_try_echo") >&5
18202   (eval "$ac_link") 2>conftest.er1
18203   ac_status=$?
18204   grep -v '^ *+' conftest.er1 >conftest.err
18205   rm -f conftest.er1
18206   cat conftest.err >&5
18207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } && {
18209          test -z "$ac_c_werror_flag" ||
18210          test ! -s conftest.err
18211        } && test -s conftest$ac_exeext && {
18212          test "$cross_compiling" = yes ||
18213          $as_test_x conftest$ac_exeext
18214        }; then
18215   ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold=yes
18216 else
18217   $as_echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18219
18220         ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold=no
18221 fi
18222
18223 rm -rf conftest.dSYM
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225       conftest$ac_exeext conftest.$ac_ext
18226 LIBS=$ac_check_lib_save_LIBS
18227 fi
18228 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold" >&5
18229 $as_echo "$ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold" >&6; }
18230 if test "x$ac_cv_lib_Imlib2_imlib_context_set_mask_alpha_threshold" = x""yes; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD 1
18234 _ACEOF
18235
18236 fi
18237
18238 { $as_echo "$as_me:$LINENO: checking for imlib_context_disconnect_display in -lImlib2" >&5
18239 $as_echo_n "checking for imlib_context_disconnect_display in -lImlib2... " >&6; }
18240 if test "${ac_cv_lib_Imlib2_imlib_context_disconnect_display+set}" = set; then
18241   $as_echo_n "(cached) " >&6
18242 else
18243   ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-lImlib2 $IMLIB2_LIBS $LIBS"
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251
18252 /* Override any GCC internal prototype to avoid an error.
18253    Use char because int might match the return type of a GCC
18254    builtin and then its argument prototype would still apply.  */
18255 #ifdef __cplusplus
18256 extern "C"
18257 #endif
18258 char imlib_context_disconnect_display ();
18259 int
18260 main ()
18261 {
18262 return imlib_context_disconnect_display ();
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (ac_try="$ac_link"
18269 case "(($ac_try" in
18270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271   *) ac_try_echo=$ac_try;;
18272 esac
18273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18274 $as_echo "$ac_try_echo") >&5
18275   (eval "$ac_link") 2>conftest.er1
18276   ac_status=$?
18277   grep -v '^ *+' conftest.er1 >conftest.err
18278   rm -f conftest.er1
18279   cat conftest.err >&5
18280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } && {
18282          test -z "$ac_c_werror_flag" ||
18283          test ! -s conftest.err
18284        } && test -s conftest$ac_exeext && {
18285          test "$cross_compiling" = yes ||
18286          $as_test_x conftest$ac_exeext
18287        }; then
18288   ac_cv_lib_Imlib2_imlib_context_disconnect_display=yes
18289 else
18290   $as_echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293         ac_cv_lib_Imlib2_imlib_context_disconnect_display=no
18294 fi
18295
18296 rm -rf conftest.dSYM
18297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18298       conftest$ac_exeext conftest.$ac_ext
18299 LIBS=$ac_check_lib_save_LIBS
18300 fi
18301 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib2_imlib_context_disconnect_display" >&5
18302 $as_echo "$ac_cv_lib_Imlib2_imlib_context_disconnect_display" >&6; }
18303 if test "x$ac_cv_lib_Imlib2_imlib_context_disconnect_display" = x""yes; then
18304
18305 cat >>confdefs.h <<\_ACEOF
18306 #define HAVE_IMLIB_CONTEXT_DISCONNECT_DISPLAY 1
18307 _ACEOF
18308
18309 fi
18310
18311
18312 # Check whether --enable-sm was given.
18313 if test "${enable_sm+set}" = set; then
18314   enableval=$enable_sm;
18315 else
18316   enable_sm=yes
18317 fi
18318
18319 if test "x$enable_sm" = "xyes"; then
18320
18321 for ac_header in X11/SM/SMlib.h
18322 do
18323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18325   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18326 $as_echo_n "checking for $ac_header... " >&6; }
18327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18328   $as_echo_n "(cached) " >&6
18329 fi
18330 ac_res=`eval 'as_val=${'$as_ac_Header'}
18331                  $as_echo "$as_val"'`
18332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18333 $as_echo "$ac_res" >&6; }
18334 else
18335   # Is the header compilable?
18336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18337 $as_echo_n "checking $ac_header usability... " >&6; }
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h.  */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h.  */
18344 $ac_includes_default
18345 #include <$ac_header>
18346 _ACEOF
18347 rm -f conftest.$ac_objext
18348 if { (ac_try="$ac_compile"
18349 case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18354 $as_echo "$ac_try_echo") >&5
18355   (eval "$ac_compile") 2>conftest.er1
18356   ac_status=$?
18357   grep -v '^ *+' conftest.er1 >conftest.err
18358   rm -f conftest.er1
18359   cat conftest.err >&5
18360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361   (exit $ac_status); } && {
18362          test -z "$ac_c_werror_flag" ||
18363          test ! -s conftest.err
18364        } && test -s conftest.$ac_objext; then
18365   ac_header_compiler=yes
18366 else
18367   $as_echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370         ac_header_compiler=no
18371 fi
18372
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18375 $as_echo "$ac_header_compiler" >&6; }
18376
18377 # Is the header present?
18378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18379 $as_echo_n "checking $ac_header presence... " >&6; }
18380 cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h.  */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h.  */
18386 #include <$ac_header>
18387 _ACEOF
18388 if { (ac_try="$ac_cpp conftest.$ac_ext"
18389 case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18396   ac_status=$?
18397   grep -v '^ *+' conftest.er1 >conftest.err
18398   rm -f conftest.er1
18399   cat conftest.err >&5
18400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); } >/dev/null && {
18402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18403          test ! -s conftest.err
18404        }; then
18405   ac_header_preproc=yes
18406 else
18407   $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410   ac_header_preproc=no
18411 fi
18412
18413 rm -f conftest.err conftest.$ac_ext
18414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18415 $as_echo "$ac_header_preproc" >&6; }
18416
18417 # So?  What about this header?
18418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18419   yes:no: )
18420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18424     ac_header_preproc=yes
18425     ;;
18426   no:yes:* )
18427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18430 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18434 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18439     ( cat <<\_ASBOX
18440 ## -------------------------------------------------------- ##
18441 ## Report this to enlightenment-devel@lists.sourceforge.net ##
18442 ## -------------------------------------------------------- ##
18443 _ASBOX
18444      ) | sed "s/^/$as_me: WARNING:     /" >&2
18445     ;;
18446 esac
18447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18448 $as_echo_n "checking for $ac_header... " >&6; }
18449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18450   $as_echo_n "(cached) " >&6
18451 else
18452   eval "$as_ac_Header=\$ac_header_preproc"
18453 fi
18454 ac_res=`eval 'as_val=${'$as_ac_Header'}
18455                  $as_echo "$as_val"'`
18456                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18457 $as_echo "$ac_res" >&6; }
18458
18459 fi
18460 as_val=`eval 'as_val=${'$as_ac_Header'}
18461                  $as_echo "$as_val"'`
18462    if test "x$as_val" = x""yes; then
18463   cat >>confdefs.h <<_ACEOF
18464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18465 _ACEOF
18466
18467 else
18468   enable_sm=no
18469 fi
18470
18471 done
18472
18473   { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
18474 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
18475 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
18476   $as_echo_n "(cached) " >&6
18477 else
18478   ac_check_lib_save_LIBS=$LIBS
18479 LIBS="-lSM  $LIBS"
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h.  */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h.  */
18486
18487 /* Override any GCC internal prototype to avoid an error.
18488    Use char because int might match the return type of a GCC
18489    builtin and then its argument prototype would still apply.  */
18490 #ifdef __cplusplus
18491 extern "C"
18492 #endif
18493 char SmcOpenConnection ();
18494 int
18495 main ()
18496 {
18497 return SmcOpenConnection ();
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18509 $as_echo "$ac_try_echo") >&5
18510   (eval "$ac_link") 2>conftest.er1
18511   ac_status=$?
18512   grep -v '^ *+' conftest.er1 >conftest.err
18513   rm -f conftest.er1
18514   cat conftest.err >&5
18515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); } && {
18517          test -z "$ac_c_werror_flag" ||
18518          test ! -s conftest.err
18519        } && test -s conftest$ac_exeext && {
18520          test "$cross_compiling" = yes ||
18521          $as_test_x conftest$ac_exeext
18522        }; then
18523   ac_cv_lib_SM_SmcOpenConnection=yes
18524 else
18525   $as_echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18527
18528         ac_cv_lib_SM_SmcOpenConnection=no
18529 fi
18530
18531 rm -rf conftest.dSYM
18532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18533       conftest$ac_exeext conftest.$ac_ext
18534 LIBS=$ac_check_lib_save_LIBS
18535 fi
18536 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
18537 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
18538 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
18539   SM_LIBS="-lSM -lICE"
18540 else
18541   enable_sm=no
18542 fi
18543
18544
18545 fi
18546 if test "x$enable_sm" = "xyes"; then
18547
18548 cat >>confdefs.h <<\_ACEOF
18549 #define USE_SM 1
18550 _ACEOF
18551
18552 fi
18553
18554 # Check whether --enable-pango was given.
18555 if test "${enable_pango+set}" = set; then
18556   enableval=$enable_pango;
18557 else
18558   enable_pango=no
18559 fi
18560
18561 if test "x$enable_pango" = "xyes"; then
18562
18563 pkg_failed=no
18564 { $as_echo "$as_me:$LINENO: checking for PANGO" >&5
18565 $as_echo_n "checking for PANGO... " >&6; }
18566
18567 if test -n "$PANGO_CFLAGS"; then
18568     pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
18569  elif test -n "$PKG_CONFIG"; then
18570     if test -n "$PKG_CONFIG" && \
18571     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
18572   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
18573   ac_status=$?
18574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; then
18576   pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
18577 else
18578   pkg_failed=yes
18579 fi
18580  else
18581     pkg_failed=untried
18582 fi
18583 if test -n "$PANGO_LIBS"; then
18584     pkg_cv_PANGO_LIBS="$PANGO_LIBS"
18585  elif test -n "$PKG_CONFIG"; then
18586     if test -n "$PKG_CONFIG" && \
18587     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
18588   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
18589   ac_status=$?
18590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; then
18592   pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
18593 else
18594   pkg_failed=yes
18595 fi
18596  else
18597     pkg_failed=untried
18598 fi
18599
18600
18601
18602 if test $pkg_failed = yes; then
18603
18604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18605         _pkg_short_errors_supported=yes
18606 else
18607         _pkg_short_errors_supported=no
18608 fi
18609         if test $_pkg_short_errors_supported = yes; then
18610                 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoxft" 2>&1`
18611         else
18612                 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoxft" 2>&1`
18613         fi
18614         # Put the nasty error message in config.log where it belongs
18615         echo "$PANGO_PKG_ERRORS" >&5
18616
18617         { $as_echo "$as_me:$LINENO: result: no" >&5
18618 $as_echo "no" >&6; }
18619                 enable_pango=no
18620 elif test $pkg_failed = untried; then
18621         enable_pango=no
18622 else
18623         PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
18624         PANGO_LIBS=$pkg_cv_PANGO_LIBS
18625         { $as_echo "$as_me:$LINENO: result: yes" >&5
18626 $as_echo "yes" >&6; }
18627
18628 cat >>confdefs.h <<\_ACEOF
18629 #define USE_PANGO 1
18630 _ACEOF
18631
18632 fi
18633 fi
18634  if test "x$enable_pango" = "xyes"; then
18635   USE_LIBPANGO_TRUE=
18636   USE_LIBPANGO_FALSE='#'
18637 else
18638   USE_LIBPANGO_TRUE='#'
18639   USE_LIBPANGO_FALSE=
18640 fi
18641
18642
18643 # Check whether --enable-xft was given.
18644 if test "${enable_xft+set}" = set; then
18645   enableval=$enable_xft;
18646 else
18647   enable_xft=yes
18648 fi
18649
18650 if test "x$enable_xft" = "xyes"; then
18651
18652 pkg_failed=no
18653 { $as_echo "$as_me:$LINENO: checking for XFT" >&5
18654 $as_echo_n "checking for XFT... " >&6; }
18655
18656 if test -n "$XFT_CFLAGS"; then
18657     pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
18658  elif test -n "$PKG_CONFIG"; then
18659     if test -n "$PKG_CONFIG" && \
18660     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
18661   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
18662   ac_status=$?
18663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; then
18665   pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
18666 else
18667   pkg_failed=yes
18668 fi
18669  else
18670     pkg_failed=untried
18671 fi
18672 if test -n "$XFT_LIBS"; then
18673     pkg_cv_XFT_LIBS="$XFT_LIBS"
18674  elif test -n "$PKG_CONFIG"; then
18675     if test -n "$PKG_CONFIG" && \
18676     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
18677   ($PKG_CONFIG --exists --print-errors "xft") 2>&5
18678   ac_status=$?
18679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; then
18681   pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
18682 else
18683   pkg_failed=yes
18684 fi
18685  else
18686     pkg_failed=untried
18687 fi
18688
18689
18690
18691 if test $pkg_failed = yes; then
18692
18693 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18694         _pkg_short_errors_supported=yes
18695 else
18696         _pkg_short_errors_supported=no
18697 fi
18698         if test $_pkg_short_errors_supported = yes; then
18699                 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xft" 2>&1`
18700         else
18701                 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xft" 2>&1`
18702         fi
18703         # Put the nasty error message in config.log where it belongs
18704         echo "$XFT_PKG_ERRORS" >&5
18705
18706         { $as_echo "$as_me:$LINENO: result: no" >&5
18707 $as_echo "no" >&6; }
18708                 enable_xft=no
18709 elif test $pkg_failed = untried; then
18710         enable_xft=no
18711 else
18712         XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
18713         XFT_LIBS=$pkg_cv_XFT_LIBS
18714         { $as_echo "$as_me:$LINENO: result: yes" >&5
18715 $as_echo "yes" >&6; }
18716
18717 cat >>confdefs.h <<\_ACEOF
18718 #define USE_XFT 1
18719 _ACEOF
18720
18721 fi
18722 fi
18723  if test "x$enable_xft" = "xyes"; then
18724   USE_LIBXFT_TRUE=
18725   USE_LIBXFT_FALSE='#'
18726 else
18727   USE_LIBXFT_TRUE='#'
18728   USE_LIBXFT_FALSE=
18729 fi
18730
18731
18732 # Check whether --enable-ecore was given.
18733 if test "${enable_ecore+set}" = set; then
18734   enableval=$enable_ecore;
18735 else
18736   enable_ecore=no
18737 fi
18738
18739 if test "x$enable_ecore" = "xyes"; then
18740
18741 pkg_failed=no
18742 { $as_echo "$as_me:$LINENO: checking for ECORE" >&5
18743 $as_echo_n "checking for ECORE... " >&6; }
18744
18745 if test -n "$ECORE_CFLAGS"; then
18746     pkg_cv_ECORE_CFLAGS="$ECORE_CFLAGS"
18747  elif test -n "$PKG_CONFIG"; then
18748     if test -n "$PKG_CONFIG" && \
18749     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ecore ecore-x\"") >&5
18750   ($PKG_CONFIG --exists --print-errors "ecore ecore-x") 2>&5
18751   ac_status=$?
18752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); }; then
18754   pkg_cv_ECORE_CFLAGS=`$PKG_CONFIG --cflags "ecore ecore-x" 2>/dev/null`
18755 else
18756   pkg_failed=yes
18757 fi
18758  else
18759     pkg_failed=untried
18760 fi
18761 if test -n "$ECORE_LIBS"; then
18762     pkg_cv_ECORE_LIBS="$ECORE_LIBS"
18763  elif test -n "$PKG_CONFIG"; then
18764     if test -n "$PKG_CONFIG" && \
18765     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ecore ecore-x\"") >&5
18766   ($PKG_CONFIG --exists --print-errors "ecore ecore-x") 2>&5
18767   ac_status=$?
18768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; then
18770   pkg_cv_ECORE_LIBS=`$PKG_CONFIG --libs "ecore ecore-x" 2>/dev/null`
18771 else
18772   pkg_failed=yes
18773 fi
18774  else
18775     pkg_failed=untried
18776 fi
18777
18778
18779
18780 if test $pkg_failed = yes; then
18781
18782 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18783         _pkg_short_errors_supported=yes
18784 else
18785         _pkg_short_errors_supported=no
18786 fi
18787         if test $_pkg_short_errors_supported = yes; then
18788                 ECORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore ecore-x" 2>&1`
18789         else
18790                 ECORE_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore ecore-x" 2>&1`
18791         fi
18792         # Put the nasty error message in config.log where it belongs
18793         echo "$ECORE_PKG_ERRORS" >&5
18794
18795         { $as_echo "$as_me:$LINENO: result: no" >&5
18796 $as_echo "no" >&6; }
18797                 enable_ecore=no
18798 elif test $pkg_failed = untried; then
18799         enable_ecore=no
18800 else
18801         ECORE_CFLAGS=$pkg_cv_ECORE_CFLAGS
18802         ECORE_LIBS=$pkg_cv_ECORE_LIBS
18803         { $as_echo "$as_me:$LINENO: result: yes" >&5
18804 $as_echo "yes" >&6; }
18805
18806 cat >>confdefs.h <<\_ACEOF
18807 #define USE_ECORE 1
18808 _ACEOF
18809
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define USE_ECORE_X 1
18813 _ACEOF
18814
18815 fi
18816 fi
18817
18818 # Is this reasonably correct?
18819 # Check whether --enable-glx was given.
18820 if test "${enable_glx+set}" = set; then
18821   enableval=$enable_glx;
18822 else
18823   enable_glx=no
18824 fi
18825
18826 if test "x$enable_glx" = "xyes"; then
18827
18828
18829
18830 for ac_header in GL/gl.h GL/glu.h GL/glx.h
18831 do
18832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18834   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18835 $as_echo_n "checking for $ac_header... " >&6; }
18836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18837   $as_echo_n "(cached) " >&6
18838 fi
18839 ac_res=`eval 'as_val=${'$as_ac_Header'}
18840                  $as_echo "$as_val"'`
18841                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18842 $as_echo "$ac_res" >&6; }
18843 else
18844   # Is the header compilable?
18845 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18846 $as_echo_n "checking $ac_header usability... " >&6; }
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853 $ac_includes_default
18854 #include <$ac_header>
18855 _ACEOF
18856 rm -f conftest.$ac_objext
18857 if { (ac_try="$ac_compile"
18858 case "(($ac_try" in
18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860   *) ac_try_echo=$ac_try;;
18861 esac
18862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18863 $as_echo "$ac_try_echo") >&5
18864   (eval "$ac_compile") 2>conftest.er1
18865   ac_status=$?
18866   grep -v '^ *+' conftest.er1 >conftest.err
18867   rm -f conftest.er1
18868   cat conftest.err >&5
18869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } && {
18871          test -z "$ac_c_werror_flag" ||
18872          test ! -s conftest.err
18873        } && test -s conftest.$ac_objext; then
18874   ac_header_compiler=yes
18875 else
18876   $as_echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18878
18879         ac_header_compiler=no
18880 fi
18881
18882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18884 $as_echo "$ac_header_compiler" >&6; }
18885
18886 # Is the header present?
18887 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18888 $as_echo_n "checking $ac_header presence... " >&6; }
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h.  */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h.  */
18895 #include <$ac_header>
18896 _ACEOF
18897 if { (ac_try="$ac_cpp conftest.$ac_ext"
18898 case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18903 $as_echo "$ac_try_echo") >&5
18904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } >/dev/null && {
18911          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18912          test ! -s conftest.err
18913        }; then
18914   ac_header_preproc=yes
18915 else
18916   $as_echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919   ac_header_preproc=no
18920 fi
18921
18922 rm -f conftest.err conftest.$ac_ext
18923 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18924 $as_echo "$ac_header_preproc" >&6; }
18925
18926 # So?  What about this header?
18927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18928   yes:no: )
18929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18930 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18933     ac_header_preproc=yes
18934     ;;
18935   no:yes:* )
18936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18937 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18939 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18941 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18943 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18945 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18947 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18948     ( cat <<\_ASBOX
18949 ## -------------------------------------------------------- ##
18950 ## Report this to enlightenment-devel@lists.sourceforge.net ##
18951 ## -------------------------------------------------------- ##
18952 _ASBOX
18953      ) | sed "s/^/$as_me: WARNING:     /" >&2
18954     ;;
18955 esac
18956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18957 $as_echo_n "checking for $ac_header... " >&6; }
18958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18959   $as_echo_n "(cached) " >&6
18960 else
18961   eval "$as_ac_Header=\$ac_header_preproc"
18962 fi
18963 ac_res=`eval 'as_val=${'$as_ac_Header'}
18964                  $as_echo "$as_val"'`
18965                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18966 $as_echo "$ac_res" >&6; }
18967
18968 fi
18969 as_val=`eval 'as_val=${'$as_ac_Header'}
18970                  $as_echo "$as_val"'`
18971    if test "x$as_val" = x""yes; then
18972   cat >>confdefs.h <<_ACEOF
18973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18974 _ACEOF
18975
18976 else
18977   { { $as_echo "$as_me:$LINENO: error: Cannot find GLX headers" >&5
18978 $as_echo "$as_me: error: Cannot find GLX headers" >&2;}
18979    { (exit 1); exit 1; }; }
18980 fi
18981
18982 done
18983
18984   { $as_echo "$as_me:$LINENO: checking for glXCreateNewContext in -lGL" >&5
18985 $as_echo_n "checking for glXCreateNewContext in -lGL... " >&6; }
18986 if test "${ac_cv_lib_GL_glXCreateNewContext+set}" = set; then
18987   $as_echo_n "(cached) " >&6
18988 else
18989   ac_check_lib_save_LIBS=$LIBS
18990 LIBS="-lGL  $LIBS"
18991 cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h.  */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h.  */
18997
18998 /* Override any GCC internal prototype to avoid an error.
18999    Use char because int might match the return type of a GCC
19000    builtin and then its argument prototype would still apply.  */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 char glXCreateNewContext ();
19005 int
19006 main ()
19007 {
19008 return glXCreateNewContext ();
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021   (eval "$ac_link") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } && {
19028          test -z "$ac_c_werror_flag" ||
19029          test ! -s conftest.err
19030        } && test -s conftest$ac_exeext && {
19031          test "$cross_compiling" = yes ||
19032          $as_test_x conftest$ac_exeext
19033        }; then
19034   ac_cv_lib_GL_glXCreateNewContext=yes
19035 else
19036   $as_echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         ac_cv_lib_GL_glXCreateNewContext=no
19040 fi
19041
19042 rm -rf conftest.dSYM
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045 LIBS=$ac_check_lib_save_LIBS
19046 fi
19047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateNewContext" >&5
19048 $as_echo "$ac_cv_lib_GL_glXCreateNewContext" >&6; }
19049 if test "x$ac_cv_lib_GL_glXCreateNewContext" = x""yes; then
19050
19051
19052 cat >>confdefs.h <<\_ACEOF
19053 #define USE_GLX 1
19054 _ACEOF
19055
19056       GLX_LIBS="-lGL -lGLU"
19057
19058 else
19059
19060       { { $as_echo "$as_me:$LINENO: error: Cannot find GLX libraries" >&5
19061 $as_echo "$as_me: error: Cannot find GLX libraries" >&2;}
19062    { (exit 1); exit 1; }; }
19063
19064 fi
19065
19066   { $as_echo "$as_me:$LINENO: checking for glXBindTexImageEXT in -lGL" >&5
19067 $as_echo_n "checking for glXBindTexImageEXT in -lGL... " >&6; }
19068 if test "${ac_cv_lib_GL_glXBindTexImageEXT+set}" = set; then
19069   $as_echo_n "(cached) " >&6
19070 else
19071   ac_check_lib_save_LIBS=$LIBS
19072 LIBS="-lGL  $LIBS"
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h.  */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h.  */
19079
19080 /* Override any GCC internal prototype to avoid an error.
19081    Use char because int might match the return type of a GCC
19082    builtin and then its argument prototype would still apply.  */
19083 #ifdef __cplusplus
19084 extern "C"
19085 #endif
19086 char glXBindTexImageEXT ();
19087 int
19088 main ()
19089 {
19090 return glXBindTexImageEXT ();
19091   ;
19092   return 0;
19093 }
19094 _ACEOF
19095 rm -f conftest.$ac_objext conftest$ac_exeext
19096 if { (ac_try="$ac_link"
19097 case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19102 $as_echo "$ac_try_echo") >&5
19103   (eval "$ac_link") 2>conftest.er1
19104   ac_status=$?
19105   grep -v '^ *+' conftest.er1 >conftest.err
19106   rm -f conftest.er1
19107   cat conftest.err >&5
19108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } && {
19110          test -z "$ac_c_werror_flag" ||
19111          test ! -s conftest.err
19112        } && test -s conftest$ac_exeext && {
19113          test "$cross_compiling" = yes ||
19114          $as_test_x conftest$ac_exeext
19115        }; then
19116   ac_cv_lib_GL_glXBindTexImageEXT=yes
19117 else
19118   $as_echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         ac_cv_lib_GL_glXBindTexImageEXT=no
19122 fi
19123
19124 rm -rf conftest.dSYM
19125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19126       conftest$ac_exeext conftest.$ac_ext
19127 LIBS=$ac_check_lib_save_LIBS
19128 fi
19129 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXBindTexImageEXT" >&5
19130 $as_echo "$ac_cv_lib_GL_glXBindTexImageEXT" >&6; }
19131 if test "x$ac_cv_lib_GL_glXBindTexImageEXT" = x""yes; then
19132
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_GLX_glXBindTexImageEXT 1
19135 _ACEOF
19136
19137 fi
19138
19139
19140 fi
19141  if test "x$enable_glx" = "xyes"; then
19142   ENABLE_GLX_TRUE=
19143   ENABLE_GLX_FALSE='#'
19144 else
19145   ENABLE_GLX_TRUE='#'
19146   ENABLE_GLX_FALSE=
19147 fi
19148
19149
19150 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
19151 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19152 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
19153   $as_echo_n "(cached) " >&6
19154 else
19155   ac_check_lib_save_LIBS=$LIBS
19156 LIBS="-lXext -lX11 $LIBS"
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163
19164 /* Override any GCC internal prototype to avoid an error.
19165    Use char because int might match the return type of a GCC
19166    builtin and then its argument prototype would still apply.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char XShapeQueryExtension ();
19171 int
19172 main ()
19173 {
19174 return XShapeQueryExtension ();
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19186 $as_echo "$ac_try_echo") >&5
19187   (eval "$ac_link") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } && {
19194          test -z "$ac_c_werror_flag" ||
19195          test ! -s conftest.err
19196        } && test -s conftest$ac_exeext && {
19197          test "$cross_compiling" = yes ||
19198          $as_test_x conftest$ac_exeext
19199        }; then
19200   ac_cv_lib_Xext_XShapeQueryExtension=yes
19201 else
19202   $as_echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19204
19205         ac_cv_lib_Xext_XShapeQueryExtension=no
19206 fi
19207
19208 rm -rf conftest.dSYM
19209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19210       conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19212 fi
19213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19214 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19215 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
19216   E_X_LIBS="-lXext $E_X_LIBS"
19217 else
19218   { { $as_echo "$as_me:$LINENO: error: Shape support is required but was not found" >&5
19219 $as_echo "$as_me: error: Shape support is required but was not found" >&2;}
19220    { (exit 1); exit 1; }; }
19221 fi
19222
19223
19224 # Check whether --enable-xinerama was given.
19225 if test "${enable_xinerama+set}" = set; then
19226   enableval=$enable_xinerama;
19227 else
19228   enable_xinerama=yes
19229 fi
19230
19231 if test "x$enable_xinerama" = "xyes"; then
19232   { $as_echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
19233 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
19234 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
19235   $as_echo_n "(cached) " >&6
19236 else
19237   ac_check_lib_save_LIBS=$LIBS
19238 LIBS="-lXinerama -lXext -lX11 $LIBS"
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h.  */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h.  */
19245
19246 /* Override any GCC internal prototype to avoid an error.
19247    Use char because int might match the return type of a GCC
19248    builtin and then its argument prototype would still apply.  */
19249 #ifdef __cplusplus
19250 extern "C"
19251 #endif
19252 char XineramaQueryExtension ();
19253 int
19254 main ()
19255 {
19256 return XineramaQueryExtension ();
19257   ;
19258   return 0;
19259 }
19260 _ACEOF
19261 rm -f conftest.$ac_objext conftest$ac_exeext
19262 if { (ac_try="$ac_link"
19263 case "(($ac_try" in
19264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265   *) ac_try_echo=$ac_try;;
19266 esac
19267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19268 $as_echo "$ac_try_echo") >&5
19269   (eval "$ac_link") 2>conftest.er1
19270   ac_status=$?
19271   grep -v '^ *+' conftest.er1 >conftest.err
19272   rm -f conftest.er1
19273   cat conftest.err >&5
19274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275   (exit $ac_status); } && {
19276          test -z "$ac_c_werror_flag" ||
19277          test ! -s conftest.err
19278        } && test -s conftest$ac_exeext && {
19279          test "$cross_compiling" = yes ||
19280          $as_test_x conftest$ac_exeext
19281        }; then
19282   ac_cv_lib_Xinerama_XineramaQueryExtension=yes
19283 else
19284   $as_echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19286
19287         ac_cv_lib_Xinerama_XineramaQueryExtension=no
19288 fi
19289
19290 rm -rf conftest.dSYM
19291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19292       conftest$ac_exeext conftest.$ac_ext
19293 LIBS=$ac_check_lib_save_LIBS
19294 fi
19295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
19296 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
19297 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then
19298
19299 cat >>confdefs.h <<\_ACEOF
19300 #define USE_XINERAMA 1
19301 _ACEOF
19302
19303     XINERAMA_LIBS="-lXinerama"
19304 else
19305   enable_xinerama=no
19306     { $as_echo "$as_me:$LINENO: WARNING: Xinerama support was requested but not found" >&5
19307 $as_echo "$as_me: WARNING: Xinerama support was requested but not found" >&2;}
19308 fi
19309
19310 fi
19311
19312
19313 # Check whether --enable-zoom was given.
19314 if test "${enable_zoom+set}" = set; then
19315   enableval=$enable_zoom;
19316 else
19317   enable_zoom=yes
19318 fi
19319
19320 if test "x$enable_zoom" = "xyes"; then
19321   { $as_echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
19322 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
19323 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
19324   $as_echo_n "(cached) " >&6
19325 else
19326   ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
19328 cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334
19335 /* Override any GCC internal prototype to avoid an error.
19336    Use char because int might match the return type of a GCC
19337    builtin and then its argument prototype would still apply.  */
19338 #ifdef __cplusplus
19339 extern "C"
19340 #endif
19341 char XF86VidModeQueryExtension ();
19342 int
19343 main ()
19344 {
19345 return XF86VidModeQueryExtension ();
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354   *) ac_try_echo=$ac_try;;
19355 esac
19356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19357 $as_echo "$ac_try_echo") >&5
19358   (eval "$ac_link") 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } && {
19365          test -z "$ac_c_werror_flag" ||
19366          test ! -s conftest.err
19367        } && test -s conftest$ac_exeext && {
19368          test "$cross_compiling" = yes ||
19369          $as_test_x conftest$ac_exeext
19370        }; then
19371   ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
19372 else
19373   $as_echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19375
19376         ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
19377 fi
19378
19379 rm -rf conftest.dSYM
19380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19381       conftest$ac_exeext conftest.$ac_ext
19382 LIBS=$ac_check_lib_save_LIBS
19383 fi
19384 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
19385 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
19386 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then
19387
19388 cat >>confdefs.h <<\_ACEOF
19389 #define WITH_ZOOM 1
19390 _ACEOF
19391
19392     E_X_LIBS="-lXxf86vm $E_X_LIBS"
19393 else
19394   enable_zoom=no
19395     { $as_echo "$as_me:$LINENO: WARNING: Zoom support was requested but not found" >&5
19396 $as_echo "$as_me: WARNING: Zoom support was requested but not found" >&2;}
19397 fi
19398
19399 fi
19400
19401 # Check whether --enable-xsync was given.
19402 if test "${enable_xsync+set}" = set; then
19403   enableval=$enable_xsync;
19404 else
19405   enable_xsync=yes
19406 fi
19407
19408 if test "x$enable_xsync" = "xyes"; then
19409   { $as_echo "$as_me:$LINENO: checking for XSyncQueryExtension in -lXext" >&5
19410 $as_echo_n "checking for XSyncQueryExtension in -lXext... " >&6; }
19411 if test "${ac_cv_lib_Xext_XSyncQueryExtension+set}" = set; then
19412   $as_echo_n "(cached) " >&6
19413 else
19414   ac_check_lib_save_LIBS=$LIBS
19415 LIBS="-lXext -lX11 $LIBS"
19416 cat >conftest.$ac_ext <<_ACEOF
19417 /* confdefs.h.  */
19418 _ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h.  */
19422
19423 /* Override any GCC internal prototype to avoid an error.
19424    Use char because int might match the return type of a GCC
19425    builtin and then its argument prototype would still apply.  */
19426 #ifdef __cplusplus
19427 extern "C"
19428 #endif
19429 char XSyncQueryExtension ();
19430 int
19431 main ()
19432 {
19433 return XSyncQueryExtension ();
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442   *) ac_try_echo=$ac_try;;
19443 esac
19444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19445 $as_echo "$ac_try_echo") >&5
19446   (eval "$ac_link") 2>conftest.er1
19447   ac_status=$?
19448   grep -v '^ *+' conftest.er1 >conftest.err
19449   rm -f conftest.er1
19450   cat conftest.err >&5
19451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); } && {
19453          test -z "$ac_c_werror_flag" ||
19454          test ! -s conftest.err
19455        } && test -s conftest$ac_exeext && {
19456          test "$cross_compiling" = yes ||
19457          $as_test_x conftest$ac_exeext
19458        }; then
19459   ac_cv_lib_Xext_XSyncQueryExtension=yes
19460 else
19461   $as_echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.$ac_ext >&5
19463
19464         ac_cv_lib_Xext_XSyncQueryExtension=no
19465 fi
19466
19467 rm -rf conftest.dSYM
19468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19469       conftest$ac_exeext conftest.$ac_ext
19470 LIBS=$ac_check_lib_save_LIBS
19471 fi
19472 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XSyncQueryExtension" >&5
19473 $as_echo "$ac_cv_lib_Xext_XSyncQueryExtension" >&6; }
19474 if test "x$ac_cv_lib_Xext_XSyncQueryExtension" = x""yes; then
19475
19476 cat >>confdefs.h <<\_ACEOF
19477 #define USE_XSYNC 1
19478 _ACEOF
19479
19480 else
19481   enable_xsync=no
19482     { $as_echo "$as_me:$LINENO: WARNING: Sync support was requested but not found" >&5
19483 $as_echo "$as_me: WARNING: Sync support was requested but not found" >&2;}
19484 fi
19485
19486 fi
19487
19488 # Check whether --enable-xscrnsaver was given.
19489 if test "${enable_xscrnsaver+set}" = set; then
19490   enableval=$enable_xscrnsaver;
19491 else
19492   enable_xscrnsaver=no
19493 fi
19494
19495 if test "x$enable_xscrnsaver" = "xyes"; then
19496   { $as_echo "$as_me:$LINENO: checking for XScreenSaverQueryExtension in -lXss" >&5
19497 $as_echo_n "checking for XScreenSaverQueryExtension in -lXss... " >&6; }
19498 if test "${ac_cv_lib_Xss_XScreenSaverQueryExtension+set}" = set; then
19499   $as_echo_n "(cached) " >&6
19500 else
19501   ac_check_lib_save_LIBS=$LIBS
19502 LIBS="-lXss -lXext -lX11 $LIBS"
19503 cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h.  */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h.  */
19509
19510 /* Override any GCC internal prototype to avoid an error.
19511    Use char because int might match the return type of a GCC
19512    builtin and then its argument prototype would still apply.  */
19513 #ifdef __cplusplus
19514 extern "C"
19515 #endif
19516 char XScreenSaverQueryExtension ();
19517 int
19518 main ()
19519 {
19520 return XScreenSaverQueryExtension ();
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19532 $as_echo "$ac_try_echo") >&5
19533   (eval "$ac_link") 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } && {
19540          test -z "$ac_c_werror_flag" ||
19541          test ! -s conftest.err
19542        } && test -s conftest$ac_exeext && {
19543          test "$cross_compiling" = yes ||
19544          $as_test_x conftest$ac_exeext
19545        }; then
19546   ac_cv_lib_Xss_XScreenSaverQueryExtension=yes
19547 else
19548   $as_echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         ac_cv_lib_Xss_XScreenSaverQueryExtension=no
19552 fi
19553
19554 rm -rf conftest.dSYM
19555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19556       conftest$ac_exeext conftest.$ac_ext
19557 LIBS=$ac_check_lib_save_LIBS
19558 fi
19559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverQueryExtension" >&5
19560 $as_echo "$ac_cv_lib_Xss_XScreenSaverQueryExtension" >&6; }
19561 if test "x$ac_cv_lib_Xss_XScreenSaverQueryExtension" = x""yes; then
19562
19563 cat >>confdefs.h <<\_ACEOF
19564 #define USE_XSCREENSAVER 1
19565 _ACEOF
19566
19567     E_X_LIBS="-lXss $E_X_LIBS"
19568 else
19569   enable_xscrnsaver=no
19570     { $as_echo "$as_me:$LINENO: WARNING: ScreenSaver support was requested but not found" >&5
19571 $as_echo "$as_me: WARNING: ScreenSaver support was requested but not found" >&2;}
19572 fi
19573
19574 fi
19575
19576 # Check whether --enable-xrandr was given.
19577 if test "${enable_xrandr+set}" = set; then
19578   enableval=$enable_xrandr;
19579 else
19580   enable_xrandr=yes
19581 fi
19582
19583 if test "x$enable_xrandr" = "xyes"; then
19584   { $as_echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
19585 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
19586 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
19587   $as_echo_n "(cached) " >&6
19588 else
19589   ac_check_lib_save_LIBS=$LIBS
19590 LIBS="-lXrandr -lXrender -lXext -lX11 $LIBS"
19591 cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h.  */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h.  */
19597
19598 /* Override any GCC internal prototype to avoid an error.
19599    Use char because int might match the return type of a GCC
19600    builtin and then its argument prototype would still apply.  */
19601 #ifdef __cplusplus
19602 extern "C"
19603 #endif
19604 char XRRQueryExtension ();
19605 int
19606 main ()
19607 {
19608 return XRRQueryExtension ();
19609   ;
19610   return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (ac_try="$ac_link"
19615 case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621   (eval "$ac_link") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } && {
19628          test -z "$ac_c_werror_flag" ||
19629          test ! -s conftest.err
19630        } && test -s conftest$ac_exeext && {
19631          test "$cross_compiling" = yes ||
19632          $as_test_x conftest$ac_exeext
19633        }; then
19634   ac_cv_lib_Xrandr_XRRQueryExtension=yes
19635 else
19636   $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639         ac_cv_lib_Xrandr_XRRQueryExtension=no
19640 fi
19641
19642 rm -rf conftest.dSYM
19643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19644       conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19646 fi
19647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
19648 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
19649 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then
19650
19651 cat >>confdefs.h <<\_ACEOF
19652 #define USE_XRANDR 1
19653 _ACEOF
19654
19655     E_X_LIBS="-lXrandr -lXrender $E_X_LIBS"
19656 else
19657   enable_xrandr=no
19658     { $as_echo "$as_me:$LINENO: WARNING: RandR support was requested but not found" >&5
19659 $as_echo "$as_me: WARNING: RandR support was requested but not found" >&2;}
19660 fi
19661
19662
19663 for ac_header in X11/extensions/Xrandr.h
19664 do
19665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19667 $as_echo_n "checking for $ac_header... " >&6; }
19668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19669   $as_echo_n "(cached) " >&6
19670 else
19671   cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 #include <X11/Xlib.h>
19678
19679 #include <$ac_header>
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19688 $as_echo "$ac_try_echo") >&5
19689   (eval "$ac_compile") 2>conftest.er1
19690   ac_status=$?
19691   grep -v '^ *+' conftest.er1 >conftest.err
19692   rm -f conftest.er1
19693   cat conftest.err >&5
19694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); } && {
19696          test -z "$ac_c_werror_flag" ||
19697          test ! -s conftest.err
19698        } && test -s conftest.$ac_objext; then
19699   eval "$as_ac_Header=yes"
19700 else
19701   $as_echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704         eval "$as_ac_Header=no"
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 fi
19709 ac_res=`eval 'as_val=${'$as_ac_Header'}
19710                  $as_echo "$as_val"'`
19711                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19712 $as_echo "$ac_res" >&6; }
19713 as_val=`eval 'as_val=${'$as_ac_Header'}
19714                  $as_echo "$as_val"'`
19715    if test "x$as_val" = x""yes; then
19716   cat >>confdefs.h <<_ACEOF
19717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19718 _ACEOF
19719
19720 fi
19721
19722 done
19723
19724 fi
19725
19726 # FIXME - Do this properly
19727 # Check whether --enable-composite was given.
19728 if test "${enable_composite+set}" = set; then
19729   enableval=$enable_composite;
19730 else
19731   enable_composite=yes
19732 fi
19733
19734 if test "x$enable_composite" = "xyes"; then
19735   { $as_echo "$as_me:$LINENO: checking for XCompositeQueryExtension in -lXcomposite" >&5
19736 $as_echo_n "checking for XCompositeQueryExtension in -lXcomposite... " >&6; }
19737 if test "${ac_cv_lib_Xcomposite_XCompositeQueryExtension+set}" = set; then
19738   $as_echo_n "(cached) " >&6
19739 else
19740   ac_check_lib_save_LIBS=$LIBS
19741 LIBS="-lXcomposite -lXext -lX11 $LIBS"
19742 cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748
19749 /* Override any GCC internal prototype to avoid an error.
19750    Use char because int might match the return type of a GCC
19751    builtin and then its argument prototype would still apply.  */
19752 #ifdef __cplusplus
19753 extern "C"
19754 #endif
19755 char XCompositeQueryExtension ();
19756 int
19757 main ()
19758 {
19759 return XCompositeQueryExtension ();
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (ac_try="$ac_link"
19766 case "(($ac_try" in
19767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768   *) ac_try_echo=$ac_try;;
19769 esac
19770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19771 $as_echo "$ac_try_echo") >&5
19772   (eval "$ac_link") 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } && {
19779          test -z "$ac_c_werror_flag" ||
19780          test ! -s conftest.err
19781        } && test -s conftest$ac_exeext && {
19782          test "$cross_compiling" = yes ||
19783          $as_test_x conftest$ac_exeext
19784        }; then
19785   ac_cv_lib_Xcomposite_XCompositeQueryExtension=yes
19786 else
19787   $as_echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790         ac_cv_lib_Xcomposite_XCompositeQueryExtension=no
19791 fi
19792
19793 rm -rf conftest.dSYM
19794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19795       conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19797 fi
19798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&5
19799 $as_echo "$ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&6; }
19800 if test "x$ac_cv_lib_Xcomposite_XCompositeQueryExtension" = x""yes; then
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define USE_COMPOSITE 1
19804 _ACEOF
19805
19806     E_X_LIBS="-lXcomposite -lXdamage -lXfixes -lXrender $E_X_LIBS"
19807 else
19808   enable_composite=no
19809 fi
19810
19811
19812 for ac_header in X11/extensions/Xcomposite.h
19813 do
19814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19816 $as_echo_n "checking for $ac_header... " >&6; }
19817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19818   $as_echo_n "(cached) " >&6
19819 else
19820   cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826 #include <X11/Xlib.h>
19827
19828 #include <$ac_header>
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834   *) ac_try_echo=$ac_try;;
19835 esac
19836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19837 $as_echo "$ac_try_echo") >&5
19838   (eval "$ac_compile") 2>conftest.er1
19839   ac_status=$?
19840   grep -v '^ *+' conftest.er1 >conftest.err
19841   rm -f conftest.er1
19842   cat conftest.err >&5
19843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); } && {
19845          test -z "$ac_c_werror_flag" ||
19846          test ! -s conftest.err
19847        } && test -s conftest.$ac_objext; then
19848   eval "$as_ac_Header=yes"
19849 else
19850   $as_echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19852
19853         eval "$as_ac_Header=no"
19854 fi
19855
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 fi
19858 ac_res=`eval 'as_val=${'$as_ac_Header'}
19859                  $as_echo "$as_val"'`
19860                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19861 $as_echo "$ac_res" >&6; }
19862 as_val=`eval 'as_val=${'$as_ac_Header'}
19863                  $as_echo "$as_val"'`
19864    if test "x$as_val" = x""yes; then
19865   cat >>confdefs.h <<_ACEOF
19866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 _ACEOF
19868
19869 else
19870   enable_composite=no
19871 fi
19872
19873 done
19874
19875
19876 for ac_header in X11/extensions/Xdamage.h
19877 do
19878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19880 $as_echo_n "checking for $ac_header... " >&6; }
19881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19882   $as_echo_n "(cached) " >&6
19883 else
19884   cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h.  */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h.  */
19890 #include <X11/Xlib.h>
19891
19892 #include <$ac_header>
19893 _ACEOF
19894 rm -f conftest.$ac_objext
19895 if { (ac_try="$ac_compile"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19901 $as_echo "$ac_try_echo") >&5
19902   (eval "$ac_compile") 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } && {
19909          test -z "$ac_c_werror_flag" ||
19910          test ! -s conftest.err
19911        } && test -s conftest.$ac_objext; then
19912   eval "$as_ac_Header=yes"
19913 else
19914   $as_echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917         eval "$as_ac_Header=no"
19918 fi
19919
19920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19921 fi
19922 ac_res=`eval 'as_val=${'$as_ac_Header'}
19923                  $as_echo "$as_val"'`
19924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19925 $as_echo "$ac_res" >&6; }
19926 as_val=`eval 'as_val=${'$as_ac_Header'}
19927                  $as_echo "$as_val"'`
19928    if test "x$as_val" = x""yes; then
19929   cat >>confdefs.h <<_ACEOF
19930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19931 _ACEOF
19932
19933 else
19934   enable_composite=no
19935 fi
19936
19937 done
19938
19939
19940 for ac_header in X11/extensions/Xfixes.h
19941 do
19942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19944 $as_echo_n "checking for $ac_header... " >&6; }
19945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19946   $as_echo_n "(cached) " >&6
19947 else
19948   cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <X11/Xlib.h>
19955
19956 #include <$ac_header>
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966   (eval "$ac_compile") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && {
19973          test -z "$ac_c_werror_flag" ||
19974          test ! -s conftest.err
19975        } && test -s conftest.$ac_objext; then
19976   eval "$as_ac_Header=yes"
19977 else
19978   $as_echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19980
19981         eval "$as_ac_Header=no"
19982 fi
19983
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986 ac_res=`eval 'as_val=${'$as_ac_Header'}
19987                  $as_echo "$as_val"'`
19988                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19989 $as_echo "$ac_res" >&6; }
19990 as_val=`eval 'as_val=${'$as_ac_Header'}
19991                  $as_echo "$as_val"'`
19992    if test "x$as_val" = x""yes; then
19993   cat >>confdefs.h <<_ACEOF
19994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19995 _ACEOF
19996
19997 else
19998   enable_composite=no
19999 fi
20000
20001 done
20002
20003
20004 for ac_header in X11/extensions/Xrender.h
20005 do
20006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20007 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20008 $as_echo_n "checking for $ac_header... " >&6; }
20009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010   $as_echo_n "(cached) " >&6
20011 else
20012   cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018 #include <X11/Xlib.h>
20019
20020 #include <$ac_header>
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20029 $as_echo "$ac_try_echo") >&5
20030   (eval "$ac_compile") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } && {
20037          test -z "$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        } && test -s conftest.$ac_objext; then
20040   eval "$as_ac_Header=yes"
20041 else
20042   $as_echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045         eval "$as_ac_Header=no"
20046 fi
20047
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049 fi
20050 ac_res=`eval 'as_val=${'$as_ac_Header'}
20051                  $as_echo "$as_val"'`
20052                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20053 $as_echo "$ac_res" >&6; }
20054 as_val=`eval 'as_val=${'$as_ac_Header'}
20055                  $as_echo "$as_val"'`
20056    if test "x$as_val" = x""yes; then
20057   cat >>confdefs.h <<_ACEOF
20058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20059 _ACEOF
20060
20061 else
20062   enable_composite=no
20063 fi
20064
20065 done
20066
20067   if test "x$enable_composite" != "xyes"; then
20068     { $as_echo "$as_me:$LINENO: WARNING: Composite support was requested but required component was not found" >&5
20069 $as_echo "$as_me: WARNING: Composite support was requested but required component was not found" >&2;}
20070   fi
20071 fi
20072  if test "x$enable_composite" = "xyes"; then
20073   ENABLE_COMPOSITE_TRUE=
20074   ENABLE_COMPOSITE_FALSE='#'
20075 else
20076   ENABLE_COMPOSITE_TRUE='#'
20077   ENABLE_COMPOSITE_FALSE=
20078 fi
20079
20080
20081 # Check whether --enable-dbus was given.
20082 if test "${enable_dbus+set}" = set; then
20083   enableval=$enable_dbus;
20084 else
20085   enable_dbus=no
20086 fi
20087
20088 if test "x$enable_dbus" = "xyes"; then
20089
20090 pkg_failed=no
20091 { $as_echo "$as_me:$LINENO: checking for DBUS" >&5
20092 $as_echo_n "checking for DBUS... " >&6; }
20093
20094 if test -n "$DBUS_CFLAGS"; then
20095     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20096  elif test -n "$PKG_CONFIG"; then
20097     if test -n "$PKG_CONFIG" && \
20098     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
20099   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
20100   ac_status=$?
20101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); }; then
20103   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
20104 else
20105   pkg_failed=yes
20106 fi
20107  else
20108     pkg_failed=untried
20109 fi
20110 if test -n "$DBUS_LIBS"; then
20111     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20112  elif test -n "$PKG_CONFIG"; then
20113     if test -n "$PKG_CONFIG" && \
20114     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
20115   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
20116   ac_status=$?
20117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; then
20119   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
20120 else
20121   pkg_failed=yes
20122 fi
20123  else
20124     pkg_failed=untried
20125 fi
20126
20127
20128
20129 if test $pkg_failed = yes; then
20130
20131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20132         _pkg_short_errors_supported=yes
20133 else
20134         _pkg_short_errors_supported=no
20135 fi
20136         if test $_pkg_short_errors_supported = yes; then
20137                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
20138         else
20139                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
20140         fi
20141         # Put the nasty error message in config.log where it belongs
20142         echo "$DBUS_PKG_ERRORS" >&5
20143
20144         { $as_echo "$as_me:$LINENO: result: no" >&5
20145 $as_echo "no" >&6; }
20146                 enable_dbus=no
20147 elif test $pkg_failed = untried; then
20148         enable_dbus=no
20149 else
20150         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
20151         DBUS_LIBS=$pkg_cv_DBUS_LIBS
20152         { $as_echo "$as_me:$LINENO: result: yes" >&5
20153 $as_echo "yes" >&6; }
20154
20155 cat >>confdefs.h <<\_ACEOF
20156 #define USE_DBUS 1
20157 _ACEOF
20158
20159 fi
20160 fi
20161  if test "x$enable_dbus" = "xyes"; then
20162   ENABLE_DBUS_TRUE=
20163   ENABLE_DBUS_FALSE='#'
20164 else
20165   ENABLE_DBUS_TRUE='#'
20166   ENABLE_DBUS_FALSE=
20167 fi
20168
20169
20170
20171 { $as_echo "$as_me:$LINENO: checking for mass_quantities_of_bass_ale in -lFridge" >&5
20172 $as_echo_n "checking for mass_quantities_of_bass_ale in -lFridge... " >&6; }
20173 if test "${ac_cv_lib_Fridge_mass_quantities_of_bass_ale+set}" = set; then
20174   $as_echo_n "(cached) " >&6
20175 else
20176   ac_check_lib_save_LIBS=$LIBS
20177 LIBS="-lFridge  $LIBS"
20178 cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184
20185 /* Override any GCC internal prototype to avoid an error.
20186    Use char because int might match the return type of a GCC
20187    builtin and then its argument prototype would still apply.  */
20188 #ifdef __cplusplus
20189 extern "C"
20190 #endif
20191 char mass_quantities_of_bass_ale ();
20192 int
20193 main ()
20194 {
20195 return mass_quantities_of_bass_ale ();
20196   ;
20197   return 0;
20198 }
20199 _ACEOF
20200 rm -f conftest.$ac_objext conftest$ac_exeext
20201 if { (ac_try="$ac_link"
20202 case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20207 $as_echo "$ac_try_echo") >&5
20208   (eval "$ac_link") 2>conftest.er1
20209   ac_status=$?
20210   grep -v '^ *+' conftest.er1 >conftest.err
20211   rm -f conftest.er1
20212   cat conftest.err >&5
20213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } && {
20215          test -z "$ac_c_werror_flag" ||
20216          test ! -s conftest.err
20217        } && test -s conftest$ac_exeext && {
20218          test "$cross_compiling" = yes ||
20219          $as_test_x conftest$ac_exeext
20220        }; then
20221   ac_cv_lib_Fridge_mass_quantities_of_bass_ale=yes
20222 else
20223   $as_echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20225
20226         ac_cv_lib_Fridge_mass_quantities_of_bass_ale=no
20227 fi
20228
20229 rm -rf conftest.dSYM
20230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20231       conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20233 fi
20234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Fridge_mass_quantities_of_bass_ale" >&5
20235 $as_echo "$ac_cv_lib_Fridge_mass_quantities_of_bass_ale" >&6; }
20236 if test "x$ac_cv_lib_Fridge_mass_quantities_of_bass_ale" = x""yes; then
20237   cat >>confdefs.h <<_ACEOF
20238 #define HAVE_LIBFRIDGE 1
20239 _ACEOF
20240
20241   LIBS="-lFridge $LIBS"
20242
20243 fi
20244
20245
20246 { $as_echo "$as_me:$LINENO: checking for mass_quantities_of_any_ale in -lFridge" >&5
20247 $as_echo_n "checking for mass_quantities_of_any_ale in -lFridge... " >&6; }
20248 if test "${ac_cv_lib_Fridge_mass_quantities_of_any_ale+set}" = set; then
20249   $as_echo_n "(cached) " >&6
20250 else
20251   ac_check_lib_save_LIBS=$LIBS
20252 LIBS="-lFridge  $LIBS"
20253 cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259
20260 /* Override any GCC internal prototype to avoid an error.
20261    Use char because int might match the return type of a GCC
20262    builtin and then its argument prototype would still apply.  */
20263 #ifdef __cplusplus
20264 extern "C"
20265 #endif
20266 char mass_quantities_of_any_ale ();
20267 int
20268 main ()
20269 {
20270 return mass_quantities_of_any_ale ();
20271   ;
20272   return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (ac_try="$ac_link"
20277 case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20282 $as_echo "$ac_try_echo") >&5
20283   (eval "$ac_link") 2>conftest.er1
20284   ac_status=$?
20285   grep -v '^ *+' conftest.er1 >conftest.err
20286   rm -f conftest.er1
20287   cat conftest.err >&5
20288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } && {
20290          test -z "$ac_c_werror_flag" ||
20291          test ! -s conftest.err
20292        } && test -s conftest$ac_exeext && {
20293          test "$cross_compiling" = yes ||
20294          $as_test_x conftest$ac_exeext
20295        }; then
20296   ac_cv_lib_Fridge_mass_quantities_of_any_ale=yes
20297 else
20298   $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301         ac_cv_lib_Fridge_mass_quantities_of_any_ale=no
20302 fi
20303
20304 rm -rf conftest.dSYM
20305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20306       conftest$ac_exeext conftest.$ac_ext
20307 LIBS=$ac_check_lib_save_LIBS
20308 fi
20309 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Fridge_mass_quantities_of_any_ale" >&5
20310 $as_echo "$ac_cv_lib_Fridge_mass_quantities_of_any_ale" >&6; }
20311 if test "x$ac_cv_lib_Fridge_mass_quantities_of_any_ale" = x""yes; then
20312   cat >>confdefs.h <<_ACEOF
20313 #define HAVE_LIBFRIDGE 1
20314 _ACEOF
20315
20316   LIBS="-lFridge $LIBS"
20317
20318 else
20319
20320   echo "Warning: No ales were found in your refrigerator."
20321   echo "  We highly suggest that you rectify this situation immediately."
20322
20323 fi
20324
20325
20326 # Restore CPPFLAGS/LDFLAGS
20327 CPPFLAGS="$SAVE_CPPFLAGS"
20328 LDFLAGS="$SAVE_LDFLAGS"
20329
20330 # Check whether --enable-roothacklib was given.
20331 if test "${enable_roothacklib+set}" = set; then
20332   enableval=$enable_roothacklib;
20333 else
20334   enable_roothacklib=yes
20335 fi
20336
20337 if test "x$enable_roothacklib" = "xyes"; then
20338   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20339 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20341   $as_echo_n "(cached) " >&6
20342 else
20343   ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-ldl  $LIBS"
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351
20352 /* Override any GCC internal prototype to avoid an error.
20353    Use char because int might match the return type of a GCC
20354    builtin and then its argument prototype would still apply.  */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char dlopen ();
20359 int
20360 main ()
20361 {
20362 return dlopen ();
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20374 $as_echo "$ac_try_echo") >&5
20375   (eval "$ac_link") 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && {
20382          test -z "$ac_c_werror_flag" ||
20383          test ! -s conftest.err
20384        } && test -s conftest$ac_exeext && {
20385          test "$cross_compiling" = yes ||
20386          $as_test_x conftest$ac_exeext
20387        }; then
20388   ac_cv_lib_dl_dlopen=yes
20389 else
20390   $as_echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393         ac_cv_lib_dl_dlopen=no
20394 fi
20395
20396 rm -rf conftest.dSYM
20397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20398       conftest$ac_exeext conftest.$ac_ext
20399 LIBS=$ac_check_lib_save_LIBS
20400 fi
20401 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20402 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20403 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
20404   DLOPEN_LIBS=-ldl
20405 else
20406   enable_roothacklib=no
20407 fi
20408
20409
20410 fi
20411 if test "x$enable_roothacklib" = "xyes"; then
20412
20413 cat >>confdefs.h <<\_ACEOF
20414 #define USE_ROOTHACKLIB 1
20415 _ACEOF
20416
20417 fi
20418  if test "x$enable_roothacklib" = "xyes"; then
20419   BUILD_ROOTHACKLIB_TRUE=
20420   BUILD_ROOTHACKLIB_FALSE='#'
20421 else
20422   BUILD_ROOTHACKLIB_TRUE='#'
20423   BUILD_ROOTHACKLIB_FALSE=
20424 fi
20425
20426
20427 # Check whether --enable-modules was given.
20428 if test "${enable_modules+set}" = set; then
20429   enableval=$enable_modules;
20430 else
20431   enable_modules=no
20432 fi
20433
20434 if test "x$enable_modules" = "xyes"; then
20435   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20437 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20438   $as_echo_n "(cached) " >&6
20439 else
20440   ac_check_lib_save_LIBS=$LIBS
20441 LIBS="-ldl  $LIBS"
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448
20449 /* Override any GCC internal prototype to avoid an error.
20450    Use char because int might match the return type of a GCC
20451    builtin and then its argument prototype would still apply.  */
20452 #ifdef __cplusplus
20453 extern "C"
20454 #endif
20455 char dlopen ();
20456 int
20457 main ()
20458 {
20459 return dlopen ();
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20471 $as_echo "$ac_try_echo") >&5
20472   (eval "$ac_link") 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } && {
20479          test -z "$ac_c_werror_flag" ||
20480          test ! -s conftest.err
20481        } && test -s conftest$ac_exeext && {
20482          test "$cross_compiling" = yes ||
20483          $as_test_x conftest$ac_exeext
20484        }; then
20485   ac_cv_lib_dl_dlopen=yes
20486 else
20487   $as_echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         ac_cv_lib_dl_dlopen=no
20491 fi
20492
20493 rm -rf conftest.dSYM
20494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20495       conftest$ac_exeext conftest.$ac_ext
20496 LIBS=$ac_check_lib_save_LIBS
20497 fi
20498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20500 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
20501   DLOPEN_LIBS=-ldl
20502 else
20503   enable_modules=no
20504 fi
20505
20506
20507 fi
20508 if test "x$enable_modules" = "xyes"; then
20509
20510 cat >>confdefs.h <<\_ACEOF
20511 #define USE_MODULES 1
20512 _ACEOF
20513
20514 fi
20515  if test "x$enable_modules" = "xyes"; then
20516   BUILD_MODULES_TRUE=
20517   BUILD_MODULES_FALSE='#'
20518 else
20519   BUILD_MODULES_TRUE='#'
20520   BUILD_MODULES_FALSE=
20521 fi
20522
20523
20524 # Check whether --enable-visibility-hiding was given.
20525 if test "${enable_visibility_hiding+set}" = set; then
20526   enableval=$enable_visibility_hiding;
20527 else
20528   enable_visibility_hiding=no
20529
20530 fi
20531
20532 if test "x$enable_visibility_hiding" = xyes ; then
20533   CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
20534 fi
20535
20536 # Check whether --enable-dialogs was given.
20537 if test "${enable_dialogs+set}" = set; then
20538   enableval=$enable_dialogs;
20539 else
20540   enable_dialogs=yes
20541 fi
20542
20543 if test "x$enable_dialogs" = "xyes"; then
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define ENABLE_DIALOGS 1
20547 _ACEOF
20548
20549 fi
20550
20551 # Check whether --enable-docs was given.
20552 if test "${enable_docs+set}" = set; then
20553   enableval=$enable_docs;
20554 else
20555   enable_docs=yes
20556 fi
20557
20558 if test "x$enable_docs" = "xyes"; then
20559   # Extract the first word of "xmlto", so it can be a program name with args.
20560 set dummy xmlto; ac_word=$2
20561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20562 $as_echo_n "checking for $ac_word... " >&6; }
20563 if test "${ac_cv_prog_XMLTO+set}" = set; then
20564   $as_echo_n "(cached) " >&6
20565 else
20566   if test -n "$XMLTO"; then
20567   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
20568 else
20569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570 for as_dir in $PATH
20571 do
20572   IFS=$as_save_IFS
20573   test -z "$as_dir" && as_dir=.
20574   for ac_exec_ext in '' $ac_executable_extensions; do
20575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20576     ac_cv_prog_XMLTO="xmlto"
20577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20578     break 2
20579   fi
20580 done
20581 done
20582 IFS=$as_save_IFS
20583
20584 fi
20585 fi
20586 XMLTO=$ac_cv_prog_XMLTO
20587 if test -n "$XMLTO"; then
20588   { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
20589 $as_echo "$XMLTO" >&6; }
20590 else
20591   { $as_echo "$as_me:$LINENO: result: no" >&5
20592 $as_echo "no" >&6; }
20593 fi
20594
20595
20596   if test "x$XMLTO" = "x"; then
20597     enable_docs=no
20598   fi
20599 fi
20600  if test "x$XMLTO" != "x"; then
20601   HAVE_XMLTO_TRUE=
20602   HAVE_XMLTO_FALSE='#'
20603 else
20604   HAVE_XMLTO_TRUE='#'
20605   HAVE_XMLTO_FALSE=
20606 fi
20607
20608
20609 # Check whether --enable-gcc-cpp was given.
20610 if test "${enable_gcc_cpp+set}" = set; then
20611   enableval=$enable_gcc_cpp;
20612 else
20613   enable_gcc_cpp=no
20614 fi
20615
20616 if test "x$enable_gcc_cpp" = "xyes"; then
20617   CC="g++"
20618   CPPFLAGS="$CPPFLAGS -x c++"
20619
20620
20621
20622   # Check whether --enable-werror was given.
20623 if test "${enable_werror+set}" = set; then
20624   enableval=$enable_werror;
20625 else
20626   enable_werror=no
20627 fi
20628
20629
20630   if test "x$GCC" = "xyes"; then
20631     CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings"
20632
20633
20634     if test "x$enable_werror" = "xyes"; then
20635       CWARNFLAGS="$CWARNFLAGS -Werror"
20636     fi
20637   fi
20638
20639
20640 else
20641
20642
20643
20644   # Check whether --enable-werror was given.
20645 if test "${enable_werror+set}" = set; then
20646   enableval=$enable_werror;
20647 else
20648   enable_werror=no
20649 fi
20650
20651
20652   if test "x$GCC" = "xyes"; then
20653     CWARNFLAGS="-W -Wall -Waggregate-return -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings"
20654
20655       CWARNFLAGS="$CWARNFLAGS -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes"
20656
20657
20658     if test "x$enable_werror" = "xyes"; then
20659       CWARNFLAGS="$CWARNFLAGS -Werror"
20660     fi
20661   fi
20662
20663
20664 fi
20665
20666
20667 cat >>confdefs.h <<\_ACEOF
20668 #define _GNU_SOURCE 1
20669 _ACEOF
20670
20671
20672
20673 cat >>confdefs.h <<\_ACEOF
20674 #define USE_EXT_INIT_WIN 1
20675 _ACEOF
20676
20677
20678
20679 cat >>confdefs.h <<\_ACEOF
20680 #define ENABLE_DESKRAY 0
20681 _ACEOF
20682
20683
20684
20685 cat >>confdefs.h <<\_ACEOF
20686 #define ENABLE_TRANSPARENCY 1
20687 _ACEOF
20688
20689
20690 cat >>confdefs.h <<\_ACEOF
20691 #define ENABLE_THEME_TRANSPARENCY 1
20692 _ACEOF
20693
20694
20695
20696
20697 ac_config_headers="$ac_config_headers config.h"
20698
20699
20700 ac_config_files="$ac_config_files Makefile src/Makefile dox/Makefile dox/E-docs/Makefile eesh/Makefile epp/Makefile lib/Makefile config/Makefile config/pix/Makefile themes/Makefile fonts/Makefile scripts/Makefile misc/Makefile docs/Makefile po/Makefile.in e16.spec"
20701
20702 cat >confcache <<\_ACEOF
20703 # This file is a shell script that caches the results of configure
20704 # tests run on this system so they can be shared between configure
20705 # scripts and configure runs, see configure's option --config-cache.
20706 # It is not useful on other systems.  If it contains results you don't
20707 # want to keep, you may remove or edit it.
20708 #
20709 # config.status only pays attention to the cache file if you give it
20710 # the --recheck option to rerun configure.
20711 #
20712 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20713 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20714 # following values.
20715
20716 _ACEOF
20717
20718 # The following way of writing the cache mishandles newlines in values,
20719 # but we know of no workaround that is simple, portable, and efficient.
20720 # So, we kill variables containing newlines.
20721 # Ultrix sh set writes to stderr and can't be redirected directly,
20722 # and sets the high bit in the cache file unless we assign to the vars.
20723 (
20724   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20725     eval ac_val=\$$ac_var
20726     case $ac_val in #(
20727     *${as_nl}*)
20728       case $ac_var in #(
20729       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20731       esac
20732       case $ac_var in #(
20733       _ | IFS | as_nl) ;; #(
20734       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20735       *) $as_unset $ac_var ;;
20736       esac ;;
20737     esac
20738   done
20739
20740   (set) 2>&1 |
20741     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20742     *${as_nl}ac_space=\ *)
20743       # `set' does not quote correctly, so add quotes (double-quote
20744       # substitution turns \\\\ into \\, and sed turns \\ into \).
20745       sed -n \
20746         "s/'/'\\\\''/g;
20747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20748       ;; #(
20749     *)
20750       # `set' quotes correctly as required by POSIX, so do not add quotes.
20751       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20752       ;;
20753     esac |
20754     sort
20755 ) |
20756   sed '
20757      /^ac_cv_env_/b end
20758      t clear
20759      :clear
20760      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20761      t end
20762      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20763      :end' >>confcache
20764 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20765   if test -w "$cache_file"; then
20766     test "x$cache_file" != "x/dev/null" &&
20767       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20768 $as_echo "$as_me: updating cache $cache_file" >&6;}
20769     cat confcache >$cache_file
20770   else
20771     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20772 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20773   fi
20774 fi
20775 rm -f confcache
20776
20777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20778 # Let make expand exec_prefix.
20779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20780
20781 DEFS=-DHAVE_CONFIG_H
20782
20783 ac_libobjs=
20784 ac_ltlibobjs=
20785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20786   # 1. Remove the extension, and $U if already installed.
20787   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20788   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20789   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20790   #    will be set to the directory where LIBOBJS objects are built.
20791   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20792   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20793 done
20794 LIBOBJS=$ac_libobjs
20795
20796 LTLIBOBJS=$ac_ltlibobjs
20797
20798
20799 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20800   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20801 Usually this means the macro was only invoked conditionally." >&5
20802 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20803 Usually this means the macro was only invoked conditionally." >&2;}
20804    { (exit 1); exit 1; }; }
20805 fi
20806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20807   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20808 Usually this means the macro was only invoked conditionally." >&5
20809 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20810 Usually this means the macro was only invoked conditionally." >&2;}
20811    { (exit 1); exit 1; }; }
20812 fi
20813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20814   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20815 Usually this means the macro was only invoked conditionally." >&5
20816 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20817 Usually this means the macro was only invoked conditionally." >&2;}
20818    { (exit 1); exit 1; }; }
20819 fi
20820
20821 if test -z "${USE_ESNPRINTF_TRUE}" && test -z "${USE_ESNPRINTF_FALSE}"; then
20822   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ESNPRINTF\" was never defined.
20823 Usually this means the macro was only invoked conditionally." >&5
20824 $as_echo "$as_me: error: conditional \"USE_ESNPRINTF\" was never defined.
20825 Usually this means the macro was only invoked conditionally." >&2;}
20826    { (exit 1); exit 1; }; }
20827 fi
20828 if test -z "${ENABLE_GNOME_TRUE}" && test -z "${ENABLE_GNOME_FALSE}"; then
20829   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GNOME\" was never defined.
20830 Usually this means the macro was only invoked conditionally." >&5
20831 $as_echo "$as_me: error: conditional \"ENABLE_GNOME\" was never defined.
20832 Usually this means the macro was only invoked conditionally." >&2;}
20833    { (exit 1); exit 1; }; }
20834 fi
20835 if test -z "${USE_LIBPA_TRUE}" && test -z "${USE_LIBPA_FALSE}"; then
20836   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBPA\" was never defined.
20837 Usually this means the macro was only invoked conditionally." >&5
20838 $as_echo "$as_me: error: conditional \"USE_LIBPA\" was never defined.
20839 Usually this means the macro was only invoked conditionally." >&2;}
20840    { (exit 1); exit 1; }; }
20841 fi
20842 if test -z "${USE_LIBESD_TRUE}" && test -z "${USE_LIBESD_FALSE}"; then
20843   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBESD\" was never defined.
20844 Usually this means the macro was only invoked conditionally." >&5
20845 $as_echo "$as_me: error: conditional \"USE_LIBESD\" was never defined.
20846 Usually this means the macro was only invoked conditionally." >&2;}
20847    { (exit 1); exit 1; }; }
20848 fi
20849 if test -z "${USE_LIBPANGO_TRUE}" && test -z "${USE_LIBPANGO_FALSE}"; then
20850   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBPANGO\" was never defined.
20851 Usually this means the macro was only invoked conditionally." >&5
20852 $as_echo "$as_me: error: conditional \"USE_LIBPANGO\" was never defined.
20853 Usually this means the macro was only invoked conditionally." >&2;}
20854    { (exit 1); exit 1; }; }
20855 fi
20856 if test -z "${USE_LIBXFT_TRUE}" && test -z "${USE_LIBXFT_FALSE}"; then
20857   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBXFT\" was never defined.
20858 Usually this means the macro was only invoked conditionally." >&5
20859 $as_echo "$as_me: error: conditional \"USE_LIBXFT\" was never defined.
20860 Usually this means the macro was only invoked conditionally." >&2;}
20861    { (exit 1); exit 1; }; }
20862 fi
20863 if test -z "${ENABLE_GLX_TRUE}" && test -z "${ENABLE_GLX_FALSE}"; then
20864   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GLX\" was never defined.
20865 Usually this means the macro was only invoked conditionally." >&5
20866 $as_echo "$as_me: error: conditional \"ENABLE_GLX\" was never defined.
20867 Usually this means the macro was only invoked conditionally." >&2;}
20868    { (exit 1); exit 1; }; }
20869 fi
20870 if test -z "${ENABLE_COMPOSITE_TRUE}" && test -z "${ENABLE_COMPOSITE_FALSE}"; then
20871   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_COMPOSITE\" was never defined.
20872 Usually this means the macro was only invoked conditionally." >&5
20873 $as_echo "$as_me: error: conditional \"ENABLE_COMPOSITE\" was never defined.
20874 Usually this means the macro was only invoked conditionally." >&2;}
20875    { (exit 1); exit 1; }; }
20876 fi
20877 if test -z "${ENABLE_DBUS_TRUE}" && test -z "${ENABLE_DBUS_FALSE}"; then
20878   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_DBUS\" was never defined.
20879 Usually this means the macro was only invoked conditionally." >&5
20880 $as_echo "$as_me: error: conditional \"ENABLE_DBUS\" was never defined.
20881 Usually this means the macro was only invoked conditionally." >&2;}
20882    { (exit 1); exit 1; }; }
20883 fi
20884 if test -z "${BUILD_ROOTHACKLIB_TRUE}" && test -z "${BUILD_ROOTHACKLIB_FALSE}"; then
20885   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ROOTHACKLIB\" was never defined.
20886 Usually this means the macro was only invoked conditionally." >&5
20887 $as_echo "$as_me: error: conditional \"BUILD_ROOTHACKLIB\" was never defined.
20888 Usually this means the macro was only invoked conditionally." >&2;}
20889    { (exit 1); exit 1; }; }
20890 fi
20891 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
20892   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MODULES\" was never defined.
20893 Usually this means the macro was only invoked conditionally." >&5
20894 $as_echo "$as_me: error: conditional \"BUILD_MODULES\" was never defined.
20895 Usually this means the macro was only invoked conditionally." >&2;}
20896    { (exit 1); exit 1; }; }
20897 fi
20898 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
20899   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XMLTO\" was never defined.
20900 Usually this means the macro was only invoked conditionally." >&5
20901 $as_echo "$as_me: error: conditional \"HAVE_XMLTO\" was never defined.
20902 Usually this means the macro was only invoked conditionally." >&2;}
20903    { (exit 1); exit 1; }; }
20904 fi
20905
20906 : ${CONFIG_STATUS=./config.status}
20907 ac_write_fail=0
20908 ac_clean_files_save=$ac_clean_files
20909 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20910 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20911 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20912 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20913 #! $SHELL
20914 # Generated by $as_me.
20915 # Run this file to recreate the current configuration.
20916 # Compiler output produced by configure, useful for debugging
20917 # configure, is in config.log if it exists.
20918
20919 debug=false
20920 ac_cs_recheck=false
20921 ac_cs_silent=false
20922 SHELL=\${CONFIG_SHELL-$SHELL}
20923 _ACEOF
20924
20925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20926 ## --------------------- ##
20927 ## M4sh Initialization.  ##
20928 ## --------------------- ##
20929
20930 # Be more Bourne compatible
20931 DUALCASE=1; export DUALCASE # for MKS sh
20932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20933   emulate sh
20934   NULLCMD=:
20935   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20936   # is contrary to our usage.  Disable this feature.
20937   alias -g '${1+"$@"}'='"$@"'
20938   setopt NO_GLOB_SUBST
20939 else
20940   case `(set -o) 2>/dev/null` in
20941   *posix*) set -o posix ;;
20942 esac
20943
20944 fi
20945
20946
20947
20948
20949 # PATH needs CR
20950 # Avoid depending upon Character Ranges.
20951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20954 as_cr_digits='0123456789'
20955 as_cr_alnum=$as_cr_Letters$as_cr_digits
20956
20957 as_nl='
20958 '
20959 export as_nl
20960 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20961 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20962 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20963 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20964 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20965   as_echo='printf %s\n'
20966   as_echo_n='printf %s'
20967 else
20968   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20969     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20970     as_echo_n='/usr/ucb/echo -n'
20971   else
20972     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20973     as_echo_n_body='eval
20974       arg=$1;
20975       case $arg in
20976       *"$as_nl"*)
20977         expr "X$arg" : "X\\(.*\\)$as_nl";
20978         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20979       esac;
20980       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20981     '
20982     export as_echo_n_body
20983     as_echo_n='sh -c $as_echo_n_body as_echo'
20984   fi
20985   export as_echo_body
20986   as_echo='sh -c $as_echo_body as_echo'
20987 fi
20988
20989 # The user is always right.
20990 if test "${PATH_SEPARATOR+set}" != set; then
20991   PATH_SEPARATOR=:
20992   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20993     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20994       PATH_SEPARATOR=';'
20995   }
20996 fi
20997
20998 # Support unset when possible.
20999 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21000   as_unset=unset
21001 else
21002   as_unset=false
21003 fi
21004
21005
21006 # IFS
21007 # We need space, tab and new line, in precisely that order.  Quoting is
21008 # there to prevent editors from complaining about space-tab.
21009 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21010 # splitting by setting IFS to empty value.)
21011 IFS=" ""        $as_nl"
21012
21013 # Find who we are.  Look in the path if we contain no directory separator.
21014 case $0 in
21015   *[\\/]* ) as_myself=$0 ;;
21016   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21017 for as_dir in $PATH
21018 do
21019   IFS=$as_save_IFS
21020   test -z "$as_dir" && as_dir=.
21021   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21022 done
21023 IFS=$as_save_IFS
21024
21025      ;;
21026 esac
21027 # We did not find ourselves, most probably we were run as `sh COMMAND'
21028 # in which case we are not to be found in the path.
21029 if test "x$as_myself" = x; then
21030   as_myself=$0
21031 fi
21032 if test ! -f "$as_myself"; then
21033   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21034   { (exit 1); exit 1; }
21035 fi
21036
21037 # Work around bugs in pre-3.0 UWIN ksh.
21038 for as_var in ENV MAIL MAILPATH
21039 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21040 done
21041 PS1='$ '
21042 PS2='> '
21043 PS4='+ '
21044
21045 # NLS nuisances.
21046 LC_ALL=C
21047 export LC_ALL
21048 LANGUAGE=C
21049 export LANGUAGE
21050
21051 # Required to use basename.
21052 if expr a : '\(a\)' >/dev/null 2>&1 &&
21053    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21054   as_expr=expr
21055 else
21056   as_expr=false
21057 fi
21058
21059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21060   as_basename=basename
21061 else
21062   as_basename=false
21063 fi
21064
21065
21066 # Name of the executable.
21067 as_me=`$as_basename -- "$0" ||
21068 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21069          X"$0" : 'X\(//\)$' \| \
21070          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21071 $as_echo X/"$0" |
21072     sed '/^.*\/\([^/][^/]*\)\/*$/{
21073             s//\1/
21074             q
21075           }
21076           /^X\/\(\/\/\)$/{
21077             s//\1/
21078             q
21079           }
21080           /^X\/\(\/\).*/{
21081             s//\1/
21082             q
21083           }
21084           s/.*/./; q'`
21085
21086 # CDPATH.
21087 $as_unset CDPATH
21088
21089
21090
21091   as_lineno_1=$LINENO
21092   as_lineno_2=$LINENO
21093   test "x$as_lineno_1" != "x$as_lineno_2" &&
21094   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21095
21096   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21097   # uniformly replaced by the line number.  The first 'sed' inserts a
21098   # line-number line after each line using $LINENO; the second 'sed'
21099   # does the real work.  The second script uses 'N' to pair each
21100   # line-number line with the line containing $LINENO, and appends
21101   # trailing '-' during substitution so that $LINENO is not a special
21102   # case at line end.
21103   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21104   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21105   # E. McMahon (1931-1989) for sed's syntax.  :-)
21106   sed -n '
21107     p
21108     /[$]LINENO/=
21109   ' <$as_myself |
21110     sed '
21111       s/[$]LINENO.*/&-/
21112       t lineno
21113       b
21114       :lineno
21115       N
21116       :loop
21117       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21118       t loop
21119       s/-\n.*//
21120     ' >$as_me.lineno &&
21121   chmod +x "$as_me.lineno" ||
21122     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21123    { (exit 1); exit 1; }; }
21124
21125   # Don't try to exec as it changes $[0], causing all sort of problems
21126   # (the dirname of $[0] is not the place where we might find the
21127   # original and so on.  Autoconf is especially sensitive to this).
21128   . "./$as_me.lineno"
21129   # Exit status is that of the last command.
21130   exit
21131 }
21132
21133
21134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21135   as_dirname=dirname
21136 else
21137   as_dirname=false
21138 fi
21139
21140 ECHO_C= ECHO_N= ECHO_T=
21141 case `echo -n x` in
21142 -n*)
21143   case `echo 'x\c'` in
21144   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21145   *)   ECHO_C='\c';;
21146   esac;;
21147 *)
21148   ECHO_N='-n';;
21149 esac
21150 if expr a : '\(a\)' >/dev/null 2>&1 &&
21151    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21152   as_expr=expr
21153 else
21154   as_expr=false
21155 fi
21156
21157 rm -f conf$$ conf$$.exe conf$$.file
21158 if test -d conf$$.dir; then
21159   rm -f conf$$.dir/conf$$.file
21160 else
21161   rm -f conf$$.dir
21162   mkdir conf$$.dir 2>/dev/null
21163 fi
21164 if (echo >conf$$.file) 2>/dev/null; then
21165   if ln -s conf$$.file conf$$ 2>/dev/null; then
21166     as_ln_s='ln -s'
21167     # ... but there are two gotchas:
21168     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21169     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21170     # In both cases, we have to default to `cp -p'.
21171     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21172       as_ln_s='cp -p'
21173   elif ln conf$$.file conf$$ 2>/dev/null; then
21174     as_ln_s=ln
21175   else
21176     as_ln_s='cp -p'
21177   fi
21178 else
21179   as_ln_s='cp -p'
21180 fi
21181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21182 rmdir conf$$.dir 2>/dev/null
21183
21184 if mkdir -p . 2>/dev/null; then
21185   as_mkdir_p=:
21186 else
21187   test -d ./-p && rmdir ./-p
21188   as_mkdir_p=false
21189 fi
21190
21191 if test -x / >/dev/null 2>&1; then
21192   as_test_x='test -x'
21193 else
21194   if ls -dL / >/dev/null 2>&1; then
21195     as_ls_L_option=L
21196   else
21197     as_ls_L_option=
21198   fi
21199   as_test_x='
21200     eval sh -c '\''
21201       if test -d "$1"; then
21202         test -d "$1/.";
21203       else
21204         case $1 in
21205         -*)set "./$1";;
21206         esac;
21207         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21208         ???[sx]*):;;*)false;;esac;fi
21209     '\'' sh
21210   '
21211 fi
21212 as_executable_p=$as_test_x
21213
21214 # Sed expression to map a string onto a valid CPP name.
21215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21216
21217 # Sed expression to map a string onto a valid variable name.
21218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21219
21220
21221 exec 6>&1
21222
21223 # Save the log message, to keep $[0] and so on meaningful, and to
21224 # report actual input values of CONFIG_FILES etc. instead of their
21225 # values after options handling.
21226 ac_log="
21227 This file was extended by e16 $as_me 1.0.0, which was
21228 generated by GNU Autoconf 2.63.  Invocation command line was
21229
21230   CONFIG_FILES    = $CONFIG_FILES
21231   CONFIG_HEADERS  = $CONFIG_HEADERS
21232   CONFIG_LINKS    = $CONFIG_LINKS
21233   CONFIG_COMMANDS = $CONFIG_COMMANDS
21234   $ $0 $@
21235
21236 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21237 "
21238
21239 _ACEOF
21240
21241 case $ac_config_files in *"
21242 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21243 esac
21244
21245 case $ac_config_headers in *"
21246 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21247 esac
21248
21249
21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21251 # Files that config.status was made for.
21252 config_files="$ac_config_files"
21253 config_headers="$ac_config_headers"
21254 config_commands="$ac_config_commands"
21255
21256 _ACEOF
21257
21258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21259 ac_cs_usage="\
21260 \`$as_me' instantiates files from templates according to the
21261 current configuration.
21262
21263 Usage: $0 [OPTION]... [FILE]...
21264
21265   -h, --help       print this help, then exit
21266   -V, --version    print version number and configuration settings, then exit
21267   -q, --quiet, --silent
21268                    do not print progress messages
21269   -d, --debug      don't remove temporary files
21270       --recheck    update $as_me by reconfiguring in the same conditions
21271       --file=FILE[:TEMPLATE]
21272                    instantiate the configuration file FILE
21273       --header=FILE[:TEMPLATE]
21274                    instantiate the configuration header FILE
21275
21276 Configuration files:
21277 $config_files
21278
21279 Configuration headers:
21280 $config_headers
21281
21282 Configuration commands:
21283 $config_commands
21284
21285 Report bugs to <bug-autoconf@gnu.org>."
21286
21287 _ACEOF
21288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21289 ac_cs_version="\\
21290 e16 config.status 1.0.0
21291 configured by $0, generated by GNU Autoconf 2.63,
21292   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21293
21294 Copyright (C) 2008 Free Software Foundation, Inc.
21295 This config.status script is free software; the Free Software Foundation
21296 gives unlimited permission to copy, distribute and modify it."
21297
21298 ac_pwd='$ac_pwd'
21299 srcdir='$srcdir'
21300 INSTALL='$INSTALL'
21301 MKDIR_P='$MKDIR_P'
21302 AWK='$AWK'
21303 test -n "\$AWK" || AWK=awk
21304 _ACEOF
21305
21306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21307 # The default lists apply if the user does not specify any file.
21308 ac_need_defaults=:
21309 while test $# != 0
21310 do
21311   case $1 in
21312   --*=*)
21313     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21314     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21315     ac_shift=:
21316     ;;
21317   *)
21318     ac_option=$1
21319     ac_optarg=$2
21320     ac_shift=shift
21321     ;;
21322   esac
21323
21324   case $ac_option in
21325   # Handling of the options.
21326   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21327     ac_cs_recheck=: ;;
21328   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21329     $as_echo "$ac_cs_version"; exit ;;
21330   --debug | --debu | --deb | --de | --d | -d )
21331     debug=: ;;
21332   --file | --fil | --fi | --f )
21333     $ac_shift
21334     case $ac_optarg in
21335     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21336     esac
21337     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21338     ac_need_defaults=false;;
21339   --header | --heade | --head | --hea )
21340     $ac_shift
21341     case $ac_optarg in
21342     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21343     esac
21344     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21345     ac_need_defaults=false;;
21346   --he | --h)
21347     # Conflict between --help and --header
21348     { $as_echo "$as_me: error: ambiguous option: $1
21349 Try \`$0 --help' for more information." >&2
21350    { (exit 1); exit 1; }; };;
21351   --help | --hel | -h )
21352     $as_echo "$ac_cs_usage"; exit ;;
21353   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21354   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21355     ac_cs_silent=: ;;
21356
21357   # This is an error.
21358   -*) { $as_echo "$as_me: error: unrecognized option: $1
21359 Try \`$0 --help' for more information." >&2
21360    { (exit 1); exit 1; }; } ;;
21361
21362   *) ac_config_targets="$ac_config_targets $1"
21363      ac_need_defaults=false ;;
21364
21365   esac
21366   shift
21367 done
21368
21369 ac_configure_extra_args=
21370
21371 if $ac_cs_silent; then
21372   exec 6>/dev/null
21373   ac_configure_extra_args="$ac_configure_extra_args --silent"
21374 fi
21375
21376 _ACEOF
21377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21378 if \$ac_cs_recheck; then
21379   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21380   shift
21381   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21382   CONFIG_SHELL='$SHELL'
21383   export CONFIG_SHELL
21384   exec "\$@"
21385 fi
21386
21387 _ACEOF
21388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21389 exec 5>>config.log
21390 {
21391   echo
21392   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21393 ## Running $as_me. ##
21394 _ASBOX
21395   $as_echo "$ac_log"
21396 } >&5
21397
21398 _ACEOF
21399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21400 #
21401 # INIT-COMMANDS
21402 #
21403 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21404 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21405     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21406     # from automake.
21407     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21408     # Capture the value of LINGUAS because we need it to compute CATALOGS.
21409     LINGUAS="${LINGUAS-%UNSET%}"
21410
21411
21412 _ACEOF
21413
21414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21415
21416 # Handling of arguments.
21417 for ac_config_target in $ac_config_targets
21418 do
21419   case $ac_config_target in
21420     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21421     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21422     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21423     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21424     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21425     "dox/Makefile") CONFIG_FILES="$CONFIG_FILES dox/Makefile" ;;
21426     "dox/E-docs/Makefile") CONFIG_FILES="$CONFIG_FILES dox/E-docs/Makefile" ;;
21427     "eesh/Makefile") CONFIG_FILES="$CONFIG_FILES eesh/Makefile" ;;
21428     "epp/Makefile") CONFIG_FILES="$CONFIG_FILES epp/Makefile" ;;
21429     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21430     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
21431     "config/pix/Makefile") CONFIG_FILES="$CONFIG_FILES config/pix/Makefile" ;;
21432     "themes/Makefile") CONFIG_FILES="$CONFIG_FILES themes/Makefile" ;;
21433     "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21434     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21435     "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
21436     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21437     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21438     "e16.spec") CONFIG_FILES="$CONFIG_FILES e16.spec" ;;
21439
21440   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21441 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21442    { (exit 1); exit 1; }; };;
21443   esac
21444 done
21445
21446
21447 # If the user did not use the arguments to specify the items to instantiate,
21448 # then the envvar interface is used.  Set only those that are not.
21449 # We use the long form for the default assignment because of an extremely
21450 # bizarre bug on SunOS 4.1.3.
21451 if $ac_need_defaults; then
21452   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21453   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21454   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21455 fi
21456
21457 # Have a temporary directory for convenience.  Make it in the build tree
21458 # simply because there is no reason against having it here, and in addition,
21459 # creating and moving files from /tmp can sometimes cause problems.
21460 # Hook for its removal unless debugging.
21461 # Note that there is a small window in which the directory will not be cleaned:
21462 # after its creation but before its name has been assigned to `$tmp'.
21463 $debug ||
21464 {
21465   tmp=
21466   trap 'exit_status=$?
21467   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21468 ' 0
21469   trap '{ (exit 1); exit 1; }' 1 2 13 15
21470 }
21471 # Create a (secure) tmp directory for tmp files.
21472
21473 {
21474   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21475   test -n "$tmp" && test -d "$tmp"
21476 }  ||
21477 {
21478   tmp=./conf$$-$RANDOM
21479   (umask 077 && mkdir "$tmp")
21480 } ||
21481 {
21482    $as_echo "$as_me: cannot create a temporary directory in ." >&2
21483    { (exit 1); exit 1; }
21484 }
21485
21486 # Set up the scripts for CONFIG_FILES section.
21487 # No need to generate them if there are no CONFIG_FILES.
21488 # This happens for instance with `./config.status config.h'.
21489 if test -n "$CONFIG_FILES"; then
21490
21491
21492 ac_cr='\r'
21493 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21494 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21495   ac_cs_awk_cr='\\r'
21496 else
21497   ac_cs_awk_cr=$ac_cr
21498 fi
21499
21500 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21501 _ACEOF
21502
21503
21504 {
21505   echo "cat >conf$$subs.awk <<_ACEOF" &&
21506   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21507   echo "_ACEOF"
21508 } >conf$$subs.sh ||
21509   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21510 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21511    { (exit 1); exit 1; }; }
21512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21513 ac_delim='%!_!# '
21514 for ac_last_try in false false false false false :; do
21515   . ./conf$$subs.sh ||
21516     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21517 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21518    { (exit 1); exit 1; }; }
21519
21520   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21521   if test $ac_delim_n = $ac_delim_num; then
21522     break
21523   elif $ac_last_try; then
21524     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21525 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21526    { (exit 1); exit 1; }; }
21527   else
21528     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21529   fi
21530 done
21531 rm -f conf$$subs.sh
21532
21533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21534 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21535 _ACEOF
21536 sed -n '
21537 h
21538 s/^/S["/; s/!.*/"]=/
21539 p
21540 g
21541 s/^[^!]*!//
21542 :repl
21543 t repl
21544 s/'"$ac_delim"'$//
21545 t delim
21546 :nl
21547 h
21548 s/\(.\{148\}\).*/\1/
21549 t more1
21550 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21551 p
21552 n
21553 b repl
21554 :more1
21555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21556 p
21557 g
21558 s/.\{148\}//
21559 t nl
21560 :delim
21561 h
21562 s/\(.\{148\}\).*/\1/
21563 t more2
21564 s/["\\]/\\&/g; s/^/"/; s/$/"/
21565 p
21566 b
21567 :more2
21568 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21569 p
21570 g
21571 s/.\{148\}//
21572 t delim
21573 ' <conf$$subs.awk | sed '
21574 /^[^""]/{
21575   N
21576   s/\n//
21577 }
21578 ' >>$CONFIG_STATUS || ac_write_fail=1
21579 rm -f conf$$subs.awk
21580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581 _ACAWK
21582 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21583   for (key in S) S_is_set[key] = 1
21584   FS = "\a"
21585
21586 }
21587 {
21588   line = $ 0
21589   nfields = split(line, field, "@")
21590   substed = 0
21591   len = length(field[1])
21592   for (i = 2; i < nfields; i++) {
21593     key = field[i]
21594     keylen = length(key)
21595     if (S_is_set[key]) {
21596       value = S[key]
21597       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21598       len += length(value) + length(field[++i])
21599       substed = 1
21600     } else
21601       len += 1 + keylen
21602   }
21603
21604   print line
21605 }
21606
21607 _ACAWK
21608 _ACEOF
21609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21610 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21611   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21612 else
21613   cat
21614 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21615   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21616 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21617    { (exit 1); exit 1; }; }
21618 _ACEOF
21619
21620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21622 # trailing colons and then remove the whole line if VPATH becomes empty
21623 # (actually we leave an empty line to preserve line numbers).
21624 if test "x$srcdir" = x.; then
21625   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21626 s/:*\$(srcdir):*/:/
21627 s/:*\${srcdir}:*/:/
21628 s/:*@srcdir@:*/:/
21629 s/^\([^=]*=[     ]*\):*/\1/
21630 s/:*$//
21631 s/^[^=]*=[       ]*$//
21632 }'
21633 fi
21634
21635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21636 fi # test -n "$CONFIG_FILES"
21637
21638 # Set up the scripts for CONFIG_HEADERS section.
21639 # No need to generate them if there are no CONFIG_HEADERS.
21640 # This happens for instance with `./config.status Makefile'.
21641 if test -n "$CONFIG_HEADERS"; then
21642 cat >"$tmp/defines.awk" <<\_ACAWK ||
21643 BEGIN {
21644 _ACEOF
21645
21646 # Transform confdefs.h into an awk script `defines.awk', embedded as
21647 # here-document in config.status, that substitutes the proper values into
21648 # config.h.in to produce config.h.
21649
21650 # Create a delimiter string that does not exist in confdefs.h, to ease
21651 # handling of long lines.
21652 ac_delim='%!_!# '
21653 for ac_last_try in false false :; do
21654   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21655   if test -z "$ac_t"; then
21656     break
21657   elif $ac_last_try; then
21658     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21659 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21660    { (exit 1); exit 1; }; }
21661   else
21662     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21663   fi
21664 done
21665
21666 # For the awk script, D is an array of macro values keyed by name,
21667 # likewise P contains macro parameters if any.  Preserve backslash
21668 # newline sequences.
21669
21670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21671 sed -n '
21672 s/.\{148\}/&'"$ac_delim"'/g
21673 t rset
21674 :rset
21675 s/^[     ]*#[    ]*define[       ][      ]*/ /
21676 t def
21677 d
21678 :def
21679 s/\\$//
21680 t bsnl
21681 s/["\\]/\\&/g
21682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21683 D["\1"]=" \3"/p
21684 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21685 d
21686 :bsnl
21687 s/["\\]/\\&/g
21688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21689 D["\1"]=" \3\\\\\\n"\\/p
21690 t cont
21691 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21692 t cont
21693 d
21694 :cont
21695 n
21696 s/.\{148\}/&'"$ac_delim"'/g
21697 t clear
21698 :clear
21699 s/\\$//
21700 t bsnlc
21701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21702 d
21703 :bsnlc
21704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21705 b cont
21706 ' <confdefs.h | sed '
21707 s/'"$ac_delim"'/"\\\
21708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21709
21710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711   for (key in D) D_is_set[key] = 1
21712   FS = "\a"
21713 }
21714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21715   line = \$ 0
21716   split(line, arg, " ")
21717   if (arg[1] == "#") {
21718     defundef = arg[2]
21719     mac1 = arg[3]
21720   } else {
21721     defundef = substr(arg[1], 2)
21722     mac1 = arg[2]
21723   }
21724   split(mac1, mac2, "(") #)
21725   macro = mac2[1]
21726   prefix = substr(line, 1, index(line, defundef) - 1)
21727   if (D_is_set[macro]) {
21728     # Preserve the white space surrounding the "#".
21729     print prefix "define", macro P[macro] D[macro]
21730     next
21731   } else {
21732     # Replace #undef with comments.  This is necessary, for example,
21733     # in the case of _POSIX_SOURCE, which is predefined and required
21734     # on some systems where configure will not decide to define it.
21735     if (defundef == "undef") {
21736       print "/*", prefix defundef, macro, "*/"
21737       next
21738     }
21739   }
21740 }
21741 { print }
21742 _ACAWK
21743 _ACEOF
21744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21745   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21746 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21747    { (exit 1); exit 1; }; }
21748 fi # test -n "$CONFIG_HEADERS"
21749
21750
21751 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21752 shift
21753 for ac_tag
21754 do
21755   case $ac_tag in
21756   :[FHLC]) ac_mode=$ac_tag; continue;;
21757   esac
21758   case $ac_mode$ac_tag in
21759   :[FHL]*:*);;
21760   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21761 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21762    { (exit 1); exit 1; }; };;
21763   :[FH]-) ac_tag=-:-;;
21764   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21765   esac
21766   ac_save_IFS=$IFS
21767   IFS=:
21768   set x $ac_tag
21769   IFS=$ac_save_IFS
21770   shift
21771   ac_file=$1
21772   shift
21773
21774   case $ac_mode in
21775   :L) ac_source=$1;;
21776   :[FH])
21777     ac_file_inputs=
21778     for ac_f
21779     do
21780       case $ac_f in
21781       -) ac_f="$tmp/stdin";;
21782       *) # Look for the file first in the build tree, then in the source tree
21783          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21784          # because $ac_f cannot contain `:'.
21785          test -f "$ac_f" ||
21786            case $ac_f in
21787            [\\/$]*) false;;
21788            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21789            esac ||
21790            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21791 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21792    { (exit 1); exit 1; }; };;
21793       esac
21794       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21795       ac_file_inputs="$ac_file_inputs '$ac_f'"
21796     done
21797
21798     # Let's still pretend it is `configure' which instantiates (i.e., don't
21799     # use $as_me), people would be surprised to read:
21800     #    /* config.h.  Generated by config.status.  */
21801     configure_input='Generated from '`
21802           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21803         `' by configure.'
21804     if test x"$ac_file" != x-; then
21805       configure_input="$ac_file.  $configure_input"
21806       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21807 $as_echo "$as_me: creating $ac_file" >&6;}
21808     fi
21809     # Neutralize special characters interpreted by sed in replacement strings.
21810     case $configure_input in #(
21811     *\&* | *\|* | *\\* )
21812        ac_sed_conf_input=`$as_echo "$configure_input" |
21813        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21814     *) ac_sed_conf_input=$configure_input;;
21815     esac
21816
21817     case $ac_tag in
21818     *:-:* | *:-) cat >"$tmp/stdin" \
21819       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21820 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21821    { (exit 1); exit 1; }; } ;;
21822     esac
21823     ;;
21824   esac
21825
21826   ac_dir=`$as_dirname -- "$ac_file" ||
21827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21828          X"$ac_file" : 'X\(//\)[^/]' \| \
21829          X"$ac_file" : 'X\(//\)$' \| \
21830          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21831 $as_echo X"$ac_file" |
21832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21833             s//\1/
21834             q
21835           }
21836           /^X\(\/\/\)[^/].*/{
21837             s//\1/
21838             q
21839           }
21840           /^X\(\/\/\)$/{
21841             s//\1/
21842             q
21843           }
21844           /^X\(\/\).*/{
21845             s//\1/
21846             q
21847           }
21848           s/.*/./; q'`
21849   { as_dir="$ac_dir"
21850   case $as_dir in #(
21851   -*) as_dir=./$as_dir;;
21852   esac
21853   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21854     as_dirs=
21855     while :; do
21856       case $as_dir in #(
21857       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21858       *) as_qdir=$as_dir;;
21859       esac
21860       as_dirs="'$as_qdir' $as_dirs"
21861       as_dir=`$as_dirname -- "$as_dir" ||
21862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21863          X"$as_dir" : 'X\(//\)[^/]' \| \
21864          X"$as_dir" : 'X\(//\)$' \| \
21865          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21866 $as_echo X"$as_dir" |
21867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21868             s//\1/
21869             q
21870           }
21871           /^X\(\/\/\)[^/].*/{
21872             s//\1/
21873             q
21874           }
21875           /^X\(\/\/\)$/{
21876             s//\1/
21877             q
21878           }
21879           /^X\(\/\).*/{
21880             s//\1/
21881             q
21882           }
21883           s/.*/./; q'`
21884       test -d "$as_dir" && break
21885     done
21886     test -z "$as_dirs" || eval "mkdir $as_dirs"
21887   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21888 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21889    { (exit 1); exit 1; }; }; }
21890   ac_builddir=.
21891
21892 case "$ac_dir" in
21893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21894 *)
21895   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21896   # A ".." for each directory in $ac_dir_suffix.
21897   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21898   case $ac_top_builddir_sub in
21899   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21900   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21901   esac ;;
21902 esac
21903 ac_abs_top_builddir=$ac_pwd
21904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21905 # for backward compatibility:
21906 ac_top_builddir=$ac_top_build_prefix
21907
21908 case $srcdir in
21909   .)  # We are building in place.
21910     ac_srcdir=.
21911     ac_top_srcdir=$ac_top_builddir_sub
21912     ac_abs_top_srcdir=$ac_pwd ;;
21913   [\\/]* | ?:[\\/]* )  # Absolute name.
21914     ac_srcdir=$srcdir$ac_dir_suffix;
21915     ac_top_srcdir=$srcdir
21916     ac_abs_top_srcdir=$srcdir ;;
21917   *) # Relative name.
21918     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21919     ac_top_srcdir=$ac_top_build_prefix$srcdir
21920     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21921 esac
21922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21923
21924
21925   case $ac_mode in
21926   :F)
21927   #
21928   # CONFIG_FILE
21929   #
21930
21931   case $INSTALL in
21932   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21933   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21934   esac
21935   ac_MKDIR_P=$MKDIR_P
21936   case $MKDIR_P in
21937   [\\/$]* | ?:[\\/]* ) ;;
21938   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21939   esac
21940 _ACEOF
21941
21942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21943 # If the template does not know about datarootdir, expand it.
21944 # FIXME: This hack should be removed a few years after 2.60.
21945 ac_datarootdir_hack=; ac_datarootdir_seen=
21946
21947 ac_sed_dataroot='
21948 /datarootdir/ {
21949   p
21950   q
21951 }
21952 /@datadir@/p
21953 /@docdir@/p
21954 /@infodir@/p
21955 /@localedir@/p
21956 /@mandir@/p
21957 '
21958 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21959 *datarootdir*) ac_datarootdir_seen=no;;
21960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21961   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21962 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21963 _ACEOF
21964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21965   ac_datarootdir_hack='
21966   s&@datadir@&$datadir&g
21967   s&@docdir@&$docdir&g
21968   s&@infodir@&$infodir&g
21969   s&@localedir@&$localedir&g
21970   s&@mandir@&$mandir&g
21971     s&\\\${datarootdir}&$datarootdir&g' ;;
21972 esac
21973 _ACEOF
21974
21975 # Neutralize VPATH when `$srcdir' = `.'.
21976 # Shell code in configure.ac might set extrasub.
21977 # FIXME: do we really want to maintain this feature?
21978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21979 ac_sed_extra="$ac_vpsub
21980 $extrasub
21981 _ACEOF
21982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21983 :t
21984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21985 s|@configure_input@|$ac_sed_conf_input|;t t
21986 s&@top_builddir@&$ac_top_builddir_sub&;t t
21987 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21988 s&@srcdir@&$ac_srcdir&;t t
21989 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21990 s&@top_srcdir@&$ac_top_srcdir&;t t
21991 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21992 s&@builddir@&$ac_builddir&;t t
21993 s&@abs_builddir@&$ac_abs_builddir&;t t
21994 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21995 s&@INSTALL@&$ac_INSTALL&;t t
21996 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21997 $ac_datarootdir_hack
21998 "
21999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22000   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22001 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22002    { (exit 1); exit 1; }; }
22003
22004 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22005   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22006   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22007   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22008 which seems to be undefined.  Please make sure it is defined." >&5
22009 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22010 which seems to be undefined.  Please make sure it is defined." >&2;}
22011
22012   rm -f "$tmp/stdin"
22013   case $ac_file in
22014   -) cat "$tmp/out" && rm -f "$tmp/out";;
22015   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22016   esac \
22017   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22018 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22019    { (exit 1); exit 1; }; }
22020  ;;
22021   :H)
22022   #
22023   # CONFIG_HEADER
22024   #
22025   if test x"$ac_file" != x-; then
22026     {
22027       $as_echo "/* $configure_input  */" \
22028       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22029     } >"$tmp/config.h" \
22030       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22031 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22032    { (exit 1); exit 1; }; }
22033     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22034       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22035 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22036     else
22037       rm -f "$ac_file"
22038       mv "$tmp/config.h" "$ac_file" \
22039         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22040 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22041    { (exit 1); exit 1; }; }
22042     fi
22043   else
22044     $as_echo "/* $configure_input  */" \
22045       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22046       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22047 $as_echo "$as_me: error: could not create -" >&2;}
22048    { (exit 1); exit 1; }; }
22049   fi
22050 # Compute "$ac_file"'s index in $config_headers.
22051 _am_arg="$ac_file"
22052 _am_stamp_count=1
22053 for _am_header in $config_headers :; do
22054   case $_am_header in
22055     $_am_arg | $_am_arg:* )
22056       break ;;
22057     * )
22058       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22059   esac
22060 done
22061 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22062 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22063          X"$_am_arg" : 'X\(//\)[^/]' \| \
22064          X"$_am_arg" : 'X\(//\)$' \| \
22065          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22066 $as_echo X"$_am_arg" |
22067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22068             s//\1/
22069             q
22070           }
22071           /^X\(\/\/\)[^/].*/{
22072             s//\1/
22073             q
22074           }
22075           /^X\(\/\/\)$/{
22076             s//\1/
22077             q
22078           }
22079           /^X\(\/\).*/{
22080             s//\1/
22081             q
22082           }
22083           s/.*/./; q'`/stamp-h$_am_stamp_count
22084  ;;
22085
22086   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22087 $as_echo "$as_me: executing $ac_file commands" >&6;}
22088  ;;
22089   esac
22090
22091
22092   case $ac_file$ac_mode in
22093     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22094   # Strip MF so we end up with the name of the file.
22095   mf=`echo "$mf" | sed -e 's/:.*$//'`
22096   # Check whether this is an Automake generated Makefile or not.
22097   # We used to match only the files named `Makefile.in', but
22098   # some people rename them; so instead we look at the file content.
22099   # Grep'ing the first line is not enough: some people post-process
22100   # each Makefile.in and add a new line on top of each file to say so.
22101   # Grep'ing the whole file is not good either: AIX grep has a line
22102   # limit of 2048, but all sed's we know have understand at least 4000.
22103   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22104     dirpart=`$as_dirname -- "$mf" ||
22105 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22106          X"$mf" : 'X\(//\)[^/]' \| \
22107          X"$mf" : 'X\(//\)$' \| \
22108          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22109 $as_echo X"$mf" |
22110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22111             s//\1/
22112             q
22113           }
22114           /^X\(\/\/\)[^/].*/{
22115             s//\1/
22116             q
22117           }
22118           /^X\(\/\/\)$/{
22119             s//\1/
22120             q
22121           }
22122           /^X\(\/\).*/{
22123             s//\1/
22124             q
22125           }
22126           s/.*/./; q'`
22127   else
22128     continue
22129   fi
22130   # Extract the definition of DEPDIR, am__include, and am__quote
22131   # from the Makefile without running `make'.
22132   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22133   test -z "$DEPDIR" && continue
22134   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22135   test -z "am__include" && continue
22136   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22137   # When using ansi2knr, U may be empty or an underscore; expand it
22138   U=`sed -n 's/^U = //p' < "$mf"`
22139   # Find all dependency output files, they are included files with
22140   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22141   # simplest approach to changing $(DEPDIR) to its actual value in the
22142   # expansion.
22143   for file in `sed -n "
22144     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22145        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22146     # Make sure the directory exists.
22147     test -f "$dirpart/$file" && continue
22148     fdir=`$as_dirname -- "$file" ||
22149 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22150          X"$file" : 'X\(//\)[^/]' \| \
22151          X"$file" : 'X\(//\)$' \| \
22152          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22153 $as_echo X"$file" |
22154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22155             s//\1/
22156             q
22157           }
22158           /^X\(\/\/\)[^/].*/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)$/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\).*/{
22167             s//\1/
22168             q
22169           }
22170           s/.*/./; q'`
22171     { as_dir=$dirpart/$fdir
22172   case $as_dir in #(
22173   -*) as_dir=./$as_dir;;
22174   esac
22175   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22176     as_dirs=
22177     while :; do
22178       case $as_dir in #(
22179       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22180       *) as_qdir=$as_dir;;
22181       esac
22182       as_dirs="'$as_qdir' $as_dirs"
22183       as_dir=`$as_dirname -- "$as_dir" ||
22184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185          X"$as_dir" : 'X\(//\)[^/]' \| \
22186          X"$as_dir" : 'X\(//\)$' \| \
22187          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22188 $as_echo X"$as_dir" |
22189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190             s//\1/
22191             q
22192           }
22193           /^X\(\/\/\)[^/].*/{
22194             s//\1/
22195             q
22196           }
22197           /^X\(\/\/\)$/{
22198             s//\1/
22199             q
22200           }
22201           /^X\(\/\).*/{
22202             s//\1/
22203             q
22204           }
22205           s/.*/./; q'`
22206       test -d "$as_dir" && break
22207     done
22208     test -z "$as_dirs" || eval "mkdir $as_dirs"
22209   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22210 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22211    { (exit 1); exit 1; }; }; }
22212     # echo "creating $dirpart/$file"
22213     echo '# dummy' > "$dirpart/$file"
22214   done
22215 done
22216  ;;
22217     "default-1":C)
22218     for ac_file in $CONFIG_FILES; do
22219       # Support "outfile[:infile[:infile...]]"
22220       case "$ac_file" in
22221         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22222       esac
22223       # PO directories have a Makefile.in generated from Makefile.in.in.
22224       case "$ac_file" in */Makefile.in)
22225         # Adjust a relative srcdir.
22226         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22227         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22228         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22229         # In autoconf-2.13 it is called $ac_given_srcdir.
22230         # In autoconf-2.50 it is called $srcdir.
22231         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22232         case "$ac_given_srcdir" in
22233           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22234           /*) top_srcdir="$ac_given_srcdir" ;;
22235           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22236         esac
22237         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22238           rm -f "$ac_dir/POTFILES"
22239           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22240           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22241           POMAKEFILEDEPS="POTFILES.in"
22242           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22243           # on $ac_dir but don't depend on user-specified configuration
22244           # parameters.
22245           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22246             # The LINGUAS file contains the set of available languages.
22247             if test -n "$OBSOLETE_ALL_LINGUAS"; then
22248               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22249             fi
22250             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22251             # Hide the ALL_LINGUAS assigment from automake.
22252             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22253             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22254           else
22255             # The set of available languages was given in configure.in.
22256             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22257           fi
22258           case "$ac_given_srcdir" in
22259             .) srcdirpre= ;;
22260             *) srcdirpre='$(srcdir)/' ;;
22261           esac
22262           POFILES=
22263           GMOFILES=
22264           UPDATEPOFILES=
22265           DUMMYPOFILES=
22266           for lang in $ALL_LINGUAS; do
22267             POFILES="$POFILES $srcdirpre$lang.po"
22268             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22269             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22270             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22271           done
22272           # CATALOGS depends on both $ac_dir and the user's LINGUAS
22273           # environment variable.
22274           INST_LINGUAS=
22275           if test -n "$ALL_LINGUAS"; then
22276             for presentlang in $ALL_LINGUAS; do
22277               useit=no
22278               if test "%UNSET%" != "$LINGUAS"; then
22279                 desiredlanguages="$LINGUAS"
22280               else
22281                 desiredlanguages="$ALL_LINGUAS"
22282               fi
22283               for desiredlang in $desiredlanguages; do
22284                 # Use the presentlang catalog if desiredlang is
22285                 #   a. equal to presentlang, or
22286                 #   b. a variant of presentlang (because in this case,
22287                 #      presentlang can be used as a fallback for messages
22288                 #      which are not translated in the desiredlang catalog).
22289                 case "$desiredlang" in
22290                   "$presentlang"*) useit=yes;;
22291                 esac
22292               done
22293               if test $useit = yes; then
22294                 INST_LINGUAS="$INST_LINGUAS $presentlang"
22295               fi
22296             done
22297           fi
22298           CATALOGS=
22299           if test -n "$INST_LINGUAS"; then
22300             for lang in $INST_LINGUAS; do
22301               CATALOGS="$CATALOGS $lang.gmo"
22302             done
22303           fi
22304           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22305           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22306           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22307             if test -f "$f"; then
22308               case "$f" in
22309                 *.orig | *.bak | *~) ;;
22310                 *) cat "$f" >> "$ac_dir/Makefile" ;;
22311               esac
22312             fi
22313           done
22314         fi
22315         ;;
22316       esac
22317     done ;;
22318
22319   esac
22320 done # for ac_tag
22321
22322
22323 { (exit 0); exit 0; }
22324 _ACEOF
22325 chmod +x $CONFIG_STATUS
22326 ac_clean_files=$ac_clean_files_save
22327
22328 test $ac_write_fail = 0 ||
22329   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22330 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22331    { (exit 1); exit 1; }; }
22332
22333
22334 # configure is writing to config.log, and then calls config.status.
22335 # config.status does its own redirection, appending to config.log.
22336 # Unfortunately, on DOS this fails, as config.log is still kept open
22337 # by configure, so config.status won't be able to write to it; its
22338 # output is simply discarded.  So we exec the FD to /dev/null,
22339 # effectively closing config.log, so it can be properly (re)opened and
22340 # appended to by config.status.  When coming back to configure, we
22341 # need to make the FD available again.
22342 if test "$no_create" != no; then
22343   ac_cs_success=:
22344   ac_config_status_args=
22345   test "$silent" = no &&
22346     ac_config_status_args="$ac_config_status_args --quiet"
22347   exec 5>/dev/null
22348   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22349   exec 5>>config.log
22350   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22351   # would make configure fail if this is the last instruction.
22352   $ac_cs_success || { (exit 1); exit 1; }
22353 fi
22354 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22355   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22356 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22357 fi
22358
22359
22360 if test "x$have_good_imlib2" != "xyes"; then
22361   echo "***************************************************************"
22362   echo "*** WARNING: imlib2 >= 1.2.0 was not detected               ***"
22363   echo "*** WARNING: If you indeed do not have this, expect trouble ***"
22364   echo "***************************************************************"
22365 fi
22366
22367 echo
22368 echo "------------------------------------------------------------------------"
22369 echo "$PACKAGE Version $VERSION"
22370 echo "------------------------------------------------------------------------"
22371 echo
22372 echo "Configuration summary"
22373 echo
22374 echo "Support for"
22375 echo "  Localisation ................. $USE_NLS"
22376 echo "  Sound ........................ $enable_sound"
22377 echo "  Old GNOME hints .............. $enable_hints_gnome"
22378 echo "  Session management ........... $enable_sm"
22379 echo "  Zoom ......................... $enable_zoom"
22380 echo "  Pango ........................ $enable_pango"
22381 echo "  Xft .......................... $enable_xft"
22382 echo "  Xinerama ..................... $enable_xinerama"
22383 echo "  RandR ........................ $enable_xrandr"
22384 echo "  Sync ......................... $enable_xsync"
22385 echo "  Composite .................... $enable_composite"
22386 echo "  Modules ...................... $enable_modules"
22387 echo "  Visibility hiding ............ $enable_visibility_hiding (only useful with modules)"
22388 echo "  Window mode helper library ... $enable_roothacklib"
22389 echo "  Dialogs ...................... $enable_dialogs"
22390 echo
22391 echo "Experimental options - DO NOT USE unless you know what you are doing"
22392 echo "  Compile with ecore/ecore_x ... $enable_ecore"
22393 echo "  GLX .......................... $enable_glx"
22394 echo "  ScreenSaver .................. $enable_xscrnsaver"
22395 echo "  D-Bus ........................ $enable_dbus"
22396 echo
22397 echo "Installation path .............. $prefix"
22398 echo "  Install HTML docs ............ $enable_docs"
22399 echo
22400 echo "Compilation .................... make"
22401 echo "Installation ................... make install"
22402 echo