Git init
[framework/base/acl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="include/acl.h"
751 ac_default_prefix=/usr
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_subst_vars='LTLIBOBJS
789 LIBOBJS
790 have_zipped_manpages
791 libattr
792 libdirsuffix
793 rpmbuild
794 RPMBUILD
795 rpm_version
796 rpm
797 RPM
798 xgettext
799 XGETTEXT
800 msgmerge
801 MSGMERGE
802 msgfmt
803 MSGFMT
804 sort
805 SORT
806 echo
807 ECHO
808 sed
809 awk
810 AWK
811 makedepend
812 MAKEDEPEND
813 zip
814 ZIP
815 tar
816 TAR
817 make
818 MAKE
819 cc
820 pkg_platform
821 pkg_distribution
822 pkg_group
823 pkg_user
824 malloc_lib
825 opt_build
826 debug_build
827 pkg_release
828 pkg_version
829 pkg_name
830 enable_lib64
831 enable_gettext
832 enable_shared
833 CPP
834 OTOOL64
835 OTOOL
836 LIPO
837 NMEDIT
838 DSYMUTIL
839 lt_ECHO
840 RANLIB
841 STRIP
842 AR
843 OBJDUMP
844 LN_S
845 NM
846 ac_ct_DUMPBIN
847 DUMPBIN
848 LD
849 FGREP
850 EGREP
851 GREP
852 SED
853 OBJEXT
854 EXEEXT
855 ac_ct_CC
856 CPPFLAGS
857 LDFLAGS
858 CFLAGS
859 CC
860 host_os
861 host_vendor
862 host_cpu
863 host
864 build_os
865 build_vendor
866 build_cpu
867 build
868 LIBTOOL
869 target_alias
870 host_alias
871 build_alias
872 LIBS
873 ECHO_T
874 ECHO_N
875 ECHO_C
876 DEFS
877 mandir
878 localedir
879 libdir
880 psdir
881 pdfdir
882 dvidir
883 htmldir
884 infodir
885 docdir
886 oldincludedir
887 includedir
888 localstatedir
889 sharedstatedir
890 sysconfdir
891 datadir
892 datarootdir
893 libexecdir
894 sbindir
895 bindir
896 program_transform_name
897 prefix
898 exec_prefix
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 enable_libtool_lock
915 enable_gettext
916 enable_lib64
917 '
918       ac_precious_vars='build_alias
919 host_alias
920 target_alias
921 CC
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
926 CPP'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 ac_unrecognized_opts=
933 ac_unrecognized_sep=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
936 cache_file=/dev/null
937 exec_prefix=NONE
938 no_create=
939 no_recursion=
940 prefix=NONE
941 program_prefix=NONE
942 program_suffix=NONE
943 program_transform_name=s,x,x,
944 silent=
945 site=
946 srcdir=
947 verbose=
948 x_includes=NONE
949 x_libraries=NONE
950
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 includedir='${prefix}/include'
966 oldincludedir='/usr/include'
967 docdir='${datarootdir}/doc/${PACKAGE}'
968 infodir='${datarootdir}/info'
969 htmldir='${docdir}'
970 dvidir='${docdir}'
971 pdfdir='${docdir}'
972 psdir='${docdir}'
973 libdir='${exec_prefix}/lib'
974 localedir='${datarootdir}/locale'
975 mandir='${datarootdir}/man'
976
977 ac_prev=
978 ac_dashdash=
979 for ac_option
980 do
981   # If the previous option needs an argument, assign it.
982   if test -n "$ac_prev"; then
983     eval $ac_prev=\$ac_option
984     ac_prev=
985     continue
986   fi
987
988   case $ac_option in
989   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990   *)    ac_optarg=yes ;;
991   esac
992
993   # Accept the important Cygnus configure options, so we can diagnose typos.
994
995   case $ac_dashdash$ac_option in
996   --)
997     ac_dashdash=yes ;;
998
999   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000     ac_prev=bindir ;;
1001   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002     bindir=$ac_optarg ;;
1003
1004   -build | --build | --buil | --bui | --bu)
1005     ac_prev=build_alias ;;
1006   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007     build_alias=$ac_optarg ;;
1008
1009   -cache-file | --cache-file | --cache-fil | --cache-fi \
1010   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011     ac_prev=cache_file ;;
1012   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014     cache_file=$ac_optarg ;;
1015
1016   --config-cache | -C)
1017     cache_file=config.cache ;;
1018
1019   -datadir | --datadir | --datadi | --datad)
1020     ac_prev=datadir ;;
1021   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022     datadir=$ac_optarg ;;
1023
1024   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025   | --dataroo | --dataro | --datar)
1026     ac_prev=datarootdir ;;
1027   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029     datarootdir=$ac_optarg ;;
1030
1031   -disable-* | --disable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1036    { (exit 1); exit 1; }; }
1037     ac_useropt_orig=$ac_useropt
1038     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039     case $ac_user_opts in
1040       *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044          ac_unrecognized_sep=', ';;
1045     esac
1046     eval enable_$ac_useropt=no ;;
1047
1048   -docdir | --docdir | --docdi | --doc | --do)
1049     ac_prev=docdir ;;
1050   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051     docdir=$ac_optarg ;;
1052
1053   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054     ac_prev=dvidir ;;
1055   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056     dvidir=$ac_optarg ;;
1057
1058   -enable-* | --enable-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_useropt_orig=$ac_useropt
1065     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066     case $ac_user_opts in
1067       *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071          ac_unrecognized_sep=', ';;
1072     esac
1073     eval enable_$ac_useropt=\$ac_optarg ;;
1074
1075   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077   | --exec | --exe | --ex)
1078     ac_prev=exec_prefix ;;
1079   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081   | --exec=* | --exe=* | --ex=*)
1082     exec_prefix=$ac_optarg ;;
1083
1084   -gas | --gas | --ga | --g)
1085     # Obsolete; use --with-gas.
1086     with_gas=yes ;;
1087
1088   -help | --help | --hel | --he | -h)
1089     ac_init_help=long ;;
1090   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091     ac_init_help=recursive ;;
1092   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093     ac_init_help=short ;;
1094
1095   -host | --host | --hos | --ho)
1096     ac_prev=host_alias ;;
1097   -host=* | --host=* | --hos=* | --ho=*)
1098     host_alias=$ac_optarg ;;
1099
1100   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101     ac_prev=htmldir ;;
1102   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103   | --ht=*)
1104     htmldir=$ac_optarg ;;
1105
1106   -includedir | --includedir | --includedi | --included | --include \
1107   | --includ | --inclu | --incl | --inc)
1108     ac_prev=includedir ;;
1109   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110   | --includ=* | --inclu=* | --incl=* | --inc=*)
1111     includedir=$ac_optarg ;;
1112
1113   -infodir | --infodir | --infodi | --infod | --info | --inf)
1114     ac_prev=infodir ;;
1115   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116     infodir=$ac_optarg ;;
1117
1118   -libdir | --libdir | --libdi | --libd)
1119     ac_prev=libdir ;;
1120   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121     libdir=$ac_optarg ;;
1122
1123   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124   | --libexe | --libex | --libe)
1125     ac_prev=libexecdir ;;
1126   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127   | --libexe=* | --libex=* | --libe=*)
1128     libexecdir=$ac_optarg ;;
1129
1130   -localedir | --localedir | --localedi | --localed | --locale)
1131     ac_prev=localedir ;;
1132   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133     localedir=$ac_optarg ;;
1134
1135   -localstatedir | --localstatedir | --localstatedi | --localstated \
1136   | --localstate | --localstat | --localsta | --localst | --locals)
1137     ac_prev=localstatedir ;;
1138   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140     localstatedir=$ac_optarg ;;
1141
1142   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143     ac_prev=mandir ;;
1144   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145     mandir=$ac_optarg ;;
1146
1147   -nfp | --nfp | --nf)
1148     # Obsolete; use --without-fp.
1149     with_fp=no ;;
1150
1151   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152   | --no-cr | --no-c | -n)
1153     no_create=yes ;;
1154
1155   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157     no_recursion=yes ;;
1158
1159   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161   | --oldin | --oldi | --old | --ol | --o)
1162     ac_prev=oldincludedir ;;
1163   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166     oldincludedir=$ac_optarg ;;
1167
1168   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169     ac_prev=prefix ;;
1170   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171     prefix=$ac_optarg ;;
1172
1173   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174   | --program-pre | --program-pr | --program-p)
1175     ac_prev=program_prefix ;;
1176   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178     program_prefix=$ac_optarg ;;
1179
1180   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181   | --program-suf | --program-su | --program-s)
1182     ac_prev=program_suffix ;;
1183   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185     program_suffix=$ac_optarg ;;
1186
1187   -program-transform-name | --program-transform-name \
1188   | --program-transform-nam | --program-transform-na \
1189   | --program-transform-n | --program-transform- \
1190   | --program-transform | --program-transfor \
1191   | --program-transfo | --program-transf \
1192   | --program-trans | --program-tran \
1193   | --progr-tra | --program-tr | --program-t)
1194     ac_prev=program_transform_name ;;
1195   -program-transform-name=* | --program-transform-name=* \
1196   | --program-transform-nam=* | --program-transform-na=* \
1197   | --program-transform-n=* | --program-transform-=* \
1198   | --program-transform=* | --program-transfor=* \
1199   | --program-transfo=* | --program-transf=* \
1200   | --program-trans=* | --program-tran=* \
1201   | --progr-tra=* | --program-tr=* | --program-t=*)
1202     program_transform_name=$ac_optarg ;;
1203
1204   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205     ac_prev=pdfdir ;;
1206   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207     pdfdir=$ac_optarg ;;
1208
1209   -psdir | --psdir | --psdi | --psd | --ps)
1210     ac_prev=psdir ;;
1211   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212     psdir=$ac_optarg ;;
1213
1214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215   | -silent | --silent | --silen | --sile | --sil)
1216     silent=yes ;;
1217
1218   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219     ac_prev=sbindir ;;
1220   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221   | --sbi=* | --sb=*)
1222     sbindir=$ac_optarg ;;
1223
1224   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226   | --sharedst | --shareds | --shared | --share | --shar \
1227   | --sha | --sh)
1228     ac_prev=sharedstatedir ;;
1229   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232   | --sha=* | --sh=*)
1233     sharedstatedir=$ac_optarg ;;
1234
1235   -site | --site | --sit)
1236     ac_prev=site ;;
1237   -site=* | --site=* | --sit=*)
1238     site=$ac_optarg ;;
1239
1240   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241     ac_prev=srcdir ;;
1242   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243     srcdir=$ac_optarg ;;
1244
1245   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246   | --syscon | --sysco | --sysc | --sys | --sy)
1247     ac_prev=sysconfdir ;;
1248   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250     sysconfdir=$ac_optarg ;;
1251
1252   -target | --target | --targe | --targ | --tar | --ta | --t)
1253     ac_prev=target_alias ;;
1254   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255     target_alias=$ac_optarg ;;
1256
1257   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258     verbose=yes ;;
1259
1260   -version | --version | --versio | --versi | --vers | -V)
1261     ac_init_version=: ;;
1262
1263   -with-* | --with-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1268    { (exit 1); exit 1; }; }
1269     ac_useropt_orig=$ac_useropt
1270     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271     case $ac_user_opts in
1272       *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276          ac_unrecognized_sep=', ';;
1277     esac
1278     eval with_$ac_useropt=\$ac_optarg ;;
1279
1280   -without-* | --without-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1285    { (exit 1); exit 1; }; }
1286     ac_useropt_orig=$ac_useropt
1287     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288     case $ac_user_opts in
1289       *"
1290 "with_$ac_useropt"
1291 "*) ;;
1292       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293          ac_unrecognized_sep=', ';;
1294     esac
1295     eval with_$ac_useropt=no ;;
1296
1297   --x)
1298     # Obsolete; use --with-x.
1299     with_x=yes ;;
1300
1301   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302   | --x-incl | --x-inc | --x-in | --x-i)
1303     ac_prev=x_includes ;;
1304   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306     x_includes=$ac_optarg ;;
1307
1308   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310     ac_prev=x_libraries ;;
1311   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313     x_libraries=$ac_optarg ;;
1314
1315   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1316 Try \`$0 --help' for more information." >&2
1317    { (exit 1); exit 1; }; }
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325    { (exit 1); exit 1; }; }
1326     eval $ac_envvar=\$ac_optarg
1327     export $ac_envvar ;;
1328
1329   *)
1330     # FIXME: should be removed in autoconf 3.0.
1331     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335     ;;
1336
1337   esac
1338 done
1339
1340 if test -n "$ac_prev"; then
1341   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1343    { (exit 1); exit 1; }; }
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347   case $enable_option_checking in
1348     no) ;;
1349     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1350    { (exit 1); exit 1; }; } ;;
1351     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1352   esac
1353 fi
1354
1355 # Check all directory arguments for consistency.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   # Remove trailing slashes.
1363   case $ac_val in
1364     */ )
1365       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1366       eval $ac_var=\$ac_val;;
1367   esac
1368   # Be sure to have absolute directory names.
1369   case $ac_val in
1370     [\\/$]* | ?:[\\/]* )  continue;;
1371     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372   esac
1373   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374    { (exit 1); exit 1; }; }
1375 done
1376
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1383
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386   if test "x$build_alias" = x; then
1387     cross_compiling=maybe
1388     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389     If a cross compiler is detected then cross compile mode will be used." >&2
1390   elif test "x$build_alias" != "x$host_alias"; then
1391     cross_compiling=yes
1392   fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1405    { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1408    { (exit 1); exit 1; }; }
1409
1410
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413   ac_srcdir_defaulted=yes
1414   # Try the directory containing this script, then the parent directory.
1415   ac_confdir=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417          X"$as_myself" : 'X\(//\)[^/]' \| \
1418          X"$as_myself" : 'X\(//\)$' \| \
1419          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)[^/].*/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\).*/{
1434             s//\1/
1435             q
1436           }
1437           s/.*/./; q'`
1438   srcdir=$ac_confdir
1439   if test ! -r "$srcdir/$ac_unique_file"; then
1440     srcdir=..
1441   fi
1442 else
1443   ac_srcdir_defaulted=no
1444 fi
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1453    { (exit 1); exit 1; }; }
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures this package to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR            user executables [EPREFIX/bin]
1514   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR        program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR            object code libraries [EPREFIX/lib]
1520   --includedir=DIR        C header files [PREFIX/include]
1521   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR           info documentation [DATAROOTDIR/info]
1525   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR            man documentation [DATAROOTDIR/man]
1527   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1528   --htmldir=DIR           html documentation [DOCDIR]
1529   --dvidir=DIR            dvi documentation [DOCDIR]
1530   --pdfdir=DIR            pdf documentation [DOCDIR]
1531   --psdir=DIR             ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 System types:
1537   --build=BUILD     configure for building on BUILD [guessed]
1538   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-option-checking  ignore unrecognized --enable/--with options
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --enable-shared[=PKGS]  build shared libraries [default=yes]
1551   --enable-static[=PKGS]  build static libraries [default=yes]
1552   --enable-fast-install[=PKGS]
1553                           optimize for fast installation [default=yes]
1554   --disable-libtool-lock  avoid locking (might break parallel builds)
1555  --enable-shared=yes/no Enable use of shared libraries default=yes
1556  --enable-gettext=yes/no Enable alternate language support default=yes
1557  --enable-lib64=yes/no Enable lib64 support default=no
1558
1559 Optional Packages:
1560   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1561   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1562   --with-pic              try to use only PIC/non-PIC objects [default=use
1563                           both]
1564   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1565
1566 Some influential environment variables:
1567   CC          C compiler command
1568   CFLAGS      C compiler flags
1569   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1570               nonstandard directory <lib dir>
1571   LIBS        libraries to pass to the linker, e.g. -l<library>
1572   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573               you have headers in a nonstandard directory <include dir>
1574   CPP         C preprocessor
1575
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1578
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584   # If there are subdirs, report their specific --help.
1585   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586     test -d "$ac_dir" ||
1587       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588       continue
1589     ac_builddir=.
1590
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *)
1594   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595   # A ".." for each directory in $ac_dir_suffix.
1596   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597   case $ac_top_builddir_sub in
1598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600   esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1606
1607 case $srcdir in
1608   .)  # We are building in place.
1609     ac_srcdir=.
1610     ac_top_srcdir=$ac_top_builddir_sub
1611     ac_abs_top_srcdir=$ac_pwd ;;
1612   [\\/]* | ?:[\\/]* )  # Absolute name.
1613     ac_srcdir=$srcdir$ac_dir_suffix;
1614     ac_top_srcdir=$srcdir
1615     ac_abs_top_srcdir=$srcdir ;;
1616   *) # Relative name.
1617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618     ac_top_srcdir=$ac_top_build_prefix$srcdir
1619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622
1623     cd "$ac_dir" || { ac_status=$?; continue; }
1624     # Check for guested configure.
1625     if test -f "$ac_srcdir/configure.gnu"; then
1626       echo &&
1627       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628     elif test -f "$ac_srcdir/configure"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure" --help=recursive
1631     else
1632       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633     fi || ac_status=$?
1634     cd "$ac_pwd" || { ac_status=$?; break; }
1635   done
1636 fi
1637
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640   cat <<\_ACEOF
1641 configure
1642 generated by GNU Autoconf 2.63
1643
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649   exit
1650 fi
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1654
1655 It was created by $as_me, which was
1656 generated by GNU Autoconf 2.63.  Invocation command line was
1657
1658   $ $0 $@
1659
1660 _ACEOF
1661 exec 5>>config.log
1662 {
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1667
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1676
1677 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1678 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1681 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1682 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1683 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1684
1685 _ASUNAME
1686
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1689 do
1690   IFS=$as_save_IFS
1691   test -z "$as_dir" && as_dir=.
1692   $as_echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1695
1696 } >&5
1697
1698 cat >&5 <<_ACEOF
1699
1700
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1704
1705 _ACEOF
1706
1707
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1718 do
1719   for ac_arg
1720   do
1721     case $ac_arg in
1722     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724     | -silent | --silent | --silen | --sile | --sil)
1725       continue ;;
1726     *\'*)
1727       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728     esac
1729     case $ac_pass in
1730     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1731     2)
1732       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733       if test $ac_must_keep_next = true; then
1734         ac_must_keep_next=false # Got value, back to normal.
1735       else
1736         case $ac_arg in
1737           *=* | --config-cache | -C | -disable-* | --disable-* \
1738           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740           | -with-* | --with-* | -without-* | --without-* | --x)
1741             case "$ac_configure_args0 " in
1742               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743             esac
1744             ;;
1745           -* ) ac_must_keep_next=true ;;
1746         esac
1747       fi
1748       ac_configure_args="$ac_configure_args '$ac_arg'"
1749       ;;
1750     esac
1751   done
1752 done
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1755
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log.  We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762   # Save into config.log some information that might help in debugging.
1763   {
1764     echo
1765
1766     cat <<\_ASBOX
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1770 _ASBOX
1771     echo
1772     # The following way of writing the cache mishandles newlines in values,
1773 (
1774   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775     eval ac_val=\$$ac_var
1776     case $ac_val in #(
1777     *${as_nl}*)
1778       case $ac_var in #(
1779       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1780 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1781       esac
1782       case $ac_var in #(
1783       _ | IFS | as_nl) ;; #(
1784       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1785       *) $as_unset $ac_var ;;
1786       esac ;;
1787     esac
1788   done
1789   (set) 2>&1 |
1790     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791     *${as_nl}ac_space=\ *)
1792       sed -n \
1793         "s/'\''/'\''\\\\'\'''\''/g;
1794           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795       ;; #(
1796     *)
1797       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798       ;;
1799     esac |
1800     sort
1801 )
1802     echo
1803
1804     cat <<\_ASBOX
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1808 _ASBOX
1809     echo
1810     for ac_var in $ac_subst_vars
1811     do
1812       eval ac_val=\$$ac_var
1813       case $ac_val in
1814       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815       esac
1816       $as_echo "$ac_var='\''$ac_val'\''"
1817     done | sort
1818     echo
1819
1820     if test -n "$ac_subst_files"; then
1821       cat <<\_ASBOX
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1825 _ASBOX
1826       echo
1827       for ac_var in $ac_subst_files
1828       do
1829         eval ac_val=\$$ac_var
1830         case $ac_val in
1831         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832         esac
1833         $as_echo "$ac_var='\''$ac_val'\''"
1834       done | sort
1835       echo
1836     fi
1837
1838     if test -s confdefs.h; then
1839       cat <<\_ASBOX
1840 ## ----------- ##
1841 ## confdefs.h. ##
1842 ## ----------- ##
1843 _ASBOX
1844       echo
1845       cat confdefs.h
1846       echo
1847     fi
1848     test "$ac_signal" != 0 &&
1849       $as_echo "$as_me: caught signal $ac_signal"
1850     $as_echo "$as_me: exit $exit_status"
1851   } >&5
1852   rm -f core *.core core.conftest.* &&
1853     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854     exit $exit_status
1855 ' 0
1856 for ac_signal in 1 2 13 15; do
1857   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 done
1859 ac_signal=0
1860
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1863
1864 # Predefined preprocessor variables.
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 _ACEOF
1889
1890
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer an explicitly selected file to automatically selected ones.
1893 ac_site_file1=NONE
1894 ac_site_file2=NONE
1895 if test -n "$CONFIG_SITE"; then
1896   ac_site_file1=$CONFIG_SITE
1897 elif test "x$prefix" != xNONE; then
1898   ac_site_file1=$prefix/share/config.site
1899   ac_site_file2=$prefix/etc/config.site
1900 else
1901   ac_site_file1=$ac_default_prefix/share/config.site
1902   ac_site_file2=$ac_default_prefix/etc/config.site
1903 fi
1904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1905 do
1906   test "x$ac_site_file" = xNONE && continue
1907   if test -r "$ac_site_file"; then
1908     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1910     sed 's/^/| /' "$ac_site_file" >&5
1911     . "$ac_site_file"
1912   fi
1913 done
1914
1915 if test -r "$cache_file"; then
1916   # Some versions of bash will fail to source /dev/null (special
1917   # files actually), so we avoid doing that.
1918   if test -f "$cache_file"; then
1919     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920 $as_echo "$as_me: loading cache $cache_file" >&6;}
1921     case $cache_file in
1922       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923       *)                      . "./$cache_file";;
1924     esac
1925   fi
1926 else
1927   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928 $as_echo "$as_me: creating cache $cache_file" >&6;}
1929   >$cache_file
1930 fi
1931
1932 # Check that the precious variables saved in the cache have kept the same
1933 # value.
1934 ac_cache_corrupted=false
1935 for ac_var in $ac_precious_vars; do
1936   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937   eval ac_new_set=\$ac_env_${ac_var}_set
1938   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939   eval ac_new_val=\$ac_env_${ac_var}_value
1940   case $ac_old_set,$ac_new_set in
1941     set,)
1942       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944       ac_cache_corrupted=: ;;
1945     ,set)
1946       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948       ac_cache_corrupted=: ;;
1949     ,);;
1950     *)
1951       if test "x$ac_old_val" != "x$ac_new_val"; then
1952         # differences in whitespace do not lead to failure.
1953         ac_old_val_w=`echo x $ac_old_val`
1954         ac_new_val_w=`echo x $ac_new_val`
1955         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1956           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1957 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1958           ac_cache_corrupted=:
1959         else
1960           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1961 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1962           eval $ac_var=\$ac_old_val
1963         fi
1964         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1965 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1966         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1967 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1968       fi;;
1969   esac
1970   # Pass precious variables to config.status.
1971   if test "$ac_new_set" = set; then
1972     case $ac_new_val in
1973     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     *) ac_arg=$ac_var=$ac_new_val ;;
1975     esac
1976     case " $ac_configure_args " in
1977       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1978       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979     esac
1980   fi
1981 done
1982 if $ac_cache_corrupted; then
1983   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1985   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008 ac_ext=c
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in . "$srcdir"/.; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 ac_config_headers="$ac_config_headers include/config.h"
2048
2049
2050
2051 case `pwd` in
2052   *\ * | *\     *)
2053     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2054 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2055 esac
2056
2057
2058
2059 macro_version='2.2.6'
2060 macro_revision='1.3012'
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074 ltmain="$ac_aux_dir/ltmain.sh"
2075
2076 # Make sure we can run config.sub.
2077 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2078   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2079 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2080    { (exit 1); exit 1; }; }
2081
2082 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2083 $as_echo_n "checking build system type... " >&6; }
2084 if test "${ac_cv_build+set}" = set; then
2085   $as_echo_n "(cached) " >&6
2086 else
2087   ac_build_alias=$build_alias
2088 test "x$ac_build_alias" = x &&
2089   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2090 test "x$ac_build_alias" = x &&
2091   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2092 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2093    { (exit 1); exit 1; }; }
2094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2095   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2096 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2097    { (exit 1); exit 1; }; }
2098
2099 fi
2100 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2101 $as_echo "$ac_cv_build" >&6; }
2102 case $ac_cv_build in
2103 *-*-*) ;;
2104 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2105 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2106    { (exit 1); exit 1; }; };;
2107 esac
2108 build=$ac_cv_build
2109 ac_save_IFS=$IFS; IFS='-'
2110 set x $ac_cv_build
2111 shift
2112 build_cpu=$1
2113 build_vendor=$2
2114 shift; shift
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2117 build_os=$*
2118 IFS=$ac_save_IFS
2119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2120
2121
2122 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2123 $as_echo_n "checking host system type... " >&6; }
2124 if test "${ac_cv_host+set}" = set; then
2125   $as_echo_n "(cached) " >&6
2126 else
2127   if test "x$host_alias" = x; then
2128   ac_cv_host=$ac_cv_build
2129 else
2130   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2131     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2132 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2133    { (exit 1); exit 1; }; }
2134 fi
2135
2136 fi
2137 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2138 $as_echo "$ac_cv_host" >&6; }
2139 case $ac_cv_host in
2140 *-*-*) ;;
2141 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2142 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2143    { (exit 1); exit 1; }; };;
2144 esac
2145 host=$ac_cv_host
2146 ac_save_IFS=$IFS; IFS='-'
2147 set x $ac_cv_host
2148 shift
2149 host_cpu=$1
2150 host_vendor=$2
2151 shift; shift
2152 # Remember, the first character of IFS is used to create $*,
2153 # except with old shells:
2154 host_os=$*
2155 IFS=$ac_save_IFS
2156 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2157
2158
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164 if test -n "$ac_tool_prefix"; then
2165   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 $as_echo_n "checking for $ac_word... " >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170   $as_echo_n "(cached) " >&6
2171 else
2172   if test -n "$CC"; then
2173   ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2183     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2195 $as_echo "$CC" >&6; }
2196 else
2197   { $as_echo "$as_me:$LINENO: result: no" >&5
2198 $as_echo "no" >&6; }
2199 fi
2200
2201
2202 fi
2203 if test -z "$ac_cv_prog_CC"; then
2204   ac_ct_CC=$CC
2205   # Extract the first word of "gcc", so it can be a program name with args.
2206 set dummy gcc; ac_word=$2
2207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 $as_echo_n "checking for $ac_word... " >&6; }
2209 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2210   $as_echo_n "(cached) " >&6
2211 else
2212   if test -n "$ac_ct_CC"; then
2213   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222     ac_cv_prog_ac_ct_CC="gcc"
2223     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 $as_echo "$ac_ct_CC" >&6; }
2236 else
2237   { $as_echo "$as_me:$LINENO: result: no" >&5
2238 $as_echo "no" >&6; }
2239 fi
2240
2241   if test "x$ac_ct_CC" = x; then
2242     CC=""
2243   else
2244     case $cross_compiling:$ac_tool_warned in
2245 yes:)
2246 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2248 ac_tool_warned=yes ;;
2249 esac
2250     CC=$ac_ct_CC
2251   fi
2252 else
2253   CC="$ac_cv_prog_CC"
2254 fi
2255
2256 if test -z "$CC"; then
2257           if test -n "$ac_tool_prefix"; then
2258     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}cc; ac_word=$2
2260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 $as_echo_n "checking for $ac_word... " >&6; }
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263   $as_echo_n "(cached) " >&6
2264 else
2265   if test -n "$CC"; then
2266   ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_exec_ext in '' $ac_executable_extensions; do
2274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275     ac_cv_prog_CC="${ac_tool_prefix}cc"
2276     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277     break 2
2278   fi
2279 done
2280 done
2281 IFS=$as_save_IFS
2282
2283 fi
2284 fi
2285 CC=$ac_cv_prog_CC
2286 if test -n "$CC"; then
2287   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2288 $as_echo "$CC" >&6; }
2289 else
2290   { $as_echo "$as_me:$LINENO: result: no" >&5
2291 $as_echo "no" >&6; }
2292 fi
2293
2294
2295   fi
2296 fi
2297 if test -z "$CC"; then
2298   # Extract the first word of "cc", so it can be a program name with args.
2299 set dummy cc; ac_word=$2
2300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 $as_echo_n "checking for $ac_word... " >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303   $as_echo_n "(cached) " >&6
2304 else
2305   if test -n "$CC"; then
2306   ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308   ac_prog_rejected=no
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2317        ac_prog_rejected=yes
2318        continue
2319      fi
2320     ac_cv_prog_CC="cc"
2321     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322     break 2
2323   fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2327
2328 if test $ac_prog_rejected = yes; then
2329   # We found a bogon in the path, so make sure we never use it.
2330   set dummy $ac_cv_prog_CC
2331   shift
2332   if test $# != 0; then
2333     # We chose a different compiler from the bogus one.
2334     # However, it has the same basename, so the bogon will be chosen
2335     # first if we set CC to just the basename; use the full file name.
2336     shift
2337     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2338   fi
2339 fi
2340 fi
2341 fi
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2345 $as_echo "$CC" >&6; }
2346 else
2347   { $as_echo "$as_me:$LINENO: result: no" >&5
2348 $as_echo "no" >&6; }
2349 fi
2350
2351
2352 fi
2353 if test -z "$CC"; then
2354   if test -n "$ac_tool_prefix"; then
2355   for ac_prog in cl.exe
2356   do
2357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 $as_echo_n "checking for $ac_word... " >&6; }
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362   $as_echo_n "(cached) " >&6
2363 else
2364   if test -n "$CC"; then
2365   ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383 fi
2384 CC=$ac_cv_prog_CC
2385 if test -n "$CC"; then
2386   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2387 $as_echo "$CC" >&6; }
2388 else
2389   { $as_echo "$as_me:$LINENO: result: no" >&5
2390 $as_echo "no" >&6; }
2391 fi
2392
2393
2394     test -n "$CC" && break
2395   done
2396 fi
2397 if test -z "$CC"; then
2398   ac_ct_CC=$CC
2399   for ac_prog in cl.exe
2400 do
2401   # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   $as_echo_n "(cached) " >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418     ac_cv_prog_ac_ct_CC="$ac_prog"
2419     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429 if test -n "$ac_ct_CC"; then
2430   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431 $as_echo "$ac_ct_CC" >&6; }
2432 else
2433   { $as_echo "$as_me:$LINENO: result: no" >&5
2434 $as_echo "no" >&6; }
2435 fi
2436
2437
2438   test -n "$ac_ct_CC" && break
2439 done
2440
2441   if test "x$ac_ct_CC" = x; then
2442     CC=""
2443   else
2444     case $cross_compiling:$ac_tool_warned in
2445 yes:)
2446 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2448 ac_tool_warned=yes ;;
2449 esac
2450     CC=$ac_ct_CC
2451   fi
2452 fi
2453
2454 fi
2455
2456
2457 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2460 See \`config.log' for more details." >&5
2461 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2462 See \`config.log' for more details." >&2;}
2463    { (exit 1); exit 1; }; }; }
2464
2465 # Provide some information about the compiler.
2466 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2467 set X $ac_compile
2468 ac_compiler=$2
2469 { (ac_try="$ac_compiler --version >&5"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2475 $as_echo "$ac_try_echo") >&5
2476   (eval "$ac_compiler --version >&5") 2>&5
2477   ac_status=$?
2478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }
2480 { (ac_try="$ac_compiler -v >&5"
2481 case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487   (eval "$ac_compiler -v >&5") 2>&5
2488   ac_status=$?
2489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }
2491 { (ac_try="$ac_compiler -V >&5"
2492 case "(($ac_try" in
2493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494   *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498   (eval "$ac_compiler -V >&5") 2>&5
2499   ac_status=$?
2500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }
2502
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 ac_clean_files_save=$ac_clean_files
2519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2520 # Try to create an executable without -o first, disregard a.out.
2521 # It will help us diagnose broken compilers, and finding out an intuition
2522 # of exeext.
2523 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2524 $as_echo_n "checking for C compiler default output file name... " >&6; }
2525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2526
2527 # The possible output files:
2528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2529
2530 ac_rmfiles=
2531 for ac_file in $ac_files
2532 do
2533   case $ac_file in
2534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2535     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2536   esac
2537 done
2538 rm -f $ac_rmfiles
2539
2540 if { (ac_try="$ac_link_default"
2541 case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2546 $as_echo "$ac_try_echo") >&5
2547   (eval "$ac_link_default") 2>&5
2548   ac_status=$?
2549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }; then
2551   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2553 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2554 # so that the user can short-circuit this test for compilers unknown to
2555 # Autoconf.
2556 for ac_file in $ac_files ''
2557 do
2558   test -f "$ac_file" || continue
2559   case $ac_file in
2560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2561         ;;
2562     [ab].out )
2563         # We found the default executable, but exeext='' is most
2564         # certainly right.
2565         break;;
2566     *.* )
2567         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2568         then :; else
2569            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2570         fi
2571         # We set ac_cv_exeext here because the later test for it is not
2572         # safe: cross compilers may not add the suffix if given an `-o'
2573         # argument, so we may need to know it at that point already.
2574         # Even if this section looks crufty: it has the advantage of
2575         # actually working.
2576         break;;
2577     * )
2578         break;;
2579   esac
2580 done
2581 test "$ac_cv_exeext" = no && ac_cv_exeext=
2582
2583 else
2584   ac_file=''
2585 fi
2586
2587 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2588 $as_echo "$ac_file" >&6; }
2589 if test -z "$ac_file"; then
2590   $as_echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2596 See \`config.log' for more details." >&5
2597 $as_echo "$as_me: error: C compiler cannot create executables
2598 See \`config.log' for more details." >&2;}
2599    { (exit 77); exit 77; }; }; }
2600 fi
2601
2602 ac_exeext=$ac_cv_exeext
2603
2604 # Check that the compiler produces executables we can run.  If not, either
2605 # the compiler is broken, or we cross compile.
2606 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2607 $as_echo_n "checking whether the C compiler works... " >&6; }
2608 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2609 # If not cross compiling, check that we can run a simple program.
2610 if test "$cross_compiling" != yes; then
2611   if { ac_try='./$ac_file'
2612   { (case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2617 $as_echo "$ac_try_echo") >&5
2618   (eval "$ac_try") 2>&5
2619   ac_status=$?
2620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622     cross_compiling=no
2623   else
2624     if test "$cross_compiling" = maybe; then
2625         cross_compiling=yes
2626     else
2627         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2630 If you meant to cross compile, use \`--host'.
2631 See \`config.log' for more details." >&5
2632 $as_echo "$as_me: error: cannot run C compiled programs.
2633 If you meant to cross compile, use \`--host'.
2634 See \`config.log' for more details." >&2;}
2635    { (exit 1); exit 1; }; }; }
2636     fi
2637   fi
2638 fi
2639 { $as_echo "$as_me:$LINENO: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641
2642 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2643 ac_clean_files=$ac_clean_files_save
2644 # Check that the compiler produces executables we can run.  If not, either
2645 # the compiler is broken, or we cross compile.
2646 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2647 $as_echo_n "checking whether we are cross compiling... " >&6; }
2648 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2649 $as_echo "$cross_compiling" >&6; }
2650
2651 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2652 $as_echo_n "checking for suffix of executables... " >&6; }
2653 if { (ac_try="$ac_link"
2654 case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2659 $as_echo "$ac_try_echo") >&5
2660   (eval "$ac_link") 2>&5
2661   ac_status=$?
2662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; then
2664   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2665 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2666 # work properly (i.e., refer to `conftest.exe'), while it won't with
2667 # `rm'.
2668 for ac_file in conftest.exe conftest conftest.*; do
2669   test -f "$ac_file" || continue
2670   case $ac_file in
2671     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2672     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673           break;;
2674     * ) break;;
2675   esac
2676 done
2677 else
2678   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&5
2682 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2683 See \`config.log' for more details." >&2;}
2684    { (exit 1); exit 1; }; }; }
2685 fi
2686
2687 rm -f conftest$ac_cv_exeext
2688 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2689 $as_echo "$ac_cv_exeext" >&6; }
2690
2691 rm -f conftest.$ac_ext
2692 EXEEXT=$ac_cv_exeext
2693 ac_exeext=$EXEEXT
2694 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2695 $as_echo_n "checking for suffix of object files... " >&6; }
2696 if test "${ac_cv_objext+set}" = set; then
2697   $as_echo_n "(cached) " >&6
2698 else
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.o conftest.obj
2715 if { (ac_try="$ac_compile"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2721 $as_echo "$ac_try_echo") >&5
2722   (eval "$ac_compile") 2>&5
2723   ac_status=$?
2724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; then
2726   for ac_file in conftest.o conftest.obj conftest.*; do
2727   test -f "$ac_file" || continue;
2728   case $ac_file in
2729     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2730     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2731        break;;
2732   esac
2733 done
2734 else
2735   $as_echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2741 See \`config.log' for more details." >&5
2742 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2743 See \`config.log' for more details." >&2;}
2744    { (exit 1); exit 1; }; }; }
2745 fi
2746
2747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2748 fi
2749 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2750 $as_echo "$ac_cv_objext" >&6; }
2751 OBJEXT=$ac_cv_objext
2752 ac_objext=$OBJEXT
2753 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2755 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2756   $as_echo_n "(cached) " >&6
2757 else
2758   cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 int
2766 main ()
2767 {
2768 #ifndef __GNUC__
2769        choke me
2770 #endif
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2778 case "(($ac_try" in
2779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780   *) ac_try_echo=$ac_try;;
2781 esac
2782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2783 $as_echo "$ac_try_echo") >&5
2784   (eval "$ac_compile") 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } && {
2791          test -z "$ac_c_werror_flag" ||
2792          test ! -s conftest.err
2793        } && test -s conftest.$ac_objext; then
2794   ac_compiler_gnu=yes
2795 else
2796   $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799         ac_compiler_gnu=no
2800 fi
2801
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2804
2805 fi
2806 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2807 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2808 if test $ac_compiler_gnu = yes; then
2809   GCC=yes
2810 else
2811   GCC=
2812 fi
2813 ac_test_CFLAGS=${CFLAGS+set}
2814 ac_save_CFLAGS=$CFLAGS
2815 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2816 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2817 if test "${ac_cv_prog_cc_g+set}" = set; then
2818   $as_echo_n "(cached) " >&6
2819 else
2820   ac_save_c_werror_flag=$ac_c_werror_flag
2821    ac_c_werror_flag=yes
2822    ac_cv_prog_cc_g=no
2823    CFLAGS="-g"
2824    cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h.  */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h.  */
2830
2831 int
2832 main ()
2833 {
2834
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (ac_try="$ac_compile"
2841 case "(($ac_try" in
2842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843   *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847   (eval "$ac_compile") 2>conftest.er1
2848   ac_status=$?
2849   grep -v '^ *+' conftest.er1 >conftest.err
2850   rm -f conftest.er1
2851   cat conftest.err >&5
2852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } && {
2854          test -z "$ac_c_werror_flag" ||
2855          test ! -s conftest.err
2856        } && test -s conftest.$ac_objext; then
2857   ac_cv_prog_cc_g=yes
2858 else
2859   $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862         CFLAGS=""
2863       cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869
2870 int
2871 main ()
2872 {
2873
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (ac_try="$ac_compile"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886   (eval "$ac_compile") 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } && {
2893          test -z "$ac_c_werror_flag" ||
2894          test ! -s conftest.err
2895        } && test -s conftest.$ac_objext; then
2896   :
2897 else
2898   $as_echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901         ac_c_werror_flag=$ac_save_c_werror_flag
2902          CFLAGS="-g"
2903          cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909
2910 int
2911 main ()
2912 {
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (ac_try="$ac_compile"
2920 case "(($ac_try" in
2921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922   *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2925 $as_echo "$ac_try_echo") >&5
2926   (eval "$ac_compile") 2>conftest.er1
2927   ac_status=$?
2928   grep -v '^ *+' conftest.er1 >conftest.err
2929   rm -f conftest.er1
2930   cat conftest.err >&5
2931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } && {
2933          test -z "$ac_c_werror_flag" ||
2934          test ! -s conftest.err
2935        } && test -s conftest.$ac_objext; then
2936   ac_cv_prog_cc_g=yes
2937 else
2938   $as_echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2940
2941
2942 fi
2943
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 fi
2946
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2948 fi
2949
2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951    ac_c_werror_flag=$ac_save_c_werror_flag
2952 fi
2953 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2954 $as_echo "$ac_cv_prog_cc_g" >&6; }
2955 if test "$ac_test_CFLAGS" = set; then
2956   CFLAGS=$ac_save_CFLAGS
2957 elif test $ac_cv_prog_cc_g = yes; then
2958   if test "$GCC" = yes; then
2959     CFLAGS="-g -O2"
2960   else
2961     CFLAGS="-g"
2962   fi
2963 else
2964   if test "$GCC" = yes; then
2965     CFLAGS="-O2"
2966   else
2967     CFLAGS=
2968   fi
2969 fi
2970 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2971 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2972 if test "${ac_cv_prog_cc_c89+set}" = set; then
2973   $as_echo_n "(cached) " >&6
2974 else
2975   ac_cv_prog_cc_c89=no
2976 ac_save_CC=$CC
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <stdarg.h>
2984 #include <stdio.h>
2985 #include <sys/types.h>
2986 #include <sys/stat.h>
2987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2988 struct buf { int x; };
2989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2990 static char *e (p, i)
2991      char **p;
2992      int i;
2993 {
2994   return p[i];
2995 }
2996 static char *f (char * (*g) (char **, int), char **p, ...)
2997 {
2998   char *s;
2999   va_list v;
3000   va_start (v,p);
3001   s = g (p, va_arg (v,int));
3002   va_end (v);
3003   return s;
3004 }
3005
3006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3007    function prototypes and stuff, but not '\xHH' hex character constants.
3008    These don't provoke an error unfortunately, instead are silently treated
3009    as 'x'.  The following induces an error, until -std is added to get
3010    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3011    array size at least.  It's necessary to write '\x00'==0 to get something
3012    that's true only with -std.  */
3013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3014
3015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3016    inside strings and character constants.  */
3017 #define FOO(x) 'x'
3018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3019
3020 int test (int i, double x);
3021 struct s1 {int (*f) (int a);};
3022 struct s2 {int (*f) (double a);};
3023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3024 int argc;
3025 char **argv;
3026 int
3027 main ()
3028 {
3029 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3035         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3036 do
3037   CC="$ac_save_CC $ac_arg"
3038   rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_c_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   ac_cv_prog_cc_c89=$ac_arg
3057 else
3058   $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext
3065   test "x$ac_cv_prog_cc_c89" != "xno" && break
3066 done
3067 rm -f conftest.$ac_ext
3068 CC=$ac_save_CC
3069
3070 fi
3071 # AC_CACHE_VAL
3072 case "x$ac_cv_prog_cc_c89" in
3073   x)
3074     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3075 $as_echo "none needed" >&6; } ;;
3076   xno)
3077     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3078 $as_echo "unsupported" >&6; } ;;
3079   *)
3080     CC="$CC $ac_cv_prog_cc_c89"
3081     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3083 esac
3084
3085
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3093 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3094 if test "${ac_cv_path_SED+set}" = set; then
3095   $as_echo_n "(cached) " >&6
3096 else
3097             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3098      for ac_i in 1 2 3 4 5 6 7; do
3099        ac_script="$ac_script$as_nl$ac_script"
3100      done
3101      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3102      $as_unset ac_script || ac_script=
3103      if test -z "$SED"; then
3104   ac_path_SED_found=false
3105   # Loop through the user's path and test for each of PROGNAME-LIST
3106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111   for ac_prog in sed gsed; do
3112     for ac_exec_ext in '' $ac_executable_extensions; do
3113       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3114       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3115 # Check for GNU ac_path_SED and select it if it is found.
3116   # Check for GNU $ac_path_SED
3117 case `"$ac_path_SED" --version 2>&1` in
3118 *GNU*)
3119   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3120 *)
3121   ac_count=0
3122   $as_echo_n 0123456789 >"conftest.in"
3123   while :
3124   do
3125     cat "conftest.in" "conftest.in" >"conftest.tmp"
3126     mv "conftest.tmp" "conftest.in"
3127     cp "conftest.in" "conftest.nl"
3128     $as_echo '' >> "conftest.nl"
3129     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3130     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3131     ac_count=`expr $ac_count + 1`
3132     if test $ac_count -gt ${ac_path_SED_max-0}; then
3133       # Best one so far, save it but keep looking for a better one
3134       ac_cv_path_SED="$ac_path_SED"
3135       ac_path_SED_max=$ac_count
3136     fi
3137     # 10*(2^10) chars as input seems more than enough
3138     test $ac_count -gt 10 && break
3139   done
3140   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3141 esac
3142
3143       $ac_path_SED_found && break 3
3144     done
3145   done
3146 done
3147 IFS=$as_save_IFS
3148   if test -z "$ac_cv_path_SED"; then
3149     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3150 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3151    { (exit 1); exit 1; }; }
3152   fi
3153 else
3154   ac_cv_path_SED=$SED
3155 fi
3156
3157 fi
3158 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3159 $as_echo "$ac_cv_path_SED" >&6; }
3160  SED="$ac_cv_path_SED"
3161   rm -f conftest.sed
3162
3163 test -z "$SED" && SED=sed
3164 Xsed="$SED -e 1s/^X//"
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3177 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3178 if test "${ac_cv_path_GREP+set}" = set; then
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -z "$GREP"; then
3182   ac_path_GREP_found=false
3183   # Loop through the user's path and test for each of PROGNAME-LIST
3184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_prog in grep ggrep; do
3190     for ac_exec_ext in '' $ac_executable_extensions; do
3191       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3192       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3193 # Check for GNU ac_path_GREP and select it if it is found.
3194   # Check for GNU $ac_path_GREP
3195 case `"$ac_path_GREP" --version 2>&1` in
3196 *GNU*)
3197   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3198 *)
3199   ac_count=0
3200   $as_echo_n 0123456789 >"conftest.in"
3201   while :
3202   do
3203     cat "conftest.in" "conftest.in" >"conftest.tmp"
3204     mv "conftest.tmp" "conftest.in"
3205     cp "conftest.in" "conftest.nl"
3206     $as_echo 'GREP' >> "conftest.nl"
3207     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3208     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3209     ac_count=`expr $ac_count + 1`
3210     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3211       # Best one so far, save it but keep looking for a better one
3212       ac_cv_path_GREP="$ac_path_GREP"
3213       ac_path_GREP_max=$ac_count
3214     fi
3215     # 10*(2^10) chars as input seems more than enough
3216     test $ac_count -gt 10 && break
3217   done
3218   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3219 esac
3220
3221       $ac_path_GREP_found && break 3
3222     done
3223   done
3224 done
3225 IFS=$as_save_IFS
3226   if test -z "$ac_cv_path_GREP"; then
3227     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3228 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3229    { (exit 1); exit 1; }; }
3230   fi
3231 else
3232   ac_cv_path_GREP=$GREP
3233 fi
3234
3235 fi
3236 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3237 $as_echo "$ac_cv_path_GREP" >&6; }
3238  GREP="$ac_cv_path_GREP"
3239
3240
3241 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3242 $as_echo_n "checking for egrep... " >&6; }
3243 if test "${ac_cv_path_EGREP+set}" = set; then
3244   $as_echo_n "(cached) " >&6
3245 else
3246   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3247    then ac_cv_path_EGREP="$GREP -E"
3248    else
3249      if test -z "$EGREP"; then
3250   ac_path_EGREP_found=false
3251   # Loop through the user's path and test for each of PROGNAME-LIST
3252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257   for ac_prog in egrep; do
3258     for ac_exec_ext in '' $ac_executable_extensions; do
3259       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3260       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3261 # Check for GNU ac_path_EGREP and select it if it is found.
3262   # Check for GNU $ac_path_EGREP
3263 case `"$ac_path_EGREP" --version 2>&1` in
3264 *GNU*)
3265   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3266 *)
3267   ac_count=0
3268   $as_echo_n 0123456789 >"conftest.in"
3269   while :
3270   do
3271     cat "conftest.in" "conftest.in" >"conftest.tmp"
3272     mv "conftest.tmp" "conftest.in"
3273     cp "conftest.in" "conftest.nl"
3274     $as_echo 'EGREP' >> "conftest.nl"
3275     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3277     ac_count=`expr $ac_count + 1`
3278     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3279       # Best one so far, save it but keep looking for a better one
3280       ac_cv_path_EGREP="$ac_path_EGREP"
3281       ac_path_EGREP_max=$ac_count
3282     fi
3283     # 10*(2^10) chars as input seems more than enough
3284     test $ac_count -gt 10 && break
3285   done
3286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3287 esac
3288
3289       $ac_path_EGREP_found && break 3
3290     done
3291   done
3292 done
3293 IFS=$as_save_IFS
3294   if test -z "$ac_cv_path_EGREP"; then
3295     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3296 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3297    { (exit 1); exit 1; }; }
3298   fi
3299 else
3300   ac_cv_path_EGREP=$EGREP
3301 fi
3302
3303    fi
3304 fi
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3306 $as_echo "$ac_cv_path_EGREP" >&6; }
3307  EGREP="$ac_cv_path_EGREP"
3308
3309
3310 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3311 $as_echo_n "checking for fgrep... " >&6; }
3312 if test "${ac_cv_path_FGREP+set}" = set; then
3313   $as_echo_n "(cached) " >&6
3314 else
3315   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3316    then ac_cv_path_FGREP="$GREP -F"
3317    else
3318      if test -z "$FGREP"; then
3319   ac_path_FGREP_found=false
3320   # Loop through the user's path and test for each of PROGNAME-LIST
3321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_prog in fgrep; do
3327     for ac_exec_ext in '' $ac_executable_extensions; do
3328       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3329       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3330 # Check for GNU ac_path_FGREP and select it if it is found.
3331   # Check for GNU $ac_path_FGREP
3332 case `"$ac_path_FGREP" --version 2>&1` in
3333 *GNU*)
3334   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3335 *)
3336   ac_count=0
3337   $as_echo_n 0123456789 >"conftest.in"
3338   while :
3339   do
3340     cat "conftest.in" "conftest.in" >"conftest.tmp"
3341     mv "conftest.tmp" "conftest.in"
3342     cp "conftest.in" "conftest.nl"
3343     $as_echo 'FGREP' >> "conftest.nl"
3344     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3346     ac_count=`expr $ac_count + 1`
3347     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3348       # Best one so far, save it but keep looking for a better one
3349       ac_cv_path_FGREP="$ac_path_FGREP"
3350       ac_path_FGREP_max=$ac_count
3351     fi
3352     # 10*(2^10) chars as input seems more than enough
3353     test $ac_count -gt 10 && break
3354   done
3355   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3356 esac
3357
3358       $ac_path_FGREP_found && break 3
3359     done
3360   done
3361 done
3362 IFS=$as_save_IFS
3363   if test -z "$ac_cv_path_FGREP"; then
3364     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3365 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3366    { (exit 1); exit 1; }; }
3367   fi
3368 else
3369   ac_cv_path_FGREP=$FGREP
3370 fi
3371
3372    fi
3373 fi
3374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3375 $as_echo "$ac_cv_path_FGREP" >&6; }
3376  FGREP="$ac_cv_path_FGREP"
3377
3378
3379 test -z "$GREP" && GREP=grep
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399 # Check whether --with-gnu-ld was given.
3400 if test "${with_gnu_ld+set}" = set; then
3401   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3402 else
3403   with_gnu_ld=no
3404 fi
3405
3406 ac_prog=ld
3407 if test "$GCC" = yes; then
3408   # Check if gcc -print-prog-name=ld gives a path.
3409   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3410 $as_echo_n "checking for ld used by $CC... " >&6; }
3411   case $host in
3412   *-*-mingw*)
3413     # gcc leaves a trailing carriage return which upsets mingw
3414     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3415   *)
3416     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3417   esac
3418   case $ac_prog in
3419     # Accept absolute paths.
3420     [\\/]* | ?:[\\/]*)
3421       re_direlt='/[^/][^/]*/\.\./'
3422       # Canonicalize the pathname of ld
3423       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3424       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3425         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3426       done
3427       test -z "$LD" && LD="$ac_prog"
3428       ;;
3429   "")
3430     # If it fails, then pretend we aren't using GCC.
3431     ac_prog=ld
3432     ;;
3433   *)
3434     # If it is relative, then search for the first ld in PATH.
3435     with_gnu_ld=unknown
3436     ;;
3437   esac
3438 elif test "$with_gnu_ld" = yes; then
3439   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3440 $as_echo_n "checking for GNU ld... " >&6; }
3441 else
3442   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3443 $as_echo_n "checking for non-GNU ld... " >&6; }
3444 fi
3445 if test "${lt_cv_path_LD+set}" = set; then
3446   $as_echo_n "(cached) " >&6
3447 else
3448   if test -z "$LD"; then
3449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3450   for ac_dir in $PATH; do
3451     IFS="$lt_save_ifs"
3452     test -z "$ac_dir" && ac_dir=.
3453     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3454       lt_cv_path_LD="$ac_dir/$ac_prog"
3455       # Check to see if the program is GNU ld.  I'd rather use --version,
3456       # but apparently some variants of GNU ld only accept -v.
3457       # Break only if it was the GNU/non-GNU ld that we prefer.
3458       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3459       *GNU* | *'with BFD'*)
3460         test "$with_gnu_ld" != no && break
3461         ;;
3462       *)
3463         test "$with_gnu_ld" != yes && break
3464         ;;
3465       esac
3466     fi
3467   done
3468   IFS="$lt_save_ifs"
3469 else
3470   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3471 fi
3472 fi
3473
3474 LD="$lt_cv_path_LD"
3475 if test -n "$LD"; then
3476   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3477 $as_echo "$LD" >&6; }
3478 else
3479   { $as_echo "$as_me:$LINENO: result: no" >&5
3480 $as_echo "no" >&6; }
3481 fi
3482 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3483 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3484    { (exit 1); exit 1; }; }
3485 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3486 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3487 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3488   $as_echo_n "(cached) " >&6
3489 else
3490   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3491 case `$LD -v 2>&1 </dev/null` in
3492 *GNU* | *'with BFD'*)
3493   lt_cv_prog_gnu_ld=yes
3494   ;;
3495 *)
3496   lt_cv_prog_gnu_ld=no
3497   ;;
3498 esac
3499 fi
3500 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3501 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3502 with_gnu_ld=$lt_cv_prog_gnu_ld
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3513 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3514 if test "${lt_cv_path_NM+set}" = set; then
3515   $as_echo_n "(cached) " >&6
3516 else
3517   if test -n "$NM"; then
3518   # Let the user override the test.
3519   lt_cv_path_NM="$NM"
3520 else
3521   lt_nm_to_check="${ac_tool_prefix}nm"
3522   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3523     lt_nm_to_check="$lt_nm_to_check nm"
3524   fi
3525   for lt_tmp_nm in $lt_nm_to_check; do
3526     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3528       IFS="$lt_save_ifs"
3529       test -z "$ac_dir" && ac_dir=.
3530       tmp_nm="$ac_dir/$lt_tmp_nm"
3531       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3532         # Check to see if the nm accepts a BSD-compat flag.
3533         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3534         #   nm: unknown option "B" ignored
3535         # Tru64's nm complains that /dev/null is an invalid object file
3536         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3537         */dev/null* | *'Invalid file or object type'*)
3538           lt_cv_path_NM="$tmp_nm -B"
3539           break
3540           ;;
3541         *)
3542           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3543           */dev/null*)
3544             lt_cv_path_NM="$tmp_nm -p"
3545             break
3546             ;;
3547           *)
3548             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3549             continue # so that we can try to find one that supports BSD flags
3550             ;;
3551           esac
3552           ;;
3553         esac
3554       fi
3555     done
3556     IFS="$lt_save_ifs"
3557   done
3558   : ${lt_cv_path_NM=no}
3559 fi
3560 fi
3561 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3562 $as_echo "$lt_cv_path_NM" >&6; }
3563 if test "$lt_cv_path_NM" != "no"; then
3564   NM="$lt_cv_path_NM"
3565 else
3566   # Didn't find any BSD compatible name lister, look for dumpbin.
3567   if test -n "$ac_tool_prefix"; then
3568   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3569   do
3570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3575   $as_echo_n "(cached) " >&6
3576 else
3577   if test -n "$DUMPBIN"; then
3578   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583   IFS=$as_save_IFS
3584   test -z "$as_dir" && as_dir=.
3585   for ac_exec_ext in '' $ac_executable_extensions; do
3586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3588     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589     break 2
3590   fi
3591 done
3592 done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 DUMPBIN=$ac_cv_prog_DUMPBIN
3598 if test -n "$DUMPBIN"; then
3599   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3600 $as_echo "$DUMPBIN" >&6; }
3601 else
3602   { $as_echo "$as_me:$LINENO: result: no" >&5
3603 $as_echo "no" >&6; }
3604 fi
3605
3606
3607     test -n "$DUMPBIN" && break
3608   done
3609 fi
3610 if test -z "$DUMPBIN"; then
3611   ac_ct_DUMPBIN=$DUMPBIN
3612   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3613 do
3614   # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy $ac_prog; ac_word=$2
3616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3619   $as_echo_n "(cached) " >&6
3620 else
3621   if test -n "$ac_ct_DUMPBIN"; then
3622   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629   for ac_exec_ext in '' $ac_executable_extensions; do
3630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3632     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633     break 2
3634   fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi
3640 fi
3641 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3642 if test -n "$ac_ct_DUMPBIN"; then
3643   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3644 $as_echo "$ac_ct_DUMPBIN" >&6; }
3645 else
3646   { $as_echo "$as_me:$LINENO: result: no" >&5
3647 $as_echo "no" >&6; }
3648 fi
3649
3650
3651   test -n "$ac_ct_DUMPBIN" && break
3652 done
3653
3654   if test "x$ac_ct_DUMPBIN" = x; then
3655     DUMPBIN=":"
3656   else
3657     case $cross_compiling:$ac_tool_warned in
3658 yes:)
3659 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned=yes ;;
3662 esac
3663     DUMPBIN=$ac_ct_DUMPBIN
3664   fi
3665 fi
3666
3667
3668   if test "$DUMPBIN" != ":"; then
3669     NM="$DUMPBIN"
3670   fi
3671 fi
3672 test -z "$NM" && NM=nm
3673
3674
3675
3676
3677
3678
3679 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3680 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3681 if test "${lt_cv_nm_interface+set}" = set; then
3682   $as_echo_n "(cached) " >&6
3683 else
3684   lt_cv_nm_interface="BSD nm"
3685   echo "int some_variable = 0;" > conftest.$ac_ext
3686   (eval echo "\"\$as_me:3686: $ac_compile\"" >&5)
3687   (eval "$ac_compile" 2>conftest.err)
3688   cat conftest.err >&5
3689   (eval echo "\"\$as_me:3689: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3690   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3691   cat conftest.err >&5
3692   (eval echo "\"\$as_me:3692: output\"" >&5)
3693   cat conftest.out >&5
3694   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3695     lt_cv_nm_interface="MS dumpbin"
3696   fi
3697   rm -f conftest*
3698 fi
3699 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3700 $as_echo "$lt_cv_nm_interface" >&6; }
3701
3702 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3703 $as_echo_n "checking whether ln -s works... " >&6; }
3704 LN_S=$as_ln_s
3705 if test "$LN_S" = "ln -s"; then
3706   { $as_echo "$as_me:$LINENO: result: yes" >&5
3707 $as_echo "yes" >&6; }
3708 else
3709   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3710 $as_echo "no, using $LN_S" >&6; }
3711 fi
3712
3713 # find the maximum length of command line arguments
3714 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3715 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3717   $as_echo_n "(cached) " >&6
3718 else
3719     i=0
3720   teststring="ABCD"
3721
3722   case $build_os in
3723   msdosdjgpp*)
3724     # On DJGPP, this test can blow up pretty badly due to problems in libc
3725     # (any single argument exceeding 2000 bytes causes a buffer overrun
3726     # during glob expansion).  Even if it were fixed, the result of this
3727     # check would be larger than it should be.
3728     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3729     ;;
3730
3731   gnu*)
3732     # Under GNU Hurd, this test is not required because there is
3733     # no limit to the length of command line arguments.
3734     # Libtool will interpret -1 as no limit whatsoever
3735     lt_cv_sys_max_cmd_len=-1;
3736     ;;
3737
3738   cygwin* | mingw* | cegcc*)
3739     # On Win9x/ME, this test blows up -- it succeeds, but takes
3740     # about 5 minutes as the teststring grows exponentially.
3741     # Worse, since 9x/ME are not pre-emptively multitasking,
3742     # you end up with a "frozen" computer, even though with patience
3743     # the test eventually succeeds (with a max line length of 256k).
3744     # Instead, let's just punt: use the minimum linelength reported by
3745     # all of the supported platforms: 8192 (on NT/2K/XP).
3746     lt_cv_sys_max_cmd_len=8192;
3747     ;;
3748
3749   amigaos*)
3750     # On AmigaOS with pdksh, this test takes hours, literally.
3751     # So we just punt and use a minimum line length of 8192.
3752     lt_cv_sys_max_cmd_len=8192;
3753     ;;
3754
3755   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3756     # This has been around since 386BSD, at least.  Likely further.
3757     if test -x /sbin/sysctl; then
3758       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3759     elif test -x /usr/sbin/sysctl; then
3760       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3761     else
3762       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3763     fi
3764     # And add a safety zone
3765     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3766     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3767     ;;
3768
3769   interix*)
3770     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3771     lt_cv_sys_max_cmd_len=196608
3772     ;;
3773
3774   osf*)
3775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3777     # nice to cause kernel panics so lets avoid the loop below.
3778     # First set a reasonable default.
3779     lt_cv_sys_max_cmd_len=16384
3780     #
3781     if test -x /sbin/sysconfig; then
3782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3784       esac
3785     fi
3786     ;;
3787   sco3.2v5*)
3788     lt_cv_sys_max_cmd_len=102400
3789     ;;
3790   sysv5* | sco5v6* | sysv4.2uw2*)
3791     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3792     if test -n "$kargmax"; then
3793       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3794     else
3795       lt_cv_sys_max_cmd_len=32768
3796     fi
3797     ;;
3798   *)
3799     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3800     if test -n "$lt_cv_sys_max_cmd_len"; then
3801       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3802       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3803     else
3804       # Make teststring a little bigger before we do anything with it.
3805       # a 1K string should be a reasonable start.
3806       for i in 1 2 3 4 5 6 7 8 ; do
3807         teststring=$teststring$teststring
3808       done
3809       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3810       # If test is not a shell built-in, we'll probably end up computing a
3811       # maximum length that is only half of the actual maximum length, but
3812       # we can't tell.
3813       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3814                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3815               test $i != 17 # 1/2 MB should be enough
3816       do
3817         i=`expr $i + 1`
3818         teststring=$teststring$teststring
3819       done
3820       # Only check the string length outside the loop.
3821       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3822       teststring=
3823       # Add a significant safety factor because C++ compilers can tack on
3824       # massive amounts of additional arguments before passing them to the
3825       # linker.  It appears as though 1/2 is a usable value.
3826       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3827     fi
3828     ;;
3829   esac
3830
3831 fi
3832
3833 if test -n $lt_cv_sys_max_cmd_len ; then
3834   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3835 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3836 else
3837   { $as_echo "$as_me:$LINENO: result: none" >&5
3838 $as_echo "none" >&6; }
3839 fi
3840 max_cmd_len=$lt_cv_sys_max_cmd_len
3841
3842
3843
3844
3845
3846
3847 : ${CP="cp -f"}
3848 : ${MV="mv -f"}
3849 : ${RM="rm -f"}
3850
3851 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3852 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3853 # Try some XSI features
3854 xsi_shell=no
3855 ( _lt_dummy="a/b/c"
3856   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3857       = c,a/b,, \
3858     && eval 'test $(( 1 + 1 )) -eq 2 \
3859     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3860   && xsi_shell=yes
3861 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3862 $as_echo "$xsi_shell" >&6; }
3863
3864
3865 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3866 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3867 lt_shell_append=no
3868 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3869     >/dev/null 2>&1 \
3870   && lt_shell_append=yes
3871 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3872 $as_echo "$lt_shell_append" >&6; }
3873
3874
3875 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3876   lt_unset=unset
3877 else
3878   lt_unset=false
3879 fi
3880
3881
3882
3883
3884
3885 # test EBCDIC or ASCII
3886 case `echo X|tr X '\101'` in
3887  A) # ASCII based system
3888     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3889   lt_SP2NL='tr \040 \012'
3890   lt_NL2SP='tr \015\012 \040\040'
3891   ;;
3892  *) # EBCDIC based system
3893   lt_SP2NL='tr \100 \n'
3894   lt_NL2SP='tr \r\n \100\100'
3895   ;;
3896 esac
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3907 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3908 if test "${lt_cv_ld_reload_flag+set}" = set; then
3909   $as_echo_n "(cached) " >&6
3910 else
3911   lt_cv_ld_reload_flag='-r'
3912 fi
3913 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3914 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3915 reload_flag=$lt_cv_ld_reload_flag
3916 case $reload_flag in
3917 "" | " "*) ;;
3918 *) reload_flag=" $reload_flag" ;;
3919 esac
3920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3921 case $host_os in
3922   darwin*)
3923     if test "$GCC" = yes; then
3924       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3925     else
3926       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3927     fi
3928     ;;
3929 esac
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939 if test -n "$ac_tool_prefix"; then
3940   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3941 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 $as_echo_n "checking for $ac_word... " >&6; }
3944 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3945   $as_echo_n "(cached) " >&6
3946 else
3947   if test -n "$OBJDUMP"; then
3948   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_exec_ext in '' $ac_executable_extensions; do
3956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3958     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962 done
3963 IFS=$as_save_IFS
3964
3965 fi
3966 fi
3967 OBJDUMP=$ac_cv_prog_OBJDUMP
3968 if test -n "$OBJDUMP"; then
3969   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3970 $as_echo "$OBJDUMP" >&6; }
3971 else
3972   { $as_echo "$as_me:$LINENO: result: no" >&5
3973 $as_echo "no" >&6; }
3974 fi
3975
3976
3977 fi
3978 if test -z "$ac_cv_prog_OBJDUMP"; then
3979   ac_ct_OBJDUMP=$OBJDUMP
3980   # Extract the first word of "objdump", so it can be a program name with args.
3981 set dummy objdump; ac_word=$2
3982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -n "$ac_ct_OBJDUMP"; then
3988   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3998     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003 IFS=$as_save_IFS
4004
4005 fi
4006 fi
4007 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4008 if test -n "$ac_ct_OBJDUMP"; then
4009   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4010 $as_echo "$ac_ct_OBJDUMP" >&6; }
4011 else
4012   { $as_echo "$as_me:$LINENO: result: no" >&5
4013 $as_echo "no" >&6; }
4014 fi
4015
4016   if test "x$ac_ct_OBJDUMP" = x; then
4017     OBJDUMP="false"
4018   else
4019     case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025     OBJDUMP=$ac_ct_OBJDUMP
4026   fi
4027 else
4028   OBJDUMP="$ac_cv_prog_OBJDUMP"
4029 fi
4030
4031 test -z "$OBJDUMP" && OBJDUMP=objdump
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4042 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4043 if test "${lt_cv_deplibs_check_method+set}" = set; then
4044   $as_echo_n "(cached) " >&6
4045 else
4046   lt_cv_file_magic_cmd='$MAGIC_CMD'
4047 lt_cv_file_magic_test_file=
4048 lt_cv_deplibs_check_method='unknown'
4049 # Need to set the preceding variable on all platforms that support
4050 # interlibrary dependencies.
4051 # 'none' -- dependencies not supported.
4052 # `unknown' -- same as none, but documents that we really don't know.
4053 # 'pass_all' -- all dependencies passed with no checks.
4054 # 'test_compile' -- check by making test program.
4055 # 'file_magic [[regex]]' -- check by looking for files in library path
4056 # which responds to the $file_magic_cmd with a given extended regex.
4057 # If you have `file' or equivalent on your system and you're not sure
4058 # whether `pass_all' will *always* work, you probably want this one.
4059
4060 case $host_os in
4061 aix[4-9]*)
4062   lt_cv_deplibs_check_method=pass_all
4063   ;;
4064
4065 beos*)
4066   lt_cv_deplibs_check_method=pass_all
4067   ;;
4068
4069 bsdi[45]*)
4070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4071   lt_cv_file_magic_cmd='/usr/bin/file -L'
4072   lt_cv_file_magic_test_file=/shlib/libc.so
4073   ;;
4074
4075 cygwin*)
4076   # func_win32_libid is a shell function defined in ltmain.sh
4077   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4078   lt_cv_file_magic_cmd='func_win32_libid'
4079   ;;
4080
4081 mingw* | pw32*)
4082   # Base MSYS/MinGW do not provide the 'file' command needed by
4083   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4084   # unless we find 'file', for example because we are cross-compiling.
4085   if ( file / ) >/dev/null 2>&1; then
4086     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4087     lt_cv_file_magic_cmd='func_win32_libid'
4088   else
4089     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4090     lt_cv_file_magic_cmd='$OBJDUMP -f'
4091   fi
4092   ;;
4093
4094 cegcc)
4095   # use the weaker test based on 'objdump'. See mingw*.
4096   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4097   lt_cv_file_magic_cmd='$OBJDUMP -f'
4098   ;;
4099
4100 darwin* | rhapsody*)
4101   lt_cv_deplibs_check_method=pass_all
4102   ;;
4103
4104 freebsd* | dragonfly*)
4105   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4106     case $host_cpu in
4107     i*86 )
4108       # Not sure whether the presence of OpenBSD here was a mistake.
4109       # Let's accept both of them until this is cleared up.
4110       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4111       lt_cv_file_magic_cmd=/usr/bin/file
4112       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4113       ;;
4114     esac
4115   else
4116     lt_cv_deplibs_check_method=pass_all
4117   fi
4118   ;;
4119
4120 gnu*)
4121   lt_cv_deplibs_check_method=pass_all
4122   ;;
4123
4124 hpux10.20* | hpux11*)
4125   lt_cv_file_magic_cmd=/usr/bin/file
4126   case $host_cpu in
4127   ia64*)
4128     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4129     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4130     ;;
4131   hppa*64*)
4132     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]'
4133     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4134     ;;
4135   *)
4136     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4137     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4138     ;;
4139   esac
4140   ;;
4141
4142 interix[3-9]*)
4143   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4144   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4145   ;;
4146
4147 irix5* | irix6* | nonstopux*)
4148   case $LD in
4149   *-32|*"-32 ") libmagic=32-bit;;
4150   *-n32|*"-n32 ") libmagic=N32;;
4151   *-64|*"-64 ") libmagic=64-bit;;
4152   *) libmagic=never-match;;
4153   esac
4154   lt_cv_deplibs_check_method=pass_all
4155   ;;
4156
4157 # This must be Linux ELF.
4158 linux* | k*bsd*-gnu)
4159   lt_cv_deplibs_check_method=pass_all
4160   ;;
4161
4162 netbsd*)
4163   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4164     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4165   else
4166     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4167   fi
4168   ;;
4169
4170 newos6*)
4171   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4172   lt_cv_file_magic_cmd=/usr/bin/file
4173   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4174   ;;
4175
4176 *nto* | *qnx*)
4177   lt_cv_deplibs_check_method=pass_all
4178   ;;
4179
4180 openbsd*)
4181   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4182     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4183   else
4184     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4185   fi
4186   ;;
4187
4188 osf3* | osf4* | osf5*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4191
4192 rdos*)
4193   lt_cv_deplibs_check_method=pass_all
4194   ;;
4195
4196 solaris*)
4197   lt_cv_deplibs_check_method=pass_all
4198   ;;
4199
4200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4201   lt_cv_deplibs_check_method=pass_all
4202   ;;
4203
4204 sysv4 | sysv4.3*)
4205   case $host_vendor in
4206   motorola)
4207     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]'
4208     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4209     ;;
4210   ncr)
4211     lt_cv_deplibs_check_method=pass_all
4212     ;;
4213   sequent)
4214     lt_cv_file_magic_cmd='/bin/file'
4215     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4216     ;;
4217   sni)
4218     lt_cv_file_magic_cmd='/bin/file'
4219     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4220     lt_cv_file_magic_test_file=/lib/libc.so
4221     ;;
4222   siemens)
4223     lt_cv_deplibs_check_method=pass_all
4224     ;;
4225   pc)
4226     lt_cv_deplibs_check_method=pass_all
4227     ;;
4228   esac
4229   ;;
4230
4231 tpf*)
4232   lt_cv_deplibs_check_method=pass_all
4233   ;;
4234 esac
4235
4236 fi
4237 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4238 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4239 file_magic_cmd=$lt_cv_file_magic_cmd
4240 deplibs_check_method=$lt_cv_deplibs_check_method
4241 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254 if test -n "$ac_tool_prefix"; then
4255   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}ar; ac_word=$2
4257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if test "${ac_cv_prog_AR+set}" = set; then
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if test -n "$AR"; then
4263   ac_cv_prog_AR="$AR" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_prog_AR="${ac_tool_prefix}ar"
4273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 AR=$ac_cv_prog_AR
4283 if test -n "$AR"; then
4284   { $as_echo "$as_me:$LINENO: result: $AR" >&5
4285 $as_echo "$AR" >&6; }
4286 else
4287   { $as_echo "$as_me:$LINENO: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292 fi
4293 if test -z "$ac_cv_prog_AR"; then
4294   ac_ct_AR=$AR
4295   # Extract the first word of "ar", so it can be a program name with args.
4296 set dummy ar; ac_word=$2
4297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4300   $as_echo_n "(cached) " >&6
4301 else
4302   if test -n "$ac_ct_AR"; then
4303   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310   for ac_exec_ext in '' $ac_executable_extensions; do
4311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312     ac_cv_prog_ac_ct_AR="ar"
4313     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4323 if test -n "$ac_ct_AR"; then
4324   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4325 $as_echo "$ac_ct_AR" >&6; }
4326 else
4327   { $as_echo "$as_me:$LINENO: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331   if test "x$ac_ct_AR" = x; then
4332     AR="false"
4333   else
4334     case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340     AR=$ac_ct_AR
4341   fi
4342 else
4343   AR="$ac_cv_prog_AR"
4344 fi
4345
4346 test -z "$AR" && AR=ar
4347 test -z "$AR_FLAGS" && AR_FLAGS=cru
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359 if test -n "$ac_tool_prefix"; then
4360   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}strip; ac_word=$2
4362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if test "${ac_cv_prog_STRIP+set}" = set; then
4365   $as_echo_n "(cached) " >&6
4366 else
4367   if test -n "$STRIP"; then
4368   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373   IFS=$as_save_IFS
4374   test -z "$as_dir" && as_dir=.
4375   for ac_exec_ext in '' $ac_executable_extensions; do
4376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4378     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379     break 2
4380   fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385 fi
4386 fi
4387 STRIP=$ac_cv_prog_STRIP
4388 if test -n "$STRIP"; then
4389   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4390 $as_echo "$STRIP" >&6; }
4391 else
4392   { $as_echo "$as_me:$LINENO: result: no" >&5
4393 $as_echo "no" >&6; }
4394 fi
4395
4396
4397 fi
4398 if test -z "$ac_cv_prog_STRIP"; then
4399   ac_ct_STRIP=$STRIP
4400   # Extract the first word of "strip", so it can be a program name with args.
4401 set dummy strip; ac_word=$2
4402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4405   $as_echo_n "(cached) " >&6
4406 else
4407   if test -n "$ac_ct_STRIP"; then
4408   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413   IFS=$as_save_IFS
4414   test -z "$as_dir" && as_dir=.
4415   for ac_exec_ext in '' $ac_executable_extensions; do
4416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417     ac_cv_prog_ac_ct_STRIP="strip"
4418     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419     break 2
4420   fi
4421 done
4422 done
4423 IFS=$as_save_IFS
4424
4425 fi
4426 fi
4427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4428 if test -n "$ac_ct_STRIP"; then
4429   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4430 $as_echo "$ac_ct_STRIP" >&6; }
4431 else
4432   { $as_echo "$as_me:$LINENO: result: no" >&5
4433 $as_echo "no" >&6; }
4434 fi
4435
4436   if test "x$ac_ct_STRIP" = x; then
4437     STRIP=":"
4438   else
4439     case $cross_compiling:$ac_tool_warned in
4440 yes:)
4441 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443 ac_tool_warned=yes ;;
4444 esac
4445     STRIP=$ac_ct_STRIP
4446   fi
4447 else
4448   STRIP="$ac_cv_prog_STRIP"
4449 fi
4450
4451 test -z "$STRIP" && STRIP=:
4452
4453
4454
4455
4456
4457
4458 if test -n "$ac_tool_prefix"; then
4459   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if test "${ac_cv_prog_RANLIB+set}" = set; then
4464   $as_echo_n "(cached) " >&6
4465 else
4466   if test -n "$RANLIB"; then
4467   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472   IFS=$as_save_IFS
4473   test -z "$as_dir" && as_dir=.
4474   for ac_exec_ext in '' $ac_executable_extensions; do
4475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4476     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4477     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478     break 2
4479   fi
4480 done
4481 done
4482 IFS=$as_save_IFS
4483
4484 fi
4485 fi
4486 RANLIB=$ac_cv_prog_RANLIB
4487 if test -n "$RANLIB"; then
4488   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4489 $as_echo "$RANLIB" >&6; }
4490 else
4491   { $as_echo "$as_me:$LINENO: result: no" >&5
4492 $as_echo "no" >&6; }
4493 fi
4494
4495
4496 fi
4497 if test -z "$ac_cv_prog_RANLIB"; then
4498   ac_ct_RANLIB=$RANLIB
4499   # Extract the first word of "ranlib", so it can be a program name with args.
4500 set dummy ranlib; ac_word=$2
4501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4504   $as_echo_n "(cached) " >&6
4505 else
4506   if test -n "$ac_ct_RANLIB"; then
4507   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514   for ac_exec_ext in '' $ac_executable_extensions; do
4515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516     ac_cv_prog_ac_ct_RANLIB="ranlib"
4517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 fi
4525 fi
4526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4527 if test -n "$ac_ct_RANLIB"; then
4528   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4529 $as_echo "$ac_ct_RANLIB" >&6; }
4530 else
4531   { $as_echo "$as_me:$LINENO: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535   if test "x$ac_ct_RANLIB" = x; then
4536     RANLIB=":"
4537   else
4538     case $cross_compiling:$ac_tool_warned in
4539 yes:)
4540 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542 ac_tool_warned=yes ;;
4543 esac
4544     RANLIB=$ac_ct_RANLIB
4545   fi
4546 else
4547   RANLIB="$ac_cv_prog_RANLIB"
4548 fi
4549
4550 test -z "$RANLIB" && RANLIB=:
4551
4552
4553
4554
4555
4556
4557 # Determine commands to create old-style static archives.
4558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4559 old_postinstall_cmds='chmod 644 $oldlib'
4560 old_postuninstall_cmds=
4561
4562 if test -n "$RANLIB"; then
4563   case $host_os in
4564   openbsd*)
4565     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4566     ;;
4567   *)
4568     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4569     ;;
4570   esac
4571   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4572 fi
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 # If no C compiler was specified, use CC.
4608 LTCC=${LTCC-"$CC"}
4609
4610 # If no C compiler flags were specified, use CFLAGS.
4611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4612
4613 # Allow CC to be a program name with arguments.
4614 compiler=$CC
4615
4616
4617 # Check for command to grab the raw symbol name followed by C symbol from nm.
4618 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4619 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4620 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4621   $as_echo_n "(cached) " >&6
4622 else
4623
4624 # These are sane defaults that work on at least a few old systems.
4625 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4626
4627 # Character class describing NM global symbol codes.
4628 symcode='[BCDEGRST]'
4629
4630 # Regexp to match symbols that can be accessed directly from C.
4631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4632
4633 # Define system-specific variables.
4634 case $host_os in
4635 aix*)
4636   symcode='[BCDT]'
4637   ;;
4638 cygwin* | mingw* | pw32* | cegcc*)
4639   symcode='[ABCDGISTW]'
4640   ;;
4641 hpux*)
4642   if test "$host_cpu" = ia64; then
4643     symcode='[ABCDEGRST]'
4644   fi
4645   ;;
4646 irix* | nonstopux*)
4647   symcode='[BCDEGRST]'
4648   ;;
4649 osf*)
4650   symcode='[BCDEGQRST]'
4651   ;;
4652 solaris*)
4653   symcode='[BDRT]'
4654   ;;
4655 sco3.2v5*)
4656   symcode='[DT]'
4657   ;;
4658 sysv4.2uw2*)
4659   symcode='[DT]'
4660   ;;
4661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4662   symcode='[ABDT]'
4663   ;;
4664 sysv4)
4665   symcode='[DFNSTU]'
4666   ;;
4667 esac
4668
4669 # If we're using GNU nm, then use its standard symbol codes.
4670 case `$NM -V 2>&1` in
4671 *GNU* | *'with BFD'*)
4672   symcode='[ABCDGIRSTW]' ;;
4673 esac
4674
4675 # Transform an extracted symbol line into a proper C declaration.
4676 # Some systems (esp. on ia64) link data and code symbols differently,
4677 # so use this general approach.
4678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4679
4680 # Transform an extracted symbol line into symbol name and symbol address
4681 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4683
4684 # Handle CRLF in mingw tool chain
4685 opt_cr=
4686 case $build_os in
4687 mingw*)
4688   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4689   ;;
4690 esac
4691
4692 # Try without a prefix underscore, then with it.
4693 for ac_symprfx in "" "_"; do
4694
4695   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4696   symxfrm="\\1 $ac_symprfx\\2 \\2"
4697
4698   # Write the raw and C identifiers.
4699   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4700     # Fake it for dumpbin and say T for any non-static function
4701     # and D for any global variable.
4702     # Also find C++ and __fastcall symbols from MSVC++,
4703     # which start with @ or ?.
4704     lt_cv_sys_global_symbol_pipe="$AWK '"\
4705 "     {last_section=section; section=\$ 3};"\
4706 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4707 "     \$ 0!~/External *\|/{next};"\
4708 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4709 "     {if(hide[section]) next};"\
4710 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4711 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4712 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4713 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4714 "     ' prfx=^$ac_symprfx"
4715   else
4716     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4717   fi
4718
4719   # Check to see that the pipe works correctly.
4720   pipe_works=no
4721
4722   rm -f conftest*
4723   cat > conftest.$ac_ext <<_LT_EOF
4724 #ifdef __cplusplus
4725 extern "C" {
4726 #endif
4727 char nm_test_var;
4728 void nm_test_func(void);
4729 void nm_test_func(void){}
4730 #ifdef __cplusplus
4731 }
4732 #endif
4733 int main(){nm_test_var='a';nm_test_func();return(0);}
4734 _LT_EOF
4735
4736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737   (eval $ac_compile) 2>&5
4738   ac_status=$?
4739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; then
4741     # Now try to grab the symbols.
4742     nlist=conftest.nm
4743     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4744   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4745   ac_status=$?
4746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } && test -s "$nlist"; then
4748       # Try sorting and uniquifying the output.
4749       if sort "$nlist" | uniq > "$nlist"T; then
4750         mv -f "$nlist"T "$nlist"
4751       else
4752         rm -f "$nlist"T
4753       fi
4754
4755       # Make sure that we snagged all the symbols we need.
4756       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4757         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4758           cat <<_LT_EOF > conftest.$ac_ext
4759 #ifdef __cplusplus
4760 extern "C" {
4761 #endif
4762
4763 _LT_EOF
4764           # Now generate the symbol file.
4765           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4766
4767           cat <<_LT_EOF >> conftest.$ac_ext
4768
4769 /* The mapping between symbol names and symbols.  */
4770 const struct {
4771   const char *name;
4772   void       *address;
4773 }
4774 lt__PROGRAM__LTX_preloaded_symbols[] =
4775 {
4776   { "@PROGRAM@", (void *) 0 },
4777 _LT_EOF
4778           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4779           cat <<\_LT_EOF >> conftest.$ac_ext
4780   {0, (void *) 0}
4781 };
4782
4783 /* This works around a problem in FreeBSD linker */
4784 #ifdef FREEBSD_WORKAROUND
4785 static const void *lt_preloaded_setup() {
4786   return lt__PROGRAM__LTX_preloaded_symbols;
4787 }
4788 #endif
4789
4790 #ifdef __cplusplus
4791 }
4792 #endif
4793 _LT_EOF
4794           # Now try linking the two files.
4795           mv conftest.$ac_objext conftstm.$ac_objext
4796           lt_save_LIBS="$LIBS"
4797           lt_save_CFLAGS="$CFLAGS"
4798           LIBS="conftstm.$ac_objext"
4799           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4800           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801   (eval $ac_link) 2>&5
4802   ac_status=$?
4803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4805             pipe_works=yes
4806           fi
4807           LIBS="$lt_save_LIBS"
4808           CFLAGS="$lt_save_CFLAGS"
4809         else
4810           echo "cannot find nm_test_func in $nlist" >&5
4811         fi
4812       else
4813         echo "cannot find nm_test_var in $nlist" >&5
4814       fi
4815     else
4816       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4817     fi
4818   else
4819     echo "$progname: failed program was:" >&5
4820     cat conftest.$ac_ext >&5
4821   fi
4822   rm -rf conftest* conftst*
4823
4824   # Do not use the global_symbol_pipe unless it works.
4825   if test "$pipe_works" = yes; then
4826     break
4827   else
4828     lt_cv_sys_global_symbol_pipe=
4829   fi
4830 done
4831
4832 fi
4833
4834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4835   lt_cv_sys_global_symbol_to_cdecl=
4836 fi
4837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4838   { $as_echo "$as_me:$LINENO: result: failed" >&5
4839 $as_echo "failed" >&6; }
4840 else
4841   { $as_echo "$as_me:$LINENO: result: ok" >&5
4842 $as_echo "ok" >&6; }
4843 fi
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867 # Check whether --enable-libtool-lock was given.
4868 if test "${enable_libtool_lock+set}" = set; then
4869   enableval=$enable_libtool_lock;
4870 fi
4871
4872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4873
4874 # Some flags need to be propagated to the compiler or linker for good
4875 # libtool support.
4876 case $host in
4877 ia64-*-hpux*)
4878   # Find out which ABI we are using.
4879   echo 'int i;' > conftest.$ac_ext
4880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881   (eval $ac_compile) 2>&5
4882   ac_status=$?
4883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; then
4885     case `/usr/bin/file conftest.$ac_objext` in
4886       *ELF-32*)
4887         HPUX_IA64_MODE="32"
4888         ;;
4889       *ELF-64*)
4890         HPUX_IA64_MODE="64"
4891         ;;
4892     esac
4893   fi
4894   rm -rf conftest*
4895   ;;
4896 *-*-irix6*)
4897   # Find out which ABI we are using.
4898   echo '#line 4898 "configure"' > conftest.$ac_ext
4899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900   (eval $ac_compile) 2>&5
4901   ac_status=$?
4902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; then
4904     if test "$lt_cv_prog_gnu_ld" = yes; then
4905       case `/usr/bin/file conftest.$ac_objext` in
4906         *32-bit*)
4907           LD="${LD-ld} -melf32bsmip"
4908           ;;
4909         *N32*)
4910           LD="${LD-ld} -melf32bmipn32"
4911           ;;
4912         *64-bit*)
4913           LD="${LD-ld} -melf64bmip"
4914         ;;
4915       esac
4916     else
4917       case `/usr/bin/file conftest.$ac_objext` in
4918         *32-bit*)
4919           LD="${LD-ld} -32"
4920           ;;
4921         *N32*)
4922           LD="${LD-ld} -n32"
4923           ;;
4924         *64-bit*)
4925           LD="${LD-ld} -64"
4926           ;;
4927       esac
4928     fi
4929   fi
4930   rm -rf conftest*
4931   ;;
4932
4933 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4934 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4935   # Find out which ABI we are using.
4936   echo 'int i;' > conftest.$ac_ext
4937   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938   (eval $ac_compile) 2>&5
4939   ac_status=$?
4940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; then
4942     case `/usr/bin/file conftest.o` in
4943       *32-bit*)
4944         case $host in
4945           x86_64-*kfreebsd*-gnu)
4946             LD="${LD-ld} -m elf_i386_fbsd"
4947             ;;
4948           x86_64-*linux*)
4949             LD="${LD-ld} -m elf_i386"
4950             ;;
4951           ppc64-*linux*|powerpc64-*linux*)
4952             LD="${LD-ld} -m elf32ppclinux"
4953             ;;
4954           s390x-*linux*)
4955             LD="${LD-ld} -m elf_s390"
4956             ;;
4957           sparc64-*linux*)
4958             LD="${LD-ld} -m elf32_sparc"
4959             ;;
4960         esac
4961         ;;
4962       *64-bit*)
4963         case $host in
4964           x86_64-*kfreebsd*-gnu)
4965             LD="${LD-ld} -m elf_x86_64_fbsd"
4966             ;;
4967           x86_64-*linux*)
4968             LD="${LD-ld} -m elf_x86_64"
4969             ;;
4970           ppc*-*linux*|powerpc*-*linux*)
4971             LD="${LD-ld} -m elf64ppc"
4972             ;;
4973           s390*-*linux*|s390*-*tpf*)
4974             LD="${LD-ld} -m elf64_s390"
4975             ;;
4976           sparc*-*linux*)
4977             LD="${LD-ld} -m elf64_sparc"
4978             ;;
4979         esac
4980         ;;
4981     esac
4982   fi
4983   rm -rf conftest*
4984   ;;
4985
4986 *-*-sco3.2v5*)
4987   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4988   SAVE_CFLAGS="$CFLAGS"
4989   CFLAGS="$CFLAGS -belf"
4990   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4991 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4992 if test "${lt_cv_cc_needs_belf+set}" = set; then
4993   $as_echo_n "(cached) " >&6
4994 else
4995   ac_ext=c
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000
5001      cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007
5008 int
5009 main ()
5010 {
5011
5012   ;
5013   return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (ac_try="$ac_link"
5018 case "(($ac_try" in
5019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5020   *) ac_try_echo=$ac_try;;
5021 esac
5022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5023 $as_echo "$ac_try_echo") >&5
5024   (eval "$ac_link") 2>conftest.er1
5025   ac_status=$?
5026   grep -v '^ *+' conftest.er1 >conftest.err
5027   rm -f conftest.er1
5028   cat conftest.err >&5
5029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030   (exit $ac_status); } && {
5031          test -z "$ac_c_werror_flag" ||
5032          test ! -s conftest.err
5033        } && test -s conftest$ac_exeext && {
5034          test "$cross_compiling" = yes ||
5035          $as_test_x conftest$ac_exeext
5036        }; then
5037   lt_cv_cc_needs_belf=yes
5038 else
5039   $as_echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5041
5042         lt_cv_cc_needs_belf=no
5043 fi
5044
5045 rm -rf conftest.dSYM
5046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5047       conftest$ac_exeext conftest.$ac_ext
5048      ac_ext=c
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053
5054 fi
5055 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5056 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5057   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5058     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5059     CFLAGS="$SAVE_CFLAGS"
5060   fi
5061   ;;
5062 sparc*-*solaris*)
5063   # Find out which ABI we are using.
5064   echo 'int i;' > conftest.$ac_ext
5065   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066   (eval $ac_compile) 2>&5
5067   ac_status=$?
5068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }; then
5070     case `/usr/bin/file conftest.o` in
5071     *64-bit*)
5072       case $lt_cv_prog_gnu_ld in
5073       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5074       *)
5075         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5076           LD="${LD-ld} -64"
5077         fi
5078         ;;
5079       esac
5080       ;;
5081     esac
5082   fi
5083   rm -rf conftest*
5084   ;;
5085 esac
5086
5087 need_locks="$enable_libtool_lock"
5088
5089
5090   case $host_os in
5091     rhapsody* | darwin*)
5092     if test -n "$ac_tool_prefix"; then
5093   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$DSYMUTIL"; then
5101   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5121 if test -n "$DSYMUTIL"; then
5122   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5123 $as_echo "$DSYMUTIL" >&6; }
5124 else
5125   { $as_echo "$as_me:$LINENO: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 fi
5131 if test -z "$ac_cv_prog_DSYMUTIL"; then
5132   ac_ct_DSYMUTIL=$DSYMUTIL
5133   # Extract the first word of "dsymutil", so it can be a program name with args.
5134 set dummy dsymutil; ac_word=$2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5138   $as_echo_n "(cached) " >&6
5139 else
5140   if test -n "$ac_ct_DSYMUTIL"; then
5141   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_exec_ext in '' $ac_executable_extensions; do
5149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5161 if test -n "$ac_ct_DSYMUTIL"; then
5162   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5163 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5164 else
5165   { $as_echo "$as_me:$LINENO: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169   if test "x$ac_ct_DSYMUTIL" = x; then
5170     DSYMUTIL=":"
5171   else
5172     case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178     DSYMUTIL=$ac_ct_DSYMUTIL
5179   fi
5180 else
5181   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5182 fi
5183
5184     if test -n "$ac_tool_prefix"; then
5185   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5186 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5190   $as_echo_n "(cached) " >&6
5191 else
5192   if test -n "$NMEDIT"; then
5193   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_exec_ext in '' $ac_executable_extensions; do
5201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5203     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 NMEDIT=$ac_cv_prog_NMEDIT
5213 if test -n "$NMEDIT"; then
5214   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5215 $as_echo "$NMEDIT" >&6; }
5216 else
5217   { $as_echo "$as_me:$LINENO: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222 fi
5223 if test -z "$ac_cv_prog_NMEDIT"; then
5224   ac_ct_NMEDIT=$NMEDIT
5225   # Extract the first word of "nmedit", so it can be a program name with args.
5226 set dummy nmedit; ac_word=$2
5227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5230   $as_echo_n "(cached) " >&6
5231 else
5232   if test -n "$ac_ct_NMEDIT"; then
5233   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238   IFS=$as_save_IFS
5239   test -z "$as_dir" && as_dir=.
5240   for ac_exec_ext in '' $ac_executable_extensions; do
5241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5243     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244     break 2
5245   fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5253 if test -n "$ac_ct_NMEDIT"; then
5254   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5255 $as_echo "$ac_ct_NMEDIT" >&6; }
5256 else
5257   { $as_echo "$as_me:$LINENO: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261   if test "x$ac_ct_NMEDIT" = x; then
5262     NMEDIT=":"
5263   else
5264     case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270     NMEDIT=$ac_ct_NMEDIT
5271   fi
5272 else
5273   NMEDIT="$ac_cv_prog_NMEDIT"
5274 fi
5275
5276     if test -n "$ac_tool_prefix"; then
5277   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5278 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if test "${ac_cv_prog_LIPO+set}" = set; then
5282   $as_echo_n "(cached) " >&6
5283 else
5284   if test -n "$LIPO"; then
5285   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5295     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300 IFS=$as_save_IFS
5301
5302 fi
5303 fi
5304 LIPO=$ac_cv_prog_LIPO
5305 if test -n "$LIPO"; then
5306   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5307 $as_echo "$LIPO" >&6; }
5308 else
5309   { $as_echo "$as_me:$LINENO: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313
5314 fi
5315 if test -z "$ac_cv_prog_LIPO"; then
5316   ac_ct_LIPO=$LIPO
5317   # Extract the first word of "lipo", so it can be a program name with args.
5318 set dummy lipo; ac_word=$2
5319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5322   $as_echo_n "(cached) " >&6
5323 else
5324   if test -n "$ac_ct_LIPO"; then
5325   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332   for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_prog_ac_ct_LIPO="lipo"
5335     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 fi
5343 fi
5344 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5345 if test -n "$ac_ct_LIPO"; then
5346   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5347 $as_echo "$ac_ct_LIPO" >&6; }
5348 else
5349   { $as_echo "$as_me:$LINENO: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353   if test "x$ac_ct_LIPO" = x; then
5354     LIPO=":"
5355   else
5356     case $cross_compiling:$ac_tool_warned in
5357 yes:)
5358 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5360 ac_tool_warned=yes ;;
5361 esac
5362     LIPO=$ac_ct_LIPO
5363   fi
5364 else
5365   LIPO="$ac_cv_prog_LIPO"
5366 fi
5367
5368     if test -n "$ac_tool_prefix"; then
5369   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5370 set dummy ${ac_tool_prefix}otool; ac_word=$2
5371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if test "${ac_cv_prog_OTOOL+set}" = set; then
5374   $as_echo_n "(cached) " >&6
5375 else
5376   if test -n "$OTOOL"; then
5377   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382   IFS=$as_save_IFS
5383   test -z "$as_dir" && as_dir=.
5384   for ac_exec_ext in '' $ac_executable_extensions; do
5385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388     break 2
5389   fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 fi
5395 fi
5396 OTOOL=$ac_cv_prog_OTOOL
5397 if test -n "$OTOOL"; then
5398   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5399 $as_echo "$OTOOL" >&6; }
5400 else
5401   { $as_echo "$as_me:$LINENO: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404
5405
5406 fi
5407 if test -z "$ac_cv_prog_OTOOL"; then
5408   ac_ct_OTOOL=$OTOOL
5409   # Extract the first word of "otool", so it can be a program name with args.
5410 set dummy otool; ac_word=$2
5411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5414   $as_echo_n "(cached) " >&6
5415 else
5416   if test -n "$ac_ct_OTOOL"; then
5417   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422   IFS=$as_save_IFS
5423   test -z "$as_dir" && as_dir=.
5424   for ac_exec_ext in '' $ac_executable_extensions; do
5425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426     ac_cv_prog_ac_ct_OTOOL="otool"
5427     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428     break 2
5429   fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5437 if test -n "$ac_ct_OTOOL"; then
5438   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5439 $as_echo "$ac_ct_OTOOL" >&6; }
5440 else
5441   { $as_echo "$as_me:$LINENO: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445   if test "x$ac_ct_OTOOL" = x; then
5446     OTOOL=":"
5447   else
5448     case $cross_compiling:$ac_tool_warned in
5449 yes:)
5450 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452 ac_tool_warned=yes ;;
5453 esac
5454     OTOOL=$ac_ct_OTOOL
5455   fi
5456 else
5457   OTOOL="$ac_cv_prog_OTOOL"
5458 fi
5459
5460     if test -n "$ac_tool_prefix"; then
5461   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5462 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5466   $as_echo_n "(cached) " >&6
5467 else
5468   if test -n "$OTOOL64"; then
5469   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474   IFS=$as_save_IFS
5475   test -z "$as_dir" && as_dir=.
5476   for ac_exec_ext in '' $ac_executable_extensions; do
5477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5479     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 OTOOL64=$ac_cv_prog_OTOOL64
5489 if test -n "$OTOOL64"; then
5490   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5491 $as_echo "$OTOOL64" >&6; }
5492 else
5493   { $as_echo "$as_me:$LINENO: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497
5498 fi
5499 if test -z "$ac_cv_prog_OTOOL64"; then
5500   ac_ct_OTOOL64=$OTOOL64
5501   # Extract the first word of "otool64", so it can be a program name with args.
5502 set dummy otool64; ac_word=$2
5503 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5506   $as_echo_n "(cached) " >&6
5507 else
5508   if test -n "$ac_ct_OTOOL64"; then
5509   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_exec_ext in '' $ac_executable_extensions; do
5517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518     ac_cv_prog_ac_ct_OTOOL64="otool64"
5519     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523 done
5524 IFS=$as_save_IFS
5525
5526 fi
5527 fi
5528 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5529 if test -n "$ac_ct_OTOOL64"; then
5530   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5531 $as_echo "$ac_ct_OTOOL64" >&6; }
5532 else
5533   { $as_echo "$as_me:$LINENO: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537   if test "x$ac_ct_OTOOL64" = x; then
5538     OTOOL64=":"
5539   else
5540     case $cross_compiling:$ac_tool_warned in
5541 yes:)
5542 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5545 esac
5546     OTOOL64=$ac_ct_OTOOL64
5547   fi
5548 else
5549   OTOOL64="$ac_cv_prog_OTOOL64"
5550 fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5579 $as_echo_n "checking for -single_module linker flag... " >&6; }
5580 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5581   $as_echo_n "(cached) " >&6
5582 else
5583   lt_cv_apple_cc_single_mod=no
5584       if test -z "${LT_MULTI_MODULE}"; then
5585         # By default we will add the -single_module flag. You can override
5586         # by either setting the environment variable LT_MULTI_MODULE
5587         # non-empty at configure time, or by adding -multi_module to the
5588         # link flags.
5589         rm -rf libconftest.dylib*
5590         echo "int foo(void){return 1;}" > conftest.c
5591         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5592 -dynamiclib -Wl,-single_module conftest.c" >&5
5593         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5594           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5595         _lt_result=$?
5596         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5597           lt_cv_apple_cc_single_mod=yes
5598         else
5599           cat conftest.err >&5
5600         fi
5601         rm -rf libconftest.dylib*
5602         rm -f conftest.*
5603       fi
5604 fi
5605 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5606 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5607     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5608 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5609 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5610   $as_echo_n "(cached) " >&6
5611 else
5612   lt_cv_ld_exported_symbols_list=no
5613       save_LDFLAGS=$LDFLAGS
5614       echo "_main" > conftest.sym
5615       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5616       cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h.  */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h.  */
5622
5623 int
5624 main ()
5625 {
5626
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (ac_try="$ac_link"
5633 case "(($ac_try" in
5634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635   *) ac_try_echo=$ac_try;;
5636 esac
5637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5638 $as_echo "$ac_try_echo") >&5
5639   (eval "$ac_link") 2>conftest.er1
5640   ac_status=$?
5641   grep -v '^ *+' conftest.er1 >conftest.err
5642   rm -f conftest.er1
5643   cat conftest.err >&5
5644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); } && {
5646          test -z "$ac_c_werror_flag" ||
5647          test ! -s conftest.err
5648        } && test -s conftest$ac_exeext && {
5649          test "$cross_compiling" = yes ||
5650          $as_test_x conftest$ac_exeext
5651        }; then
5652   lt_cv_ld_exported_symbols_list=yes
5653 else
5654   $as_echo "$as_me: failed program was:" >&5
5655 sed 's/^/| /' conftest.$ac_ext >&5
5656
5657         lt_cv_ld_exported_symbols_list=no
5658 fi
5659
5660 rm -rf conftest.dSYM
5661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5662       conftest$ac_exeext conftest.$ac_ext
5663         LDFLAGS="$save_LDFLAGS"
5664
5665 fi
5666 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5667 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5668     case $host_os in
5669     rhapsody* | darwin1.[012])
5670       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5671     darwin1.*)
5672       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5673     darwin*) # darwin 5.x on
5674       # if running on 10.5 or later, the deployment target defaults
5675       # to the OS version, if on x86, and 10.4, the deployment
5676       # target defaults to 10.4. Don't you love it?
5677       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5678         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5679           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5680         10.[012]*)
5681           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5682         10.*)
5683           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5684       esac
5685     ;;
5686   esac
5687     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5688       _lt_dar_single_mod='$single_module'
5689     fi
5690     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5691       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5692     else
5693       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5694     fi
5695     if test "$DSYMUTIL" != ":"; then
5696       _lt_dsymutil='~$DSYMUTIL $lib || :'
5697     else
5698       _lt_dsymutil=
5699     fi
5700     ;;
5701   esac
5702
5703 ac_ext=c
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5709 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5710 # On Suns, sometimes $CPP names a directory.
5711 if test -n "$CPP" && test -d "$CPP"; then
5712   CPP=
5713 fi
5714 if test -z "$CPP"; then
5715   if test "${ac_cv_prog_CPP+set}" = set; then
5716   $as_echo_n "(cached) " >&6
5717 else
5718       # Double quotes because CPP needs to be expanded
5719     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5720     do
5721       ac_preproc_ok=false
5722 for ac_c_preproc_warn_flag in '' yes
5723 do
5724   # Use a header file that comes with gcc, so configuring glibc
5725   # with a fresh cross-compiler works.
5726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5727   # <limits.h> exists even on freestanding compilers.
5728   # On the NeXT, cc -E runs the code through the compiler's parser,
5729   # not just through cpp. "Syntax error" is here to catch this case.
5730   cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h.  */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h.  */
5736 #ifdef __STDC__
5737 # include <limits.h>
5738 #else
5739 # include <assert.h>
5740 #endif
5741                      Syntax error
5742 _ACEOF
5743 if { (ac_try="$ac_cpp conftest.$ac_ext"
5744 case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749 $as_echo "$ac_try_echo") >&5
5750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5751   ac_status=$?
5752   grep -v '^ *+' conftest.er1 >conftest.err
5753   rm -f conftest.er1
5754   cat conftest.err >&5
5755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); } >/dev/null && {
5757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5758          test ! -s conftest.err
5759        }; then
5760   :
5761 else
5762   $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765   # Broken: fails on valid input.
5766 continue
5767 fi
5768
5769 rm -f conftest.err conftest.$ac_ext
5770
5771   # OK, works on sane cases.  Now check whether nonexistent headers
5772   # can be detected and how.
5773   cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h.  */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h.  */
5779 #include <ac_nonexistent.h>
5780 _ACEOF
5781 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5787 $as_echo "$ac_try_echo") >&5
5788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5789   ac_status=$?
5790   grep -v '^ *+' conftest.er1 >conftest.err
5791   rm -f conftest.er1
5792   cat conftest.err >&5
5793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } >/dev/null && {
5795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5796          test ! -s conftest.err
5797        }; then
5798   # Broken: success on invalid input.
5799 continue
5800 else
5801   $as_echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804   # Passes both tests.
5805 ac_preproc_ok=:
5806 break
5807 fi
5808
5809 rm -f conftest.err conftest.$ac_ext
5810
5811 done
5812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5813 rm -f conftest.err conftest.$ac_ext
5814 if $ac_preproc_ok; then
5815   break
5816 fi
5817
5818     done
5819     ac_cv_prog_CPP=$CPP
5820
5821 fi
5822   CPP=$ac_cv_prog_CPP
5823 else
5824   ac_cv_prog_CPP=$CPP
5825 fi
5826 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5827 $as_echo "$CPP" >&6; }
5828 ac_preproc_ok=false
5829 for ac_c_preproc_warn_flag in '' yes
5830 do
5831   # Use a header file that comes with gcc, so configuring glibc
5832   # with a fresh cross-compiler works.
5833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5834   # <limits.h> exists even on freestanding compilers.
5835   # On the NeXT, cc -E runs the code through the compiler's parser,
5836   # not just through cpp. "Syntax error" is here to catch this case.
5837   cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843 #ifdef __STDC__
5844 # include <limits.h>
5845 #else
5846 # include <assert.h>
5847 #endif
5848                      Syntax error
5849 _ACEOF
5850 if { (ac_try="$ac_cpp conftest.$ac_ext"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5856 $as_echo "$ac_try_echo") >&5
5857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } >/dev/null && {
5864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5865          test ! -s conftest.err
5866        }; then
5867   :
5868 else
5869   $as_echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5871
5872   # Broken: fails on valid input.
5873 continue
5874 fi
5875
5876 rm -f conftest.err conftest.$ac_ext
5877
5878   # OK, works on sane cases.  Now check whether nonexistent headers
5879   # can be detected and how.
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #include <ac_nonexistent.h>
5887 _ACEOF
5888 if { (ac_try="$ac_cpp conftest.$ac_ext"
5889 case "(($ac_try" in
5890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891   *) ac_try_echo=$ac_try;;
5892 esac
5893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5894 $as_echo "$ac_try_echo") >&5
5895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5896   ac_status=$?
5897   grep -v '^ *+' conftest.er1 >conftest.err
5898   rm -f conftest.er1
5899   cat conftest.err >&5
5900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } >/dev/null && {
5902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5903          test ! -s conftest.err
5904        }; then
5905   # Broken: success on invalid input.
5906 continue
5907 else
5908   $as_echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911   # Passes both tests.
5912 ac_preproc_ok=:
5913 break
5914 fi
5915
5916 rm -f conftest.err conftest.$ac_ext
5917
5918 done
5919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5920 rm -f conftest.err conftest.$ac_ext
5921 if $ac_preproc_ok; then
5922   :
5923 else
5924   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5927 See \`config.log' for more details." >&5
5928 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5929 See \`config.log' for more details." >&2;}
5930    { (exit 1); exit 1; }; }; }
5931 fi
5932
5933 ac_ext=c
5934 ac_cpp='$CPP $CPPFLAGS'
5935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938
5939
5940 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5941 $as_echo_n "checking for ANSI C header files... " >&6; }
5942 if test "${ac_cv_header_stdc+set}" = set; then
5943   $as_echo_n "(cached) " >&6
5944 else
5945   cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h.  */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h.  */
5951 #include <stdlib.h>
5952 #include <stdarg.h>
5953 #include <string.h>
5954 #include <float.h>
5955
5956 int
5957 main ()
5958 {
5959
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5966 case "(($ac_try" in
5967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968   *) ac_try_echo=$ac_try;;
5969 esac
5970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971 $as_echo "$ac_try_echo") >&5
5972   (eval "$ac_compile") 2>conftest.er1
5973   ac_status=$?
5974   grep -v '^ *+' conftest.er1 >conftest.err
5975   rm -f conftest.er1
5976   cat conftest.err >&5
5977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); } && {
5979          test -z "$ac_c_werror_flag" ||
5980          test ! -s conftest.err
5981        } && test -s conftest.$ac_objext; then
5982   ac_cv_header_stdc=yes
5983 else
5984   $as_echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987         ac_cv_header_stdc=no
5988 fi
5989
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991
5992 if test $ac_cv_header_stdc = yes; then
5993   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5994   cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #include <string.h>
6001
6002 _ACEOF
6003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004   $EGREP "memchr" >/dev/null 2>&1; then
6005   :
6006 else
6007   ac_cv_header_stdc=no
6008 fi
6009 rm -f conftest*
6010
6011 fi
6012
6013 if test $ac_cv_header_stdc = yes; then
6014   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6015   cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 #include <stdlib.h>
6022
6023 _ACEOF
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025   $EGREP "free" >/dev/null 2>&1; then
6026   :
6027 else
6028   ac_cv_header_stdc=no
6029 fi
6030 rm -f conftest*
6031
6032 fi
6033
6034 if test $ac_cv_header_stdc = yes; then
6035   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6036   if test "$cross_compiling" = yes; then
6037   :
6038 else
6039   cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045 #include <ctype.h>
6046 #include <stdlib.h>
6047 #if ((' ' & 0x0FF) == 0x020)
6048 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6049 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6050 #else
6051 # define ISLOWER(c) \
6052                    (('a' <= (c) && (c) <= 'i') \
6053                      || ('j' <= (c) && (c) <= 'r') \
6054                      || ('s' <= (c) && (c) <= 'z'))
6055 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6056 #endif
6057
6058 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6059 int
6060 main ()
6061 {
6062   int i;
6063   for (i = 0; i < 256; i++)
6064     if (XOR (islower (i), ISLOWER (i))
6065         || toupper (i) != TOUPPER (i))
6066       return 2;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest$ac_exeext
6071 if { (ac_try="$ac_link"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078   (eval "$ac_link") 2>&5
6079   ac_status=$?
6080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6082   { (case "(($ac_try" in
6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084   *) ac_try_echo=$ac_try;;
6085 esac
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088   (eval "$ac_try") 2>&5
6089   ac_status=$?
6090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; }; then
6092   :
6093 else
6094   $as_echo "$as_me: program exited with status $ac_status" >&5
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ( exit $ac_status )
6099 ac_cv_header_stdc=no
6100 fi
6101 rm -rf conftest.dSYM
6102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6103 fi
6104
6105
6106 fi
6107 fi
6108 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6109 $as_echo "$ac_cv_header_stdc" >&6; }
6110 if test $ac_cv_header_stdc = yes; then
6111
6112 cat >>confdefs.h <<\_ACEOF
6113 #define STDC_HEADERS 1
6114 _ACEOF
6115
6116 fi
6117
6118 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6129                   inttypes.h stdint.h unistd.h
6130 do
6131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 $as_echo_n "checking for $ac_header... " >&6; }
6134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6135   $as_echo_n "(cached) " >&6
6136 else
6137   cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 $ac_includes_default
6144
6145 #include <$ac_header>
6146 _ACEOF
6147 rm -f conftest.$ac_objext
6148 if { (ac_try="$ac_compile"
6149 case "(($ac_try" in
6150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151   *) ac_try_echo=$ac_try;;
6152 esac
6153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6154 $as_echo "$ac_try_echo") >&5
6155   (eval "$ac_compile") 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } && {
6162          test -z "$ac_c_werror_flag" ||
6163          test ! -s conftest.err
6164        } && test -s conftest.$ac_objext; then
6165   eval "$as_ac_Header=yes"
6166 else
6167   $as_echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170         eval "$as_ac_Header=no"
6171 fi
6172
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 ac_res=`eval 'as_val=${'$as_ac_Header'}
6176                  $as_echo "$as_val"'`
6177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6178 $as_echo "$ac_res" >&6; }
6179 as_val=`eval 'as_val=${'$as_ac_Header'}
6180                  $as_echo "$as_val"'`
6181    if test "x$as_val" = x""yes; then
6182   cat >>confdefs.h <<_ACEOF
6183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6184 _ACEOF
6185
6186 fi
6187
6188 done
6189
6190
6191
6192 for ac_header in dlfcn.h
6193 do
6194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6196 $as_echo_n "checking for $ac_header... " >&6; }
6197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6198   $as_echo_n "(cached) " >&6
6199 else
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 $ac_includes_default
6207
6208 #include <$ac_header>
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (ac_try="$ac_compile"
6212 case "(($ac_try" in
6213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214   *) ac_try_echo=$ac_try;;
6215 esac
6216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6217 $as_echo "$ac_try_echo") >&5
6218   (eval "$ac_compile") 2>conftest.er1
6219   ac_status=$?
6220   grep -v '^ *+' conftest.er1 >conftest.err
6221   rm -f conftest.er1
6222   cat conftest.err >&5
6223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } && {
6225          test -z "$ac_c_werror_flag" ||
6226          test ! -s conftest.err
6227        } && test -s conftest.$ac_objext; then
6228   eval "$as_ac_Header=yes"
6229 else
6230   $as_echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233         eval "$as_ac_Header=no"
6234 fi
6235
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 ac_res=`eval 'as_val=${'$as_ac_Header'}
6239                  $as_echo "$as_val"'`
6240                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6241 $as_echo "$ac_res" >&6; }
6242 as_val=`eval 'as_val=${'$as_ac_Header'}
6243                  $as_echo "$as_val"'`
6244    if test "x$as_val" = x""yes; then
6245   cat >>confdefs.h <<_ACEOF
6246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6247 _ACEOF
6248
6249 fi
6250
6251 done
6252
6253
6254
6255 # Set options
6256
6257
6258
6259         enable_dlopen=no
6260
6261
6262   enable_win32_dll=no
6263
6264
6265             # Check whether --enable-shared was given.
6266 if test "${enable_shared+set}" = set; then
6267   enableval=$enable_shared; p=${PACKAGE-default}
6268     case $enableval in
6269     yes) enable_shared=yes ;;
6270     no) enable_shared=no ;;
6271     *)
6272       enable_shared=no
6273       # Look at the argument we got.  We use all the common list separators.
6274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6275       for pkg in $enableval; do
6276         IFS="$lt_save_ifs"
6277         if test "X$pkg" = "X$p"; then
6278           enable_shared=yes
6279         fi
6280       done
6281       IFS="$lt_save_ifs"
6282       ;;
6283     esac
6284 else
6285   enable_shared=yes
6286 fi
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296   # Check whether --enable-static was given.
6297 if test "${enable_static+set}" = set; then
6298   enableval=$enable_static; p=${PACKAGE-default}
6299     case $enableval in
6300     yes) enable_static=yes ;;
6301     no) enable_static=no ;;
6302     *)
6303      enable_static=no
6304       # Look at the argument we got.  We use all the common list separators.
6305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6306       for pkg in $enableval; do
6307         IFS="$lt_save_ifs"
6308         if test "X$pkg" = "X$p"; then
6309           enable_static=yes
6310         fi
6311       done
6312       IFS="$lt_save_ifs"
6313       ;;
6314     esac
6315 else
6316   enable_static=yes
6317 fi
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 # Check whether --with-pic was given.
6329 if test "${with_pic+set}" = set; then
6330   withval=$with_pic; pic_mode="$withval"
6331 else
6332   pic_mode=default
6333 fi
6334
6335
6336 test -z "$pic_mode" && pic_mode=default
6337
6338
6339
6340
6341
6342
6343
6344   # Check whether --enable-fast-install was given.
6345 if test "${enable_fast_install+set}" = set; then
6346   enableval=$enable_fast_install; p=${PACKAGE-default}
6347     case $enableval in
6348     yes) enable_fast_install=yes ;;
6349     no) enable_fast_install=no ;;
6350     *)
6351       enable_fast_install=no
6352       # Look at the argument we got.  We use all the common list separators.
6353       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6354       for pkg in $enableval; do
6355         IFS="$lt_save_ifs"
6356         if test "X$pkg" = "X$p"; then
6357           enable_fast_install=yes
6358         fi
6359       done
6360       IFS="$lt_save_ifs"
6361       ;;
6362     esac
6363 else
6364   enable_fast_install=yes
6365 fi
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 # This can be used to rebuild libtool when needed
6378 LIBTOOL_DEPS="$ltmain"
6379
6380 # Always use our own libtool.
6381 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407 test -z "$LN_S" && LN_S="ln -s"
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 if test -n "${ZSH_VERSION+set}" ; then
6423    setopt NO_GLOB_SUBST
6424 fi
6425
6426 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6427 $as_echo_n "checking for objdir... " >&6; }
6428 if test "${lt_cv_objdir+set}" = set; then
6429   $as_echo_n "(cached) " >&6
6430 else
6431   rm -f .libs 2>/dev/null
6432 mkdir .libs 2>/dev/null
6433 if test -d .libs; then
6434   lt_cv_objdir=.libs
6435 else
6436   # MS-DOS does not allow filenames that begin with a dot.
6437   lt_cv_objdir=_libs
6438 fi
6439 rmdir .libs 2>/dev/null
6440 fi
6441 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6442 $as_echo "$lt_cv_objdir" >&6; }
6443 objdir=$lt_cv_objdir
6444
6445
6446
6447
6448
6449 cat >>confdefs.h <<_ACEOF
6450 #define LT_OBJDIR "$lt_cv_objdir/"
6451 _ACEOF
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 case $host_os in
6470 aix3*)
6471   # AIX sometimes has problems with the GCC collect2 program.  For some
6472   # reason, if we set the COLLECT_NAMES environment variable, the problems
6473   # vanish in a puff of smoke.
6474   if test "X${COLLECT_NAMES+set}" != Xset; then
6475     COLLECT_NAMES=
6476     export COLLECT_NAMES
6477   fi
6478   ;;
6479 esac
6480
6481 # Sed substitution that helps us do robust quoting.  It backslashifies
6482 # metacharacters that are still active within double-quoted strings.
6483 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6484
6485 # Same as above, but do not quote variable references.
6486 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6487
6488 # Sed substitution to delay expansion of an escaped shell variable in a
6489 # double_quote_subst'ed string.
6490 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6491
6492 # Sed substitution to delay expansion of an escaped single quote.
6493 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6494
6495 # Sed substitution to avoid accidental globbing in evaled expressions
6496 no_glob_subst='s/\*/\\\*/g'
6497
6498 # Global variables:
6499 ofile=libtool
6500 can_build_shared=yes
6501
6502 # All known linkers require a `.a' archive for static linking (except MSVC,
6503 # which needs '.lib').
6504 libext=a
6505
6506 with_gnu_ld="$lt_cv_prog_gnu_ld"
6507
6508 old_CC="$CC"
6509 old_CFLAGS="$CFLAGS"
6510
6511 # Set sane defaults for various variables
6512 test -z "$CC" && CC=cc
6513 test -z "$LTCC" && LTCC=$CC
6514 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6515 test -z "$LD" && LD=ld
6516 test -z "$ac_objext" && ac_objext=o
6517
6518 for cc_temp in $compiler""; do
6519   case $cc_temp in
6520     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6521     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6522     \-*) ;;
6523     *) break;;
6524   esac
6525 done
6526 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6527
6528
6529 # Only perform the check for file, if the check method requires it
6530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6531 case $deplibs_check_method in
6532 file_magic*)
6533   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6534     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6535 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6536 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6537   $as_echo_n "(cached) " >&6
6538 else
6539   case $MAGIC_CMD in
6540 [\\/*] |  ?:[\\/]*)
6541   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6542   ;;
6543 *)
6544   lt_save_MAGIC_CMD="$MAGIC_CMD"
6545   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6546   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6547   for ac_dir in $ac_dummy; do
6548     IFS="$lt_save_ifs"
6549     test -z "$ac_dir" && ac_dir=.
6550     if test -f $ac_dir/${ac_tool_prefix}file; then
6551       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6552       if test -n "$file_magic_test_file"; then
6553         case $deplibs_check_method in
6554         "file_magic "*)
6555           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6556           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6557           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6558             $EGREP "$file_magic_regex" > /dev/null; then
6559             :
6560           else
6561             cat <<_LT_EOF 1>&2
6562
6563 *** Warning: the command libtool uses to detect shared libraries,
6564 *** $file_magic_cmd, produces output that libtool cannot recognize.
6565 *** The result is that libtool may fail to recognize shared libraries
6566 *** as such.  This will affect the creation of libtool libraries that
6567 *** depend on shared libraries, but programs linked with such libtool
6568 *** libraries will work regardless of this problem.  Nevertheless, you
6569 *** may want to report the problem to your system manager and/or to
6570 *** bug-libtool@gnu.org
6571
6572 _LT_EOF
6573           fi ;;
6574         esac
6575       fi
6576       break
6577     fi
6578   done
6579   IFS="$lt_save_ifs"
6580   MAGIC_CMD="$lt_save_MAGIC_CMD"
6581   ;;
6582 esac
6583 fi
6584
6585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6586 if test -n "$MAGIC_CMD"; then
6587   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6588 $as_echo "$MAGIC_CMD" >&6; }
6589 else
6590   { $as_echo "$as_me:$LINENO: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594
6595
6596
6597
6598 if test -z "$lt_cv_path_MAGIC_CMD"; then
6599   if test -n "$ac_tool_prefix"; then
6600     { $as_echo "$as_me:$LINENO: checking for file" >&5
6601 $as_echo_n "checking for file... " >&6; }
6602 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6603   $as_echo_n "(cached) " >&6
6604 else
6605   case $MAGIC_CMD in
6606 [\\/*] |  ?:[\\/]*)
6607   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6608   ;;
6609 *)
6610   lt_save_MAGIC_CMD="$MAGIC_CMD"
6611   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6613   for ac_dir in $ac_dummy; do
6614     IFS="$lt_save_ifs"
6615     test -z "$ac_dir" && ac_dir=.
6616     if test -f $ac_dir/file; then
6617       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6618       if test -n "$file_magic_test_file"; then
6619         case $deplibs_check_method in
6620         "file_magic "*)
6621           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6622           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6623           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6624             $EGREP "$file_magic_regex" > /dev/null; then
6625             :
6626           else
6627             cat <<_LT_EOF 1>&2
6628
6629 *** Warning: the command libtool uses to detect shared libraries,
6630 *** $file_magic_cmd, produces output that libtool cannot recognize.
6631 *** The result is that libtool may fail to recognize shared libraries
6632 *** as such.  This will affect the creation of libtool libraries that
6633 *** depend on shared libraries, but programs linked with such libtool
6634 *** libraries will work regardless of this problem.  Nevertheless, you
6635 *** may want to report the problem to your system manager and/or to
6636 *** bug-libtool@gnu.org
6637
6638 _LT_EOF
6639           fi ;;
6640         esac
6641       fi
6642       break
6643     fi
6644   done
6645   IFS="$lt_save_ifs"
6646   MAGIC_CMD="$lt_save_MAGIC_CMD"
6647   ;;
6648 esac
6649 fi
6650
6651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6652 if test -n "$MAGIC_CMD"; then
6653   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6654 $as_echo "$MAGIC_CMD" >&6; }
6655 else
6656   { $as_echo "$as_me:$LINENO: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661   else
6662     MAGIC_CMD=:
6663   fi
6664 fi
6665
6666   fi
6667   ;;
6668 esac
6669
6670 # Use C for the default configuration in the libtool script
6671
6672 lt_save_CC="$CC"
6673 ac_ext=c
6674 ac_cpp='$CPP $CPPFLAGS'
6675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678
6679
6680 # Source file extension for C test sources.
6681 ac_ext=c
6682
6683 # Object file extension for compiled C test sources.
6684 objext=o
6685 objext=$objext
6686
6687 # Code to be used in simple compile tests
6688 lt_simple_compile_test_code="int some_variable = 0;"
6689
6690 # Code to be used in simple link tests
6691 lt_simple_link_test_code='int main(){return(0);}'
6692
6693
6694
6695
6696
6697
6698
6699 # If no C compiler was specified, use CC.
6700 LTCC=${LTCC-"$CC"}
6701
6702 # If no C compiler flags were specified, use CFLAGS.
6703 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6704
6705 # Allow CC to be a program name with arguments.
6706 compiler=$CC
6707
6708 # Save the default compiler, since it gets overwritten when the other
6709 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6710 compiler_DEFAULT=$CC
6711
6712 # save warnings/boilerplate of simple test code
6713 ac_outfile=conftest.$ac_objext
6714 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6715 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6716 _lt_compiler_boilerplate=`cat conftest.err`
6717 $RM conftest*
6718
6719 ac_outfile=conftest.$ac_objext
6720 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6721 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6722 _lt_linker_boilerplate=`cat conftest.err`
6723 $RM -r conftest*
6724
6725
6726 ## CAVEAT EMPTOR:
6727 ## There is no encapsulation within the following macros, do not change
6728 ## the running order or otherwise move them around unless you know exactly
6729 ## what you are doing...
6730 if test -n "$compiler"; then
6731
6732 lt_prog_compiler_no_builtin_flag=
6733
6734 if test "$GCC" = yes; then
6735   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6736
6737   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6738 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6739 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6740   $as_echo_n "(cached) " >&6
6741 else
6742   lt_cv_prog_compiler_rtti_exceptions=no
6743    ac_outfile=conftest.$ac_objext
6744    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6745    lt_compiler_flag="-fno-rtti -fno-exceptions"
6746    # Insert the option either (1) after the last *FLAGS variable, or
6747    # (2) before a word containing "conftest.", or (3) at the end.
6748    # Note that $ac_compile itself does not contain backslashes and begins
6749    # with a dollar sign (not a hyphen), so the echo should work correctly.
6750    # The option is referenced via a variable to avoid confusing sed.
6751    lt_compile=`echo "$ac_compile" | $SED \
6752    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6753    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6754    -e 's:$: $lt_compiler_flag:'`
6755    (eval echo "\"\$as_me:6755: $lt_compile\"" >&5)
6756    (eval "$lt_compile" 2>conftest.err)
6757    ac_status=$?
6758    cat conftest.err >&5
6759    echo "$as_me:6759: \$? = $ac_status" >&5
6760    if (exit $ac_status) && test -s "$ac_outfile"; then
6761      # The compiler can only warn and ignore the option if not recognized
6762      # So say no if there are warnings other than the usual output.
6763      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6764      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6765      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6766        lt_cv_prog_compiler_rtti_exceptions=yes
6767      fi
6768    fi
6769    $RM conftest*
6770
6771 fi
6772 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6773 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6774
6775 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6776     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6777 else
6778     :
6779 fi
6780
6781 fi
6782
6783
6784
6785
6786
6787
6788   lt_prog_compiler_wl=
6789 lt_prog_compiler_pic=
6790 lt_prog_compiler_static=
6791
6792 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6793 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6794
6795   if test "$GCC" = yes; then
6796     lt_prog_compiler_wl='-Wl,'
6797     lt_prog_compiler_static='-static'
6798
6799     case $host_os in
6800       aix*)
6801       # All AIX code is PIC.
6802       if test "$host_cpu" = ia64; then
6803         # AIX 5 now supports IA64 processor
6804         lt_prog_compiler_static='-Bstatic'
6805       fi
6806       ;;
6807
6808     amigaos*)
6809       case $host_cpu in
6810       powerpc)
6811             # see comment about AmigaOS4 .so support
6812             lt_prog_compiler_pic='-fPIC'
6813         ;;
6814       m68k)
6815             # FIXME: we need at least 68020 code to build shared libraries, but
6816             # adding the `-m68020' flag to GCC prevents building anything better,
6817             # like `-m68040'.
6818             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6819         ;;
6820       esac
6821       ;;
6822
6823     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6824       # PIC is the default for these OSes.
6825       ;;
6826
6827     mingw* | cygwin* | pw32* | os2* | cegcc*)
6828       # This hack is so that the source file can tell whether it is being
6829       # built for inclusion in a dll (and should export symbols for example).
6830       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6831       # (--disable-auto-import) libraries
6832       lt_prog_compiler_pic='-DDLL_EXPORT'
6833       ;;
6834
6835     darwin* | rhapsody*)
6836       # PIC is the default on this platform
6837       # Common symbols not allowed in MH_DYLIB files
6838       lt_prog_compiler_pic='-fno-common'
6839       ;;
6840
6841     hpux*)
6842       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6843       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
6844       # sets the default TLS model and affects inlining.
6845       case $host_cpu in
6846       hppa*64*)
6847         # +Z the default
6848         ;;
6849       *)
6850         lt_prog_compiler_pic='-fPIC'
6851         ;;
6852       esac
6853       ;;
6854
6855     interix[3-9]*)
6856       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6857       # Instead, we relocate shared libraries at runtime.
6858       ;;
6859
6860     msdosdjgpp*)
6861       # Just because we use GCC doesn't mean we suddenly get shared libraries
6862       # on systems that don't support them.
6863       lt_prog_compiler_can_build_shared=no
6864       enable_shared=no
6865       ;;
6866
6867     *nto* | *qnx*)
6868       # QNX uses GNU C++, but need to define -shared option too, otherwise
6869       # it will coredump.
6870       lt_prog_compiler_pic='-fPIC -shared'
6871       ;;
6872
6873     sysv4*MP*)
6874       if test -d /usr/nec; then
6875         lt_prog_compiler_pic=-Kconform_pic
6876       fi
6877       ;;
6878
6879     *)
6880       lt_prog_compiler_pic='-fPIC'
6881       ;;
6882     esac
6883   else
6884     # PORTME Check for flag to pass linker flags through the system compiler.
6885     case $host_os in
6886     aix*)
6887       lt_prog_compiler_wl='-Wl,'
6888       if test "$host_cpu" = ia64; then
6889         # AIX 5 now supports IA64 processor
6890         lt_prog_compiler_static='-Bstatic'
6891       else
6892         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6893       fi
6894       ;;
6895
6896     mingw* | cygwin* | pw32* | os2* | cegcc*)
6897       # This hack is so that the source file can tell whether it is being
6898       # built for inclusion in a dll (and should export symbols for example).
6899       lt_prog_compiler_pic='-DDLL_EXPORT'
6900       ;;
6901
6902     hpux9* | hpux10* | hpux11*)
6903       lt_prog_compiler_wl='-Wl,'
6904       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6905       # not for PA HP-UX.
6906       case $host_cpu in
6907       hppa*64*|ia64*)
6908         # +Z the default
6909         ;;
6910       *)
6911         lt_prog_compiler_pic='+Z'
6912         ;;
6913       esac
6914       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6915       lt_prog_compiler_static='${wl}-a ${wl}archive'
6916       ;;
6917
6918     irix5* | irix6* | nonstopux*)
6919       lt_prog_compiler_wl='-Wl,'
6920       # PIC (with -KPIC) is the default.
6921       lt_prog_compiler_static='-non_shared'
6922       ;;
6923
6924     linux* | k*bsd*-gnu)
6925       case $cc_basename in
6926       # old Intel for x86_64 which still supported -KPIC.
6927       ecc*)
6928         lt_prog_compiler_wl='-Wl,'
6929         lt_prog_compiler_pic='-KPIC'
6930         lt_prog_compiler_static='-static'
6931         ;;
6932       # icc used to be incompatible with GCC.
6933       # ICC 10 doesn't accept -KPIC any more.
6934       icc* | ifort*)
6935         lt_prog_compiler_wl='-Wl,'
6936         lt_prog_compiler_pic='-fPIC'
6937         lt_prog_compiler_static='-static'
6938         ;;
6939       # Lahey Fortran 8.1.
6940       lf95*)
6941         lt_prog_compiler_wl='-Wl,'
6942         lt_prog_compiler_pic='--shared'
6943         lt_prog_compiler_static='--static'
6944         ;;
6945       pgcc* | pgf77* | pgf90* | pgf95*)
6946         # Portland Group compilers (*not* the Pentium gcc compiler,
6947         # which looks to be a dead project)
6948         lt_prog_compiler_wl='-Wl,'
6949         lt_prog_compiler_pic='-fpic'
6950         lt_prog_compiler_static='-Bstatic'
6951         ;;
6952       ccc*)
6953         lt_prog_compiler_wl='-Wl,'
6954         # All Alpha code is PIC.
6955         lt_prog_compiler_static='-non_shared'
6956         ;;
6957       xl*)
6958         # IBM XL C 8.0/Fortran 10.1 on PPC
6959         lt_prog_compiler_wl='-Wl,'
6960         lt_prog_compiler_pic='-qpic'
6961         lt_prog_compiler_static='-qstaticlink'
6962         ;;
6963       *)
6964         case `$CC -V 2>&1 | sed 5q` in
6965         *Sun\ C*)
6966           # Sun C 5.9
6967           lt_prog_compiler_pic='-KPIC'
6968           lt_prog_compiler_static='-Bstatic'
6969           lt_prog_compiler_wl='-Wl,'
6970           ;;
6971         *Sun\ F*)
6972           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6973           lt_prog_compiler_pic='-KPIC'
6974           lt_prog_compiler_static='-Bstatic'
6975           lt_prog_compiler_wl=''
6976           ;;
6977         esac
6978         ;;
6979       esac
6980       ;;
6981
6982     newsos6)
6983       lt_prog_compiler_pic='-KPIC'
6984       lt_prog_compiler_static='-Bstatic'
6985       ;;
6986
6987     *nto* | *qnx*)
6988       # QNX uses GNU C++, but need to define -shared option too, otherwise
6989       # it will coredump.
6990       lt_prog_compiler_pic='-fPIC -shared'
6991       ;;
6992
6993     osf3* | osf4* | osf5*)
6994       lt_prog_compiler_wl='-Wl,'
6995       # All OSF/1 code is PIC.
6996       lt_prog_compiler_static='-non_shared'
6997       ;;
6998
6999     rdos*)
7000       lt_prog_compiler_static='-non_shared'
7001       ;;
7002
7003     solaris*)
7004       lt_prog_compiler_pic='-KPIC'
7005       lt_prog_compiler_static='-Bstatic'
7006       case $cc_basename in
7007       f77* | f90* | f95*)
7008         lt_prog_compiler_wl='-Qoption ld ';;
7009       *)
7010         lt_prog_compiler_wl='-Wl,';;
7011       esac
7012       ;;
7013
7014     sunos4*)
7015       lt_prog_compiler_wl='-Qoption ld '
7016       lt_prog_compiler_pic='-PIC'
7017       lt_prog_compiler_static='-Bstatic'
7018       ;;
7019
7020     sysv4 | sysv4.2uw2* | sysv4.3*)
7021       lt_prog_compiler_wl='-Wl,'
7022       lt_prog_compiler_pic='-KPIC'
7023       lt_prog_compiler_static='-Bstatic'
7024       ;;
7025
7026     sysv4*MP*)
7027       if test -d /usr/nec ;then
7028         lt_prog_compiler_pic='-Kconform_pic'
7029         lt_prog_compiler_static='-Bstatic'
7030       fi
7031       ;;
7032
7033     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7034       lt_prog_compiler_wl='-Wl,'
7035       lt_prog_compiler_pic='-KPIC'
7036       lt_prog_compiler_static='-Bstatic'
7037       ;;
7038
7039     unicos*)
7040       lt_prog_compiler_wl='-Wl,'
7041       lt_prog_compiler_can_build_shared=no
7042       ;;
7043
7044     uts4*)
7045       lt_prog_compiler_pic='-pic'
7046       lt_prog_compiler_static='-Bstatic'
7047       ;;
7048
7049     *)
7050       lt_prog_compiler_can_build_shared=no
7051       ;;
7052     esac
7053   fi
7054
7055 case $host_os in
7056   # For platforms which do not support PIC, -DPIC is meaningless:
7057   *djgpp*)
7058     lt_prog_compiler_pic=
7059     ;;
7060   *)
7061     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7062     ;;
7063 esac
7064 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7065 $as_echo "$lt_prog_compiler_pic" >&6; }
7066
7067
7068
7069
7070
7071
7072 #
7073 # Check to make sure the PIC flag actually works.
7074 #
7075 if test -n "$lt_prog_compiler_pic"; then
7076   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7077 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7078 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7079   $as_echo_n "(cached) " >&6
7080 else
7081   lt_cv_prog_compiler_pic_works=no
7082    ac_outfile=conftest.$ac_objext
7083    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7084    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7085    # Insert the option either (1) after the last *FLAGS variable, or
7086    # (2) before a word containing "conftest.", or (3) at the end.
7087    # Note that $ac_compile itself does not contain backslashes and begins
7088    # with a dollar sign (not a hyphen), so the echo should work correctly.
7089    # The option is referenced via a variable to avoid confusing sed.
7090    lt_compile=`echo "$ac_compile" | $SED \
7091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7093    -e 's:$: $lt_compiler_flag:'`
7094    (eval echo "\"\$as_me:7094: $lt_compile\"" >&5)
7095    (eval "$lt_compile" 2>conftest.err)
7096    ac_status=$?
7097    cat conftest.err >&5
7098    echo "$as_me:7098: \$? = $ac_status" >&5
7099    if (exit $ac_status) && test -s "$ac_outfile"; then
7100      # The compiler can only warn and ignore the option if not recognized
7101      # So say no if there are warnings other than the usual output.
7102      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7103      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7104      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7105        lt_cv_prog_compiler_pic_works=yes
7106      fi
7107    fi
7108    $RM conftest*
7109
7110 fi
7111 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7112 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7113
7114 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7115     case $lt_prog_compiler_pic in
7116      "" | " "*) ;;
7117      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7118      esac
7119 else
7120     lt_prog_compiler_pic=
7121      lt_prog_compiler_can_build_shared=no
7122 fi
7123
7124 fi
7125
7126
7127
7128
7129
7130
7131 #
7132 # Check to make sure the static flag actually works.
7133 #
7134 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7135 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7136 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7137 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7138   $as_echo_n "(cached) " >&6
7139 else
7140   lt_cv_prog_compiler_static_works=no
7141    save_LDFLAGS="$LDFLAGS"
7142    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7143    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7144    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7145      # The linker can only warn and ignore the option if not recognized
7146      # So say no if there are warnings
7147      if test -s conftest.err; then
7148        # Append any errors to the config.log.
7149        cat conftest.err 1>&5
7150        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7151        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7152        if diff conftest.exp conftest.er2 >/dev/null; then
7153          lt_cv_prog_compiler_static_works=yes
7154        fi
7155      else
7156        lt_cv_prog_compiler_static_works=yes
7157      fi
7158    fi
7159    $RM -r conftest*
7160    LDFLAGS="$save_LDFLAGS"
7161
7162 fi
7163 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7164 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7165
7166 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7167     :
7168 else
7169     lt_prog_compiler_static=
7170 fi
7171
7172
7173
7174
7175
7176
7177
7178   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7179 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7180 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7181   $as_echo_n "(cached) " >&6
7182 else
7183   lt_cv_prog_compiler_c_o=no
7184    $RM -r conftest 2>/dev/null
7185    mkdir conftest
7186    cd conftest
7187    mkdir out
7188    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7189
7190    lt_compiler_flag="-o out/conftest2.$ac_objext"
7191    # Insert the option either (1) after the last *FLAGS variable, or
7192    # (2) before a word containing "conftest.", or (3) at the end.
7193    # Note that $ac_compile itself does not contain backslashes and begins
7194    # with a dollar sign (not a hyphen), so the echo should work correctly.
7195    lt_compile=`echo "$ac_compile" | $SED \
7196    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7198    -e 's:$: $lt_compiler_flag:'`
7199    (eval echo "\"\$as_me:7199: $lt_compile\"" >&5)
7200    (eval "$lt_compile" 2>out/conftest.err)
7201    ac_status=$?
7202    cat out/conftest.err >&5
7203    echo "$as_me:7203: \$? = $ac_status" >&5
7204    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7205    then
7206      # The compiler can only warn and ignore the option if not recognized
7207      # So say no if there are warnings
7208      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7209      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7210      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7211        lt_cv_prog_compiler_c_o=yes
7212      fi
7213    fi
7214    chmod u+w . 2>&5
7215    $RM conftest*
7216    # SGI C++ compiler will create directory out/ii_files/ for
7217    # template instantiation
7218    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7219    $RM out/* && rmdir out
7220    cd ..
7221    $RM -r conftest
7222    $RM conftest*
7223
7224 fi
7225 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7226 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7227
7228
7229
7230
7231
7232
7233   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7235 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7236   $as_echo_n "(cached) " >&6
7237 else
7238   lt_cv_prog_compiler_c_o=no
7239    $RM -r conftest 2>/dev/null
7240    mkdir conftest
7241    cd conftest
7242    mkdir out
7243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7244
7245    lt_compiler_flag="-o out/conftest2.$ac_objext"
7246    # Insert the option either (1) after the last *FLAGS variable, or
7247    # (2) before a word containing "conftest.", or (3) at the end.
7248    # Note that $ac_compile itself does not contain backslashes and begins
7249    # with a dollar sign (not a hyphen), so the echo should work correctly.
7250    lt_compile=`echo "$ac_compile" | $SED \
7251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7253    -e 's:$: $lt_compiler_flag:'`
7254    (eval echo "\"\$as_me:7254: $lt_compile\"" >&5)
7255    (eval "$lt_compile" 2>out/conftest.err)
7256    ac_status=$?
7257    cat out/conftest.err >&5
7258    echo "$as_me:7258: \$? = $ac_status" >&5
7259    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7260    then
7261      # The compiler can only warn and ignore the option if not recognized
7262      # So say no if there are warnings
7263      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7264      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7265      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7266        lt_cv_prog_compiler_c_o=yes
7267      fi
7268    fi
7269    chmod u+w . 2>&5
7270    $RM conftest*
7271    # SGI C++ compiler will create directory out/ii_files/ for
7272    # template instantiation
7273    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7274    $RM out/* && rmdir out
7275    cd ..
7276    $RM -r conftest
7277    $RM conftest*
7278
7279 fi
7280 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7281 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7282
7283
7284
7285
7286 hard_links="nottested"
7287 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7288   # do not overwrite the value of need_locks provided by the user
7289   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7290 $as_echo_n "checking if we can lock with hard links... " >&6; }
7291   hard_links=yes
7292   $RM conftest*
7293   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7294   touch conftest.a
7295   ln conftest.a conftest.b 2>&5 || hard_links=no
7296   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7297   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7298 $as_echo "$hard_links" >&6; }
7299   if test "$hard_links" = no; then
7300     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7301 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7302     need_locks=warn
7303   fi
7304 else
7305   need_locks=no
7306 fi
7307
7308
7309
7310
7311
7312
7313   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7314 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7315
7316   runpath_var=
7317   allow_undefined_flag=
7318   always_export_symbols=no
7319   archive_cmds=
7320   archive_expsym_cmds=
7321   compiler_needs_object=no
7322   enable_shared_with_static_runtimes=no
7323   export_dynamic_flag_spec=
7324   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7325   hardcode_automatic=no
7326   hardcode_direct=no
7327   hardcode_direct_absolute=no
7328   hardcode_libdir_flag_spec=
7329   hardcode_libdir_flag_spec_ld=
7330   hardcode_libdir_separator=
7331   hardcode_minus_L=no
7332   hardcode_shlibpath_var=unsupported
7333   inherit_rpath=no
7334   link_all_deplibs=unknown
7335   module_cmds=
7336   module_expsym_cmds=
7337   old_archive_from_new_cmds=
7338   old_archive_from_expsyms_cmds=
7339   thread_safe_flag_spec=
7340   whole_archive_flag_spec=
7341   # include_expsyms should be a list of space-separated symbols to be *always*
7342   # included in the symbol list
7343   include_expsyms=
7344   # exclude_expsyms can be an extended regexp of symbols to exclude
7345   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7346   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7347   # as well as any symbol that contains `d'.
7348   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7349   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7350   # platforms (ab)use it in PIC code, but their linkers get confused if
7351   # the symbol is explicitly referenced.  Since portable code cannot
7352   # rely on this symbol name, it's probably fine to never include it in
7353   # preloaded symbol tables.
7354   # Exclude shared library initialization/finalization symbols.
7355   extract_expsyms_cmds=
7356
7357   case $host_os in
7358   cygwin* | mingw* | pw32* | cegcc*)
7359     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7360     # When not using gcc, we currently assume that we are using
7361     # Microsoft Visual C++.
7362     if test "$GCC" != yes; then
7363       with_gnu_ld=no
7364     fi
7365     ;;
7366   interix*)
7367     # we just hope/assume this is gcc and not c89 (= MSVC++)
7368     with_gnu_ld=yes
7369     ;;
7370   openbsd*)
7371     with_gnu_ld=no
7372     ;;
7373   esac
7374
7375   ld_shlibs=yes
7376   if test "$with_gnu_ld" = yes; then
7377     # If archive_cmds runs LD, not CC, wlarc should be empty
7378     wlarc='${wl}'
7379
7380     # Set some defaults for GNU ld with shared library support. These
7381     # are reset later if shared libraries are not supported. Putting them
7382     # here allows them to be overridden if necessary.
7383     runpath_var=LD_RUN_PATH
7384     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7385     export_dynamic_flag_spec='${wl}--export-dynamic'
7386     # ancient GNU ld didn't support --whole-archive et. al.
7387     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7388       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7389     else
7390       whole_archive_flag_spec=
7391     fi
7392     supports_anon_versioning=no
7393     case `$LD -v 2>&1` in
7394       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7395       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7396       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7397       *\ 2.11.*) ;; # other 2.11 versions
7398       *) supports_anon_versioning=yes ;;
7399     esac
7400
7401     # See if GNU ld supports shared libraries.
7402     case $host_os in
7403     aix[3-9]*)
7404       # On AIX/PPC, the GNU linker is very broken
7405       if test "$host_cpu" != ia64; then
7406         ld_shlibs=no
7407         cat <<_LT_EOF 1>&2
7408
7409 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7410 *** to be unable to reliably create shared libraries on AIX.
7411 *** Therefore, libtool is disabling shared libraries support.  If you
7412 *** really care for shared libraries, you may want to modify your PATH
7413 *** so that a non-GNU linker is found, and then restart.
7414
7415 _LT_EOF
7416       fi
7417       ;;
7418
7419     amigaos*)
7420       case $host_cpu in
7421       powerpc)
7422             # see comment about AmigaOS4 .so support
7423             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7424             archive_expsym_cmds=''
7425         ;;
7426       m68k)
7427             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)'
7428             hardcode_libdir_flag_spec='-L$libdir'
7429             hardcode_minus_L=yes
7430         ;;
7431       esac
7432       ;;
7433
7434     beos*)
7435       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7436         allow_undefined_flag=unsupported
7437         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7438         # support --undefined.  This deserves some investigation.  FIXME
7439         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7440       else
7441         ld_shlibs=no
7442       fi
7443       ;;
7444
7445     cygwin* | mingw* | pw32* | cegcc*)
7446       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7447       # as there is no search path for DLLs.
7448       hardcode_libdir_flag_spec='-L$libdir'
7449       allow_undefined_flag=unsupported
7450       always_export_symbols=no
7451       enable_shared_with_static_runtimes=yes
7452       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7453
7454       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7455         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7456         # If the export-symbols file already is a .def file (1st line
7457         # is EXPORTS), use it as is; otherwise, prepend...
7458         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7459           cp $export_symbols $output_objdir/$soname.def;
7460         else
7461           echo EXPORTS > $output_objdir/$soname.def;
7462           cat $export_symbols >> $output_objdir/$soname.def;
7463         fi~
7464         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7465       else
7466         ld_shlibs=no
7467       fi
7468       ;;
7469
7470     interix[3-9]*)
7471       hardcode_direct=no
7472       hardcode_shlibpath_var=no
7473       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7474       export_dynamic_flag_spec='${wl}-E'
7475       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7476       # Instead, shared libraries are loaded at an image base (0x10000000 by
7477       # default) and relocated if they conflict, which is a slow very memory
7478       # consuming and fragmenting process.  To avoid this, we pick a random,
7479       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7480       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7481       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7482       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'
7483       ;;
7484
7485     gnu* | linux* | tpf* | k*bsd*-gnu)
7486       tmp_diet=no
7487       if test "$host_os" = linux-dietlibc; then
7488         case $cc_basename in
7489           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7490         esac
7491       fi
7492       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7493          && test "$tmp_diet" = no
7494       then
7495         tmp_addflag=
7496         tmp_sharedflag='-shared'
7497         case $cc_basename,$host_cpu in
7498         pgcc*)                          # Portland Group C compiler
7499           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'
7500           tmp_addflag=' $pic_flag'
7501           ;;
7502         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7503           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'
7504           tmp_addflag=' $pic_flag -Mnomain' ;;
7505         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7506           tmp_addflag=' -i_dynamic' ;;
7507         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7508           tmp_addflag=' -i_dynamic -nofor_main' ;;
7509         ifc* | ifort*)                  # Intel Fortran compiler
7510           tmp_addflag=' -nofor_main' ;;
7511         lf95*)                          # Lahey Fortran 8.1
7512           whole_archive_flag_spec=
7513           tmp_sharedflag='--shared' ;;
7514         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7515           tmp_sharedflag='-qmkshrobj'
7516           tmp_addflag= ;;
7517         esac
7518         case `$CC -V 2>&1 | sed 5q` in
7519         *Sun\ C*)                       # Sun C 5.9
7520           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'
7521           compiler_needs_object=yes
7522           tmp_sharedflag='-G' ;;
7523         *Sun\ F*)                       # Sun Fortran 8.3
7524           tmp_sharedflag='-G' ;;
7525         esac
7526         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7527
7528         if test "x$supports_anon_versioning" = xyes; then
7529           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7530             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7531             echo "local: *; };" >> $output_objdir/$libname.ver~
7532             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7533         fi
7534
7535         case $cc_basename in
7536         xlf*)
7537           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7538           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7539           hardcode_libdir_flag_spec=
7540           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7541           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7542           if test "x$supports_anon_versioning" = xyes; then
7543             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7544               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7545               echo "local: *; };" >> $output_objdir/$libname.ver~
7546               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7547           fi
7548           ;;
7549         esac
7550       else
7551         ld_shlibs=no
7552       fi
7553       ;;
7554
7555     netbsd*)
7556       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7557         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7558         wlarc=
7559       else
7560         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7561         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7562       fi
7563       ;;
7564
7565     solaris*)
7566       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7567         ld_shlibs=no
7568         cat <<_LT_EOF 1>&2
7569
7570 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7571 *** create shared libraries on Solaris systems.  Therefore, libtool
7572 *** is disabling shared libraries support.  We urge you to upgrade GNU
7573 *** binutils to release 2.9.1 or newer.  Another option is to modify
7574 *** your PATH or compiler configuration so that the native linker is
7575 *** used, and then restart.
7576
7577 _LT_EOF
7578       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7579         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7580         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7581       else
7582         ld_shlibs=no
7583       fi
7584       ;;
7585
7586     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7587       case `$LD -v 2>&1` in
7588         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7589         ld_shlibs=no
7590         cat <<_LT_EOF 1>&2
7591
7592 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7593 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7594 *** is disabling shared libraries support.  We urge you to upgrade GNU
7595 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7596 *** your PATH or compiler configuration so that the native linker is
7597 *** used, and then restart.
7598
7599 _LT_EOF
7600         ;;
7601         *)
7602           # For security reasons, it is highly recommended that you always
7603           # use absolute paths for naming shared libraries, and exclude the
7604           # DT_RUNPATH tag from executables and libraries.  But doing so
7605           # requires that you compile everything twice, which is a pain.
7606           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7607             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7608             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7609             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7610           else
7611             ld_shlibs=no
7612           fi
7613         ;;
7614       esac
7615       ;;
7616
7617     sunos4*)
7618       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7619       wlarc=
7620       hardcode_direct=yes
7621       hardcode_shlibpath_var=no
7622       ;;
7623
7624     *)
7625       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7626         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7627         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7628       else
7629         ld_shlibs=no
7630       fi
7631       ;;
7632     esac
7633
7634     if test "$ld_shlibs" = no; then
7635       runpath_var=
7636       hardcode_libdir_flag_spec=
7637       export_dynamic_flag_spec=
7638       whole_archive_flag_spec=
7639     fi
7640   else
7641     # PORTME fill in a description of your system's linker (not GNU ld)
7642     case $host_os in
7643     aix3*)
7644       allow_undefined_flag=unsupported
7645       always_export_symbols=yes
7646       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'
7647       # Note: this linker hardcodes the directories in LIBPATH if there
7648       # are no directories specified by -L.
7649       hardcode_minus_L=yes
7650       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7651         # Neither direct hardcoding nor static linking is supported with a
7652         # broken collect2.
7653         hardcode_direct=unsupported
7654       fi
7655       ;;
7656
7657     aix[4-9]*)
7658       if test "$host_cpu" = ia64; then
7659         # On IA64, the linker does run time linking by default, so we don't
7660         # have to do anything special.
7661         aix_use_runtimelinking=no
7662         exp_sym_flag='-Bexport'
7663         no_entry_flag=""
7664       else
7665         # If we're using GNU nm, then we don't want the "-C" option.
7666         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7667         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7668           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'
7669         else
7670           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'
7671         fi
7672         aix_use_runtimelinking=no
7673
7674         # Test if we are trying to use run time linking or normal
7675         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7676         # need to do runtime linking.
7677         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7678           for ld_flag in $LDFLAGS; do
7679           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7680             aix_use_runtimelinking=yes
7681             break
7682           fi
7683           done
7684           ;;
7685         esac
7686
7687         exp_sym_flag='-bexport'
7688         no_entry_flag='-bnoentry'
7689       fi
7690
7691       # When large executables or shared objects are built, AIX ld can
7692       # have problems creating the table of contents.  If linking a library
7693       # or program results in "error TOC overflow" add -mminimal-toc to
7694       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7695       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7696
7697       archive_cmds=''
7698       hardcode_direct=yes
7699       hardcode_direct_absolute=yes
7700       hardcode_libdir_separator=':'
7701       link_all_deplibs=yes
7702       file_list_spec='${wl}-f,'
7703
7704       if test "$GCC" = yes; then
7705         case $host_os in aix4.[012]|aix4.[012].*)
7706         # We only want to do this on AIX 4.2 and lower, the check
7707         # below for broken collect2 doesn't work under 4.3+
7708           collect2name=`${CC} -print-prog-name=collect2`
7709           if test -f "$collect2name" &&
7710            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7711           then
7712           # We have reworked collect2
7713           :
7714           else
7715           # We have old collect2
7716           hardcode_direct=unsupported
7717           # It fails to find uninstalled libraries when the uninstalled
7718           # path is not listed in the libpath.  Setting hardcode_minus_L
7719           # to unsupported forces relinking
7720           hardcode_minus_L=yes
7721           hardcode_libdir_flag_spec='-L$libdir'
7722           hardcode_libdir_separator=
7723           fi
7724           ;;
7725         esac
7726         shared_flag='-shared'
7727         if test "$aix_use_runtimelinking" = yes; then
7728           shared_flag="$shared_flag "'${wl}-G'
7729         fi
7730       else
7731         # not using gcc
7732         if test "$host_cpu" = ia64; then
7733         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7734         # chokes on -Wl,-G. The following line is correct:
7735           shared_flag='-G'
7736         else
7737           if test "$aix_use_runtimelinking" = yes; then
7738             shared_flag='${wl}-G'
7739           else
7740             shared_flag='${wl}-bM:SRE'
7741           fi
7742         fi
7743       fi
7744
7745       export_dynamic_flag_spec='${wl}-bexpall'
7746       # It seems that -bexpall does not export symbols beginning with
7747       # underscore (_), so it is better to generate a list of symbols to export.
7748       always_export_symbols=yes
7749       if test "$aix_use_runtimelinking" = yes; then
7750         # Warning - without using the other runtime loading flags (-brtl),
7751         # -berok will link without error, but may produce a broken library.
7752         allow_undefined_flag='-berok'
7753         # Determine the default libpath from the value encoded in an
7754         # empty executable.
7755         cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext conftest$ac_exeext
7771 if { (ac_try="$ac_link"
7772 case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777 $as_echo "$ac_try_echo") >&5
7778   (eval "$ac_link") 2>conftest.er1
7779   ac_status=$?
7780   grep -v '^ *+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } && {
7785          test -z "$ac_c_werror_flag" ||
7786          test ! -s conftest.err
7787        } && test -s conftest$ac_exeext && {
7788          test "$cross_compiling" = yes ||
7789          $as_test_x conftest$ac_exeext
7790        }; then
7791
7792 lt_aix_libpath_sed='
7793     /Import File Strings/,/^$/ {
7794         /^0/ {
7795             s/^0  *\(.*\)$/\1/
7796             p
7797         }
7798     }'
7799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7800 # Check for a 64-bit object if we didn't find anything.
7801 if test -z "$aix_libpath"; then
7802   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7803 fi
7804 else
7805   $as_echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808
7809 fi
7810
7811 rm -rf conftest.dSYM
7812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7813       conftest$ac_exeext conftest.$ac_ext
7814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7815
7816         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7817         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7818       else
7819         if test "$host_cpu" = ia64; then
7820           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7821           allow_undefined_flag="-z nodefs"
7822           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"
7823         else
7824          # Determine the default libpath from the value encoded in an
7825          # empty executable.
7826          cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832
7833 int
7834 main ()
7835 {
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (ac_try="$ac_link"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7848 $as_echo "$ac_try_echo") >&5
7849   (eval "$ac_link") 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } && {
7856          test -z "$ac_c_werror_flag" ||
7857          test ! -s conftest.err
7858        } && test -s conftest$ac_exeext && {
7859          test "$cross_compiling" = yes ||
7860          $as_test_x conftest$ac_exeext
7861        }; then
7862
7863 lt_aix_libpath_sed='
7864     /Import File Strings/,/^$/ {
7865         /^0/ {
7866             s/^0  *\(.*\)$/\1/
7867             p
7868         }
7869     }'
7870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7871 # Check for a 64-bit object if we didn't find anything.
7872 if test -z "$aix_libpath"; then
7873   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7874 fi
7875 else
7876   $as_echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879
7880 fi
7881
7882 rm -rf conftest.dSYM
7883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7884       conftest$ac_exeext conftest.$ac_ext
7885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7886
7887          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7888           # Warning - without using the other run time loading flags,
7889           # -berok will link without error, but may produce a broken library.
7890           no_undefined_flag=' ${wl}-bernotok'
7891           allow_undefined_flag=' ${wl}-berok'
7892           # Exported symbols can be pulled into shared objects from archives
7893           whole_archive_flag_spec='$convenience'
7894           archive_cmds_need_lc=yes
7895           # This is similar to how AIX traditionally builds its shared libraries.
7896           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'
7897         fi
7898       fi
7899       ;;
7900
7901     amigaos*)
7902       case $host_cpu in
7903       powerpc)
7904             # see comment about AmigaOS4 .so support
7905             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906             archive_expsym_cmds=''
7907         ;;
7908       m68k)
7909             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)'
7910             hardcode_libdir_flag_spec='-L$libdir'
7911             hardcode_minus_L=yes
7912         ;;
7913       esac
7914       ;;
7915
7916     bsdi[45]*)
7917       export_dynamic_flag_spec=-rdynamic
7918       ;;
7919
7920     cygwin* | mingw* | pw32* | cegcc*)
7921       # When not using gcc, we currently assume that we are using
7922       # Microsoft Visual C++.
7923       # hardcode_libdir_flag_spec is actually meaningless, as there is
7924       # no search path for DLLs.
7925       hardcode_libdir_flag_spec=' '
7926       allow_undefined_flag=unsupported
7927       # Tell ltmain to make .lib files, not .a files.
7928       libext=lib
7929       # Tell ltmain to make .dll files, not .so files.
7930       shrext_cmds=".dll"
7931       # FIXME: Setting linknames here is a bad hack.
7932       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7933       # The linker will automatically build a .lib file if we build a DLL.
7934       old_archive_from_new_cmds='true'
7935       # FIXME: Should let the user specify the lib program.
7936       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7937       fix_srcfile_path='`cygpath -w "$srcfile"`'
7938       enable_shared_with_static_runtimes=yes
7939       ;;
7940
7941     darwin* | rhapsody*)
7942
7943
7944   archive_cmds_need_lc=no
7945   hardcode_direct=no
7946   hardcode_automatic=yes
7947   hardcode_shlibpath_var=unsupported
7948   whole_archive_flag_spec=''
7949   link_all_deplibs=yes
7950   allow_undefined_flag="$_lt_dar_allow_undefined"
7951   case $cc_basename in
7952      ifort*) _lt_dar_can_shared=yes ;;
7953      *) _lt_dar_can_shared=$GCC ;;
7954   esac
7955   if test "$_lt_dar_can_shared" = "yes"; then
7956     output_verbose_link_cmd=echo
7957     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7958     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7959     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}"
7960     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}"
7961
7962   else
7963   ld_shlibs=no
7964   fi
7965
7966       ;;
7967
7968     dgux*)
7969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970       hardcode_libdir_flag_spec='-L$libdir'
7971       hardcode_shlibpath_var=no
7972       ;;
7973
7974     freebsd1*)
7975       ld_shlibs=no
7976       ;;
7977
7978     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7979     # support.  Future versions do this automatically, but an explicit c++rt0.o
7980     # does not break anything, and helps significantly (at the cost of a little
7981     # extra space).
7982     freebsd2.2*)
7983       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7984       hardcode_libdir_flag_spec='-R$libdir'
7985       hardcode_direct=yes
7986       hardcode_shlibpath_var=no
7987       ;;
7988
7989     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7990     freebsd2*)
7991       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7992       hardcode_direct=yes
7993       hardcode_minus_L=yes
7994       hardcode_shlibpath_var=no
7995       ;;
7996
7997     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7998     freebsd* | dragonfly*)
7999       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8000       hardcode_libdir_flag_spec='-R$libdir'
8001       hardcode_direct=yes
8002       hardcode_shlibpath_var=no
8003       ;;
8004
8005     hpux9*)
8006       if test "$GCC" = yes; then
8007         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'
8008       else
8009         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'
8010       fi
8011       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8012       hardcode_libdir_separator=:
8013       hardcode_direct=yes
8014
8015       # hardcode_minus_L: Not really in the search PATH,
8016       # but as the default location of the library.
8017       hardcode_minus_L=yes
8018       export_dynamic_flag_spec='${wl}-E'
8019       ;;
8020
8021     hpux10*)
8022       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8023         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8024       else
8025         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8026       fi
8027       if test "$with_gnu_ld" = no; then
8028         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8029         hardcode_libdir_flag_spec_ld='+b $libdir'
8030         hardcode_libdir_separator=:
8031         hardcode_direct=yes
8032         hardcode_direct_absolute=yes
8033         export_dynamic_flag_spec='${wl}-E'
8034         # hardcode_minus_L: Not really in the search PATH,
8035         # but as the default location of the library.
8036         hardcode_minus_L=yes
8037       fi
8038       ;;
8039
8040     hpux11*)
8041       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8042         case $host_cpu in
8043         hppa*64*)
8044           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8045           ;;
8046         ia64*)
8047           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8048           ;;
8049         *)
8050           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8051           ;;
8052         esac
8053       else
8054         case $host_cpu in
8055         hppa*64*)
8056           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057           ;;
8058         ia64*)
8059           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8060           ;;
8061         *)
8062           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8063           ;;
8064         esac
8065       fi
8066       if test "$with_gnu_ld" = no; then
8067         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8068         hardcode_libdir_separator=:
8069
8070         case $host_cpu in
8071         hppa*64*|ia64*)
8072           hardcode_direct=no
8073           hardcode_shlibpath_var=no
8074           ;;
8075         *)
8076           hardcode_direct=yes
8077           hardcode_direct_absolute=yes
8078           export_dynamic_flag_spec='${wl}-E'
8079
8080           # hardcode_minus_L: Not really in the search PATH,
8081           # but as the default location of the library.
8082           hardcode_minus_L=yes
8083           ;;
8084         esac
8085       fi
8086       ;;
8087
8088     irix5* | irix6* | nonstopux*)
8089       if test "$GCC" = yes; then
8090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8091         # Try to use the -exported_symbol ld option, if it does not
8092         # work, assume that -exports_file does not work either and
8093         # implicitly export all symbols.
8094         save_LDFLAGS="$LDFLAGS"
8095         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8096         cat >conftest.$ac_ext <<_ACEOF
8097 int foo(void) {}
8098 _ACEOF
8099 rm -f conftest.$ac_objext conftest$ac_exeext
8100 if { (ac_try="$ac_link"
8101 case "(($ac_try" in
8102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103   *) ac_try_echo=$ac_try;;
8104 esac
8105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8106 $as_echo "$ac_try_echo") >&5
8107   (eval "$ac_link") 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } && {
8114          test -z "$ac_c_werror_flag" ||
8115          test ! -s conftest.err
8116        } && test -s conftest$ac_exeext && {
8117          test "$cross_compiling" = yes ||
8118          $as_test_x conftest$ac_exeext
8119        }; then
8120   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8121
8122 else
8123   $as_echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126
8127 fi
8128
8129 rm -rf conftest.dSYM
8130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8131       conftest$ac_exeext conftest.$ac_ext
8132         LDFLAGS="$save_LDFLAGS"
8133       else
8134         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8135         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8136       fi
8137       archive_cmds_need_lc='no'
8138       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8139       hardcode_libdir_separator=:
8140       inherit_rpath=yes
8141       link_all_deplibs=yes
8142       ;;
8143
8144     netbsd*)
8145       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8146         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8147       else
8148         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8149       fi
8150       hardcode_libdir_flag_spec='-R$libdir'
8151       hardcode_direct=yes
8152       hardcode_shlibpath_var=no
8153       ;;
8154
8155     newsos6)
8156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8157       hardcode_direct=yes
8158       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159       hardcode_libdir_separator=:
8160       hardcode_shlibpath_var=no
8161       ;;
8162
8163     *nto* | *qnx*)
8164       ;;
8165
8166     openbsd*)
8167       if test -f /usr/libexec/ld.so; then
8168         hardcode_direct=yes
8169         hardcode_shlibpath_var=no
8170         hardcode_direct_absolute=yes
8171         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8172           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8173           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8174           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175           export_dynamic_flag_spec='${wl}-E'
8176         else
8177           case $host_os in
8178            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8179              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8180              hardcode_libdir_flag_spec='-R$libdir'
8181              ;;
8182            *)
8183              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8184              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8185              ;;
8186           esac
8187         fi
8188       else
8189         ld_shlibs=no
8190       fi
8191       ;;
8192
8193     os2*)
8194       hardcode_libdir_flag_spec='-L$libdir'
8195       hardcode_minus_L=yes
8196       allow_undefined_flag=unsupported
8197       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'
8198       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8199       ;;
8200
8201     osf3*)
8202       if test "$GCC" = yes; then
8203         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8204         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8205       else
8206         allow_undefined_flag=' -expect_unresolved \*'
8207         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8208       fi
8209       archive_cmds_need_lc='no'
8210       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211       hardcode_libdir_separator=:
8212       ;;
8213
8214     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8215       if test "$GCC" = yes; then
8216         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8217         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8218         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8219       else
8220         allow_undefined_flag=' -expect_unresolved \*'
8221         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8222         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8223         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8224
8225         # Both c and cxx compiler support -rpath directly
8226         hardcode_libdir_flag_spec='-rpath $libdir'
8227       fi
8228       archive_cmds_need_lc='no'
8229       hardcode_libdir_separator=:
8230       ;;
8231
8232     solaris*)
8233       no_undefined_flag=' -z defs'
8234       if test "$GCC" = yes; then
8235         wlarc='${wl}'
8236         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8237         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8238           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8239       else
8240         case `$CC -V 2>&1` in
8241         *"Compilers 5.0"*)
8242           wlarc=''
8243           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8244           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8245           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8246           ;;
8247         *)
8248           wlarc='${wl}'
8249           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8250           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8251           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8252           ;;
8253         esac
8254       fi
8255       hardcode_libdir_flag_spec='-R$libdir'
8256       hardcode_shlibpath_var=no
8257       case $host_os in
8258       solaris2.[0-5] | solaris2.[0-5].*) ;;
8259       *)
8260         # The compiler driver will combine and reorder linker options,
8261         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8262         # but is careful enough not to reorder.
8263         # Supported since Solaris 2.6 (maybe 2.5.1?)
8264         if test "$GCC" = yes; then
8265           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8266         else
8267           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8268         fi
8269         ;;
8270       esac
8271       link_all_deplibs=yes
8272       ;;
8273
8274     sunos4*)
8275       if test "x$host_vendor" = xsequent; then
8276         # Use $CC to link under sequent, because it throws in some extra .o
8277         # files that make .init and .fini sections work.
8278         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8279       else
8280         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8281       fi
8282       hardcode_libdir_flag_spec='-L$libdir'
8283       hardcode_direct=yes
8284       hardcode_minus_L=yes
8285       hardcode_shlibpath_var=no
8286       ;;
8287
8288     sysv4)
8289       case $host_vendor in
8290         sni)
8291           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8292           hardcode_direct=yes # is this really true???
8293         ;;
8294         siemens)
8295           ## LD is ld it makes a PLAMLIB
8296           ## CC just makes a GrossModule.
8297           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8298           reload_cmds='$CC -r -o $output$reload_objs'
8299           hardcode_direct=no
8300         ;;
8301         motorola)
8302           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8304         ;;
8305       esac
8306       runpath_var='LD_RUN_PATH'
8307       hardcode_shlibpath_var=no
8308       ;;
8309
8310     sysv4.3*)
8311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312       hardcode_shlibpath_var=no
8313       export_dynamic_flag_spec='-Bexport'
8314       ;;
8315
8316     sysv4*MP*)
8317       if test -d /usr/nec; then
8318         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8319         hardcode_shlibpath_var=no
8320         runpath_var=LD_RUN_PATH
8321         hardcode_runpath_var=yes
8322         ld_shlibs=yes
8323       fi
8324       ;;
8325
8326     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8327       no_undefined_flag='${wl}-z,text'
8328       archive_cmds_need_lc=no
8329       hardcode_shlibpath_var=no
8330       runpath_var='LD_RUN_PATH'
8331
8332       if test "$GCC" = yes; then
8333         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8334         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8335       else
8336         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8337         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8338       fi
8339       ;;
8340
8341     sysv5* | sco3.2v5* | sco5v6*)
8342       # Note: We can NOT use -z defs as we might desire, because we do not
8343       # link with -lc, and that would cause any symbols used from libc to
8344       # always be unresolved, which means just about no library would
8345       # ever link correctly.  If we're not using GNU ld we use -z text
8346       # though, which does catch some bad symbols but isn't as heavy-handed
8347       # as -z defs.
8348       no_undefined_flag='${wl}-z,text'
8349       allow_undefined_flag='${wl}-z,nodefs'
8350       archive_cmds_need_lc=no
8351       hardcode_shlibpath_var=no
8352       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8353       hardcode_libdir_separator=':'
8354       link_all_deplibs=yes
8355       export_dynamic_flag_spec='${wl}-Bexport'
8356       runpath_var='LD_RUN_PATH'
8357
8358       if test "$GCC" = yes; then
8359         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8361       else
8362         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8363         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8364       fi
8365       ;;
8366
8367     uts4*)
8368       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8369       hardcode_libdir_flag_spec='-L$libdir'
8370       hardcode_shlibpath_var=no
8371       ;;
8372
8373     *)
8374       ld_shlibs=no
8375       ;;
8376     esac
8377
8378     if test x$host_vendor = xsni; then
8379       case $host in
8380       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8381         export_dynamic_flag_spec='${wl}-Blargedynsym'
8382         ;;
8383       esac
8384     fi
8385   fi
8386
8387 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8388 $as_echo "$ld_shlibs" >&6; }
8389 test "$ld_shlibs" = no && can_build_shared=no
8390
8391 with_gnu_ld=$with_gnu_ld
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 #
8408 # Do we need to explicitly link libc?
8409 #
8410 case "x$archive_cmds_need_lc" in
8411 x|xyes)
8412   # Assume -lc should be added
8413   archive_cmds_need_lc=yes
8414
8415   if test "$enable_shared" = yes && test "$GCC" = yes; then
8416     case $archive_cmds in
8417     *'~'*)
8418       # FIXME: we may have to deal with multi-command sequences.
8419       ;;
8420     '$CC '*)
8421       # Test whether the compiler implicitly links with -lc since on some
8422       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8423       # to ld, don't add -lc before -lgcc.
8424       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8425 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8426       $RM conftest*
8427       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8428
8429       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8430   (eval $ac_compile) 2>&5
8431   ac_status=$?
8432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } 2>conftest.err; then
8434         soname=conftest
8435         lib=conftest
8436         libobjs=conftest.$ac_objext
8437         deplibs=
8438         wl=$lt_prog_compiler_wl
8439         pic_flag=$lt_prog_compiler_pic
8440         compiler_flags=-v
8441         linker_flags=-v
8442         verstring=
8443         output_objdir=.
8444         libname=conftest
8445         lt_save_allow_undefined_flag=$allow_undefined_flag
8446         allow_undefined_flag=
8447         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8448   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8449   ac_status=$?
8450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }
8452         then
8453           archive_cmds_need_lc=no
8454         else
8455           archive_cmds_need_lc=yes
8456         fi
8457         allow_undefined_flag=$lt_save_allow_undefined_flag
8458       else
8459         cat conftest.err 1>&5
8460       fi
8461       $RM conftest*
8462       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8463 $as_echo "$archive_cmds_need_lc" >&6; }
8464       ;;
8465     esac
8466   fi
8467   ;;
8468 esac
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8628
8629 if test "$GCC" = yes; then
8630   case $host_os in
8631     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8632     *) lt_awk_arg="/^libraries:/" ;;
8633   esac
8634   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8636     # if the path contains ";" then we assume it to be the separator
8637     # otherwise default to the standard path separator (i.e. ":") - it is
8638     # assumed that no part of a normal pathname contains ";" but that should
8639     # okay in the real world where ";" in dirpaths is itself problematic.
8640     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8641   else
8642     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8643   fi
8644   # Ok, now we have the path, separated by spaces, we can step through it
8645   # and add multilib dir if necessary.
8646   lt_tmp_lt_search_path_spec=
8647   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8648   for lt_sys_path in $lt_search_path_spec; do
8649     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8650       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8651     else
8652       test -d "$lt_sys_path" && \
8653         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8654     fi
8655   done
8656   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8657 BEGIN {RS=" "; FS="/|\n";} {
8658   lt_foo="";
8659   lt_count=0;
8660   for (lt_i = NF; lt_i > 0; lt_i--) {
8661     if ($lt_i != "" && $lt_i != ".") {
8662       if ($lt_i == "..") {
8663         lt_count++;
8664       } else {
8665         if (lt_count == 0) {
8666           lt_foo="/" $lt_i lt_foo;
8667         } else {
8668           lt_count--;
8669         }
8670       }
8671     }
8672   }
8673   if (lt_foo != "") { lt_freq[lt_foo]++; }
8674   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8675 }'`
8676   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8677 else
8678   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8679 fi
8680 library_names_spec=
8681 libname_spec='lib$name'
8682 soname_spec=
8683 shrext_cmds=".so"
8684 postinstall_cmds=
8685 postuninstall_cmds=
8686 finish_cmds=
8687 finish_eval=
8688 shlibpath_var=
8689 shlibpath_overrides_runpath=unknown
8690 version_type=none
8691 dynamic_linker="$host_os ld.so"
8692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8693 need_lib_prefix=unknown
8694 hardcode_into_libs=no
8695
8696 # when you set need_version to no, make sure it does not cause -set_version
8697 # flags to be left without arguments
8698 need_version=unknown
8699
8700 case $host_os in
8701 aix3*)
8702   version_type=linux
8703   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8704   shlibpath_var=LIBPATH
8705
8706   # AIX 3 has no versioning support, so we append a major version to the name.
8707   soname_spec='${libname}${release}${shared_ext}$major'
8708   ;;
8709
8710 aix[4-9]*)
8711   version_type=linux
8712   need_lib_prefix=no
8713   need_version=no
8714   hardcode_into_libs=yes
8715   if test "$host_cpu" = ia64; then
8716     # AIX 5 supports IA64
8717     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8718     shlibpath_var=LD_LIBRARY_PATH
8719   else
8720     # With GCC up to 2.95.x, collect2 would create an import file
8721     # for dependence libraries.  The import file would start with
8722     # the line `#! .'.  This would cause the generated library to
8723     # depend on `.', always an invalid library.  This was fixed in
8724     # development snapshots of GCC prior to 3.0.
8725     case $host_os in
8726       aix4 | aix4.[01] | aix4.[01].*)
8727       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8728            echo ' yes '
8729            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8730         :
8731       else
8732         can_build_shared=no
8733       fi
8734       ;;
8735     esac
8736     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8737     # soname into executable. Probably we can add versioning support to
8738     # collect2, so additional links can be useful in future.
8739     if test "$aix_use_runtimelinking" = yes; then
8740       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8741       # instead of lib<name>.a to let people know that these are not
8742       # typical AIX shared libraries.
8743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8744     else
8745       # We preserve .a as extension for shared libraries through AIX4.2
8746       # and later when we are not doing run time linking.
8747       library_names_spec='${libname}${release}.a $libname.a'
8748       soname_spec='${libname}${release}${shared_ext}$major'
8749     fi
8750     shlibpath_var=LIBPATH
8751   fi
8752   ;;
8753
8754 amigaos*)
8755   case $host_cpu in
8756   powerpc)
8757     # Since July 2007 AmigaOS4 officially supports .so libraries.
8758     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760     ;;
8761   m68k)
8762     library_names_spec='$libname.ixlibrary $libname.a'
8763     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8764     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'
8765     ;;
8766   esac
8767   ;;
8768
8769 beos*)
8770   library_names_spec='${libname}${shared_ext}'
8771   dynamic_linker="$host_os ld.so"
8772   shlibpath_var=LIBRARY_PATH
8773   ;;
8774
8775 bsdi[45]*)
8776   version_type=linux
8777   need_version=no
8778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8779   soname_spec='${libname}${release}${shared_ext}$major'
8780   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8781   shlibpath_var=LD_LIBRARY_PATH
8782   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8783   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8784   # the default ld.so.conf also contains /usr/contrib/lib and
8785   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8786   # libtool to hard-code these into programs
8787   ;;
8788
8789 cygwin* | mingw* | pw32* | cegcc*)
8790   version_type=windows
8791   shrext_cmds=".dll"
8792   need_version=no
8793   need_lib_prefix=no
8794
8795   case $GCC,$host_os in
8796   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8797     library_names_spec='$libname.dll.a'
8798     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8799     postinstall_cmds='base_file=`basename \${file}`~
8800       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8801       dldir=$destdir/`dirname \$dlpath`~
8802       test -d \$dldir || mkdir -p \$dldir~
8803       $install_prog $dir/$dlname \$dldir/$dlname~
8804       chmod a+x \$dldir/$dlname~
8805       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8806         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8807       fi'
8808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8809       dlpath=$dir/\$dldll~
8810        $RM \$dlpath'
8811     shlibpath_overrides_runpath=yes
8812
8813     case $host_os in
8814     cygwin*)
8815       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8816       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8817       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8818       ;;
8819     mingw* | cegcc*)
8820       # MinGW DLLs use traditional 'lib' prefix
8821       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8822       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8823       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8824         # It is most probably a Windows format PATH printed by
8825         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8826         # path with ; separators, and with drive letters. We can handle the
8827         # drive letters (cygwin fileutils understands them), so leave them,
8828         # especially as we might pass files found there to a mingw objdump,
8829         # which wouldn't understand a cygwinified path. Ahh.
8830         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8831       else
8832         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8833       fi
8834       ;;
8835     pw32*)
8836       # pw32 DLLs use 'pw' prefix rather than 'lib'
8837       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8838       ;;
8839     esac
8840     ;;
8841
8842   *)
8843     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8844     ;;
8845   esac
8846   dynamic_linker='Win32 ld.exe'
8847   # FIXME: first we should search . and the directory the executable is in
8848   shlibpath_var=PATH
8849   ;;
8850
8851 darwin* | rhapsody*)
8852   dynamic_linker="$host_os dyld"
8853   version_type=darwin
8854   need_lib_prefix=no
8855   need_version=no
8856   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8857   soname_spec='${libname}${release}${major}$shared_ext'
8858   shlibpath_overrides_runpath=yes
8859   shlibpath_var=DYLD_LIBRARY_PATH
8860   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8861
8862   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8863   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8864   ;;
8865
8866 dgux*)
8867   version_type=linux
8868   need_lib_prefix=no
8869   need_version=no
8870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8871   soname_spec='${libname}${release}${shared_ext}$major'
8872   shlibpath_var=LD_LIBRARY_PATH
8873   ;;
8874
8875 freebsd1*)
8876   dynamic_linker=no
8877   ;;
8878
8879 freebsd* | dragonfly*)
8880   # DragonFly does not have aout.  When/if they implement a new
8881   # versioning mechanism, adjust this.
8882   if test -x /usr/bin/objformat; then
8883     objformat=`/usr/bin/objformat`
8884   else
8885     case $host_os in
8886     freebsd[123]*) objformat=aout ;;
8887     *) objformat=elf ;;
8888     esac
8889   fi
8890   version_type=freebsd-$objformat
8891   case $version_type in
8892     freebsd-elf*)
8893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8894       need_version=no
8895       need_lib_prefix=no
8896       ;;
8897     freebsd-*)
8898       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8899       need_version=yes
8900       ;;
8901   esac
8902   shlibpath_var=LD_LIBRARY_PATH
8903   case $host_os in
8904   freebsd2*)
8905     shlibpath_overrides_runpath=yes
8906     ;;
8907   freebsd3.[01]* | freebsdelf3.[01]*)
8908     shlibpath_overrides_runpath=yes
8909     hardcode_into_libs=yes
8910     ;;
8911   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8912   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8913     shlibpath_overrides_runpath=no
8914     hardcode_into_libs=yes
8915     ;;
8916   *) # from 4.6 on, and DragonFly
8917     shlibpath_overrides_runpath=yes
8918     hardcode_into_libs=yes
8919     ;;
8920   esac
8921   ;;
8922
8923 gnu*)
8924   version_type=linux
8925   need_lib_prefix=no
8926   need_version=no
8927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8928   soname_spec='${libname}${release}${shared_ext}$major'
8929   shlibpath_var=LD_LIBRARY_PATH
8930   hardcode_into_libs=yes
8931   ;;
8932
8933 hpux9* | hpux10* | hpux11*)
8934   # Give a soname corresponding to the major version so that dld.sl refuses to
8935   # link against other versions.
8936   version_type=sunos
8937   need_lib_prefix=no
8938   need_version=no
8939   case $host_cpu in
8940   ia64*)
8941     shrext_cmds='.so'
8942     hardcode_into_libs=yes
8943     dynamic_linker="$host_os dld.so"
8944     shlibpath_var=LD_LIBRARY_PATH
8945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947     soname_spec='${libname}${release}${shared_ext}$major'
8948     if test "X$HPUX_IA64_MODE" = X32; then
8949       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8950     else
8951       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8952     fi
8953     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954     ;;
8955   hppa*64*)
8956     shrext_cmds='.sl'
8957     hardcode_into_libs=yes
8958     dynamic_linker="$host_os dld.sl"
8959     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8960     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962     soname_spec='${libname}${release}${shared_ext}$major'
8963     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8964     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8965     ;;
8966   *)
8967     shrext_cmds='.sl'
8968     dynamic_linker="$host_os dld.sl"
8969     shlibpath_var=SHLIB_PATH
8970     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972     soname_spec='${libname}${release}${shared_ext}$major'
8973     ;;
8974   esac
8975   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8976   postinstall_cmds='chmod 555 $lib'
8977   ;;
8978
8979 interix[3-9]*)
8980   version_type=linux
8981   need_lib_prefix=no
8982   need_version=no
8983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984   soname_spec='${libname}${release}${shared_ext}$major'
8985   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   shlibpath_overrides_runpath=no
8988   hardcode_into_libs=yes
8989   ;;
8990
8991 irix5* | irix6* | nonstopux*)
8992   case $host_os in
8993     nonstopux*) version_type=nonstopux ;;
8994     *)
8995         if test "$lt_cv_prog_gnu_ld" = yes; then
8996                 version_type=linux
8997         else
8998                 version_type=irix
8999         fi ;;
9000   esac
9001   need_lib_prefix=no
9002   need_version=no
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9005   case $host_os in
9006   irix5* | nonstopux*)
9007     libsuff= shlibsuff=
9008     ;;
9009   *)
9010     case $LD in # libtool.m4 will add one of these switches to LD
9011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9012       libsuff= shlibsuff= libmagic=32-bit;;
9013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9014       libsuff=32 shlibsuff=N32 libmagic=N32;;
9015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9017     *) libsuff= shlibsuff= libmagic=never-match;;
9018     esac
9019     ;;
9020   esac
9021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9022   shlibpath_overrides_runpath=no
9023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9025   hardcode_into_libs=yes
9026   ;;
9027
9028 # No shared lib support for Linux oldld, aout, or coff.
9029 linux*oldld* | linux*aout* | linux*coff*)
9030   dynamic_linker=no
9031   ;;
9032
9033 # This must be Linux ELF.
9034 linux* | k*bsd*-gnu)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9041   shlibpath_var=LD_LIBRARY_PATH
9042   shlibpath_overrides_runpath=no
9043   # Some binutils ld are patched to set DT_RUNPATH
9044   save_LDFLAGS=$LDFLAGS
9045   save_libdir=$libdir
9046   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9047        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9048   cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054
9055 int
9056 main ()
9057 {
9058
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9065 case "(($ac_try" in
9066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067   *) ac_try_echo=$ac_try;;
9068 esac
9069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9070 $as_echo "$ac_try_echo") >&5
9071   (eval "$ac_link") 2>conftest.er1
9072   ac_status=$?
9073   grep -v '^ *+' conftest.er1 >conftest.err
9074   rm -f conftest.er1
9075   cat conftest.err >&5
9076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } && {
9078          test -z "$ac_c_werror_flag" ||
9079          test ! -s conftest.err
9080        } && test -s conftest$ac_exeext && {
9081          test "$cross_compiling" = yes ||
9082          $as_test_x conftest$ac_exeext
9083        }; then
9084   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9085   shlibpath_overrides_runpath=yes
9086 fi
9087
9088 else
9089   $as_echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092
9093 fi
9094
9095 rm -rf conftest.dSYM
9096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9097       conftest$ac_exeext conftest.$ac_ext
9098   LDFLAGS=$save_LDFLAGS
9099   libdir=$save_libdir
9100
9101   # This implies no fast_install, which is unacceptable.
9102   # Some rework will be needed to allow for fast_install
9103   # before this can be enabled.
9104   hardcode_into_libs=yes
9105
9106   # Append ld.so.conf contents to the search path
9107   if test -f /etc/ld.so.conf; then
9108     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' ' '`
9109     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9110   fi
9111
9112   # We used to test for /lib/ld.so.1 and disable shared libraries on
9113   # powerpc, because MkLinux only supported shared libraries with the
9114   # GNU dynamic linker.  Since this was broken with cross compilers,
9115   # most powerpc-linux boxes support dynamic linking these days and
9116   # people can always --disable-shared, the test was removed, and we
9117   # assume the GNU/Linux dynamic linker is in use.
9118   dynamic_linker='GNU/Linux ld.so'
9119   ;;
9120
9121 netbsd*)
9122   version_type=sunos
9123   need_lib_prefix=no
9124   need_version=no
9125   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128     dynamic_linker='NetBSD (a.out) ld.so'
9129   else
9130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131     soname_spec='${libname}${release}${shared_ext}$major'
9132     dynamic_linker='NetBSD ld.elf_so'
9133   fi
9134   shlibpath_var=LD_LIBRARY_PATH
9135   shlibpath_overrides_runpath=yes
9136   hardcode_into_libs=yes
9137   ;;
9138
9139 newsos6)
9140   version_type=linux
9141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   ;;
9145
9146 *nto* | *qnx*)
9147   version_type=qnx
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   hardcode_into_libs=yes
9155   dynamic_linker='ldqnx.so'
9156   ;;
9157
9158 openbsd*)
9159   version_type=sunos
9160   sys_lib_dlsearch_path_spec="/usr/lib"
9161   need_lib_prefix=no
9162   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9163   case $host_os in
9164     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9165     *)                          need_version=no  ;;
9166   esac
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9171     case $host_os in
9172       openbsd2.[89] | openbsd2.[89].*)
9173         shlibpath_overrides_runpath=no
9174         ;;
9175       *)
9176         shlibpath_overrides_runpath=yes
9177         ;;
9178       esac
9179   else
9180     shlibpath_overrides_runpath=yes
9181   fi
9182   ;;
9183
9184 os2*)
9185   libname_spec='$name'
9186   shrext_cmds=".dll"
9187   need_lib_prefix=no
9188   library_names_spec='$libname${shared_ext} $libname.a'
9189   dynamic_linker='OS/2 ld.exe'
9190   shlibpath_var=LIBPATH
9191   ;;
9192
9193 osf3* | osf4* | osf5*)
9194   version_type=osf
9195   need_lib_prefix=no
9196   need_version=no
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9201   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9202   ;;
9203
9204 rdos*)
9205   dynamic_linker=no
9206   ;;
9207
9208 solaris*)
9209   version_type=linux
9210   need_lib_prefix=no
9211   need_version=no
9212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213   soname_spec='${libname}${release}${shared_ext}$major'
9214   shlibpath_var=LD_LIBRARY_PATH
9215   shlibpath_overrides_runpath=yes
9216   hardcode_into_libs=yes
9217   # ldd complains unless libraries are executable
9218   postinstall_cmds='chmod +x $lib'
9219   ;;
9220
9221 sunos4*)
9222   version_type=sunos
9223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9224   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9225   shlibpath_var=LD_LIBRARY_PATH
9226   shlibpath_overrides_runpath=yes
9227   if test "$with_gnu_ld" = yes; then
9228     need_lib_prefix=no
9229   fi
9230   need_version=yes
9231   ;;
9232
9233 sysv4 | sysv4.3*)
9234   version_type=linux
9235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236   soname_spec='${libname}${release}${shared_ext}$major'
9237   shlibpath_var=LD_LIBRARY_PATH
9238   case $host_vendor in
9239     sni)
9240       shlibpath_overrides_runpath=no
9241       need_lib_prefix=no
9242       runpath_var=LD_RUN_PATH
9243       ;;
9244     siemens)
9245       need_lib_prefix=no
9246       ;;
9247     motorola)
9248       need_lib_prefix=no
9249       need_version=no
9250       shlibpath_overrides_runpath=no
9251       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9252       ;;
9253   esac
9254   ;;
9255
9256 sysv4*MP*)
9257   if test -d /usr/nec ;then
9258     version_type=linux
9259     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9260     soname_spec='$libname${shared_ext}.$major'
9261     shlibpath_var=LD_LIBRARY_PATH
9262   fi
9263   ;;
9264
9265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9266   version_type=freebsd-elf
9267   need_lib_prefix=no
9268   need_version=no
9269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   shlibpath_overrides_runpath=yes
9273   hardcode_into_libs=yes
9274   if test "$with_gnu_ld" = yes; then
9275     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9276   else
9277     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9278     case $host_os in
9279       sco3.2v5*)
9280         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9281         ;;
9282     esac
9283   fi
9284   sys_lib_dlsearch_path_spec='/usr/lib'
9285   ;;
9286
9287 tpf*)
9288   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9289   version_type=linux
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   shlibpath_var=LD_LIBRARY_PATH
9294   shlibpath_overrides_runpath=no
9295   hardcode_into_libs=yes
9296   ;;
9297
9298 uts4*)
9299   version_type=linux
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   ;;
9304
9305 *)
9306   dynamic_linker=no
9307   ;;
9308 esac
9309 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9310 $as_echo "$dynamic_linker" >&6; }
9311 test "$dynamic_linker" = no && can_build_shared=no
9312
9313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9314 if test "$GCC" = yes; then
9315   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9316 fi
9317
9318 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9319   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9320 fi
9321 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9322   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9323 fi
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9413 hardcode_action=
9414 if test -n "$hardcode_libdir_flag_spec" ||
9415    test -n "$runpath_var" ||
9416    test "X$hardcode_automatic" = "Xyes" ; then
9417
9418   # We can hardcode non-existent directories.
9419   if test "$hardcode_direct" != no &&
9420      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9421      # have to relink, otherwise we might link with an installed library
9422      # when we should be linking with a yet-to-be-installed one
9423      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9424      test "$hardcode_minus_L" != no; then
9425     # Linking always hardcodes the temporary library directory.
9426     hardcode_action=relink
9427   else
9428     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9429     hardcode_action=immediate
9430   fi
9431 else
9432   # We cannot hardcode anything, or else we can only hardcode existing
9433   # directories.
9434   hardcode_action=unsupported
9435 fi
9436 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9437 $as_echo "$hardcode_action" >&6; }
9438
9439 if test "$hardcode_action" = relink ||
9440    test "$inherit_rpath" = yes; then
9441   # Fast installation is not supported
9442   enable_fast_install=no
9443 elif test "$shlibpath_overrides_runpath" = yes ||
9444      test "$enable_shared" = no; then
9445   # Fast installation is not necessary
9446   enable_fast_install=needless
9447 fi
9448
9449
9450
9451
9452
9453
9454   if test "x$enable_dlopen" != xyes; then
9455   enable_dlopen=unknown
9456   enable_dlopen_self=unknown
9457   enable_dlopen_self_static=unknown
9458 else
9459   lt_cv_dlopen=no
9460   lt_cv_dlopen_libs=
9461
9462   case $host_os in
9463   beos*)
9464     lt_cv_dlopen="load_add_on"
9465     lt_cv_dlopen_libs=
9466     lt_cv_dlopen_self=yes
9467     ;;
9468
9469   mingw* | pw32* | cegcc*)
9470     lt_cv_dlopen="LoadLibrary"
9471     lt_cv_dlopen_libs=
9472     ;;
9473
9474   cygwin*)
9475     lt_cv_dlopen="dlopen"
9476     lt_cv_dlopen_libs=
9477     ;;
9478
9479   darwin*)
9480   # if libdl is installed we need to link against it
9481     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9482 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9483 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9484   $as_echo_n "(cached) " >&6
9485 else
9486   ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-ldl  $LIBS"
9488 cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494
9495 /* Override any GCC internal prototype to avoid an error.
9496    Use char because int might match the return type of a GCC
9497    builtin and then its argument prototype would still apply.  */
9498 #ifdef __cplusplus
9499 extern "C"
9500 #endif
9501 char dlopen ();
9502 int
9503 main ()
9504 {
9505 return dlopen ();
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext conftest$ac_exeext
9511 if { (ac_try="$ac_link"
9512 case "(($ac_try" in
9513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514   *) ac_try_echo=$ac_try;;
9515 esac
9516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9517 $as_echo "$ac_try_echo") >&5
9518   (eval "$ac_link") 2>conftest.er1
9519   ac_status=$?
9520   grep -v '^ *+' conftest.er1 >conftest.err
9521   rm -f conftest.er1
9522   cat conftest.err >&5
9523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } && {
9525          test -z "$ac_c_werror_flag" ||
9526          test ! -s conftest.err
9527        } && test -s conftest$ac_exeext && {
9528          test "$cross_compiling" = yes ||
9529          $as_test_x conftest$ac_exeext
9530        }; then
9531   ac_cv_lib_dl_dlopen=yes
9532 else
9533   $as_echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536         ac_cv_lib_dl_dlopen=no
9537 fi
9538
9539 rm -rf conftest.dSYM
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541       conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9543 fi
9544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9546 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9547   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9548 else
9549
9550     lt_cv_dlopen="dyld"
9551     lt_cv_dlopen_libs=
9552     lt_cv_dlopen_self=yes
9553
9554 fi
9555
9556     ;;
9557
9558   *)
9559     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9560 $as_echo_n "checking for shl_load... " >&6; }
9561 if test "${ac_cv_func_shl_load+set}" = set; then
9562   $as_echo_n "(cached) " >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9572 #define shl_load innocuous_shl_load
9573
9574 /* System header to define __stub macros and hopefully few prototypes,
9575     which can conflict with char shl_load (); below.
9576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577     <limits.h> exists even on freestanding compilers.  */
9578
9579 #ifdef __STDC__
9580 # include <limits.h>
9581 #else
9582 # include <assert.h>
9583 #endif
9584
9585 #undef shl_load
9586
9587 /* Override any GCC internal prototype to avoid an error.
9588    Use char because int might match the return type of a GCC
9589    builtin and then its argument prototype would still apply.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char shl_load ();
9594 /* The GNU C library defines this for functions which it implements
9595     to always fail with ENOSYS.  Some functions are actually named
9596     something starting with __ and the normal name is an alias.  */
9597 #if defined __stub_shl_load || defined __stub___shl_load
9598 choke me
9599 #endif
9600
9601 int
9602 main ()
9603 {
9604 return shl_load ();
9605   ;
9606   return 0;
9607 }
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613   *) ac_try_echo=$ac_try;;
9614 esac
9615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617   (eval "$ac_link") 2>conftest.er1
9618   ac_status=$?
9619   grep -v '^ *+' conftest.er1 >conftest.err
9620   rm -f conftest.er1
9621   cat conftest.err >&5
9622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } && {
9624          test -z "$ac_c_werror_flag" ||
9625          test ! -s conftest.err
9626        } && test -s conftest$ac_exeext && {
9627          test "$cross_compiling" = yes ||
9628          $as_test_x conftest$ac_exeext
9629        }; then
9630   ac_cv_func_shl_load=yes
9631 else
9632   $as_echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635         ac_cv_func_shl_load=no
9636 fi
9637
9638 rm -rf conftest.dSYM
9639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640       conftest$ac_exeext conftest.$ac_ext
9641 fi
9642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9643 $as_echo "$ac_cv_func_shl_load" >&6; }
9644 if test "x$ac_cv_func_shl_load" = x""yes; then
9645   lt_cv_dlopen="shl_load"
9646 else
9647   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9648 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9649 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9650   $as_echo_n "(cached) " >&6
9651 else
9652   ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-ldld  $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any GCC internal prototype to avoid an error.
9662    Use char because int might match the return type of a GCC
9663    builtin and then its argument prototype would still apply.  */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char shl_load ();
9668 int
9669 main ()
9670 {
9671 return shl_load ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (ac_try="$ac_link"
9678 case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9683 $as_echo "$ac_try_echo") >&5
9684   (eval "$ac_link") 2>conftest.er1
9685   ac_status=$?
9686   grep -v '^ *+' conftest.er1 >conftest.err
9687   rm -f conftest.er1
9688   cat conftest.err >&5
9689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } && {
9691          test -z "$ac_c_werror_flag" ||
9692          test ! -s conftest.err
9693        } && test -s conftest$ac_exeext && {
9694          test "$cross_compiling" = yes ||
9695          $as_test_x conftest$ac_exeext
9696        }; then
9697   ac_cv_lib_dld_shl_load=yes
9698 else
9699   $as_echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702         ac_cv_lib_dld_shl_load=no
9703 fi
9704
9705 rm -rf conftest.dSYM
9706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9707       conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_lib_save_LIBS
9709 fi
9710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9711 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9712 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
9713   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9714 else
9715   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9716 $as_echo_n "checking for dlopen... " >&6; }
9717 if test "${ac_cv_func_dlopen+set}" = set; then
9718   $as_echo_n "(cached) " >&6
9719 else
9720   cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9728 #define dlopen innocuous_dlopen
9729
9730 /* System header to define __stub macros and hopefully few prototypes,
9731     which can conflict with char dlopen (); below.
9732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9733     <limits.h> exists even on freestanding compilers.  */
9734
9735 #ifdef __STDC__
9736 # include <limits.h>
9737 #else
9738 # include <assert.h>
9739 #endif
9740
9741 #undef dlopen
9742
9743 /* Override any GCC internal prototype to avoid an error.
9744    Use char because int might match the return type of a GCC
9745    builtin and then its argument prototype would still apply.  */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char dlopen ();
9750 /* The GNU C library defines this for functions which it implements
9751     to always fail with ENOSYS.  Some functions are actually named
9752     something starting with __ and the normal name is an alias.  */
9753 #if defined __stub_dlopen || defined __stub___dlopen
9754 choke me
9755 #endif
9756
9757 int
9758 main ()
9759 {
9760 return dlopen ();
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773   (eval "$ac_link") 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } && {
9780          test -z "$ac_c_werror_flag" ||
9781          test ! -s conftest.err
9782        } && test -s conftest$ac_exeext && {
9783          test "$cross_compiling" = yes ||
9784          $as_test_x conftest$ac_exeext
9785        }; then
9786   ac_cv_func_dlopen=yes
9787 else
9788   $as_echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791         ac_cv_func_dlopen=no
9792 fi
9793
9794 rm -rf conftest.dSYM
9795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9796       conftest$ac_exeext conftest.$ac_ext
9797 fi
9798 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9799 $as_echo "$ac_cv_func_dlopen" >&6; }
9800 if test "x$ac_cv_func_dlopen" = x""yes; then
9801   lt_cv_dlopen="dlopen"
9802 else
9803   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9804 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9805 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9806   $as_echo_n "(cached) " >&6
9807 else
9808   ac_check_lib_save_LIBS=$LIBS
9809 LIBS="-ldl  $LIBS"
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816
9817 /* Override any GCC internal prototype to avoid an error.
9818    Use char because int might match the return type of a GCC
9819    builtin and then its argument prototype would still apply.  */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 char dlopen ();
9824 int
9825 main ()
9826 {
9827 return dlopen ();
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9834 case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9839 $as_echo "$ac_try_echo") >&5
9840   (eval "$ac_link") 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } && {
9847          test -z "$ac_c_werror_flag" ||
9848          test ! -s conftest.err
9849        } && test -s conftest$ac_exeext && {
9850          test "$cross_compiling" = yes ||
9851          $as_test_x conftest$ac_exeext
9852        }; then
9853   ac_cv_lib_dl_dlopen=yes
9854 else
9855   $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858         ac_cv_lib_dl_dlopen=no
9859 fi
9860
9861 rm -rf conftest.dSYM
9862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9863       conftest$ac_exeext conftest.$ac_ext
9864 LIBS=$ac_check_lib_save_LIBS
9865 fi
9866 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9868 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9869   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9870 else
9871   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9872 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9873 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9874   $as_echo_n "(cached) " >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-lsvld  $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any GCC internal prototype to avoid an error.
9886    Use char because int might match the return type of a GCC
9887    builtin and then its argument prototype would still apply.  */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char dlopen ();
9892 int
9893 main ()
9894 {
9895 return dlopen ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9902 case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9907 $as_echo "$ac_try_echo") >&5
9908   (eval "$ac_link") 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } && {
9915          test -z "$ac_c_werror_flag" ||
9916          test ! -s conftest.err
9917        } && test -s conftest$ac_exeext && {
9918          test "$cross_compiling" = yes ||
9919          $as_test_x conftest$ac_exeext
9920        }; then
9921   ac_cv_lib_svld_dlopen=yes
9922 else
9923   $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         ac_cv_lib_svld_dlopen=no
9927 fi
9928
9929 rm -rf conftest.dSYM
9930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931       conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9933 fi
9934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9935 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9936 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
9937   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9938 else
9939   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9940 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9941 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9942   $as_echo_n "(cached) " >&6
9943 else
9944   ac_check_lib_save_LIBS=$LIBS
9945 LIBS="-ldld  $LIBS"
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952
9953 /* Override any GCC internal prototype to avoid an error.
9954    Use char because int might match the return type of a GCC
9955    builtin and then its argument prototype would still apply.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 char dld_link ();
9960 int
9961 main ()
9962 {
9963 return dld_link ();
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976   (eval "$ac_link") 2>conftest.er1
9977   ac_status=$?
9978   grep -v '^ *+' conftest.er1 >conftest.err
9979   rm -f conftest.er1
9980   cat conftest.err >&5
9981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); } && {
9983          test -z "$ac_c_werror_flag" ||
9984          test ! -s conftest.err
9985        } && test -s conftest$ac_exeext && {
9986          test "$cross_compiling" = yes ||
9987          $as_test_x conftest$ac_exeext
9988        }; then
9989   ac_cv_lib_dld_dld_link=yes
9990 else
9991   $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994         ac_cv_lib_dld_dld_link=no
9995 fi
9996
9997 rm -rf conftest.dSYM
9998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9999       conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10001 fi
10002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10003 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10004 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10005   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10006 fi
10007
10008
10009 fi
10010
10011
10012 fi
10013
10014
10015 fi
10016
10017
10018 fi
10019
10020
10021 fi
10022
10023     ;;
10024   esac
10025
10026   if test "x$lt_cv_dlopen" != xno; then
10027     enable_dlopen=yes
10028   else
10029     enable_dlopen=no
10030   fi
10031
10032   case $lt_cv_dlopen in
10033   dlopen)
10034     save_CPPFLAGS="$CPPFLAGS"
10035     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10036
10037     save_LDFLAGS="$LDFLAGS"
10038     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10039
10040     save_LIBS="$LIBS"
10041     LIBS="$lt_cv_dlopen_libs $LIBS"
10042
10043     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10044 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10045 if test "${lt_cv_dlopen_self+set}" = set; then
10046   $as_echo_n "(cached) " >&6
10047 else
10048           if test "$cross_compiling" = yes; then :
10049   lt_cv_dlopen_self=cross
10050 else
10051   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10052   lt_status=$lt_dlunknown
10053   cat > conftest.$ac_ext <<_LT_EOF
10054 #line 10054 "configure"
10055 #include "confdefs.h"
10056
10057 #if HAVE_DLFCN_H
10058 #include <dlfcn.h>
10059 #endif
10060
10061 #include <stdio.h>
10062
10063 #ifdef RTLD_GLOBAL
10064 #  define LT_DLGLOBAL           RTLD_GLOBAL
10065 #else
10066 #  ifdef DL_GLOBAL
10067 #    define LT_DLGLOBAL         DL_GLOBAL
10068 #  else
10069 #    define LT_DLGLOBAL         0
10070 #  endif
10071 #endif
10072
10073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10074    find out it does not work in some platform. */
10075 #ifndef LT_DLLAZY_OR_NOW
10076 #  ifdef RTLD_LAZY
10077 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10078 #  else
10079 #    ifdef DL_LAZY
10080 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10081 #    else
10082 #      ifdef RTLD_NOW
10083 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10084 #      else
10085 #        ifdef DL_NOW
10086 #          define LT_DLLAZY_OR_NOW      DL_NOW
10087 #        else
10088 #          define LT_DLLAZY_OR_NOW      0
10089 #        endif
10090 #      endif
10091 #    endif
10092 #  endif
10093 #endif
10094
10095 void fnord() { int i=42;}
10096 int main ()
10097 {
10098   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10099   int status = $lt_dlunknown;
10100
10101   if (self)
10102     {
10103       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10104       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10105       /* dlclose (self); */
10106     }
10107   else
10108     puts (dlerror ());
10109
10110   return status;
10111 }
10112 _LT_EOF
10113   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114   (eval $ac_link) 2>&5
10115   ac_status=$?
10116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10118     (./conftest; exit; ) >&5 2>/dev/null
10119     lt_status=$?
10120     case x$lt_status in
10121       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10122       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10123       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10124     esac
10125   else :
10126     # compilation failed
10127     lt_cv_dlopen_self=no
10128   fi
10129 fi
10130 rm -fr conftest*
10131
10132
10133 fi
10134 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10135 $as_echo "$lt_cv_dlopen_self" >&6; }
10136
10137     if test "x$lt_cv_dlopen_self" = xyes; then
10138       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10139       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10140 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10141 if test "${lt_cv_dlopen_self_static+set}" = set; then
10142   $as_echo_n "(cached) " >&6
10143 else
10144           if test "$cross_compiling" = yes; then :
10145   lt_cv_dlopen_self_static=cross
10146 else
10147   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10148   lt_status=$lt_dlunknown
10149   cat > conftest.$ac_ext <<_LT_EOF
10150 #line 10150 "configure"
10151 #include "confdefs.h"
10152
10153 #if HAVE_DLFCN_H
10154 #include <dlfcn.h>
10155 #endif
10156
10157 #include <stdio.h>
10158
10159 #ifdef RTLD_GLOBAL
10160 #  define LT_DLGLOBAL           RTLD_GLOBAL
10161 #else
10162 #  ifdef DL_GLOBAL
10163 #    define LT_DLGLOBAL         DL_GLOBAL
10164 #  else
10165 #    define LT_DLGLOBAL         0
10166 #  endif
10167 #endif
10168
10169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10170    find out it does not work in some platform. */
10171 #ifndef LT_DLLAZY_OR_NOW
10172 #  ifdef RTLD_LAZY
10173 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10174 #  else
10175 #    ifdef DL_LAZY
10176 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10177 #    else
10178 #      ifdef RTLD_NOW
10179 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10180 #      else
10181 #        ifdef DL_NOW
10182 #          define LT_DLLAZY_OR_NOW      DL_NOW
10183 #        else
10184 #          define LT_DLLAZY_OR_NOW      0
10185 #        endif
10186 #      endif
10187 #    endif
10188 #  endif
10189 #endif
10190
10191 void fnord() { int i=42;}
10192 int main ()
10193 {
10194   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10195   int status = $lt_dlunknown;
10196
10197   if (self)
10198     {
10199       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10200       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10201       /* dlclose (self); */
10202     }
10203   else
10204     puts (dlerror ());
10205
10206   return status;
10207 }
10208 _LT_EOF
10209   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210   (eval $ac_link) 2>&5
10211   ac_status=$?
10212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214     (./conftest; exit; ) >&5 2>/dev/null
10215     lt_status=$?
10216     case x$lt_status in
10217       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10218       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10219       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10220     esac
10221   else :
10222     # compilation failed
10223     lt_cv_dlopen_self_static=no
10224   fi
10225 fi
10226 rm -fr conftest*
10227
10228
10229 fi
10230 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10231 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10232     fi
10233
10234     CPPFLAGS="$save_CPPFLAGS"
10235     LDFLAGS="$save_LDFLAGS"
10236     LIBS="$save_LIBS"
10237     ;;
10238   esac
10239
10240   case $lt_cv_dlopen_self in
10241   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10242   *) enable_dlopen_self=unknown ;;
10243   esac
10244
10245   case $lt_cv_dlopen_self_static in
10246   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10247   *) enable_dlopen_self_static=unknown ;;
10248   esac
10249 fi
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267 striplib=
10268 old_striplib=
10269 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10270 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10271 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10272   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10273   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10274   { $as_echo "$as_me:$LINENO: result: yes" >&5
10275 $as_echo "yes" >&6; }
10276 else
10277 # FIXME - insert some real tests, host_os isn't really good enough
10278   case $host_os in
10279   darwin*)
10280     if test -n "$STRIP" ; then
10281       striplib="$STRIP -x"
10282       old_striplib="$STRIP -S"
10283       { $as_echo "$as_me:$LINENO: result: yes" >&5
10284 $as_echo "yes" >&6; }
10285     else
10286       { $as_echo "$as_me:$LINENO: result: no" >&5
10287 $as_echo "no" >&6; }
10288     fi
10289     ;;
10290   *)
10291     { $as_echo "$as_me:$LINENO: result: no" >&5
10292 $as_echo "no" >&6; }
10293     ;;
10294   esac
10295 fi
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308   # Report which library types will actually be built
10309   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10310 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10311   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10312 $as_echo "$can_build_shared" >&6; }
10313
10314   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10315 $as_echo_n "checking whether to build shared libraries... " >&6; }
10316   test "$can_build_shared" = "no" && enable_shared=no
10317
10318   # On AIX, shared libraries and static libraries use the same namespace, and
10319   # are all built from PIC.
10320   case $host_os in
10321   aix3*)
10322     test "$enable_shared" = yes && enable_static=no
10323     if test -n "$RANLIB"; then
10324       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10325       postinstall_cmds='$RANLIB $lib'
10326     fi
10327     ;;
10328
10329   aix[4-9]*)
10330     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10331       test "$enable_shared" = yes && enable_static=no
10332     fi
10333     ;;
10334   esac
10335   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10336 $as_echo "$enable_shared" >&6; }
10337
10338   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10339 $as_echo_n "checking whether to build static libraries... " >&6; }
10340   # Make sure either enable_shared or enable_static is yes.
10341   test "$enable_shared" = yes || enable_static=yes
10342   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10343 $as_echo "$enable_static" >&6; }
10344
10345
10346
10347
10348 fi
10349 ac_ext=c
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10354
10355 CC="$lt_save_CC"
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369         ac_config_commands="$ac_config_commands libtool"
10370
10371
10372
10373
10374 # Only expand once:
10375
10376
10377
10378 # Check whether --enable-shared was given.
10379 if test "${enable_shared+set}" = set; then
10380   enableval=$enable_shared;
10381 else
10382   enable_shared=yes
10383 fi
10384
10385
10386
10387 # Check whether --enable-gettext was given.
10388 if test "${enable_gettext+set}" = set; then
10389   enableval=$enable_gettext;
10390 else
10391   enable_gettext=yes
10392 fi
10393
10394
10395
10396 # Check whether --enable-lib64 was given.
10397 if test "${enable_lib64+set}" = set; then
10398   enableval=$enable_lib64;
10399 else
10400   enable_lib64=no
10401 fi
10402
10403
10404
10405  pkg_name="acl"
10406
10407
10408     ac_ext=c
10409 ac_cpp='$CPP $CPPFLAGS'
10410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413 if test -n "$ac_tool_prefix"; then
10414   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if test "${ac_cv_prog_CC+set}" = set; then
10419   $as_echo_n "(cached) " >&6
10420 else
10421   if test -n "$CC"; then
10422   ac_cv_prog_CC="$CC" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10426 do
10427   IFS=$as_save_IFS
10428   test -z "$as_dir" && as_dir=.
10429   for ac_exec_ext in '' $ac_executable_extensions; do
10430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10433     break 2
10434   fi
10435 done
10436 done
10437 IFS=$as_save_IFS
10438
10439 fi
10440 fi
10441 CC=$ac_cv_prog_CC
10442 if test -n "$CC"; then
10443   { $as_echo "$as_me:$LINENO: result: $CC" >&5
10444 $as_echo "$CC" >&6; }
10445 else
10446   { $as_echo "$as_me:$LINENO: result: no" >&5
10447 $as_echo "no" >&6; }
10448 fi
10449
10450
10451 fi
10452 if test -z "$ac_cv_prog_CC"; then
10453   ac_ct_CC=$CC
10454   # Extract the first word of "gcc", so it can be a program name with args.
10455 set dummy gcc; ac_word=$2
10456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10459   $as_echo_n "(cached) " >&6
10460 else
10461   if test -n "$ac_ct_CC"; then
10462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10463 else
10464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465 for as_dir in $PATH
10466 do
10467   IFS=$as_save_IFS
10468   test -z "$as_dir" && as_dir=.
10469   for ac_exec_ext in '' $ac_executable_extensions; do
10470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471     ac_cv_prog_ac_ct_CC="gcc"
10472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473     break 2
10474   fi
10475 done
10476 done
10477 IFS=$as_save_IFS
10478
10479 fi
10480 fi
10481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10482 if test -n "$ac_ct_CC"; then
10483   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10484 $as_echo "$ac_ct_CC" >&6; }
10485 else
10486   { $as_echo "$as_me:$LINENO: result: no" >&5
10487 $as_echo "no" >&6; }
10488 fi
10489
10490   if test "x$ac_ct_CC" = x; then
10491     CC=""
10492   else
10493     case $cross_compiling:$ac_tool_warned in
10494 yes:)
10495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10497 ac_tool_warned=yes ;;
10498 esac
10499     CC=$ac_ct_CC
10500   fi
10501 else
10502   CC="$ac_cv_prog_CC"
10503 fi
10504
10505 if test -z "$CC"; then
10506           if test -n "$ac_tool_prefix"; then
10507     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10508 set dummy ${ac_tool_prefix}cc; ac_word=$2
10509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if test "${ac_cv_prog_CC+set}" = set; then
10512   $as_echo_n "(cached) " >&6
10513 else
10514   if test -n "$CC"; then
10515   ac_cv_prog_CC="$CC" # Let the user override the test.
10516 else
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10519 do
10520   IFS=$as_save_IFS
10521   test -z "$as_dir" && as_dir=.
10522   for ac_exec_ext in '' $ac_executable_extensions; do
10523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524     ac_cv_prog_CC="${ac_tool_prefix}cc"
10525     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10526     break 2
10527   fi
10528 done
10529 done
10530 IFS=$as_save_IFS
10531
10532 fi
10533 fi
10534 CC=$ac_cv_prog_CC
10535 if test -n "$CC"; then
10536   { $as_echo "$as_me:$LINENO: result: $CC" >&5
10537 $as_echo "$CC" >&6; }
10538 else
10539   { $as_echo "$as_me:$LINENO: result: no" >&5
10540 $as_echo "no" >&6; }
10541 fi
10542
10543
10544   fi
10545 fi
10546 if test -z "$CC"; then
10547   # Extract the first word of "cc", so it can be a program name with args.
10548 set dummy cc; ac_word=$2
10549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if test "${ac_cv_prog_CC+set}" = set; then
10552   $as_echo_n "(cached) " >&6
10553 else
10554   if test -n "$CC"; then
10555   ac_cv_prog_CC="$CC" # Let the user override the test.
10556 else
10557   ac_prog_rejected=no
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10560 do
10561   IFS=$as_save_IFS
10562   test -z "$as_dir" && as_dir=.
10563   for ac_exec_ext in '' $ac_executable_extensions; do
10564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10566        ac_prog_rejected=yes
10567        continue
10568      fi
10569     ac_cv_prog_CC="cc"
10570     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10571     break 2
10572   fi
10573 done
10574 done
10575 IFS=$as_save_IFS
10576
10577 if test $ac_prog_rejected = yes; then
10578   # We found a bogon in the path, so make sure we never use it.
10579   set dummy $ac_cv_prog_CC
10580   shift
10581   if test $# != 0; then
10582     # We chose a different compiler from the bogus one.
10583     # However, it has the same basename, so the bogon will be chosen
10584     # first if we set CC to just the basename; use the full file name.
10585     shift
10586     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10587   fi
10588 fi
10589 fi
10590 fi
10591 CC=$ac_cv_prog_CC
10592 if test -n "$CC"; then
10593   { $as_echo "$as_me:$LINENO: result: $CC" >&5
10594 $as_echo "$CC" >&6; }
10595 else
10596   { $as_echo "$as_me:$LINENO: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599
10600
10601 fi
10602 if test -z "$CC"; then
10603   if test -n "$ac_tool_prefix"; then
10604   for ac_prog in cl.exe
10605   do
10606     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if test "${ac_cv_prog_CC+set}" = set; then
10611   $as_echo_n "(cached) " >&6
10612 else
10613   if test -n "$CC"; then
10614   ac_cv_prog_CC="$CC" # Let the user override the test.
10615 else
10616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617 for as_dir in $PATH
10618 do
10619   IFS=$as_save_IFS
10620   test -z "$as_dir" && as_dir=.
10621   for ac_exec_ext in '' $ac_executable_extensions; do
10622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10623     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10624     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10625     break 2
10626   fi
10627 done
10628 done
10629 IFS=$as_save_IFS
10630
10631 fi
10632 fi
10633 CC=$ac_cv_prog_CC
10634 if test -n "$CC"; then
10635   { $as_echo "$as_me:$LINENO: result: $CC" >&5
10636 $as_echo "$CC" >&6; }
10637 else
10638   { $as_echo "$as_me:$LINENO: result: no" >&5
10639 $as_echo "no" >&6; }
10640 fi
10641
10642
10643     test -n "$CC" && break
10644   done
10645 fi
10646 if test -z "$CC"; then
10647   ac_ct_CC=$CC
10648   for ac_prog in cl.exe
10649 do
10650   # Extract the first word of "$ac_prog", so it can be a program name with args.
10651 set dummy $ac_prog; ac_word=$2
10652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10655   $as_echo_n "(cached) " >&6
10656 else
10657   if test -n "$ac_ct_CC"; then
10658   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10659 else
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663   IFS=$as_save_IFS
10664   test -z "$as_dir" && as_dir=.
10665   for ac_exec_ext in '' $ac_executable_extensions; do
10666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667     ac_cv_prog_ac_ct_CC="$ac_prog"
10668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10669     break 2
10670   fi
10671 done
10672 done
10673 IFS=$as_save_IFS
10674
10675 fi
10676 fi
10677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10678 if test -n "$ac_ct_CC"; then
10679   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10680 $as_echo "$ac_ct_CC" >&6; }
10681 else
10682   { $as_echo "$as_me:$LINENO: result: no" >&5
10683 $as_echo "no" >&6; }
10684 fi
10685
10686
10687   test -n "$ac_ct_CC" && break
10688 done
10689
10690   if test "x$ac_ct_CC" = x; then
10691     CC=""
10692   else
10693     case $cross_compiling:$ac_tool_warned in
10694 yes:)
10695 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10697 ac_tool_warned=yes ;;
10698 esac
10699     CC=$ac_ct_CC
10700   fi
10701 fi
10702
10703 fi
10704
10705
10706 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10708 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10709 See \`config.log' for more details." >&5
10710 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
10711 See \`config.log' for more details." >&2;}
10712    { (exit 1); exit 1; }; }; }
10713
10714 # Provide some information about the compiler.
10715 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
10716 set X $ac_compile
10717 ac_compiler=$2
10718 { (ac_try="$ac_compiler --version >&5"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725   (eval "$ac_compiler --version >&5") 2>&5
10726   ac_status=$?
10727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728   (exit $ac_status); }
10729 { (ac_try="$ac_compiler -v >&5"
10730 case "(($ac_try" in
10731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732   *) ac_try_echo=$ac_try;;
10733 esac
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736   (eval "$ac_compiler -v >&5") 2>&5
10737   ac_status=$?
10738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }
10740 { (ac_try="$ac_compiler -V >&5"
10741 case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10746 $as_echo "$ac_try_echo") >&5
10747   (eval "$ac_compiler -V >&5") 2>&5
10748   ac_status=$?
10749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }
10751
10752 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10754 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10755   $as_echo_n "(cached) " >&6
10756 else
10757   cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h.  */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h.  */
10763
10764 int
10765 main ()
10766 {
10767 #ifndef __GNUC__
10768        choke me
10769 #endif
10770
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (ac_try="$ac_compile"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782 $as_echo "$ac_try_echo") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && {
10790          test -z "$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        } && test -s conftest.$ac_objext; then
10793   ac_compiler_gnu=yes
10794 else
10795   $as_echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_compiler_gnu=no
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10803
10804 fi
10805 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10806 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10807 if test $ac_compiler_gnu = yes; then
10808   GCC=yes
10809 else
10810   GCC=
10811 fi
10812 ac_test_CFLAGS=${CFLAGS+set}
10813 ac_save_CFLAGS=$CFLAGS
10814 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10815 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10816 if test "${ac_cv_prog_cc_g+set}" = set; then
10817   $as_echo_n "(cached) " >&6
10818 else
10819   ac_save_c_werror_flag=$ac_c_werror_flag
10820    ac_c_werror_flag=yes
10821    ac_cv_prog_cc_g=no
10822    CFLAGS="-g"
10823    cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829
10830 int
10831 main ()
10832 {
10833
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (ac_try="$ac_compile"
10840 case "(($ac_try" in
10841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842   *) ac_try_echo=$ac_try;;
10843 esac
10844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10845 $as_echo "$ac_try_echo") >&5
10846   (eval "$ac_compile") 2>conftest.er1
10847   ac_status=$?
10848   grep -v '^ *+' conftest.er1 >conftest.err
10849   rm -f conftest.er1
10850   cat conftest.err >&5
10851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } && {
10853          test -z "$ac_c_werror_flag" ||
10854          test ! -s conftest.err
10855        } && test -s conftest.$ac_objext; then
10856   ac_cv_prog_cc_g=yes
10857 else
10858   $as_echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10860
10861         CFLAGS=""
10862       cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h.  */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h.  */
10868
10869 int
10870 main ()
10871 {
10872
10873   ;
10874   return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (ac_try="$ac_compile"
10879 case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10884 $as_echo "$ac_try_echo") >&5
10885   (eval "$ac_compile") 2>conftest.er1
10886   ac_status=$?
10887   grep -v '^ *+' conftest.er1 >conftest.err
10888   rm -f conftest.er1
10889   cat conftest.err >&5
10890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); } && {
10892          test -z "$ac_c_werror_flag" ||
10893          test ! -s conftest.err
10894        } && test -s conftest.$ac_objext; then
10895   :
10896 else
10897   $as_echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900         ac_c_werror_flag=$ac_save_c_werror_flag
10901          CFLAGS="-g"
10902          cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908
10909 int
10910 main ()
10911 {
10912
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925   (eval "$ac_compile") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } && {
10932          test -z "$ac_c_werror_flag" ||
10933          test ! -s conftest.err
10934        } && test -s conftest.$ac_objext; then
10935   ac_cv_prog_cc_g=yes
10936 else
10937   $as_echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940
10941 fi
10942
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 fi
10945
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950    ac_c_werror_flag=$ac_save_c_werror_flag
10951 fi
10952 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10953 $as_echo "$ac_cv_prog_cc_g" >&6; }
10954 if test "$ac_test_CFLAGS" = set; then
10955   CFLAGS=$ac_save_CFLAGS
10956 elif test $ac_cv_prog_cc_g = yes; then
10957   if test "$GCC" = yes; then
10958     CFLAGS="-g -O2"
10959   else
10960     CFLAGS="-g"
10961   fi
10962 else
10963   if test "$GCC" = yes; then
10964     CFLAGS="-O2"
10965   else
10966     CFLAGS=
10967   fi
10968 fi
10969 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
10970 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10971 if test "${ac_cv_prog_cc_c89+set}" = set; then
10972   $as_echo_n "(cached) " >&6
10973 else
10974   ac_cv_prog_cc_c89=no
10975 ac_save_CC=$CC
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 #include <stdarg.h>
10983 #include <stdio.h>
10984 #include <sys/types.h>
10985 #include <sys/stat.h>
10986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10987 struct buf { int x; };
10988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10989 static char *e (p, i)
10990      char **p;
10991      int i;
10992 {
10993   return p[i];
10994 }
10995 static char *f (char * (*g) (char **, int), char **p, ...)
10996 {
10997   char *s;
10998   va_list v;
10999   va_start (v,p);
11000   s = g (p, va_arg (v,int));
11001   va_end (v);
11002   return s;
11003 }
11004
11005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11006    function prototypes and stuff, but not '\xHH' hex character constants.
11007    These don't provoke an error unfortunately, instead are silently treated
11008    as 'x'.  The following induces an error, until -std is added to get
11009    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11010    array size at least.  It's necessary to write '\x00'==0 to get something
11011    that's true only with -std.  */
11012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11013
11014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11015    inside strings and character constants.  */
11016 #define FOO(x) 'x'
11017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11018
11019 int test (int i, double x);
11020 struct s1 {int (*f) (int a);};
11021 struct s2 {int (*f) (double a);};
11022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11023 int argc;
11024 char **argv;
11025 int
11026 main ()
11027 {
11028 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11034         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11035 do
11036   CC="$ac_save_CC $ac_arg"
11037   rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041   *) ac_try_echo=$ac_try;;
11042 esac
11043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045   (eval "$ac_compile") 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } && {
11052          test -z "$ac_c_werror_flag" ||
11053          test ! -s conftest.err
11054        } && test -s conftest.$ac_objext; then
11055   ac_cv_prog_cc_c89=$ac_arg
11056 else
11057   $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext
11064   test "x$ac_cv_prog_cc_c89" != "xno" && break
11065 done
11066 rm -f conftest.$ac_ext
11067 CC=$ac_save_CC
11068
11069 fi
11070 # AC_CACHE_VAL
11071 case "x$ac_cv_prog_cc_c89" in
11072   x)
11073     { $as_echo "$as_me:$LINENO: result: none needed" >&5
11074 $as_echo "none needed" >&6; } ;;
11075   xno)
11076     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11077 $as_echo "unsupported" >&6; } ;;
11078   *)
11079     CC="$CC $ac_cv_prog_cc_c89"
11080     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11081 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11082 esac
11083
11084
11085 ac_ext=c
11086 ac_cpp='$CPP $CPPFLAGS'
11087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11090
11091
11092     . ./VERSION
11093     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11094
11095     pkg_release=$PKG_BUILD
11096     test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11097
11098
11099     DEBUG=${DEBUG:-'-DDEBUG'}               debug_build="$DEBUG"
11100
11101
11102     OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11103     opt_build="$OPTIMIZER"
11104
11105
11106     MALLOCLIB=${MALLOCLIB:-''}              malloc_lib="$MALLOCLIB"
11107
11108
11109     pkg_user=`id -u -n`
11110     test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11111
11112
11113     pkg_group=`id -g -n`
11114     test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11115
11116
11117     pkg_distribution=`uname -s`
11118     test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11119
11120
11121     pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11122     test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11123
11124
11125  ac_ext=c
11126 ac_cpp='$CPP $CPPFLAGS'
11127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11130 if test -n "$ac_tool_prefix"; then
11131   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if test "${ac_cv_prog_CC+set}" = set; then
11136   $as_echo_n "(cached) " >&6
11137 else
11138   if test -n "$CC"; then
11139   ac_cv_prog_CC="$CC" # Let the user override the test.
11140 else
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11143 do
11144   IFS=$as_save_IFS
11145   test -z "$as_dir" && as_dir=.
11146   for ac_exec_ext in '' $ac_executable_extensions; do
11147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11150     break 2
11151   fi
11152 done
11153 done
11154 IFS=$as_save_IFS
11155
11156 fi
11157 fi
11158 CC=$ac_cv_prog_CC
11159 if test -n "$CC"; then
11160   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11161 $as_echo "$CC" >&6; }
11162 else
11163   { $as_echo "$as_me:$LINENO: result: no" >&5
11164 $as_echo "no" >&6; }
11165 fi
11166
11167
11168 fi
11169 if test -z "$ac_cv_prog_CC"; then
11170   ac_ct_CC=$CC
11171   # Extract the first word of "gcc", so it can be a program name with args.
11172 set dummy gcc; ac_word=$2
11173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11174 $as_echo_n "checking for $ac_word... " >&6; }
11175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11176   $as_echo_n "(cached) " >&6
11177 else
11178   if test -n "$ac_ct_CC"; then
11179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11180 else
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184   IFS=$as_save_IFS
11185   test -z "$as_dir" && as_dir=.
11186   for ac_exec_ext in '' $ac_executable_extensions; do
11187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188     ac_cv_prog_ac_ct_CC="gcc"
11189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11190     break 2
11191   fi
11192 done
11193 done
11194 IFS=$as_save_IFS
11195
11196 fi
11197 fi
11198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11199 if test -n "$ac_ct_CC"; then
11200   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11201 $as_echo "$ac_ct_CC" >&6; }
11202 else
11203   { $as_echo "$as_me:$LINENO: result: no" >&5
11204 $as_echo "no" >&6; }
11205 fi
11206
11207   if test "x$ac_ct_CC" = x; then
11208     CC=""
11209   else
11210     case $cross_compiling:$ac_tool_warned in
11211 yes:)
11212 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11214 ac_tool_warned=yes ;;
11215 esac
11216     CC=$ac_ct_CC
11217   fi
11218 else
11219   CC="$ac_cv_prog_CC"
11220 fi
11221
11222 if test -z "$CC"; then
11223           if test -n "$ac_tool_prefix"; then
11224     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11225 set dummy ${ac_tool_prefix}cc; ac_word=$2
11226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11227 $as_echo_n "checking for $ac_word... " >&6; }
11228 if test "${ac_cv_prog_CC+set}" = set; then
11229   $as_echo_n "(cached) " >&6
11230 else
11231   if test -n "$CC"; then
11232   ac_cv_prog_CC="$CC" # Let the user override the test.
11233 else
11234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235 for as_dir in $PATH
11236 do
11237   IFS=$as_save_IFS
11238   test -z "$as_dir" && as_dir=.
11239   for ac_exec_ext in '' $ac_executable_extensions; do
11240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11241     ac_cv_prog_CC="${ac_tool_prefix}cc"
11242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11243     break 2
11244   fi
11245 done
11246 done
11247 IFS=$as_save_IFS
11248
11249 fi
11250 fi
11251 CC=$ac_cv_prog_CC
11252 if test -n "$CC"; then
11253   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11254 $as_echo "$CC" >&6; }
11255 else
11256   { $as_echo "$as_me:$LINENO: result: no" >&5
11257 $as_echo "no" >&6; }
11258 fi
11259
11260
11261   fi
11262 fi
11263 if test -z "$CC"; then
11264   # Extract the first word of "cc", so it can be a program name with args.
11265 set dummy cc; ac_word=$2
11266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if test "${ac_cv_prog_CC+set}" = set; then
11269   $as_echo_n "(cached) " >&6
11270 else
11271   if test -n "$CC"; then
11272   ac_cv_prog_CC="$CC" # Let the user override the test.
11273 else
11274   ac_prog_rejected=no
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11277 do
11278   IFS=$as_save_IFS
11279   test -z "$as_dir" && as_dir=.
11280   for ac_exec_ext in '' $ac_executable_extensions; do
11281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11283        ac_prog_rejected=yes
11284        continue
11285      fi
11286     ac_cv_prog_CC="cc"
11287     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11288     break 2
11289   fi
11290 done
11291 done
11292 IFS=$as_save_IFS
11293
11294 if test $ac_prog_rejected = yes; then
11295   # We found a bogon in the path, so make sure we never use it.
11296   set dummy $ac_cv_prog_CC
11297   shift
11298   if test $# != 0; then
11299     # We chose a different compiler from the bogus one.
11300     # However, it has the same basename, so the bogon will be chosen
11301     # first if we set CC to just the basename; use the full file name.
11302     shift
11303     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11304   fi
11305 fi
11306 fi
11307 fi
11308 CC=$ac_cv_prog_CC
11309 if test -n "$CC"; then
11310   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11311 $as_echo "$CC" >&6; }
11312 else
11313   { $as_echo "$as_me:$LINENO: result: no" >&5
11314 $as_echo "no" >&6; }
11315 fi
11316
11317
11318 fi
11319 if test -z "$CC"; then
11320   if test -n "$ac_tool_prefix"; then
11321   for ac_prog in cl.exe
11322   do
11323     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11326 $as_echo_n "checking for $ac_word... " >&6; }
11327 if test "${ac_cv_prog_CC+set}" = set; then
11328   $as_echo_n "(cached) " >&6
11329 else
11330   if test -n "$CC"; then
11331   ac_cv_prog_CC="$CC" # Let the user override the test.
11332 else
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336   IFS=$as_save_IFS
11337   test -z "$as_dir" && as_dir=.
11338   for ac_exec_ext in '' $ac_executable_extensions; do
11339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11340     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11341     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11342     break 2
11343   fi
11344 done
11345 done
11346 IFS=$as_save_IFS
11347
11348 fi
11349 fi
11350 CC=$ac_cv_prog_CC
11351 if test -n "$CC"; then
11352   { $as_echo "$as_me:$LINENO: result: $CC" >&5
11353 $as_echo "$CC" >&6; }
11354 else
11355   { $as_echo "$as_me:$LINENO: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358
11359
11360     test -n "$CC" && break
11361   done
11362 fi
11363 if test -z "$CC"; then
11364   ac_ct_CC=$CC
11365   for ac_prog in cl.exe
11366 do
11367   # Extract the first word of "$ac_prog", so it can be a program name with args.
11368 set dummy $ac_prog; ac_word=$2
11369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11370 $as_echo_n "checking for $ac_word... " >&6; }
11371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11372   $as_echo_n "(cached) " >&6
11373 else
11374   if test -n "$ac_ct_CC"; then
11375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11376 else
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380   IFS=$as_save_IFS
11381   test -z "$as_dir" && as_dir=.
11382   for ac_exec_ext in '' $ac_executable_extensions; do
11383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11384     ac_cv_prog_ac_ct_CC="$ac_prog"
11385     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11386     break 2
11387   fi
11388 done
11389 done
11390 IFS=$as_save_IFS
11391
11392 fi
11393 fi
11394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11395 if test -n "$ac_ct_CC"; then
11396   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11397 $as_echo "$ac_ct_CC" >&6; }
11398 else
11399   { $as_echo "$as_me:$LINENO: result: no" >&5
11400 $as_echo "no" >&6; }
11401 fi
11402
11403
11404   test -n "$ac_ct_CC" && break
11405 done
11406
11407   if test "x$ac_ct_CC" = x; then
11408     CC=""
11409   else
11410     case $cross_compiling:$ac_tool_warned in
11411 yes:)
11412 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11414 ac_tool_warned=yes ;;
11415 esac
11416     CC=$ac_ct_CC
11417   fi
11418 fi
11419
11420 fi
11421
11422
11423 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11425 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11426 See \`config.log' for more details." >&5
11427 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11428 See \`config.log' for more details." >&2;}
11429    { (exit 1); exit 1; }; }; }
11430
11431 # Provide some information about the compiler.
11432 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11433 set X $ac_compile
11434 ac_compiler=$2
11435 { (ac_try="$ac_compiler --version >&5"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11441 $as_echo "$ac_try_echo") >&5
11442   (eval "$ac_compiler --version >&5") 2>&5
11443   ac_status=$?
11444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); }
11446 { (ac_try="$ac_compiler -v >&5"
11447 case "(($ac_try" in
11448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449   *) ac_try_echo=$ac_try;;
11450 esac
11451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452 $as_echo "$ac_try_echo") >&5
11453   (eval "$ac_compiler -v >&5") 2>&5
11454   ac_status=$?
11455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }
11457 { (ac_try="$ac_compiler -V >&5"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463 $as_echo "$ac_try_echo") >&5
11464   (eval "$ac_compiler -V >&5") 2>&5
11465   ac_status=$?
11466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }
11468
11469 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11471 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11472   $as_echo_n "(cached) " >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480
11481 int
11482 main ()
11483 {
11484 #ifndef __GNUC__
11485        choke me
11486 #endif
11487
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (ac_try="$ac_compile"
11494 case "(($ac_try" in
11495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496   *) ac_try_echo=$ac_try;;
11497 esac
11498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499 $as_echo "$ac_try_echo") >&5
11500   (eval "$ac_compile") 2>conftest.er1
11501   ac_status=$?
11502   grep -v '^ *+' conftest.er1 >conftest.err
11503   rm -f conftest.er1
11504   cat conftest.err >&5
11505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } && {
11507          test -z "$ac_c_werror_flag" ||
11508          test ! -s conftest.err
11509        } && test -s conftest.$ac_objext; then
11510   ac_compiler_gnu=yes
11511 else
11512   $as_echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515         ac_compiler_gnu=no
11516 fi
11517
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11520
11521 fi
11522 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11523 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11524 if test $ac_compiler_gnu = yes; then
11525   GCC=yes
11526 else
11527   GCC=
11528 fi
11529 ac_test_CFLAGS=${CFLAGS+set}
11530 ac_save_CFLAGS=$CFLAGS
11531 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11532 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11533 if test "${ac_cv_prog_cc_g+set}" = set; then
11534   $as_echo_n "(cached) " >&6
11535 else
11536   ac_save_c_werror_flag=$ac_c_werror_flag
11537    ac_c_werror_flag=yes
11538    ac_cv_prog_cc_g=no
11539    CFLAGS="-g"
11540    cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546
11547 int
11548 main ()
11549 {
11550
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11562 $as_echo "$ac_try_echo") >&5
11563   (eval "$ac_compile") 2>conftest.er1
11564   ac_status=$?
11565   grep -v '^ *+' conftest.er1 >conftest.err
11566   rm -f conftest.er1
11567   cat conftest.err >&5
11568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } && {
11570          test -z "$ac_c_werror_flag" ||
11571          test ! -s conftest.err
11572        } && test -s conftest.$ac_objext; then
11573   ac_cv_prog_cc_g=yes
11574 else
11575   $as_echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578         CFLAGS=""
11579       cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585
11586 int
11587 main ()
11588 {
11589
11590   ;
11591   return 0;
11592 }
11593 _ACEOF
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598   *) ac_try_echo=$ac_try;;
11599 esac
11600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11601 $as_echo "$ac_try_echo") >&5
11602   (eval "$ac_compile") 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } && {
11609          test -z "$ac_c_werror_flag" ||
11610          test ! -s conftest.err
11611        } && test -s conftest.$ac_objext; then
11612   :
11613 else
11614   $as_echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617         ac_c_werror_flag=$ac_save_c_werror_flag
11618          CFLAGS="-g"
11619          cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625
11626 int
11627 main ()
11628 {
11629
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (ac_try="$ac_compile"
11636 case "(($ac_try" in
11637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638   *) ac_try_echo=$ac_try;;
11639 esac
11640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11641 $as_echo "$ac_try_echo") >&5
11642   (eval "$ac_compile") 2>conftest.er1
11643   ac_status=$?
11644   grep -v '^ *+' conftest.er1 >conftest.err
11645   rm -f conftest.er1
11646   cat conftest.err >&5
11647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } && {
11649          test -z "$ac_c_werror_flag" ||
11650          test ! -s conftest.err
11651        } && test -s conftest.$ac_objext; then
11652   ac_cv_prog_cc_g=yes
11653 else
11654   $as_echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657
11658 fi
11659
11660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 fi
11662
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664 fi
11665
11666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667    ac_c_werror_flag=$ac_save_c_werror_flag
11668 fi
11669 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11670 $as_echo "$ac_cv_prog_cc_g" >&6; }
11671 if test "$ac_test_CFLAGS" = set; then
11672   CFLAGS=$ac_save_CFLAGS
11673 elif test $ac_cv_prog_cc_g = yes; then
11674   if test "$GCC" = yes; then
11675     CFLAGS="-g -O2"
11676   else
11677     CFLAGS="-g"
11678   fi
11679 else
11680   if test "$GCC" = yes; then
11681     CFLAGS="-O2"
11682   else
11683     CFLAGS=
11684   fi
11685 fi
11686 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11687 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11688 if test "${ac_cv_prog_cc_c89+set}" = set; then
11689   $as_echo_n "(cached) " >&6
11690 else
11691   ac_cv_prog_cc_c89=no
11692 ac_save_CC=$CC
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699 #include <stdarg.h>
11700 #include <stdio.h>
11701 #include <sys/types.h>
11702 #include <sys/stat.h>
11703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11704 struct buf { int x; };
11705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11706 static char *e (p, i)
11707      char **p;
11708      int i;
11709 {
11710   return p[i];
11711 }
11712 static char *f (char * (*g) (char **, int), char **p, ...)
11713 {
11714   char *s;
11715   va_list v;
11716   va_start (v,p);
11717   s = g (p, va_arg (v,int));
11718   va_end (v);
11719   return s;
11720 }
11721
11722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11723    function prototypes and stuff, but not '\xHH' hex character constants.
11724    These don't provoke an error unfortunately, instead are silently treated
11725    as 'x'.  The following induces an error, until -std is added to get
11726    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11727    array size at least.  It's necessary to write '\x00'==0 to get something
11728    that's true only with -std.  */
11729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11730
11731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11732    inside strings and character constants.  */
11733 #define FOO(x) 'x'
11734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11735
11736 int test (int i, double x);
11737 struct s1 {int (*f) (int a);};
11738 struct s2 {int (*f) (double a);};
11739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11740 int argc;
11741 char **argv;
11742 int
11743 main ()
11744 {
11745 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11751         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11752 do
11753   CC="$ac_save_CC $ac_arg"
11754   rm -f conftest.$ac_objext
11755 if { (ac_try="$ac_compile"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11761 $as_echo "$ac_try_echo") >&5
11762   (eval "$ac_compile") 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } && {
11769          test -z "$ac_c_werror_flag" ||
11770          test ! -s conftest.err
11771        } && test -s conftest.$ac_objext; then
11772   ac_cv_prog_cc_c89=$ac_arg
11773 else
11774   $as_echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777
11778 fi
11779
11780 rm -f core conftest.err conftest.$ac_objext
11781   test "x$ac_cv_prog_cc_c89" != "xno" && break
11782 done
11783 rm -f conftest.$ac_ext
11784 CC=$ac_save_CC
11785
11786 fi
11787 # AC_CACHE_VAL
11788 case "x$ac_cv_prog_cc_c89" in
11789   x)
11790     { $as_echo "$as_me:$LINENO: result: none needed" >&5
11791 $as_echo "none needed" >&6; } ;;
11792   xno)
11793     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
11794 $as_echo "unsupported" >&6; } ;;
11795   *)
11796     CC="$CC $ac_cv_prog_cc_c89"
11797     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11799 esac
11800
11801
11802 ac_ext=c
11803 ac_cpp='$CPP $CPPFLAGS'
11804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11807
11808     cc="$CC"
11809
11810      if test -z ""$cc""; then
11811         echo
11812         echo FATAL ERROR: cc does not seem to be installed.
11813         echo acl cannot be built without a working C compiler installation.
11814         exit 1
11815     fi
11816
11817
11818     if test -z "$MAKE"; then
11819         # Extract the first word of "gmake", so it can be a program name with args.
11820 set dummy gmake; ac_word=$2
11821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if test "${ac_cv_path_MAKE+set}" = set; then
11824   $as_echo_n "(cached) " >&6
11825 else
11826   case $MAKE in
11827   [\\/]* | ?:[\\/]*)
11828   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11829   ;;
11830   *)
11831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
11833 for as_dir in $as_dummy
11834 do
11835   IFS=$as_save_IFS
11836   test -z "$as_dir" && as_dir=.
11837   for ac_exec_ext in '' $ac_executable_extensions; do
11838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11839     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841     break 2
11842   fi
11843 done
11844 done
11845 IFS=$as_save_IFS
11846
11847   ;;
11848 esac
11849 fi
11850 MAKE=$ac_cv_path_MAKE
11851 if test -n "$MAKE"; then
11852   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
11853 $as_echo "$MAKE" >&6; }
11854 else
11855   { $as_echo "$as_me:$LINENO: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858
11859
11860     fi
11861     if test -z "$MAKE"; then
11862         # Extract the first word of "make", so it can be a program name with args.
11863 set dummy make; ac_word=$2
11864 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_path_MAKE+set}" = set; then
11867   $as_echo_n "(cached) " >&6
11868 else
11869   case $MAKE in
11870   [\\/]* | ?:[\\/]*)
11871   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11872   ;;
11873   *)
11874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in /usr/bin
11876 do
11877   IFS=$as_save_IFS
11878   test -z "$as_dir" && as_dir=.
11879   for ac_exec_ext in '' $ac_executable_extensions; do
11880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11882     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11883     break 2
11884   fi
11885 done
11886 done
11887 IFS=$as_save_IFS
11888
11889   ;;
11890 esac
11891 fi
11892 MAKE=$ac_cv_path_MAKE
11893 if test -n "$MAKE"; then
11894   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
11895 $as_echo "$MAKE" >&6; }
11896 else
11897   { $as_echo "$as_me:$LINENO: result: no" >&5
11898 $as_echo "no" >&6; }
11899 fi
11900
11901
11902     fi
11903     make=$MAKE
11904
11905      if test -z ""$make""; then
11906         echo
11907         echo FATAL ERROR: make does not seem to be installed.
11908         echo acl cannot be built without a working GNU make installation.
11909         exit 1
11910     fi
11911
11912
11913     if test -z "$TAR"; then
11914         # Extract the first word of "tar", so it can be a program name with args.
11915 set dummy tar; ac_word=$2
11916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if test "${ac_cv_path_TAR+set}" = set; then
11919   $as_echo_n "(cached) " >&6
11920 else
11921   case $TAR in
11922   [\\/]* | ?:[\\/]*)
11923   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11924   ;;
11925   *)
11926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 as_dummy="/usr/freeware/bin:/bin:/usr/local/bin:/usr/bin"
11928 for as_dir in $as_dummy
11929 do
11930   IFS=$as_save_IFS
11931   test -z "$as_dir" && as_dir=.
11932   for ac_exec_ext in '' $ac_executable_extensions; do
11933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11935     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11936     break 2
11937   fi
11938 done
11939 done
11940 IFS=$as_save_IFS
11941
11942   ;;
11943 esac
11944 fi
11945 TAR=$ac_cv_path_TAR
11946 if test -n "$TAR"; then
11947   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
11948 $as_echo "$TAR" >&6; }
11949 else
11950   { $as_echo "$as_me:$LINENO: result: no" >&5
11951 $as_echo "no" >&6; }
11952 fi
11953
11954
11955     fi
11956     tar=$TAR
11957
11958     if test -z "$ZIP"; then
11959         # Extract the first word of "gzip", so it can be a program name with args.
11960 set dummy gzip; ac_word=$2
11961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11962 $as_echo_n "checking for $ac_word... " >&6; }
11963 if test "${ac_cv_path_ZIP+set}" = set; then
11964   $as_echo_n "(cached) " >&6
11965 else
11966   case $ZIP in
11967   [\\/]* | ?:[\\/]*)
11968   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11969   ;;
11970   *)
11971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 as_dummy="/bin:/usr/bin:/usr/local/bin:/usr/freeware/bin"
11973 for as_dir in $as_dummy
11974 do
11975   IFS=$as_save_IFS
11976   test -z "$as_dir" && as_dir=.
11977   for ac_exec_ext in '' $ac_executable_extensions; do
11978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11979     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11980     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11981     break 2
11982   fi
11983 done
11984 done
11985 IFS=$as_save_IFS
11986
11987   ;;
11988 esac
11989 fi
11990 ZIP=$ac_cv_path_ZIP
11991 if test -n "$ZIP"; then
11992   { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
11993 $as_echo "$ZIP" >&6; }
11994 else
11995   { $as_echo "$as_me:$LINENO: result: no" >&5
11996 $as_echo "no" >&6; }
11997 fi
11998
11999
12000     fi
12001
12002     zip=$ZIP
12003
12004
12005     if test -z "$MAKEDEPEND"; then
12006         # Extract the first word of "makedepend", so it can be a program name with args.
12007 set dummy makedepend; ac_word=$2
12008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
12011   $as_echo_n "(cached) " >&6
12012 else
12013   case $MAKEDEPEND in
12014   [\\/]* | ?:[\\/]*)
12015   ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
12016   ;;
12017   *)
12018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12020 do
12021   IFS=$as_save_IFS
12022   test -z "$as_dir" && as_dir=.
12023   for ac_exec_ext in '' $ac_executable_extensions; do
12024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025     ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
12026     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12027     break 2
12028   fi
12029 done
12030 done
12031 IFS=$as_save_IFS
12032
12033   test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
12034   ;;
12035 esac
12036 fi
12037 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
12038 if test -n "$MAKEDEPEND"; then
12039   { $as_echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
12040 $as_echo "$MAKEDEPEND" >&6; }
12041 else
12042   { $as_echo "$as_me:$LINENO: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045
12046
12047     fi
12048     makedepend=$MAKEDEPEND
12049
12050
12051     if test -z "$AWK"; then
12052         # Extract the first word of "awk", so it can be a program name with args.
12053 set dummy awk; ac_word=$2
12054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if test "${ac_cv_path_AWK+set}" = set; then
12057   $as_echo_n "(cached) " >&6
12058 else
12059   case $AWK in
12060   [\\/]* | ?:[\\/]*)
12061   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12062   ;;
12063   *)
12064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12065 as_dummy="/bin:/usr/bin"
12066 for as_dir in $as_dummy
12067 do
12068   IFS=$as_save_IFS
12069   test -z "$as_dir" && as_dir=.
12070   for ac_exec_ext in '' $ac_executable_extensions; do
12071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12072     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12073     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12074     break 2
12075   fi
12076 done
12077 done
12078 IFS=$as_save_IFS
12079
12080   ;;
12081 esac
12082 fi
12083 AWK=$ac_cv_path_AWK
12084 if test -n "$AWK"; then
12085   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
12086 $as_echo "$AWK" >&6; }
12087 else
12088   { $as_echo "$as_me:$LINENO: result: no" >&5
12089 $as_echo "no" >&6; }
12090 fi
12091
12092
12093     fi
12094     awk=$AWK
12095
12096
12097     if test -z "$SED"; then
12098         # Extract the first word of "sed", so it can be a program name with args.
12099 set dummy sed; ac_word=$2
12100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if test "${ac_cv_path_SED+set}" = set; then
12103   $as_echo_n "(cached) " >&6
12104 else
12105   case $SED in
12106   [\\/]* | ?:[\\/]*)
12107   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12108   ;;
12109   *)
12110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 as_dummy="/bin:/usr/bin"
12112 for as_dir in $as_dummy
12113 do
12114   IFS=$as_save_IFS
12115   test -z "$as_dir" && as_dir=.
12116   for ac_exec_ext in '' $ac_executable_extensions; do
12117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12118     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12119     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12120     break 2
12121   fi
12122 done
12123 done
12124 IFS=$as_save_IFS
12125
12126   ;;
12127 esac
12128 fi
12129 SED=$ac_cv_path_SED
12130 if test -n "$SED"; then
12131   { $as_echo "$as_me:$LINENO: result: $SED" >&5
12132 $as_echo "$SED" >&6; }
12133 else
12134   { $as_echo "$as_me:$LINENO: result: no" >&5
12135 $as_echo "no" >&6; }
12136 fi
12137
12138
12139     fi
12140     sed=$SED
12141
12142
12143     if test -z "$ECHO"; then
12144         # Extract the first word of "echo", so it can be a program name with args.
12145 set dummy echo; ac_word=$2
12146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if test "${ac_cv_path_ECHO+set}" = set; then
12149   $as_echo_n "(cached) " >&6
12150 else
12151   case $ECHO in
12152   [\\/]* | ?:[\\/]*)
12153   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
12154   ;;
12155   *)
12156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 as_dummy="/bin:/usr/bin"
12158 for as_dir in $as_dummy
12159 do
12160   IFS=$as_save_IFS
12161   test -z "$as_dir" && as_dir=.
12162   for ac_exec_ext in '' $ac_executable_extensions; do
12163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
12165     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12166     break 2
12167   fi
12168 done
12169 done
12170 IFS=$as_save_IFS
12171
12172   ;;
12173 esac
12174 fi
12175 ECHO=$ac_cv_path_ECHO
12176 if test -n "$ECHO"; then
12177   { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
12178 $as_echo "$ECHO" >&6; }
12179 else
12180   { $as_echo "$as_me:$LINENO: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183
12184
12185     fi
12186     echo=$ECHO
12187
12188
12189     if test -z "$SORT"; then
12190         # Extract the first word of "sort", so it can be a program name with args.
12191 set dummy sort; ac_word=$2
12192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12193 $as_echo_n "checking for $ac_word... " >&6; }
12194 if test "${ac_cv_path_SORT+set}" = set; then
12195   $as_echo_n "(cached) " >&6
12196 else
12197   case $SORT in
12198   [\\/]* | ?:[\\/]*)
12199   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12200   ;;
12201   *)
12202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 as_dummy="/bin:/usr/bin"
12204 for as_dir in $as_dummy
12205 do
12206   IFS=$as_save_IFS
12207   test -z "$as_dir" && as_dir=.
12208   for ac_exec_ext in '' $ac_executable_extensions; do
12209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12210     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12211     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12212     break 2
12213   fi
12214 done
12215 done
12216 IFS=$as_save_IFS
12217
12218   ;;
12219 esac
12220 fi
12221 SORT=$ac_cv_path_SORT
12222 if test -n "$SORT"; then
12223   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
12224 $as_echo "$SORT" >&6; }
12225 else
12226   { $as_echo "$as_me:$LINENO: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231     fi
12232     sort=$SORT
12233
12234
12235         { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
12236 $as_echo_n "checking whether ln -s works... " >&6; }
12237 LN_S=$as_ln_s
12238 if test "$LN_S" = "ln -s"; then
12239   { $as_echo "$as_me:$LINENO: result: yes" >&5
12240 $as_echo "yes" >&6; }
12241 else
12242   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12243 $as_echo "no, using $LN_S" >&6; }
12244 fi
12245
12246
12247     if test "$enable_gettext" = yes; then
12248         if test -z "$MSGFMT"; then
12249                 # Extract the first word of "msgfmt", so it can be a program name with args.
12250 set dummy msgfmt; ac_word=$2
12251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_path_MSGFMT+set}" = set; then
12254   $as_echo_n "(cached) " >&6
12255 else
12256   case $MSGFMT in
12257   [\\/]* | ?:[\\/]*)
12258   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12259   ;;
12260   *)
12261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
12263 for as_dir in $as_dummy
12264 do
12265   IFS=$as_save_IFS
12266   test -z "$as_dir" && as_dir=.
12267   for ac_exec_ext in '' $ac_executable_extensions; do
12268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12270     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12271     break 2
12272   fi
12273 done
12274 done
12275 IFS=$as_save_IFS
12276
12277   ;;
12278 esac
12279 fi
12280 MSGFMT=$ac_cv_path_MSGFMT
12281 if test -n "$MSGFMT"; then
12282   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
12283 $as_echo "$MSGFMT" >&6; }
12284 else
12285   { $as_echo "$as_me:$LINENO: result: no" >&5
12286 $as_echo "no" >&6; }
12287 fi
12288
12289
12290         fi
12291         msgfmt=$MSGFMT
12292
12293          if test -z ""$msgfmt""; then
12294         echo
12295         echo FATAL ERROR: msgfmt does not seem to be installed.
12296         echo acl cannot be built without a working gettext installation.
12297         exit 1
12298     fi
12299
12300
12301         if test -z "$MSGMERGE"; then
12302                 # Extract the first word of "msgmerge", so it can be a program name with args.
12303 set dummy msgmerge; ac_word=$2
12304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12307   $as_echo_n "(cached) " >&6
12308 else
12309   case $MSGMERGE in
12310   [\\/]* | ?:[\\/]*)
12311   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12312   ;;
12313   *)
12314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315 as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
12316 for as_dir in $as_dummy
12317 do
12318   IFS=$as_save_IFS
12319   test -z "$as_dir" && as_dir=.
12320   for ac_exec_ext in '' $ac_executable_extensions; do
12321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12323     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12324     break 2
12325   fi
12326 done
12327 done
12328 IFS=$as_save_IFS
12329
12330   ;;
12331 esac
12332 fi
12333 MSGMERGE=$ac_cv_path_MSGMERGE
12334 if test -n "$MSGMERGE"; then
12335   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12336 $as_echo "$MSGMERGE" >&6; }
12337 else
12338   { $as_echo "$as_me:$LINENO: result: no" >&5
12339 $as_echo "no" >&6; }
12340 fi
12341
12342
12343         fi
12344         msgmerge=$MSGMERGE
12345
12346          if test -z ""$msgmerge""; then
12347         echo
12348         echo FATAL ERROR: msgmerge does not seem to be installed.
12349         echo acl cannot be built without a working gettext installation.
12350         exit 1
12351     fi
12352
12353
12354         if test -z "$XGETTEXT"; then
12355                 # Extract the first word of "xgettext", so it can be a program name with args.
12356 set dummy xgettext; ac_word=$2
12357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12360   $as_echo_n "(cached) " >&6
12361 else
12362   case $XGETTEXT in
12363   [\\/]* | ?:[\\/]*)
12364   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12365   ;;
12366   *)
12367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 as_dummy="/usr/bin:/usr/local/bin:/usr/freeware/bin"
12369 for as_dir in $as_dummy
12370 do
12371   IFS=$as_save_IFS
12372   test -z "$as_dir" && as_dir=.
12373   for ac_exec_ext in '' $ac_executable_extensions; do
12374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12377     break 2
12378   fi
12379 done
12380 done
12381 IFS=$as_save_IFS
12382
12383   ;;
12384 esac
12385 fi
12386 XGETTEXT=$ac_cv_path_XGETTEXT
12387 if test -n "$XGETTEXT"; then
12388   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12389 $as_echo "$XGETTEXT" >&6; }
12390 else
12391   { $as_echo "$as_me:$LINENO: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394
12395
12396         fi
12397         xgettext=$XGETTEXT
12398
12399          if test -z ""$xgettext""; then
12400         echo
12401         echo FATAL ERROR: xgettext does not seem to be installed.
12402         echo acl cannot be built without a working gettext installation.
12403         exit 1
12404     fi
12405
12406
12407
12408 cat >>confdefs.h <<\_ACEOF
12409 #define ENABLE_GETTEXT 1
12410 _ACEOF
12411
12412     fi
12413
12414     if test -z "$RPM"; then
12415         # Extract the first word of "rpm", so it can be a program name with args.
12416 set dummy rpm; ac_word=$2
12417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if test "${ac_cv_path_RPM+set}" = set; then
12420   $as_echo_n "(cached) " >&6
12421 else
12422   case $RPM in
12423   [\\/]* | ?:[\\/]*)
12424   ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12425   ;;
12426   *)
12427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 as_dummy="/bin:/usr/bin:/usr/freeware/bin"
12429 for as_dir in $as_dummy
12430 do
12431   IFS=$as_save_IFS
12432   test -z "$as_dir" && as_dir=.
12433   for ac_exec_ext in '' $ac_executable_extensions; do
12434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435     ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12436     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437     break 2
12438   fi
12439 done
12440 done
12441 IFS=$as_save_IFS
12442
12443   ;;
12444 esac
12445 fi
12446 RPM=$ac_cv_path_RPM
12447 if test -n "$RPM"; then
12448   { $as_echo "$as_me:$LINENO: result: $RPM" >&5
12449 $as_echo "$RPM" >&6; }
12450 else
12451   { $as_echo "$as_me:$LINENO: result: no" >&5
12452 $as_echo "no" >&6; }
12453 fi
12454
12455
12456     fi
12457     rpm=$RPM
12458
12459
12460         rpm_version=0
12461     test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12462                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12463
12464                 if test $rpm_version -ge 4; then
12465         # Extract the first word of "rpmbuild", so it can be a program name with args.
12466 set dummy rpmbuild; ac_word=$2
12467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if test "${ac_cv_path_RPMBUILD+set}" = set; then
12470   $as_echo_n "(cached) " >&6
12471 else
12472   case $RPMBUILD in
12473   [\\/]* | ?:[\\/]*)
12474   ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12475   ;;
12476   *)
12477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12478 for as_dir in $PATH
12479 do
12480   IFS=$as_save_IFS
12481   test -z "$as_dir" && as_dir=.
12482   for ac_exec_ext in '' $ac_executable_extensions; do
12483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12484     ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12485     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12486     break 2
12487   fi
12488 done
12489 done
12490 IFS=$as_save_IFS
12491
12492   ;;
12493 esac
12494 fi
12495 RPMBUILD=$ac_cv_path_RPMBUILD
12496 if test -n "$RPMBUILD"; then
12497   { $as_echo "$as_me:$LINENO: result: $RPMBUILD" >&5
12498 $as_echo "$RPMBUILD" >&6; }
12499 else
12500   { $as_echo "$as_me:$LINENO: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503
12504
12505         rpmbuild=$RPMBUILD
12506     else
12507         rpmbuild=$RPM
12508     fi
12509
12510
12511
12512 for ac_header in attr/xattr.h
12513 do
12514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12516   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12517 $as_echo_n "checking for $ac_header... " >&6; }
12518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12519   $as_echo_n "(cached) " >&6
12520 fi
12521 ac_res=`eval 'as_val=${'$as_ac_Header'}
12522                  $as_echo "$as_val"'`
12523                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12524 $as_echo "$ac_res" >&6; }
12525 else
12526   # Is the header compilable?
12527 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12528 $as_echo_n "checking $ac_header usability... " >&6; }
12529 cat >conftest.$ac_ext <<_ACEOF
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535 $ac_includes_default
12536 #include <$ac_header>
12537 _ACEOF
12538 rm -f conftest.$ac_objext
12539 if { (ac_try="$ac_compile"
12540 case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12545 $as_echo "$ac_try_echo") >&5
12546   (eval "$ac_compile") 2>conftest.er1
12547   ac_status=$?
12548   grep -v '^ *+' conftest.er1 >conftest.err
12549   rm -f conftest.er1
12550   cat conftest.err >&5
12551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } && {
12553          test -z "$ac_c_werror_flag" ||
12554          test ! -s conftest.err
12555        } && test -s conftest.$ac_objext; then
12556   ac_header_compiler=yes
12557 else
12558   $as_echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561         ac_header_compiler=no
12562 fi
12563
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566 $as_echo "$ac_header_compiler" >&6; }
12567
12568 # Is the header present?
12569 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570 $as_echo_n "checking $ac_header presence... " >&6; }
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577 #include <$ac_header>
12578 _ACEOF
12579 if { (ac_try="$ac_cpp conftest.$ac_ext"
12580 case "(($ac_try" in
12581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582   *) ac_try_echo=$ac_try;;
12583 esac
12584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12585 $as_echo "$ac_try_echo") >&5
12586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12587   ac_status=$?
12588   grep -v '^ *+' conftest.er1 >conftest.err
12589   rm -f conftest.er1
12590   cat conftest.err >&5
12591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); } >/dev/null && {
12593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12594          test ! -s conftest.err
12595        }; then
12596   ac_header_preproc=yes
12597 else
12598   $as_echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601   ac_header_preproc=no
12602 fi
12603
12604 rm -f conftest.err conftest.$ac_ext
12605 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606 $as_echo "$ac_header_preproc" >&6; }
12607
12608 # So?  What about this header?
12609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12610   yes:no: )
12611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12612 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12615     ac_header_preproc=yes
12616     ;;
12617   no:yes:* )
12618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12621 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12624     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12625 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12626     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12629 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12630
12631     ;;
12632 esac
12633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12634 $as_echo_n "checking for $ac_header... " >&6; }
12635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12636   $as_echo_n "(cached) " >&6
12637 else
12638   eval "$as_ac_Header=\$ac_header_preproc"
12639 fi
12640 ac_res=`eval 'as_val=${'$as_ac_Header'}
12641                  $as_echo "$as_val"'`
12642                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12643 $as_echo "$ac_res" >&6; }
12644
12645 fi
12646 as_val=`eval 'as_val=${'$as_ac_Header'}
12647                  $as_echo "$as_val"'`
12648    if test "x$as_val" = x""yes; then
12649   cat >>confdefs.h <<_ACEOF
12650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12651 _ACEOF
12652
12653 fi
12654
12655 done
12656
12657     if test "$ac_cv_header_attr_xattr_h" != "yes"; then
12658         echo
12659         echo 'FATAL ERROR: attr/xattr.h does not exist.'
12660         echo 'Install the extended attributes (attr) development package.'
12661         echo 'Alternatively, run "make install-dev" from the attr source.'
12662         exit 1
12663     fi
12664
12665
12666 for ac_header in attr/error_context.h
12667 do
12668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12670   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12671 $as_echo_n "checking for $ac_header... " >&6; }
12672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12673   $as_echo_n "(cached) " >&6
12674 fi
12675 ac_res=`eval 'as_val=${'$as_ac_Header'}
12676                  $as_echo "$as_val"'`
12677                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12678 $as_echo "$ac_res" >&6; }
12679 else
12680   # Is the header compilable?
12681 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12682 $as_echo_n "checking $ac_header usability... " >&6; }
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 $ac_includes_default
12690 #include <$ac_header>
12691 _ACEOF
12692 rm -f conftest.$ac_objext
12693 if { (ac_try="$ac_compile"
12694 case "(($ac_try" in
12695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696   *) ac_try_echo=$ac_try;;
12697 esac
12698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699 $as_echo "$ac_try_echo") >&5
12700   (eval "$ac_compile") 2>conftest.er1
12701   ac_status=$?
12702   grep -v '^ *+' conftest.er1 >conftest.err
12703   rm -f conftest.er1
12704   cat conftest.err >&5
12705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } && {
12707          test -z "$ac_c_werror_flag" ||
12708          test ! -s conftest.err
12709        } && test -s conftest.$ac_objext; then
12710   ac_header_compiler=yes
12711 else
12712   $as_echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715         ac_header_compiler=no
12716 fi
12717
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12720 $as_echo "$ac_header_compiler" >&6; }
12721
12722 # Is the header present?
12723 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12724 $as_echo_n "checking $ac_header presence... " >&6; }
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731 #include <$ac_header>
12732 _ACEOF
12733 if { (ac_try="$ac_cpp conftest.$ac_ext"
12734 case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12739 $as_echo "$ac_try_echo") >&5
12740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12741   ac_status=$?
12742   grep -v '^ *+' conftest.er1 >conftest.err
12743   rm -f conftest.er1
12744   cat conftest.err >&5
12745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } >/dev/null && {
12747          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12748          test ! -s conftest.err
12749        }; then
12750   ac_header_preproc=yes
12751 else
12752   $as_echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755   ac_header_preproc=no
12756 fi
12757
12758 rm -f conftest.err conftest.$ac_ext
12759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12760 $as_echo "$ac_header_preproc" >&6; }
12761
12762 # So?  What about this header?
12763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12764   yes:no: )
12765     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12766 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12769     ac_header_preproc=yes
12770     ;;
12771   no:yes:* )
12772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12775 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12777 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12779 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12780     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12782     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12783 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12784
12785     ;;
12786 esac
12787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 $as_echo_n "checking for $ac_header... " >&6; }
12789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12790   $as_echo_n "(cached) " >&6
12791 else
12792   eval "$as_ac_Header=\$ac_header_preproc"
12793 fi
12794 ac_res=`eval 'as_val=${'$as_ac_Header'}
12795                  $as_echo "$as_val"'`
12796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12797 $as_echo "$ac_res" >&6; }
12798
12799 fi
12800 as_val=`eval 'as_val=${'$as_ac_Header'}
12801                  $as_echo "$as_val"'`
12802    if test "x$as_val" = x""yes; then
12803   cat >>confdefs.h <<_ACEOF
12804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12805 _ACEOF
12806
12807 fi
12808
12809 done
12810
12811     if test "$ac_cv_header_attr_error_context_h" != "yes"; then
12812         echo
12813         echo 'FATAL ERROR: attr/error_context.h does not exist.'
12814         echo 'Install the extended attributes (attr) development package.'
12815         echo 'Alternatively, run "make install-dev" from the attr source.'
12816         exit 1
12817     fi
12818
12819
12820                   enable_lib64="$enable_lib64"
12821   libdirsuffix=""
12822   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12823   if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12824     save_IFS="${IFS=    }"; IFS=":"
12825     for searchdir in $searchpath; do
12826       if test -d "$searchdir"; then
12827         case "$searchdir" in
12828           */lib64/ | */lib64 ) libdirsuffix=64 ;;
12829           *) searchdir=`cd "$searchdir" && pwd`
12830              case "$searchdir" in
12831                */lib64 ) libdirsuffix=64 ;;
12832              esac ;;
12833         esac
12834       fi
12835     done
12836     IFS="$save_IFS"
12837   fi
12838
12839
12840
12841 { $as_echo "$as_me:$LINENO: checking for getxattr in -lattr" >&5
12842 $as_echo_n "checking for getxattr in -lattr... " >&6; }
12843 if test "${ac_cv_lib_attr_getxattr+set}" = set; then
12844   $as_echo_n "(cached) " >&6
12845 else
12846   ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-lattr  $LIBS"
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char getxattr ();
12862 int
12863 main ()
12864 {
12865 return getxattr ();
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12877 $as_echo "$ac_try_echo") >&5
12878   (eval "$ac_link") 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } && {
12885          test -z "$ac_c_werror_flag" ||
12886          test ! -s conftest.err
12887        } && test -s conftest$ac_exeext && {
12888          test "$cross_compiling" = yes ||
12889          $as_test_x conftest$ac_exeext
12890        }; then
12891   ac_cv_lib_attr_getxattr=yes
12892 else
12893   $as_echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896         ac_cv_lib_attr_getxattr=no
12897 fi
12898
12899 rm -rf conftest.dSYM
12900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12901       conftest$ac_exeext conftest.$ac_ext
12902 LIBS=$ac_check_lib_save_LIBS
12903 fi
12904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_getxattr" >&5
12905 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
12906 if test "x$ac_cv_lib_attr_getxattr" = x""yes; then
12907   cat >>confdefs.h <<_ACEOF
12908 #define HAVE_LIBATTR 1
12909 _ACEOF
12910
12911   LIBS="-lattr $LIBS"
12912
12913 else
12914
12915         echo
12916         echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
12917         echo 'Install the extended attributes (attr) development package.'
12918         echo 'Alternatively, run "make install-lib" from the attr source.'
12919         exit 1
12920
12921 fi
12922
12923     libattr="-lattr"
12924     test -f `pwd`/../attr/libattr/libattr.la && \
12925         libattr="`pwd`/../attr/libattr/libattr.la"
12926
12927
12928  have_zipped_manpages=false
12929     for d in ${prefix}/share/man ${prefix}/man ; do
12930         if test -f $d/man1/man.1.gz
12931         then
12932             have_zipped_manpages=true
12933             break
12934         fi
12935     done
12936
12937
12938
12939 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
12940 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
12941 if test "${libc_cv_visibility_attribute+set}" = set; then
12942   $as_echo_n "(cached) " >&6
12943 else
12944   cat > conftest.c <<EOF
12945                    int foo __attribute__ ((visibility ("hidden"))) = 1;
12946                    int bar __attribute__ ((visibility ("protected"))) = 1;
12947 EOF
12948                   libc_cv_visibility_attribute=no
12949                   if ${CC-cc} -Werror -S conftest.c -o conftest.s \
12950                         >/dev/null 2>&1; then
12951                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
12952                       if grep '\.protected.*bar' conftest.s >/dev/null; then
12953                         libc_cv_visibility_attribute=yes
12954                       fi
12955                     fi
12956                   fi
12957                   rm -f conftest.cs
12958
12959 fi
12960 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
12961 $as_echo "$libc_cv_visibility_attribute" >&6; }
12962    if test $libc_cv_visibility_attribute = yes; then
12963
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_VISIBILITY_ATTRIBUTE /**/
12966 _ACEOF
12967
12968    fi
12969
12970
12971 ac_config_files="$ac_config_files include/builddefs"
12972
12973 cat >confcache <<\_ACEOF
12974 # This file is a shell script that caches the results of configure
12975 # tests run on this system so they can be shared between configure
12976 # scripts and configure runs, see configure's option --config-cache.
12977 # It is not useful on other systems.  If it contains results you don't
12978 # want to keep, you may remove or edit it.
12979 #
12980 # config.status only pays attention to the cache file if you give it
12981 # the --recheck option to rerun configure.
12982 #
12983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12985 # following values.
12986
12987 _ACEOF
12988
12989 # The following way of writing the cache mishandles newlines in values,
12990 # but we know of no workaround that is simple, portable, and efficient.
12991 # So, we kill variables containing newlines.
12992 # Ultrix sh set writes to stderr and can't be redirected directly,
12993 # and sets the high bit in the cache file unless we assign to the vars.
12994 (
12995   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12996     eval ac_val=\$$ac_var
12997     case $ac_val in #(
12998     *${as_nl}*)
12999       case $ac_var in #(
13000       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13002       esac
13003       case $ac_var in #(
13004       _ | IFS | as_nl) ;; #(
13005       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13006       *) $as_unset $ac_var ;;
13007       esac ;;
13008     esac
13009   done
13010
13011   (set) 2>&1 |
13012     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13013     *${as_nl}ac_space=\ *)
13014       # `set' does not quote correctly, so add quotes (double-quote
13015       # substitution turns \\\\ into \\, and sed turns \\ into \).
13016       sed -n \
13017         "s/'/'\\\\''/g;
13018           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13019       ;; #(
13020     *)
13021       # `set' quotes correctly as required by POSIX, so do not add quotes.
13022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13023       ;;
13024     esac |
13025     sort
13026 ) |
13027   sed '
13028      /^ac_cv_env_/b end
13029      t clear
13030      :clear
13031      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13032      t end
13033      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13034      :end' >>confcache
13035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13036   if test -w "$cache_file"; then
13037     test "x$cache_file" != "x/dev/null" &&
13038       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13039 $as_echo "$as_me: updating cache $cache_file" >&6;}
13040     cat confcache >$cache_file
13041   else
13042     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13043 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13044   fi
13045 fi
13046 rm -f confcache
13047
13048 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13049 # Let make expand exec_prefix.
13050 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13051
13052 DEFS=-DHAVE_CONFIG_H
13053
13054 ac_libobjs=
13055 ac_ltlibobjs=
13056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13057   # 1. Remove the extension, and $U if already installed.
13058   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13059   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13060   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13061   #    will be set to the directory where LIBOBJS objects are built.
13062   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13063   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13064 done
13065 LIBOBJS=$ac_libobjs
13066
13067 LTLIBOBJS=$ac_ltlibobjs
13068
13069
13070
13071 : ${CONFIG_STATUS=./config.status}
13072 ac_write_fail=0
13073 ac_clean_files_save=$ac_clean_files
13074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13075 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13076 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13077 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078 #! $SHELL
13079 # Generated by $as_me.
13080 # Run this file to recreate the current configuration.
13081 # Compiler output produced by configure, useful for debugging
13082 # configure, is in config.log if it exists.
13083
13084 debug=false
13085 ac_cs_recheck=false
13086 ac_cs_silent=false
13087 SHELL=\${CONFIG_SHELL-$SHELL}
13088 _ACEOF
13089
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 ## --------------------- ##
13092 ## M4sh Initialization.  ##
13093 ## --------------------- ##
13094
13095 # Be more Bourne compatible
13096 DUALCASE=1; export DUALCASE # for MKS sh
13097 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13098   emulate sh
13099   NULLCMD=:
13100   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13101   # is contrary to our usage.  Disable this feature.
13102   alias -g '${1+"$@"}'='"$@"'
13103   setopt NO_GLOB_SUBST
13104 else
13105   case `(set -o) 2>/dev/null` in
13106   *posix*) set -o posix ;;
13107 esac
13108
13109 fi
13110
13111
13112
13113
13114 # PATH needs CR
13115 # Avoid depending upon Character Ranges.
13116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13119 as_cr_digits='0123456789'
13120 as_cr_alnum=$as_cr_Letters$as_cr_digits
13121
13122 as_nl='
13123 '
13124 export as_nl
13125 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13126 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13129 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13130   as_echo='printf %s\n'
13131   as_echo_n='printf %s'
13132 else
13133   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13134     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13135     as_echo_n='/usr/ucb/echo -n'
13136   else
13137     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13138     as_echo_n_body='eval
13139       arg=$1;
13140       case $arg in
13141       *"$as_nl"*)
13142         expr "X$arg" : "X\\(.*\\)$as_nl";
13143         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13144       esac;
13145       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13146     '
13147     export as_echo_n_body
13148     as_echo_n='sh -c $as_echo_n_body as_echo'
13149   fi
13150   export as_echo_body
13151   as_echo='sh -c $as_echo_body as_echo'
13152 fi
13153
13154 # The user is always right.
13155 if test "${PATH_SEPARATOR+set}" != set; then
13156   PATH_SEPARATOR=:
13157   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13158     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13159       PATH_SEPARATOR=';'
13160   }
13161 fi
13162
13163 # Support unset when possible.
13164 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13165   as_unset=unset
13166 else
13167   as_unset=false
13168 fi
13169
13170
13171 # IFS
13172 # We need space, tab and new line, in precisely that order.  Quoting is
13173 # there to prevent editors from complaining about space-tab.
13174 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13175 # splitting by setting IFS to empty value.)
13176 IFS=" ""        $as_nl"
13177
13178 # Find who we are.  Look in the path if we contain no directory separator.
13179 case $0 in
13180   *[\\/]* ) as_myself=$0 ;;
13181   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13183 do
13184   IFS=$as_save_IFS
13185   test -z "$as_dir" && as_dir=.
13186   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13187 done
13188 IFS=$as_save_IFS
13189
13190      ;;
13191 esac
13192 # We did not find ourselves, most probably we were run as `sh COMMAND'
13193 # in which case we are not to be found in the path.
13194 if test "x$as_myself" = x; then
13195   as_myself=$0
13196 fi
13197 if test ! -f "$as_myself"; then
13198   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13199   { (exit 1); exit 1; }
13200 fi
13201
13202 # Work around bugs in pre-3.0 UWIN ksh.
13203 for as_var in ENV MAIL MAILPATH
13204 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13205 done
13206 PS1='$ '
13207 PS2='> '
13208 PS4='+ '
13209
13210 # NLS nuisances.
13211 LC_ALL=C
13212 export LC_ALL
13213 LANGUAGE=C
13214 export LANGUAGE
13215
13216 # Required to use basename.
13217 if expr a : '\(a\)' >/dev/null 2>&1 &&
13218    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13219   as_expr=expr
13220 else
13221   as_expr=false
13222 fi
13223
13224 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13225   as_basename=basename
13226 else
13227   as_basename=false
13228 fi
13229
13230
13231 # Name of the executable.
13232 as_me=`$as_basename -- "$0" ||
13233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13234          X"$0" : 'X\(//\)$' \| \
13235          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13236 $as_echo X/"$0" |
13237     sed '/^.*\/\([^/][^/]*\)\/*$/{
13238             s//\1/
13239             q
13240           }
13241           /^X\/\(\/\/\)$/{
13242             s//\1/
13243             q
13244           }
13245           /^X\/\(\/\).*/{
13246             s//\1/
13247             q
13248           }
13249           s/.*/./; q'`
13250
13251 # CDPATH.
13252 $as_unset CDPATH
13253
13254
13255
13256   as_lineno_1=$LINENO
13257   as_lineno_2=$LINENO
13258   test "x$as_lineno_1" != "x$as_lineno_2" &&
13259   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13260
13261   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13262   # uniformly replaced by the line number.  The first 'sed' inserts a
13263   # line-number line after each line using $LINENO; the second 'sed'
13264   # does the real work.  The second script uses 'N' to pair each
13265   # line-number line with the line containing $LINENO, and appends
13266   # trailing '-' during substitution so that $LINENO is not a special
13267   # case at line end.
13268   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13269   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13270   # E. McMahon (1931-1989) for sed's syntax.  :-)
13271   sed -n '
13272     p
13273     /[$]LINENO/=
13274   ' <$as_myself |
13275     sed '
13276       s/[$]LINENO.*/&-/
13277       t lineno
13278       b
13279       :lineno
13280       N
13281       :loop
13282       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13283       t loop
13284       s/-\n.*//
13285     ' >$as_me.lineno &&
13286   chmod +x "$as_me.lineno" ||
13287     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13288    { (exit 1); exit 1; }; }
13289
13290   # Don't try to exec as it changes $[0], causing all sort of problems
13291   # (the dirname of $[0] is not the place where we might find the
13292   # original and so on.  Autoconf is especially sensitive to this).
13293   . "./$as_me.lineno"
13294   # Exit status is that of the last command.
13295   exit
13296 }
13297
13298
13299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13300   as_dirname=dirname
13301 else
13302   as_dirname=false
13303 fi
13304
13305 ECHO_C= ECHO_N= ECHO_T=
13306 case `echo -n x` in
13307 -n*)
13308   case `echo 'x\c'` in
13309   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13310   *)   ECHO_C='\c';;
13311   esac;;
13312 *)
13313   ECHO_N='-n';;
13314 esac
13315 if expr a : '\(a\)' >/dev/null 2>&1 &&
13316    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13317   as_expr=expr
13318 else
13319   as_expr=false
13320 fi
13321
13322 rm -f conf$$ conf$$.exe conf$$.file
13323 if test -d conf$$.dir; then
13324   rm -f conf$$.dir/conf$$.file
13325 else
13326   rm -f conf$$.dir
13327   mkdir conf$$.dir 2>/dev/null
13328 fi
13329 if (echo >conf$$.file) 2>/dev/null; then
13330   if ln -s conf$$.file conf$$ 2>/dev/null; then
13331     as_ln_s='ln -s'
13332     # ... but there are two gotchas:
13333     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13334     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13335     # In both cases, we have to default to `cp -p'.
13336     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13337       as_ln_s='cp -p'
13338   elif ln conf$$.file conf$$ 2>/dev/null; then
13339     as_ln_s=ln
13340   else
13341     as_ln_s='cp -p'
13342   fi
13343 else
13344   as_ln_s='cp -p'
13345 fi
13346 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13347 rmdir conf$$.dir 2>/dev/null
13348
13349 if mkdir -p . 2>/dev/null; then
13350   as_mkdir_p=:
13351 else
13352   test -d ./-p && rmdir ./-p
13353   as_mkdir_p=false
13354 fi
13355
13356 if test -x / >/dev/null 2>&1; then
13357   as_test_x='test -x'
13358 else
13359   if ls -dL / >/dev/null 2>&1; then
13360     as_ls_L_option=L
13361   else
13362     as_ls_L_option=
13363   fi
13364   as_test_x='
13365     eval sh -c '\''
13366       if test -d "$1"; then
13367         test -d "$1/.";
13368       else
13369         case $1 in
13370         -*)set "./$1";;
13371         esac;
13372         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13373         ???[sx]*):;;*)false;;esac;fi
13374     '\'' sh
13375   '
13376 fi
13377 as_executable_p=$as_test_x
13378
13379 # Sed expression to map a string onto a valid CPP name.
13380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13381
13382 # Sed expression to map a string onto a valid variable name.
13383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13384
13385
13386 exec 6>&1
13387
13388 # Save the log message, to keep $[0] and so on meaningful, and to
13389 # report actual input values of CONFIG_FILES etc. instead of their
13390 # values after options handling.
13391 ac_log="
13392 This file was extended by $as_me, which was
13393 generated by GNU Autoconf 2.63.  Invocation command line was
13394
13395   CONFIG_FILES    = $CONFIG_FILES
13396   CONFIG_HEADERS  = $CONFIG_HEADERS
13397   CONFIG_LINKS    = $CONFIG_LINKS
13398   CONFIG_COMMANDS = $CONFIG_COMMANDS
13399   $ $0 $@
13400
13401 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13402 "
13403
13404 _ACEOF
13405
13406 case $ac_config_files in *"
13407 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13408 esac
13409
13410 case $ac_config_headers in *"
13411 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13412 esac
13413
13414
13415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13416 # Files that config.status was made for.
13417 config_files="$ac_config_files"
13418 config_headers="$ac_config_headers"
13419 config_commands="$ac_config_commands"
13420
13421 _ACEOF
13422
13423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13424 ac_cs_usage="\
13425 \`$as_me' instantiates files from templates according to the
13426 current configuration.
13427
13428 Usage: $0 [OPTION]... [FILE]...
13429
13430   -h, --help       print this help, then exit
13431   -V, --version    print version number and configuration settings, then exit
13432   -q, --quiet, --silent
13433                    do not print progress messages
13434   -d, --debug      don't remove temporary files
13435       --recheck    update $as_me by reconfiguring in the same conditions
13436       --file=FILE[:TEMPLATE]
13437                    instantiate the configuration file FILE
13438       --header=FILE[:TEMPLATE]
13439                    instantiate the configuration header FILE
13440
13441 Configuration files:
13442 $config_files
13443
13444 Configuration headers:
13445 $config_headers
13446
13447 Configuration commands:
13448 $config_commands
13449
13450 Report bugs to <bug-autoconf@gnu.org>."
13451
13452 _ACEOF
13453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13454 ac_cs_version="\\
13455 config.status
13456 configured by $0, generated by GNU Autoconf 2.63,
13457   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13458
13459 Copyright (C) 2008 Free Software Foundation, Inc.
13460 This config.status script is free software; the Free Software Foundation
13461 gives unlimited permission to copy, distribute and modify it."
13462
13463 ac_pwd='$ac_pwd'
13464 srcdir='$srcdir'
13465 test -n "\$AWK" || AWK=awk
13466 _ACEOF
13467
13468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13469 # The default lists apply if the user does not specify any file.
13470 ac_need_defaults=:
13471 while test $# != 0
13472 do
13473   case $1 in
13474   --*=*)
13475     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13476     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13477     ac_shift=:
13478     ;;
13479   *)
13480     ac_option=$1
13481     ac_optarg=$2
13482     ac_shift=shift
13483     ;;
13484   esac
13485
13486   case $ac_option in
13487   # Handling of the options.
13488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13489     ac_cs_recheck=: ;;
13490   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13491     $as_echo "$ac_cs_version"; exit ;;
13492   --debug | --debu | --deb | --de | --d | -d )
13493     debug=: ;;
13494   --file | --fil | --fi | --f )
13495     $ac_shift
13496     case $ac_optarg in
13497     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13498     esac
13499     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13500     ac_need_defaults=false;;
13501   --header | --heade | --head | --hea )
13502     $ac_shift
13503     case $ac_optarg in
13504     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13505     esac
13506     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13507     ac_need_defaults=false;;
13508   --he | --h)
13509     # Conflict between --help and --header
13510     { $as_echo "$as_me: error: ambiguous option: $1
13511 Try \`$0 --help' for more information." >&2
13512    { (exit 1); exit 1; }; };;
13513   --help | --hel | -h )
13514     $as_echo "$ac_cs_usage"; exit ;;
13515   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13516   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13517     ac_cs_silent=: ;;
13518
13519   # This is an error.
13520   -*) { $as_echo "$as_me: error: unrecognized option: $1
13521 Try \`$0 --help' for more information." >&2
13522    { (exit 1); exit 1; }; } ;;
13523
13524   *) ac_config_targets="$ac_config_targets $1"
13525      ac_need_defaults=false ;;
13526
13527   esac
13528   shift
13529 done
13530
13531 ac_configure_extra_args=
13532
13533 if $ac_cs_silent; then
13534   exec 6>/dev/null
13535   ac_configure_extra_args="$ac_configure_extra_args --silent"
13536 fi
13537
13538 _ACEOF
13539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13540 if \$ac_cs_recheck; then
13541   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13542   shift
13543   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13544   CONFIG_SHELL='$SHELL'
13545   export CONFIG_SHELL
13546   exec "\$@"
13547 fi
13548
13549 _ACEOF
13550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13551 exec 5>>config.log
13552 {
13553   echo
13554   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13555 ## Running $as_me. ##
13556 _ASBOX
13557   $as_echo "$ac_log"
13558 } >&5
13559
13560 _ACEOF
13561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13562 #
13563 # INIT-COMMANDS
13564 #
13565
13566
13567 # The HP-UX ksh and POSIX shell print the target directory to stdout
13568 # if CDPATH is set.
13569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13570
13571 sed_quote_subst='$sed_quote_subst'
13572 double_quote_subst='$double_quote_subst'
13573 delay_variable_subst='$delay_variable_subst'
13574 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13575 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13576 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13577 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13578 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13579 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13580 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13581 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13582 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13583 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13584 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13585 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13586 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13587 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13588 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13589 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13590 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13591 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13592 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13593 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13594 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13595 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13596 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13597 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13598 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13599 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13600 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13601 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13602 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13603 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13604 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13605 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13606 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13607 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13608 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13609 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13610 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13611 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13612 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13613 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13614 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13615 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13616 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13617 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13618 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13619 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13620 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13621 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13622 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13623 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13624 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13625 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13626 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13627 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13628 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13629 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13630 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13631 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13632 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13633 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13634 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13635 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13636 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13637 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13638 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13639 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13640 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13641 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13642 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13643 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13644 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13645 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13646 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13647 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13648 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13649 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13650 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13651 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13652 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13653 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13654 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13655 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13656 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13657 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13658 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13659 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13660 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13661 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13662 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13663 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13664 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13665 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13666 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13667 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13668 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13669 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13670 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13671 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13672 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13673 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13674 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13675 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13676 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13677 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13678 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13679 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13680 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13681 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13682 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13683 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13684 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13685 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13686 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13687 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13688 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13689 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13690 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13691 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13692
13693 LTCC='$LTCC'
13694 LTCFLAGS='$LTCFLAGS'
13695 compiler='$compiler_DEFAULT'
13696
13697 # Quote evaled strings.
13698 for var in SED \
13699 GREP \
13700 EGREP \
13701 FGREP \
13702 LD \
13703 NM \
13704 LN_S \
13705 lt_SP2NL \
13706 lt_NL2SP \
13707 reload_flag \
13708 OBJDUMP \
13709 deplibs_check_method \
13710 file_magic_cmd \
13711 AR \
13712 AR_FLAGS \
13713 STRIP \
13714 RANLIB \
13715 CC \
13716 CFLAGS \
13717 compiler \
13718 lt_cv_sys_global_symbol_pipe \
13719 lt_cv_sys_global_symbol_to_cdecl \
13720 lt_cv_sys_global_symbol_to_c_name_address \
13721 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13722 SHELL \
13723 ECHO \
13724 lt_prog_compiler_no_builtin_flag \
13725 lt_prog_compiler_wl \
13726 lt_prog_compiler_pic \
13727 lt_prog_compiler_static \
13728 lt_cv_prog_compiler_c_o \
13729 need_locks \
13730 DSYMUTIL \
13731 NMEDIT \
13732 LIPO \
13733 OTOOL \
13734 OTOOL64 \
13735 shrext_cmds \
13736 export_dynamic_flag_spec \
13737 whole_archive_flag_spec \
13738 compiler_needs_object \
13739 with_gnu_ld \
13740 allow_undefined_flag \
13741 no_undefined_flag \
13742 hardcode_libdir_flag_spec \
13743 hardcode_libdir_flag_spec_ld \
13744 hardcode_libdir_separator \
13745 fix_srcfile_path \
13746 exclude_expsyms \
13747 include_expsyms \
13748 file_list_spec \
13749 variables_saved_for_relink \
13750 libname_spec \
13751 library_names_spec \
13752 soname_spec \
13753 finish_eval \
13754 old_striplib \
13755 striplib; do
13756     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13757     *[\\\\\\\`\\"\\\$]*)
13758       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13759       ;;
13760     *)
13761       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13762       ;;
13763     esac
13764 done
13765
13766 # Double-quote double-evaled strings.
13767 for var in reload_cmds \
13768 old_postinstall_cmds \
13769 old_postuninstall_cmds \
13770 old_archive_cmds \
13771 extract_expsyms_cmds \
13772 old_archive_from_new_cmds \
13773 old_archive_from_expsyms_cmds \
13774 archive_cmds \
13775 archive_expsym_cmds \
13776 module_cmds \
13777 module_expsym_cmds \
13778 export_symbols_cmds \
13779 prelink_cmds \
13780 postinstall_cmds \
13781 postuninstall_cmds \
13782 finish_cmds \
13783 sys_lib_search_path_spec \
13784 sys_lib_dlsearch_path_spec; do
13785     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13786     *[\\\\\\\`\\"\\\$]*)
13787       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13788       ;;
13789     *)
13790       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13791       ;;
13792     esac
13793 done
13794
13795 # Fix-up fallback echo if it was mangled by the above quoting rules.
13796 case \$lt_ECHO in
13797 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13798   ;;
13799 esac
13800
13801 ac_aux_dir='$ac_aux_dir'
13802 xsi_shell='$xsi_shell'
13803 lt_shell_append='$lt_shell_append'
13804
13805 # See if we are running on zsh, and set the options which allow our
13806 # commands through without removal of \ escapes INIT.
13807 if test -n "\${ZSH_VERSION+set}" ; then
13808    setopt NO_GLOB_SUBST
13809 fi
13810
13811
13812     PACKAGE='$PACKAGE'
13813     VERSION='$VERSION'
13814     TIMESTAMP='$TIMESTAMP'
13815     RM='$RM'
13816     ofile='$ofile'
13817
13818
13819
13820
13821 _ACEOF
13822
13823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13824
13825 # Handling of arguments.
13826 for ac_config_target in $ac_config_targets
13827 do
13828   case $ac_config_target in
13829     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13830     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13831     "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13832
13833   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13834 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13835    { (exit 1); exit 1; }; };;
13836   esac
13837 done
13838
13839
13840 # If the user did not use the arguments to specify the items to instantiate,
13841 # then the envvar interface is used.  Set only those that are not.
13842 # We use the long form for the default assignment because of an extremely
13843 # bizarre bug on SunOS 4.1.3.
13844 if $ac_need_defaults; then
13845   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13846   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13847   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13848 fi
13849
13850 # Have a temporary directory for convenience.  Make it in the build tree
13851 # simply because there is no reason against having it here, and in addition,
13852 # creating and moving files from /tmp can sometimes cause problems.
13853 # Hook for its removal unless debugging.
13854 # Note that there is a small window in which the directory will not be cleaned:
13855 # after its creation but before its name has been assigned to `$tmp'.
13856 $debug ||
13857 {
13858   tmp=
13859   trap 'exit_status=$?
13860   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13861 ' 0
13862   trap '{ (exit 1); exit 1; }' 1 2 13 15
13863 }
13864 # Create a (secure) tmp directory for tmp files.
13865
13866 {
13867   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13868   test -n "$tmp" && test -d "$tmp"
13869 }  ||
13870 {
13871   tmp=./conf$$-$RANDOM
13872   (umask 077 && mkdir "$tmp")
13873 } ||
13874 {
13875    $as_echo "$as_me: cannot create a temporary directory in ." >&2
13876    { (exit 1); exit 1; }
13877 }
13878
13879 # Set up the scripts for CONFIG_FILES section.
13880 # No need to generate them if there are no CONFIG_FILES.
13881 # This happens for instance with `./config.status config.h'.
13882 if test -n "$CONFIG_FILES"; then
13883
13884
13885 ac_cr='\r'
13886 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13887 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13888   ac_cs_awk_cr='\\r'
13889 else
13890   ac_cs_awk_cr=$ac_cr
13891 fi
13892
13893 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13894 _ACEOF
13895
13896
13897 {
13898   echo "cat >conf$$subs.awk <<_ACEOF" &&
13899   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13900   echo "_ACEOF"
13901 } >conf$$subs.sh ||
13902   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13903 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13904    { (exit 1); exit 1; }; }
13905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13906 ac_delim='%!_!# '
13907 for ac_last_try in false false false false false :; do
13908   . ./conf$$subs.sh ||
13909     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13910 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13911    { (exit 1); exit 1; }; }
13912
13913   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13914   if test $ac_delim_n = $ac_delim_num; then
13915     break
13916   elif $ac_last_try; then
13917     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13918 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13919    { (exit 1); exit 1; }; }
13920   else
13921     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13922   fi
13923 done
13924 rm -f conf$$subs.sh
13925
13926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13927 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13928 _ACEOF
13929 sed -n '
13930 h
13931 s/^/S["/; s/!.*/"]=/
13932 p
13933 g
13934 s/^[^!]*!//
13935 :repl
13936 t repl
13937 s/'"$ac_delim"'$//
13938 t delim
13939 :nl
13940 h
13941 s/\(.\{148\}\).*/\1/
13942 t more1
13943 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13944 p
13945 n
13946 b repl
13947 :more1
13948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13949 p
13950 g
13951 s/.\{148\}//
13952 t nl
13953 :delim
13954 h
13955 s/\(.\{148\}\).*/\1/
13956 t more2
13957 s/["\\]/\\&/g; s/^/"/; s/$/"/
13958 p
13959 b
13960 :more2
13961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13962 p
13963 g
13964 s/.\{148\}//
13965 t delim
13966 ' <conf$$subs.awk | sed '
13967 /^[^""]/{
13968   N
13969   s/\n//
13970 }
13971 ' >>$CONFIG_STATUS || ac_write_fail=1
13972 rm -f conf$$subs.awk
13973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13974 _ACAWK
13975 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13976   for (key in S) S_is_set[key] = 1
13977   FS = "\a"
13978
13979 }
13980 {
13981   line = $ 0
13982   nfields = split(line, field, "@")
13983   substed = 0
13984   len = length(field[1])
13985   for (i = 2; i < nfields; i++) {
13986     key = field[i]
13987     keylen = length(key)
13988     if (S_is_set[key]) {
13989       value = S[key]
13990       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13991       len += length(value) + length(field[++i])
13992       substed = 1
13993     } else
13994       len += 1 + keylen
13995   }
13996
13997   print line
13998 }
13999
14000 _ACAWK
14001 _ACEOF
14002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14003 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14004   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14005 else
14006   cat
14007 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14008   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14009 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14010    { (exit 1); exit 1; }; }
14011 _ACEOF
14012
14013 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14014 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14015 # trailing colons and then remove the whole line if VPATH becomes empty
14016 # (actually we leave an empty line to preserve line numbers).
14017 if test "x$srcdir" = x.; then
14018   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14019 s/:*\$(srcdir):*/:/
14020 s/:*\${srcdir}:*/:/
14021 s/:*@srcdir@:*/:/
14022 s/^\([^=]*=[     ]*\):*/\1/
14023 s/:*$//
14024 s/^[^=]*=[       ]*$//
14025 }'
14026 fi
14027
14028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14029 fi # test -n "$CONFIG_FILES"
14030
14031 # Set up the scripts for CONFIG_HEADERS section.
14032 # No need to generate them if there are no CONFIG_HEADERS.
14033 # This happens for instance with `./config.status Makefile'.
14034 if test -n "$CONFIG_HEADERS"; then
14035 cat >"$tmp/defines.awk" <<\_ACAWK ||
14036 BEGIN {
14037 _ACEOF
14038
14039 # Transform confdefs.h into an awk script `defines.awk', embedded as
14040 # here-document in config.status, that substitutes the proper values into
14041 # config.h.in to produce config.h.
14042
14043 # Create a delimiter string that does not exist in confdefs.h, to ease
14044 # handling of long lines.
14045 ac_delim='%!_!# '
14046 for ac_last_try in false false :; do
14047   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14048   if test -z "$ac_t"; then
14049     break
14050   elif $ac_last_try; then
14051     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14052 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14053    { (exit 1); exit 1; }; }
14054   else
14055     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14056   fi
14057 done
14058
14059 # For the awk script, D is an array of macro values keyed by name,
14060 # likewise P contains macro parameters if any.  Preserve backslash
14061 # newline sequences.
14062
14063 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14064 sed -n '
14065 s/.\{148\}/&'"$ac_delim"'/g
14066 t rset
14067 :rset
14068 s/^[     ]*#[    ]*define[       ][      ]*/ /
14069 t def
14070 d
14071 :def
14072 s/\\$//
14073 t bsnl
14074 s/["\\]/\\&/g
14075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14076 D["\1"]=" \3"/p
14077 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14078 d
14079 :bsnl
14080 s/["\\]/\\&/g
14081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14082 D["\1"]=" \3\\\\\\n"\\/p
14083 t cont
14084 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14085 t cont
14086 d
14087 :cont
14088 n
14089 s/.\{148\}/&'"$ac_delim"'/g
14090 t clear
14091 :clear
14092 s/\\$//
14093 t bsnlc
14094 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14095 d
14096 :bsnlc
14097 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14098 b cont
14099 ' <confdefs.h | sed '
14100 s/'"$ac_delim"'/"\\\
14101 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14102
14103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14104   for (key in D) D_is_set[key] = 1
14105   FS = "\a"
14106 }
14107 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14108   line = \$ 0
14109   split(line, arg, " ")
14110   if (arg[1] == "#") {
14111     defundef = arg[2]
14112     mac1 = arg[3]
14113   } else {
14114     defundef = substr(arg[1], 2)
14115     mac1 = arg[2]
14116   }
14117   split(mac1, mac2, "(") #)
14118   macro = mac2[1]
14119   prefix = substr(line, 1, index(line, defundef) - 1)
14120   if (D_is_set[macro]) {
14121     # Preserve the white space surrounding the "#".
14122     print prefix "define", macro P[macro] D[macro]
14123     next
14124   } else {
14125     # Replace #undef with comments.  This is necessary, for example,
14126     # in the case of _POSIX_SOURCE, which is predefined and required
14127     # on some systems where configure will not decide to define it.
14128     if (defundef == "undef") {
14129       print "/*", prefix defundef, macro, "*/"
14130       next
14131     }
14132   }
14133 }
14134 { print }
14135 _ACAWK
14136 _ACEOF
14137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14139 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14140    { (exit 1); exit 1; }; }
14141 fi # test -n "$CONFIG_HEADERS"
14142
14143
14144 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14145 shift
14146 for ac_tag
14147 do
14148   case $ac_tag in
14149   :[FHLC]) ac_mode=$ac_tag; continue;;
14150   esac
14151   case $ac_mode$ac_tag in
14152   :[FHL]*:*);;
14153   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14154 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14155    { (exit 1); exit 1; }; };;
14156   :[FH]-) ac_tag=-:-;;
14157   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14158   esac
14159   ac_save_IFS=$IFS
14160   IFS=:
14161   set x $ac_tag
14162   IFS=$ac_save_IFS
14163   shift
14164   ac_file=$1
14165   shift
14166
14167   case $ac_mode in
14168   :L) ac_source=$1;;
14169   :[FH])
14170     ac_file_inputs=
14171     for ac_f
14172     do
14173       case $ac_f in
14174       -) ac_f="$tmp/stdin";;
14175       *) # Look for the file first in the build tree, then in the source tree
14176          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14177          # because $ac_f cannot contain `:'.
14178          test -f "$ac_f" ||
14179            case $ac_f in
14180            [\\/$]*) false;;
14181            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14182            esac ||
14183            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14184 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14185    { (exit 1); exit 1; }; };;
14186       esac
14187       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14188       ac_file_inputs="$ac_file_inputs '$ac_f'"
14189     done
14190
14191     # Let's still pretend it is `configure' which instantiates (i.e., don't
14192     # use $as_me), people would be surprised to read:
14193     #    /* config.h.  Generated by config.status.  */
14194     configure_input='Generated from '`
14195           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14196         `' by configure.'
14197     if test x"$ac_file" != x-; then
14198       configure_input="$ac_file.  $configure_input"
14199       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14200 $as_echo "$as_me: creating $ac_file" >&6;}
14201     fi
14202     # Neutralize special characters interpreted by sed in replacement strings.
14203     case $configure_input in #(
14204     *\&* | *\|* | *\\* )
14205        ac_sed_conf_input=`$as_echo "$configure_input" |
14206        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14207     *) ac_sed_conf_input=$configure_input;;
14208     esac
14209
14210     case $ac_tag in
14211     *:-:* | *:-) cat >"$tmp/stdin" \
14212       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14213 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14214    { (exit 1); exit 1; }; } ;;
14215     esac
14216     ;;
14217   esac
14218
14219   ac_dir=`$as_dirname -- "$ac_file" ||
14220 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14221          X"$ac_file" : 'X\(//\)[^/]' \| \
14222          X"$ac_file" : 'X\(//\)$' \| \
14223          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14224 $as_echo X"$ac_file" |
14225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14226             s//\1/
14227             q
14228           }
14229           /^X\(\/\/\)[^/].*/{
14230             s//\1/
14231             q
14232           }
14233           /^X\(\/\/\)$/{
14234             s//\1/
14235             q
14236           }
14237           /^X\(\/\).*/{
14238             s//\1/
14239             q
14240           }
14241           s/.*/./; q'`
14242   { as_dir="$ac_dir"
14243   case $as_dir in #(
14244   -*) as_dir=./$as_dir;;
14245   esac
14246   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14247     as_dirs=
14248     while :; do
14249       case $as_dir in #(
14250       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14251       *) as_qdir=$as_dir;;
14252       esac
14253       as_dirs="'$as_qdir' $as_dirs"
14254       as_dir=`$as_dirname -- "$as_dir" ||
14255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14256          X"$as_dir" : 'X\(//\)[^/]' \| \
14257          X"$as_dir" : 'X\(//\)$' \| \
14258          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14259 $as_echo X"$as_dir" |
14260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14261             s//\1/
14262             q
14263           }
14264           /^X\(\/\/\)[^/].*/{
14265             s//\1/
14266             q
14267           }
14268           /^X\(\/\/\)$/{
14269             s//\1/
14270             q
14271           }
14272           /^X\(\/\).*/{
14273             s//\1/
14274             q
14275           }
14276           s/.*/./; q'`
14277       test -d "$as_dir" && break
14278     done
14279     test -z "$as_dirs" || eval "mkdir $as_dirs"
14280   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14281 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14282    { (exit 1); exit 1; }; }; }
14283   ac_builddir=.
14284
14285 case "$ac_dir" in
14286 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14287 *)
14288   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14289   # A ".." for each directory in $ac_dir_suffix.
14290   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14291   case $ac_top_builddir_sub in
14292   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14293   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14294   esac ;;
14295 esac
14296 ac_abs_top_builddir=$ac_pwd
14297 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14298 # for backward compatibility:
14299 ac_top_builddir=$ac_top_build_prefix
14300
14301 case $srcdir in
14302   .)  # We are building in place.
14303     ac_srcdir=.
14304     ac_top_srcdir=$ac_top_builddir_sub
14305     ac_abs_top_srcdir=$ac_pwd ;;
14306   [\\/]* | ?:[\\/]* )  # Absolute name.
14307     ac_srcdir=$srcdir$ac_dir_suffix;
14308     ac_top_srcdir=$srcdir
14309     ac_abs_top_srcdir=$srcdir ;;
14310   *) # Relative name.
14311     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14312     ac_top_srcdir=$ac_top_build_prefix$srcdir
14313     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14314 esac
14315 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14316
14317
14318   case $ac_mode in
14319   :F)
14320   #
14321   # CONFIG_FILE
14322   #
14323
14324 _ACEOF
14325
14326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14327 # If the template does not know about datarootdir, expand it.
14328 # FIXME: This hack should be removed a few years after 2.60.
14329 ac_datarootdir_hack=; ac_datarootdir_seen=
14330
14331 ac_sed_dataroot='
14332 /datarootdir/ {
14333   p
14334   q
14335 }
14336 /@datadir@/p
14337 /@docdir@/p
14338 /@infodir@/p
14339 /@localedir@/p
14340 /@mandir@/p
14341 '
14342 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14343 *datarootdir*) ac_datarootdir_seen=yes;;
14344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14345   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14346 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14347 _ACEOF
14348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14349   ac_datarootdir_hack='
14350   s&@datadir@&$datadir&g
14351   s&@docdir@&$docdir&g
14352   s&@infodir@&$infodir&g
14353   s&@localedir@&$localedir&g
14354   s&@mandir@&$mandir&g
14355     s&\\\${datarootdir}&$datarootdir&g' ;;
14356 esac
14357 _ACEOF
14358
14359 # Neutralize VPATH when `$srcdir' = `.'.
14360 # Shell code in configure.ac might set extrasub.
14361 # FIXME: do we really want to maintain this feature?
14362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14363 ac_sed_extra="$ac_vpsub
14364 $extrasub
14365 _ACEOF
14366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14367 :t
14368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14369 s|@configure_input@|$ac_sed_conf_input|;t t
14370 s&@top_builddir@&$ac_top_builddir_sub&;t t
14371 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14372 s&@srcdir@&$ac_srcdir&;t t
14373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14374 s&@top_srcdir@&$ac_top_srcdir&;t t
14375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14376 s&@builddir@&$ac_builddir&;t t
14377 s&@abs_builddir@&$ac_abs_builddir&;t t
14378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14379 $ac_datarootdir_hack
14380 "
14381 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14382   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14383 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14384    { (exit 1); exit 1; }; }
14385
14386 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14387   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14388   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14389   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14390 which seems to be undefined.  Please make sure it is defined." >&5
14391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14392 which seems to be undefined.  Please make sure it is defined." >&2;}
14393
14394   rm -f "$tmp/stdin"
14395   case $ac_file in
14396   -) cat "$tmp/out" && rm -f "$tmp/out";;
14397   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14398   esac \
14399   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14400 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14401    { (exit 1); exit 1; }; }
14402  ;;
14403   :H)
14404   #
14405   # CONFIG_HEADER
14406   #
14407   if test x"$ac_file" != x-; then
14408     {
14409       $as_echo "/* $configure_input  */" \
14410       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14411     } >"$tmp/config.h" \
14412       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14413 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14414    { (exit 1); exit 1; }; }
14415     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14416       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14418     else
14419       rm -f "$ac_file"
14420       mv "$tmp/config.h" "$ac_file" \
14421         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14422 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14423    { (exit 1); exit 1; }; }
14424     fi
14425   else
14426     $as_echo "/* $configure_input  */" \
14427       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14428       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14429 $as_echo "$as_me: error: could not create -" >&2;}
14430    { (exit 1); exit 1; }; }
14431   fi
14432  ;;
14433
14434   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14435 $as_echo "$as_me: executing $ac_file commands" >&6;}
14436  ;;
14437   esac
14438
14439
14440   case $ac_file$ac_mode in
14441     "libtool":C)
14442
14443     # See if we are running on zsh, and set the options which allow our
14444     # commands through without removal of \ escapes.
14445     if test -n "${ZSH_VERSION+set}" ; then
14446       setopt NO_GLOB_SUBST
14447     fi
14448
14449     cfgfile="${ofile}T"
14450     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14451     $RM "$cfgfile"
14452
14453     cat <<_LT_EOF >> "$cfgfile"
14454 #! $SHELL
14455
14456 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14457 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14459 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14460 #
14461 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14462 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14463 #   Written by Gordon Matzigkeit, 1996
14464 #
14465 #   This file is part of GNU Libtool.
14466 #
14467 # GNU Libtool is free software; you can redistribute it and/or
14468 # modify it under the terms of the GNU General Public License as
14469 # published by the Free Software Foundation; either version 2 of
14470 # the License, or (at your option) any later version.
14471 #
14472 # As a special exception to the GNU General Public License,
14473 # if you distribute this file as part of a program or library that
14474 # is built using GNU Libtool, you may include this file under the
14475 # same distribution terms that you use for the rest of that program.
14476 #
14477 # GNU Libtool is distributed in the hope that it will be useful,
14478 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14479 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14480 # GNU General Public License for more details.
14481 #
14482 # You should have received a copy of the GNU General Public License
14483 # along with GNU Libtool; see the file COPYING.  If not, a copy
14484 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14485 # obtained by writing to the Free Software Foundation, Inc.,
14486 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14487
14488
14489 # The names of the tagged configurations supported by this script.
14490 available_tags=""
14491
14492 # ### BEGIN LIBTOOL CONFIG
14493
14494 # Which release of libtool.m4 was used?
14495 macro_version=$macro_version
14496 macro_revision=$macro_revision
14497
14498 # Whether or not to build shared libraries.
14499 build_libtool_libs=$enable_shared
14500
14501 # Whether or not to build static libraries.
14502 build_old_libs=$enable_static
14503
14504 # What type of objects to build.
14505 pic_mode=$pic_mode
14506
14507 # Whether or not to optimize for fast installation.
14508 fast_install=$enable_fast_install
14509
14510 # The host system.
14511 host_alias=$host_alias
14512 host=$host
14513 host_os=$host_os
14514
14515 # The build system.
14516 build_alias=$build_alias
14517 build=$build
14518 build_os=$build_os
14519
14520 # A sed program that does not truncate output.
14521 SED=$lt_SED
14522
14523 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14524 Xsed="\$SED -e 1s/^X//"
14525
14526 # A grep program that handles long lines.
14527 GREP=$lt_GREP
14528
14529 # An ERE matcher.
14530 EGREP=$lt_EGREP
14531
14532 # A literal string matcher.
14533 FGREP=$lt_FGREP
14534
14535 # A BSD- or MS-compatible name lister.
14536 NM=$lt_NM
14537
14538 # Whether we need soft or hard links.
14539 LN_S=$lt_LN_S
14540
14541 # What is the maximum length of a command?
14542 max_cmd_len=$max_cmd_len
14543
14544 # Object file suffix (normally "o").
14545 objext=$ac_objext
14546
14547 # Executable file suffix (normally "").
14548 exeext=$exeext
14549
14550 # whether the shell understands "unset".
14551 lt_unset=$lt_unset
14552
14553 # turn spaces into newlines.
14554 SP2NL=$lt_lt_SP2NL
14555
14556 # turn newlines into spaces.
14557 NL2SP=$lt_lt_NL2SP
14558
14559 # How to create reloadable object files.
14560 reload_flag=$lt_reload_flag
14561 reload_cmds=$lt_reload_cmds
14562
14563 # An object symbol dumper.
14564 OBJDUMP=$lt_OBJDUMP
14565
14566 # Method to check whether dependent libraries are shared objects.
14567 deplibs_check_method=$lt_deplibs_check_method
14568
14569 # Command to use when deplibs_check_method == "file_magic".
14570 file_magic_cmd=$lt_file_magic_cmd
14571
14572 # The archiver.
14573 AR=$lt_AR
14574 AR_FLAGS=$lt_AR_FLAGS
14575
14576 # A symbol stripping program.
14577 STRIP=$lt_STRIP
14578
14579 # Commands used to install an old-style archive.
14580 RANLIB=$lt_RANLIB
14581 old_postinstall_cmds=$lt_old_postinstall_cmds
14582 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14583
14584 # A C compiler.
14585 LTCC=$lt_CC
14586
14587 # LTCC compiler flags.
14588 LTCFLAGS=$lt_CFLAGS
14589
14590 # Take the output of nm and produce a listing of raw symbols and C names.
14591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14592
14593 # Transform the output of nm in a proper C declaration.
14594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14595
14596 # Transform the output of nm in a C name address pair.
14597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14598
14599 # Transform the output of nm in a C name address pair when lib prefix is needed.
14600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14601
14602 # The name of the directory that contains temporary libtool files.
14603 objdir=$objdir
14604
14605 # Shell to use when invoking shell scripts.
14606 SHELL=$lt_SHELL
14607
14608 # An echo program that does not interpret backslashes.
14609 ECHO=$lt_ECHO
14610
14611 # Used to examine libraries when file_magic_cmd begins with "file".
14612 MAGIC_CMD=$MAGIC_CMD
14613
14614 # Must we lock files when doing compilation?
14615 need_locks=$lt_need_locks
14616
14617 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14618 DSYMUTIL=$lt_DSYMUTIL
14619
14620 # Tool to change global to local symbols on Mac OS X.
14621 NMEDIT=$lt_NMEDIT
14622
14623 # Tool to manipulate fat objects and archives on Mac OS X.
14624 LIPO=$lt_LIPO
14625
14626 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14627 OTOOL=$lt_OTOOL
14628
14629 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14630 OTOOL64=$lt_OTOOL64
14631
14632 # Old archive suffix (normally "a").
14633 libext=$libext
14634
14635 # Shared library suffix (normally ".so").
14636 shrext_cmds=$lt_shrext_cmds
14637
14638 # The commands to extract the exported symbol list from a shared archive.
14639 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14640
14641 # Variables whose values should be saved in libtool wrapper scripts and
14642 # restored at link time.
14643 variables_saved_for_relink=$lt_variables_saved_for_relink
14644
14645 # Do we need the "lib" prefix for modules?
14646 need_lib_prefix=$need_lib_prefix
14647
14648 # Do we need a version for libraries?
14649 need_version=$need_version
14650
14651 # Library versioning type.
14652 version_type=$version_type
14653
14654 # Shared library runtime path variable.
14655 runpath_var=$runpath_var
14656
14657 # Shared library path variable.
14658 shlibpath_var=$shlibpath_var
14659
14660 # Is shlibpath searched before the hard-coded library search path?
14661 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14662
14663 # Format of library name prefix.
14664 libname_spec=$lt_libname_spec
14665
14666 # List of archive names.  First name is the real one, the rest are links.
14667 # The last name is the one that the linker finds with -lNAME
14668 library_names_spec=$lt_library_names_spec
14669
14670 # The coded name of the library, if different from the real name.
14671 soname_spec=$lt_soname_spec
14672
14673 # Command to use after installation of a shared archive.
14674 postinstall_cmds=$lt_postinstall_cmds
14675
14676 # Command to use after uninstallation of a shared archive.
14677 postuninstall_cmds=$lt_postuninstall_cmds
14678
14679 # Commands used to finish a libtool library installation in a directory.
14680 finish_cmds=$lt_finish_cmds
14681
14682 # As "finish_cmds", except a single script fragment to be evaled but
14683 # not shown.
14684 finish_eval=$lt_finish_eval
14685
14686 # Whether we should hardcode library paths into libraries.
14687 hardcode_into_libs=$hardcode_into_libs
14688
14689 # Compile-time system search path for libraries.
14690 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14691
14692 # Run-time system search path for libraries.
14693 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14694
14695 # Whether dlopen is supported.
14696 dlopen_support=$enable_dlopen
14697
14698 # Whether dlopen of programs is supported.
14699 dlopen_self=$enable_dlopen_self
14700
14701 # Whether dlopen of statically linked programs is supported.
14702 dlopen_self_static=$enable_dlopen_self_static
14703
14704 # Commands to strip libraries.
14705 old_striplib=$lt_old_striplib
14706 striplib=$lt_striplib
14707
14708
14709 # The linker used to build libraries.
14710 LD=$lt_LD
14711
14712 # Commands used to build an old-style archive.
14713 old_archive_cmds=$lt_old_archive_cmds
14714
14715 # A language specific compiler.
14716 CC=$lt_compiler
14717
14718 # Is the compiler the GNU compiler?
14719 with_gcc=$GCC
14720
14721 # Compiler flag to turn off builtin functions.
14722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14723
14724 # How to pass a linker flag through the compiler.
14725 wl=$lt_lt_prog_compiler_wl
14726
14727 # Additional compiler flags for building library objects.
14728 pic_flag=$lt_lt_prog_compiler_pic
14729
14730 # Compiler flag to prevent dynamic linking.
14731 link_static_flag=$lt_lt_prog_compiler_static
14732
14733 # Does compiler simultaneously support -c and -o options?
14734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14735
14736 # Whether or not to add -lc for building shared libraries.
14737 build_libtool_need_lc=$archive_cmds_need_lc
14738
14739 # Whether or not to disallow shared libs when runtime libs are static.
14740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14741
14742 # Compiler flag to allow reflexive dlopens.
14743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14744
14745 # Compiler flag to generate shared objects directly from archives.
14746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14747
14748 # Whether the compiler copes with passing no objects directly.
14749 compiler_needs_object=$lt_compiler_needs_object
14750
14751 # Create an old-style archive from a shared archive.
14752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14753
14754 # Create a temporary old-style archive to link instead of a shared archive.
14755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14756
14757 # Commands used to build a shared archive.
14758 archive_cmds=$lt_archive_cmds
14759 archive_expsym_cmds=$lt_archive_expsym_cmds
14760
14761 # Commands used to build a loadable module if different from building
14762 # a shared archive.
14763 module_cmds=$lt_module_cmds
14764 module_expsym_cmds=$lt_module_expsym_cmds
14765
14766 # Whether we are building with GNU ld or not.
14767 with_gnu_ld=$lt_with_gnu_ld
14768
14769 # Flag that allows shared libraries with undefined symbols to be built.
14770 allow_undefined_flag=$lt_allow_undefined_flag
14771
14772 # Flag that enforces no undefined symbols.
14773 no_undefined_flag=$lt_no_undefined_flag
14774
14775 # Flag to hardcode \$libdir into a binary during linking.
14776 # This must work even if \$libdir does not exist
14777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14778
14779 # If ld is used when linking, flag to hardcode \$libdir into a binary
14780 # during linking.  This must work even if \$libdir does not exist.
14781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14782
14783 # Whether we need a single "-rpath" flag with a separated argument.
14784 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14785
14786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14787 # DIR into the resulting binary.
14788 hardcode_direct=$hardcode_direct
14789
14790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14791 # DIR into the resulting binary and the resulting library dependency is
14792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14793 # library is relocated.
14794 hardcode_direct_absolute=$hardcode_direct_absolute
14795
14796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14797 # into the resulting binary.
14798 hardcode_minus_L=$hardcode_minus_L
14799
14800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14801 # into the resulting binary.
14802 hardcode_shlibpath_var=$hardcode_shlibpath_var
14803
14804 # Set to "yes" if building a shared library automatically hardcodes DIR
14805 # into the library and all subsequent libraries and executables linked
14806 # against it.
14807 hardcode_automatic=$hardcode_automatic
14808
14809 # Set to yes if linker adds runtime paths of dependent libraries
14810 # to runtime path list.
14811 inherit_rpath=$inherit_rpath
14812
14813 # Whether libtool must link a program against all its dependency libraries.
14814 link_all_deplibs=$link_all_deplibs
14815
14816 # Fix the shell variable \$srcfile for the compiler.
14817 fix_srcfile_path=$lt_fix_srcfile_path
14818
14819 # Set to "yes" if exported symbols are required.
14820 always_export_symbols=$always_export_symbols
14821
14822 # The commands to list exported symbols.
14823 export_symbols_cmds=$lt_export_symbols_cmds
14824
14825 # Symbols that should not be listed in the preloaded symbols.
14826 exclude_expsyms=$lt_exclude_expsyms
14827
14828 # Symbols that must always be exported.
14829 include_expsyms=$lt_include_expsyms
14830
14831 # Commands necessary for linking programs (against libraries) with templates.
14832 prelink_cmds=$lt_prelink_cmds
14833
14834 # Specify filename containing input files.
14835 file_list_spec=$lt_file_list_spec
14836
14837 # How to hardcode a shared library path into an executable.
14838 hardcode_action=$hardcode_action
14839
14840 # ### END LIBTOOL CONFIG
14841
14842 _LT_EOF
14843
14844   case $host_os in
14845   aix3*)
14846     cat <<\_LT_EOF >> "$cfgfile"
14847 # AIX sometimes has problems with the GCC collect2 program.  For some
14848 # reason, if we set the COLLECT_NAMES environment variable, the problems
14849 # vanish in a puff of smoke.
14850 if test "X${COLLECT_NAMES+set}" != Xset; then
14851   COLLECT_NAMES=
14852   export COLLECT_NAMES
14853 fi
14854 _LT_EOF
14855     ;;
14856   esac
14857
14858
14859 ltmain="$ac_aux_dir/ltmain.sh"
14860
14861
14862   # We use sed instead of cat because bash on DJGPP gets confused if
14863   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14864   # text mode, it properly converts lines to CR/LF.  This bash problem
14865   # is reportedly fixed, but why not run on old versions too?
14866   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14867     || (rm -f "$cfgfile"; exit 1)
14868
14869   case $xsi_shell in
14870   yes)
14871     cat << \_LT_EOF >> "$cfgfile"
14872
14873 # func_dirname file append nondir_replacement
14874 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14875 # otherwise set result to NONDIR_REPLACEMENT.
14876 func_dirname ()
14877 {
14878   case ${1} in
14879     */*) func_dirname_result="${1%/*}${2}" ;;
14880     *  ) func_dirname_result="${3}" ;;
14881   esac
14882 }
14883
14884 # func_basename file
14885 func_basename ()
14886 {
14887   func_basename_result="${1##*/}"
14888 }
14889
14890 # func_dirname_and_basename file append nondir_replacement
14891 # perform func_basename and func_dirname in a single function
14892 # call:
14893 #   dirname:  Compute the dirname of FILE.  If nonempty,
14894 #             add APPEND to the result, otherwise set result
14895 #             to NONDIR_REPLACEMENT.
14896 #             value returned in "$func_dirname_result"
14897 #   basename: Compute filename of FILE.
14898 #             value retuned in "$func_basename_result"
14899 # Implementation must be kept synchronized with func_dirname
14900 # and func_basename. For efficiency, we do not delegate to
14901 # those functions but instead duplicate the functionality here.
14902 func_dirname_and_basename ()
14903 {
14904   case ${1} in
14905     */*) func_dirname_result="${1%/*}${2}" ;;
14906     *  ) func_dirname_result="${3}" ;;
14907   esac
14908   func_basename_result="${1##*/}"
14909 }
14910
14911 # func_stripname prefix suffix name
14912 # strip PREFIX and SUFFIX off of NAME.
14913 # PREFIX and SUFFIX must not contain globbing or regex special
14914 # characters, hashes, percent signs, but SUFFIX may contain a leading
14915 # dot (in which case that matches only a dot).
14916 func_stripname ()
14917 {
14918   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14919   # positional parameters, so assign one to ordinary parameter first.
14920   func_stripname_result=${3}
14921   func_stripname_result=${func_stripname_result#"${1}"}
14922   func_stripname_result=${func_stripname_result%"${2}"}
14923 }
14924
14925 # func_opt_split
14926 func_opt_split ()
14927 {
14928   func_opt_split_opt=${1%%=*}
14929   func_opt_split_arg=${1#*=}
14930 }
14931
14932 # func_lo2o object
14933 func_lo2o ()
14934 {
14935   case ${1} in
14936     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14937     *)    func_lo2o_result=${1} ;;
14938   esac
14939 }
14940
14941 # func_xform libobj-or-source
14942 func_xform ()
14943 {
14944   func_xform_result=${1%.*}.lo
14945 }
14946
14947 # func_arith arithmetic-term...
14948 func_arith ()
14949 {
14950   func_arith_result=$(( $* ))
14951 }
14952
14953 # func_len string
14954 # STRING may not start with a hyphen.
14955 func_len ()
14956 {
14957   func_len_result=${#1}
14958 }
14959
14960 _LT_EOF
14961     ;;
14962   *) # Bourne compatible functions.
14963     cat << \_LT_EOF >> "$cfgfile"
14964
14965 # func_dirname file append nondir_replacement
14966 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14967 # otherwise set result to NONDIR_REPLACEMENT.
14968 func_dirname ()
14969 {
14970   # Extract subdirectory from the argument.
14971   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14972   if test "X$func_dirname_result" = "X${1}"; then
14973     func_dirname_result="${3}"
14974   else
14975     func_dirname_result="$func_dirname_result${2}"
14976   fi
14977 }
14978
14979 # func_basename file
14980 func_basename ()
14981 {
14982   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14983 }
14984
14985
14986 # func_stripname prefix suffix name
14987 # strip PREFIX and SUFFIX off of NAME.
14988 # PREFIX and SUFFIX must not contain globbing or regex special
14989 # characters, hashes, percent signs, but SUFFIX may contain a leading
14990 # dot (in which case that matches only a dot).
14991 # func_strip_suffix prefix name
14992 func_stripname ()
14993 {
14994   case ${2} in
14995     .*) func_stripname_result=`$ECHO "X${3}" \
14996            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14997     *)  func_stripname_result=`$ECHO "X${3}" \
14998            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14999   esac
15000 }
15001
15002 # sed scripts:
15003 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15004 my_sed_long_arg='1s/^-[^=]*=//'
15005
15006 # func_opt_split
15007 func_opt_split ()
15008 {
15009   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15010   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15011 }
15012
15013 # func_lo2o object
15014 func_lo2o ()
15015 {
15016   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15017 }
15018
15019 # func_xform libobj-or-source
15020 func_xform ()
15021 {
15022   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15023 }
15024
15025 # func_arith arithmetic-term...
15026 func_arith ()
15027 {
15028   func_arith_result=`expr "$@"`
15029 }
15030
15031 # func_len string
15032 # STRING may not start with a hyphen.
15033 func_len ()
15034 {
15035   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15036 }
15037
15038 _LT_EOF
15039 esac
15040
15041 case $lt_shell_append in
15042   yes)
15043     cat << \_LT_EOF >> "$cfgfile"
15044
15045 # func_append var value
15046 # Append VALUE to the end of shell variable VAR.
15047 func_append ()
15048 {
15049   eval "$1+=\$2"
15050 }
15051 _LT_EOF
15052     ;;
15053   *)
15054     cat << \_LT_EOF >> "$cfgfile"
15055
15056 # func_append var value
15057 # Append VALUE to the end of shell variable VAR.
15058 func_append ()
15059 {
15060   eval "$1=\$$1\$2"
15061 }
15062
15063 _LT_EOF
15064     ;;
15065   esac
15066
15067
15068   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15069     || (rm -f "$cfgfile"; exit 1)
15070
15071   mv -f "$cfgfile" "$ofile" ||
15072     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15073   chmod +x "$ofile"
15074
15075  ;;
15076
15077   esac
15078 done # for ac_tag
15079
15080
15081 { (exit 0); exit 0; }
15082 _ACEOF
15083 chmod +x $CONFIG_STATUS
15084 ac_clean_files=$ac_clean_files_save
15085
15086 test $ac_write_fail = 0 ||
15087   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15088 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15089    { (exit 1); exit 1; }; }
15090
15091
15092 # configure is writing to config.log, and then calls config.status.
15093 # config.status does its own redirection, appending to config.log.
15094 # Unfortunately, on DOS this fails, as config.log is still kept open
15095 # by configure, so config.status won't be able to write to it; its
15096 # output is simply discarded.  So we exec the FD to /dev/null,
15097 # effectively closing config.log, so it can be properly (re)opened and
15098 # appended to by config.status.  When coming back to configure, we
15099 # need to make the FD available again.
15100 if test "$no_create" != yes; then
15101   ac_cs_success=:
15102   ac_config_status_args=
15103   test "$silent" = yes &&
15104     ac_config_status_args="$ac_config_status_args --quiet"
15105   exec 5>/dev/null
15106   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15107   exec 5>>config.log
15108   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15109   # would make configure fail if this is the last instruction.
15110   $ac_cs_success || { (exit 1); exit 1; }
15111 fi
15112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15113   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15115 fi
15116