upload tizen1.0 source
[external/iptables.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for iptables 1.4.9.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME='iptables'
723 PACKAGE_TARNAME='iptables'
724 PACKAGE_VERSION='1.4.9.1'
725 PACKAGE_STRING='iptables 1.4.9.1'
726 PACKAGE_BUGREPORT=''
727
728 # Factoring default headers for most tests.
729 ac_includes_default="\
730 #include <stdio.h>
731 #ifdef HAVE_SYS_TYPES_H
732 # include <sys/types.h>
733 #endif
734 #ifdef HAVE_SYS_STAT_H
735 # include <sys/stat.h>
736 #endif
737 #ifdef STDC_HEADERS
738 # include <stdlib.h>
739 # include <stddef.h>
740 #else
741 # ifdef HAVE_STDLIB_H
742 #  include <stdlib.h>
743 # endif
744 #endif
745 #ifdef HAVE_STRING_H
746 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747 #  include <memory.h>
748 # endif
749 # include <string.h>
750 #endif
751 #ifdef HAVE_STRINGS_H
752 # include <strings.h>
753 #endif
754 #ifdef HAVE_INTTYPES_H
755 # include <inttypes.h>
756 #endif
757 #ifdef HAVE_STDINT_H
758 # include <stdint.h>
759 #endif
760 #ifdef HAVE_UNISTD_H
761 # include <unistd.h>
762 #endif"
763
764 ac_subst_vars='SHELL
765 PATH_SEPARATOR
766 PACKAGE_NAME
767 PACKAGE_TARNAME
768 PACKAGE_VERSION
769 PACKAGE_STRING
770 PACKAGE_BUGREPORT
771 exec_prefix
772 prefix
773 program_transform_name
774 bindir
775 sbindir
776 libexecdir
777 datarootdir
778 datadir
779 sysconfdir
780 sharedstatedir
781 localstatedir
782 includedir
783 oldincludedir
784 docdir
785 infodir
786 htmldir
787 dvidir
788 pdfdir
789 psdir
790 libdir
791 localedir
792 mandir
793 DEFS
794 ECHO_C
795 ECHO_N
796 ECHO_T
797 LIBS
798 build_alias
799 host_alias
800 target_alias
801 INSTALL_PROGRAM
802 INSTALL_SCRIPT
803 INSTALL_DATA
804 am__isrc
805 CYGPATH_W
806 PACKAGE
807 VERSION
808 ACLOCAL
809 AUTOCONF
810 AUTOMAKE
811 AUTOHEADER
812 MAKEINFO
813 install_sh
814 STRIP
815 INSTALL_STRIP_PROGRAM
816 mkdir_p
817 AWK
818 SET_MAKE
819 am__leading_dot
820 AMTAR
821 am__tar
822 am__untar
823 CC
824 CFLAGS
825 LDFLAGS
826 CPPFLAGS
827 ac_ct_CC
828 EXEEXT
829 OBJEXT
830 DEPDIR
831 am__include
832 am__quote
833 AMDEP_TRUE
834 AMDEP_FALSE
835 AMDEPBACKSLASH
836 CCDEPMODE
837 am__fastdepCC_TRUE
838 am__fastdepCC_FALSE
839 LIBTOOL
840 build
841 build_cpu
842 build_vendor
843 build_os
844 host
845 host_cpu
846 host_vendor
847 host_os
848 SED
849 GREP
850 EGREP
851 FGREP
852 LD
853 DUMPBIN
854 ac_ct_DUMPBIN
855 NM
856 LN_S
857 AR
858 RANLIB
859 lt_ECHO
860 DSYMUTIL
861 NMEDIT
862 LIPO
863 OTOOL
864 OTOOL64
865 CPP
866 blacklist_modules
867 ENABLE_STATIC_TRUE
868 ENABLE_STATIC_FALSE
869 ENABLE_SHARED_TRUE
870 ENABLE_SHARED_FALSE
871 ENABLE_IPV4_TRUE
872 ENABLE_IPV4_FALSE
873 ENABLE_IPV6_TRUE
874 ENABLE_IPV6_FALSE
875 ENABLE_LARGEFILE_TRUE
876 ENABLE_LARGEFILE_FALSE
877 ENABLE_DEVEL_TRUE
878 ENABLE_DEVEL_FALSE
879 ENABLE_LIBIPQ_TRUE
880 ENABLE_LIBIPQ_FALSE
881 PKG_CONFIG
882 libnfnetlink_CFLAGS
883 libnfnetlink_LIBS
884 HAVE_LIBNFNETLINK_TRUE
885 HAVE_LIBNFNETLINK_FALSE
886 regular_CFLAGS
887 kinclude_CFLAGS
888 kbuilddir
889 ksourcedir
890 xtlibdir
891 pkgconfigdir
892 pkgdatadir
893 libxtables_vcurrent
894 libxtables_vage
895 libxtables_vmajor
896 LIBOBJS
897 LTLIBOBJS'
898 ac_subst_files=''
899       ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 PKG_CONFIG
909 libnfnetlink_CFLAGS
910 libnfnetlink_LIBS'
911
912
913 # Initialize some variables set by options.
914 ac_init_help=
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963   # If the previous option needs an argument, assign it.
964   if test -n "$ac_prev"; then
965     eval $ac_prev=\$ac_option
966     ac_prev=
967     continue
968   fi
969
970   case $ac_option in
971   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972   *)    ac_optarg=yes ;;
973   esac
974
975   # Accept the important Cygnus configure options, so we can diagnose typos.
976
977   case $ac_dashdash$ac_option in
978   --)
979     ac_dashdash=yes ;;
980
981   -bindir | --bindir | --bindi | --bind | --bin | --bi)
982     ac_prev=bindir ;;
983   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984     bindir=$ac_optarg ;;
985
986   -build | --build | --buil | --bui | --bu)
987     ac_prev=build_alias ;;
988   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989     build_alias=$ac_optarg ;;
990
991   -cache-file | --cache-file | --cache-fil | --cache-fi \
992   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993     ac_prev=cache_file ;;
994   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996     cache_file=$ac_optarg ;;
997
998   --config-cache | -C)
999     cache_file=config.cache ;;
1000
1001   -datadir | --datadir | --datadi | --datad)
1002     ac_prev=datadir ;;
1003   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004     datadir=$ac_optarg ;;
1005
1006   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007   | --dataroo | --dataro | --datar)
1008     ac_prev=datarootdir ;;
1009   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011     datarootdir=$ac_optarg ;;
1012
1013   -disable-* | --disable-*)
1014     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020     eval enable_$ac_feature=no ;;
1021
1022   -docdir | --docdir | --docdi | --doc | --do)
1023     ac_prev=docdir ;;
1024   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025     docdir=$ac_optarg ;;
1026
1027   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028     ac_prev=dvidir ;;
1029   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030     dvidir=$ac_optarg ;;
1031
1032   -enable-* | --enable-*)
1033     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039     eval enable_$ac_feature=\$ac_optarg ;;
1040
1041   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043   | --exec | --exe | --ex)
1044     ac_prev=exec_prefix ;;
1045   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047   | --exec=* | --exe=* | --ex=*)
1048     exec_prefix=$ac_optarg ;;
1049
1050   -gas | --gas | --ga | --g)
1051     # Obsolete; use --with-gas.
1052     with_gas=yes ;;
1053
1054   -help | --help | --hel | --he | -h)
1055     ac_init_help=long ;;
1056   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057     ac_init_help=recursive ;;
1058   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059     ac_init_help=short ;;
1060
1061   -host | --host | --hos | --ho)
1062     ac_prev=host_alias ;;
1063   -host=* | --host=* | --hos=* | --ho=*)
1064     host_alias=$ac_optarg ;;
1065
1066   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067     ac_prev=htmldir ;;
1068   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069   | --ht=*)
1070     htmldir=$ac_optarg ;;
1071
1072   -includedir | --includedir | --includedi | --included | --include \
1073   | --includ | --inclu | --incl | --inc)
1074     ac_prev=includedir ;;
1075   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076   | --includ=* | --inclu=* | --incl=* | --inc=*)
1077     includedir=$ac_optarg ;;
1078
1079   -infodir | --infodir | --infodi | --infod | --info | --inf)
1080     ac_prev=infodir ;;
1081   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082     infodir=$ac_optarg ;;
1083
1084   -libdir | --libdir | --libdi | --libd)
1085     ac_prev=libdir ;;
1086   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087     libdir=$ac_optarg ;;
1088
1089   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090   | --libexe | --libex | --libe)
1091     ac_prev=libexecdir ;;
1092   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093   | --libexe=* | --libex=* | --libe=*)
1094     libexecdir=$ac_optarg ;;
1095
1096   -localedir | --localedir | --localedi | --localed | --locale)
1097     ac_prev=localedir ;;
1098   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099     localedir=$ac_optarg ;;
1100
1101   -localstatedir | --localstatedir | --localstatedi | --localstated \
1102   | --localstate | --localstat | --localsta | --localst | --locals)
1103     ac_prev=localstatedir ;;
1104   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106     localstatedir=$ac_optarg ;;
1107
1108   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109     ac_prev=mandir ;;
1110   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111     mandir=$ac_optarg ;;
1112
1113   -nfp | --nfp | --nf)
1114     # Obsolete; use --without-fp.
1115     with_fp=no ;;
1116
1117   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118   | --no-cr | --no-c | -n)
1119     no_create=yes ;;
1120
1121   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123     no_recursion=yes ;;
1124
1125   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127   | --oldin | --oldi | --old | --ol | --o)
1128     ac_prev=oldincludedir ;;
1129   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132     oldincludedir=$ac_optarg ;;
1133
1134   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135     ac_prev=prefix ;;
1136   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137     prefix=$ac_optarg ;;
1138
1139   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140   | --program-pre | --program-pr | --program-p)
1141     ac_prev=program_prefix ;;
1142   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144     program_prefix=$ac_optarg ;;
1145
1146   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147   | --program-suf | --program-su | --program-s)
1148     ac_prev=program_suffix ;;
1149   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151     program_suffix=$ac_optarg ;;
1152
1153   -program-transform-name | --program-transform-name \
1154   | --program-transform-nam | --program-transform-na \
1155   | --program-transform-n | --program-transform- \
1156   | --program-transform | --program-transfor \
1157   | --program-transfo | --program-transf \
1158   | --program-trans | --program-tran \
1159   | --progr-tra | --program-tr | --program-t)
1160     ac_prev=program_transform_name ;;
1161   -program-transform-name=* | --program-transform-name=* \
1162   | --program-transform-nam=* | --program-transform-na=* \
1163   | --program-transform-n=* | --program-transform-=* \
1164   | --program-transform=* | --program-transfor=* \
1165   | --program-transfo=* | --program-transf=* \
1166   | --program-trans=* | --program-tran=* \
1167   | --progr-tra=* | --program-tr=* | --program-t=*)
1168     program_transform_name=$ac_optarg ;;
1169
1170   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171     ac_prev=pdfdir ;;
1172   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173     pdfdir=$ac_optarg ;;
1174
1175   -psdir | --psdir | --psdi | --psd | --ps)
1176     ac_prev=psdir ;;
1177   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178     psdir=$ac_optarg ;;
1179
1180   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181   | -silent | --silent | --silen | --sile | --sil)
1182     silent=yes ;;
1183
1184   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185     ac_prev=sbindir ;;
1186   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187   | --sbi=* | --sb=*)
1188     sbindir=$ac_optarg ;;
1189
1190   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192   | --sharedst | --shareds | --shared | --share | --shar \
1193   | --sha | --sh)
1194     ac_prev=sharedstatedir ;;
1195   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198   | --sha=* | --sh=*)
1199     sharedstatedir=$ac_optarg ;;
1200
1201   -site | --site | --sit)
1202     ac_prev=site ;;
1203   -site=* | --site=* | --sit=*)
1204     site=$ac_optarg ;;
1205
1206   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207     ac_prev=srcdir ;;
1208   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209     srcdir=$ac_optarg ;;
1210
1211   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212   | --syscon | --sysco | --sysc | --sys | --sy)
1213     ac_prev=sysconfdir ;;
1214   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216     sysconfdir=$ac_optarg ;;
1217
1218   -target | --target | --targe | --targ | --tar | --ta | --t)
1219     ac_prev=target_alias ;;
1220   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221     target_alias=$ac_optarg ;;
1222
1223   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224     verbose=yes ;;
1225
1226   -version | --version | --versio | --versi | --vers | -V)
1227     ac_init_version=: ;;
1228
1229   -with-* | --with-*)
1230     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       { echo "$as_me: error: invalid package name: $ac_package" >&2
1234    { (exit 1); exit 1; }; }
1235     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236     eval with_$ac_package=\$ac_optarg ;;
1237
1238   -without-* | --without-*)
1239     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       { echo "$as_me: error: invalid package name: $ac_package" >&2
1243    { (exit 1); exit 1; }; }
1244     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245     eval with_$ac_package=no ;;
1246
1247   --x)
1248     # Obsolete; use --with-x.
1249     with_x=yes ;;
1250
1251   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252   | --x-incl | --x-inc | --x-in | --x-i)
1253     ac_prev=x_includes ;;
1254   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256     x_includes=$ac_optarg ;;
1257
1258   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260     ac_prev=x_libraries ;;
1261   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263     x_libraries=$ac_optarg ;;
1264
1265   -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267    { (exit 1); exit 1; }; }
1268     ;;
1269
1270   *=*)
1271     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275    { (exit 1); exit 1; }; }
1276     eval $ac_envvar=\$ac_optarg
1277     export $ac_envvar ;;
1278
1279   *)
1280     # FIXME: should be removed in autoconf 3.0.
1281     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285     ;;
1286
1287   esac
1288 done
1289
1290 if test -n "$ac_prev"; then
1291   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292   { echo "$as_me: error: missing argument to $ac_option" >&2
1293    { (exit 1); exit 1; }; }
1294 fi
1295
1296 # Be sure to have absolute directory names.
1297 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298                 datadir sysconfdir sharedstatedir localstatedir includedir \
1299                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300                 libdir localedir mandir
1301 do
1302   eval ac_val=\$$ac_var
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308    { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323     If a cross compiler is detected then cross compile mode will be used." >&2
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   { echo "$as_me: error: Working directory cannot be determined" >&2
1339    { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   { echo "$as_me: error: pwd does not report name of working directory" >&2
1342    { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$0" : 'X\(//\)[^/]' \| \
1352          X"$0" : 'X\(//\)$' \| \
1353          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1354 echo X"$0" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387    { (exit 1); exit 1; }; }
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures iptables 1.4.9.1 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR           user executables [EPREFIX/bin]
1448   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR       program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR           object code libraries [EPREFIX/lib]
1454   --includedir=DIR       C header files [PREFIX/include]
1455   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR          info documentation [DATAROOTDIR/info]
1459   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR           man documentation [DATAROOTDIR/man]
1461   --docdir=DIR           documentation root [DATAROOTDIR/doc/iptables]
1462   --htmldir=DIR          html documentation [DOCDIR]
1463   --dvidir=DIR           dvi documentation [DOCDIR]
1464   --pdfdir=DIR           pdf documentation [DOCDIR]
1465   --psdir=DIR            ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 Program names:
1471   --program-prefix=PREFIX            prepend PREFIX to installed program names
1472   --program-suffix=SUFFIX            append SUFFIX to installed program names
1473   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475 System types:
1476   --build=BUILD     configure for building on BUILD [guessed]
1477   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of iptables 1.4.9.1:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --disable-dependency-tracking  speeds up one-time build
1491   --enable-dependency-tracking   do not reject slow dependency extractors
1492   --enable-static[=PKGS]  build static libraries [default=no]
1493   --enable-shared[=PKGS]  build shared libraries [default=yes]
1494   --enable-fast-install[=PKGS]
1495                           optimize for fast installation [default=yes]
1496   --disable-libtool-lock  avoid locking (might break parallel builds)
1497   --disable-ipv4          Do not build iptables
1498   --disable-ipv6          Do not build ip6tables
1499   --disable-largefile     Do not build largefile support
1500   --enable-devel          Install Xtables development headers
1501   --enable-libipq         Build and install libipq
1502
1503 Optional Packages:
1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506   --with-pic              try to use only PIC/non-PIC objects [default=use
1507                           both]
1508   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509   --with-kernel=PATH      Path to kernel source/build directory
1510   --with-kbuild=PATH      Path to kernel build directory
1511                           [/lib/modules/CURRENT/build]
1512   --with-ksource=PATH     Path to kernel source directory
1513                           [/lib/modules/CURRENT/source]
1514   --with-xtlibdir=PATH    Path where to install Xtables extensions
1515                           [LIBEXECDIR/xtables]
1516   --with-pkgconfigdir=PATH
1517                           Path to the pkgconfig directory [LIBDIR/pkgconfig]
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CPP         C preprocessor
1528   PKG_CONFIG  path to pkg-config utility
1529   libnfnetlink_CFLAGS
1530               C compiler flags for libnfnetlink, overriding pkg-config
1531   libnfnetlink_LIBS
1532               linker flags for libnfnetlink, overriding pkg-config
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" || continue
1545     ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1551   # A ".." for each directory in $ac_dir_suffix.
1552   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1553   case $ac_top_builddir_sub in
1554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556   esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564   .)  # We are building in place.
1565     ac_srcdir=.
1566     ac_top_srcdir=$ac_top_builddir_sub
1567     ac_abs_top_srcdir=$ac_pwd ;;
1568   [\\/]* | ?:[\\/]* )  # Absolute name.
1569     ac_srcdir=$srcdir$ac_dir_suffix;
1570     ac_top_srcdir=$srcdir
1571     ac_abs_top_srcdir=$srcdir ;;
1572   *) # Relative name.
1573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574     ac_top_srcdir=$ac_top_build_prefix$srcdir
1575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579     cd "$ac_dir" || { ac_status=$?; continue; }
1580     # Check for guested configure.
1581     if test -f "$ac_srcdir/configure.gnu"; then
1582       echo &&
1583       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584     elif test -f "$ac_srcdir/configure"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure" --help=recursive
1587     else
1588       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589     fi || ac_status=$?
1590     cd "$ac_pwd" || { ac_status=$?; break; }
1591   done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596   cat <<\_ACEOF
1597 iptables configure 1.4.9.1
1598 generated by GNU Autoconf 2.61
1599
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605   exit
1606 fi
1607 cat >config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1610
1611 It was created by iptables $as_me 1.4.9.1, which was
1612 generated by GNU Autoconf 2.61.  Invocation command line was
1613
1614   $ $0 $@
1615
1616 _ACEOF
1617 exec 5>>config.log
1618 {
1619 cat <<_ASUNAME
1620 ## --------- ##
1621 ## Platform. ##
1622 ## --------- ##
1623
1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629
1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1632
1633 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1634 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1637 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1638 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1639 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1640
1641 _ASUNAME
1642
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646   IFS=$as_save_IFS
1647   test -z "$as_dir" && as_dir=.
1648   echo "PATH: $as_dir"
1649 done
1650 IFS=$as_save_IFS
1651
1652 } >&5
1653
1654 cat >&5 <<_ACEOF
1655
1656
1657 ## ----------- ##
1658 ## Core tests. ##
1659 ## ----------- ##
1660
1661 _ACEOF
1662
1663
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_configure_args=
1670 ac_configure_args0=
1671 ac_configure_args1=
1672 ac_must_keep_next=false
1673 for ac_pass in 1 2
1674 do
1675   for ac_arg
1676   do
1677     case $ac_arg in
1678     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680     | -silent | --silent | --silen | --sile | --sil)
1681       continue ;;
1682     *\'*)
1683       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684     esac
1685     case $ac_pass in
1686     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687     2)
1688       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689       if test $ac_must_keep_next = true; then
1690         ac_must_keep_next=false # Got value, back to normal.
1691       else
1692         case $ac_arg in
1693           *=* | --config-cache | -C | -disable-* | --disable-* \
1694           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696           | -with-* | --with-* | -without-* | --without-* | --x)
1697             case "$ac_configure_args0 " in
1698               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699             esac
1700             ;;
1701           -* ) ac_must_keep_next=true ;;
1702         esac
1703       fi
1704       ac_configure_args="$ac_configure_args '$ac_arg'"
1705       ;;
1706     esac
1707   done
1708 done
1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log.  We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718   # Save into config.log some information that might help in debugging.
1719   {
1720     echo
1721
1722     cat <<\_ASBOX
1723 ## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##
1726 _ASBOX
1727     echo
1728     # The following way of writing the cache mishandles newlines in values,
1729 (
1730   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731     eval ac_val=\$$ac_var
1732     case $ac_val in #(
1733     *${as_nl}*)
1734       case $ac_var in #(
1735       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1736 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1737       esac
1738       case $ac_var in #(
1739       _ | IFS | as_nl) ;; #(
1740       *) $as_unset $ac_var ;;
1741       esac ;;
1742     esac
1743   done
1744   (set) 2>&1 |
1745     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746     *${as_nl}ac_space=\ *)
1747       sed -n \
1748         "s/'\''/'\''\\\\'\'''\''/g;
1749           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750       ;; #(
1751     *)
1752       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753       ;;
1754     esac |
1755     sort
1756 )
1757     echo
1758
1759     cat <<\_ASBOX
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1763 _ASBOX
1764     echo
1765     for ac_var in $ac_subst_vars
1766     do
1767       eval ac_val=\$$ac_var
1768       case $ac_val in
1769       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770       esac
1771       echo "$ac_var='\''$ac_val'\''"
1772     done | sort
1773     echo
1774
1775     if test -n "$ac_subst_files"; then
1776       cat <<\_ASBOX
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1780 _ASBOX
1781       echo
1782       for ac_var in $ac_subst_files
1783       do
1784         eval ac_val=\$$ac_var
1785         case $ac_val in
1786         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787         esac
1788         echo "$ac_var='\''$ac_val'\''"
1789       done | sort
1790       echo
1791     fi
1792
1793     if test -s confdefs.h; then
1794       cat <<\_ASBOX
1795 ## ----------- ##
1796 ## confdefs.h. ##
1797 ## ----------- ##
1798 _ASBOX
1799       echo
1800       cat confdefs.h
1801       echo
1802     fi
1803     test "$ac_signal" != 0 &&
1804       echo "$as_me: caught signal $ac_signal"
1805     echo "$as_me: exit $exit_status"
1806   } >&5
1807   rm -f core *.core core.conftest.* &&
1808     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809     exit $exit_status
1810 ' 0
1811 for ac_signal in 1 2 13 15; do
1812   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 done
1814 ac_signal=0
1815
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1818
1819 # Predefined preprocessor variables.
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 _ACEOF
1844
1845
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer explicitly selected file to automatically selected ones.
1848 if test -n "$CONFIG_SITE"; then
1849   set x "$CONFIG_SITE"
1850 elif test "x$prefix" != xNONE; then
1851   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1852 else
1853   set x "$ac_default_prefix/share/config.site" \
1854         "$ac_default_prefix/etc/config.site"
1855 fi
1856 shift
1857 for ac_site_file
1858 do
1859   if test -r "$ac_site_file"; then
1860     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861 echo "$as_me: loading site script $ac_site_file" >&6;}
1862     sed 's/^/| /' "$ac_site_file" >&5
1863     . "$ac_site_file"
1864   fi
1865 done
1866
1867 if test -r "$cache_file"; then
1868   # Some versions of bash will fail to source /dev/null (special
1869   # files actually), so we avoid doing that.
1870   if test -f "$cache_file"; then
1871     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872 echo "$as_me: loading cache $cache_file" >&6;}
1873     case $cache_file in
1874       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875       *)                      . "./$cache_file";;
1876     esac
1877   fi
1878 else
1879   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880 echo "$as_me: creating cache $cache_file" >&6;}
1881   >$cache_file
1882 fi
1883
1884 # Check that the precious variables saved in the cache have kept the same
1885 # value.
1886 ac_cache_corrupted=false
1887 for ac_var in $ac_precious_vars; do
1888   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889   eval ac_new_set=\$ac_env_${ac_var}_set
1890   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891   eval ac_new_val=\$ac_env_${ac_var}_value
1892   case $ac_old_set,$ac_new_set in
1893     set,)
1894       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1895 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896       ac_cache_corrupted=: ;;
1897     ,set)
1898       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1900       ac_cache_corrupted=: ;;
1901     ,);;
1902     *)
1903       if test "x$ac_old_val" != "x$ac_new_val"; then
1904         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1907 echo "$as_me:   former value:  $ac_old_val" >&2;}
1908         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1909 echo "$as_me:   current value: $ac_new_val" >&2;}
1910         ac_cache_corrupted=:
1911       fi;;
1912   esac
1913   # Pass precious variables to config.status.
1914   if test "$ac_new_set" = set; then
1915     case $ac_new_val in
1916     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1917     *) ac_arg=$ac_var=$ac_new_val ;;
1918     esac
1919     case " $ac_configure_args " in
1920       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1921       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922     esac
1923   fi
1924 done
1925 if $ac_cache_corrupted; then
1926   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1927 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1928   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1929 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1930    { (exit 1); exit 1; }; }
1931 fi
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 ac_ext=c
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962
1963
1964
1965 # See libtool.info "Libtool's versioning system"
1966 libxtables_vcurrent=5
1967 libxtables_vage=0
1968
1969 ac_config_headers="$ac_config_headers config.h"
1970
1971
1972 ac_aux_dir=
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974   if test -f "$ac_dir/install-sh"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/install-sh -c"
1977     break
1978   elif test -f "$ac_dir/install.sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install.sh -c"
1981     break
1982   elif test -f "$ac_dir/shtool"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/shtool install -c"
1985     break
1986   fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003 # Find a good install program.  We prefer a C program (faster),
2004 # so one script is as good as another.  But avoid the broken or
2005 # incompatible versions:
2006 # SysV /etc/install, /usr/sbin/install
2007 # SunOS /usr/etc/install
2008 # IRIX /sbin/install
2009 # AIX /bin/install
2010 # AmigaOS /C/install, which installs bootblocks on floppy discs
2011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2014 # OS/2's system install, which has a completely different semantic
2015 # ./install, which can be erroneously created by make from ./install.sh.
2016 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2017 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2018 if test -z "$INSTALL"; then
2019 if test "${ac_cv_path_install+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   # Account for people who put trailing slashes in PATH elements.
2028 case $as_dir/ in
2029   ./ | .// | /cC/* | \
2030   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2031   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2032   /usr/ucb/* ) ;;
2033   *)
2034     # OSF1 and SCO ODT 3.0 have their own names for install.
2035     # Don't use installbsd from OSF since it installs stuff as root
2036     # by default.
2037     for ac_prog in ginstall scoinst install; do
2038       for ac_exec_ext in '' $ac_executable_extensions; do
2039         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2040           if test $ac_prog = install &&
2041             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042             # AIX install.  It has an incompatible calling convention.
2043             :
2044           elif test $ac_prog = install &&
2045             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046             # program-specific install script used by HP pwplus--don't use.
2047             :
2048           else
2049             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2050             break 3
2051           fi
2052         fi
2053       done
2054     done
2055     ;;
2056 esac
2057 done
2058 IFS=$as_save_IFS
2059
2060
2061 fi
2062   if test "${ac_cv_path_install+set}" = set; then
2063     INSTALL=$ac_cv_path_install
2064   else
2065     # As a last resort, use the slow shell script.  Don't cache a
2066     # value for INSTALL within a source directory, because that will
2067     # break other packages using the cache if that directory is
2068     # removed, or if the value is a relative name.
2069     INSTALL=$ac_install_sh
2070   fi
2071 fi
2072 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2073 echo "${ECHO_T}$INSTALL" >&6; }
2074
2075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2076 # It thinks the first close brace ends the variable substitution.
2077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2078
2079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2080
2081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2082
2083 am__api_version='1.10'
2084
2085 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087 # Just in case
2088 sleep 1
2089 echo timestamp > conftest.file
2090 # Do `set' in a subshell so we don't clobber the current shell's
2091 # arguments.  Must try -L first in case configure is actually a
2092 # symlink; some systems play weird games with the mod time of symlinks
2093 # (eg FreeBSD returns the mod time of the symlink's containing
2094 # directory).
2095 if (
2096    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097    if test "$*" = "X"; then
2098       # -L didn't work.
2099       set X `ls -t $srcdir/configure conftest.file`
2100    fi
2101    rm -f conftest.file
2102    if test "$*" != "X $srcdir/configure conftest.file" \
2103       && test "$*" != "X conftest.file $srcdir/configure"; then
2104
2105       # If neither matched, then we have a broken ls.  This can happen
2106       # if, for instance, CONFIG_SHELL is bash and it inherits a
2107       # broken ls alias from the environment.  This has actually
2108       # happened.  Such a system could not be considered "sane".
2109       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2110 alias in your environment" >&5
2111 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2112 alias in your environment" >&2;}
2113    { (exit 1); exit 1; }; }
2114    fi
2115
2116    test "$2" = conftest.file
2117    )
2118 then
2119    # Ok.
2120    :
2121 else
2122    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123 Check your system clock" >&5
2124 echo "$as_me: error: newly created file is older than distributed files!
2125 Check your system clock" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128 { echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6; }
2130 test "$program_prefix" != NONE &&
2131   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132 # Use a double $ so make ignores it.
2133 test "$program_suffix" != NONE &&
2134   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135 # Double any \ or $.  echo might interpret backslashes.
2136 # By default was `s,x,x', remove it if useless.
2137 cat <<\_ACEOF >conftest.sed
2138 s/[\\$]/&&/g;s/;s,x,x,$//
2139 _ACEOF
2140 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141 rm -f conftest.sed
2142
2143 # expand $ac_aux_dir to an absolute path
2144 am_aux_dir=`cd $ac_aux_dir && pwd`
2145
2146 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147 # Use eval to expand $SHELL
2148 if eval "$MISSING --run true"; then
2149   am_missing_run="$MISSING --run "
2150 else
2151   am_missing_run=
2152   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154 fi
2155
2156 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158 if test -z "$MKDIR_P"; then
2159   if test "${ac_cv_path_mkdir+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_prog in mkdir gmkdir; do
2168          for ac_exec_ext in '' $ac_executable_extensions; do
2169            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171              'mkdir (GNU coreutils) '* | \
2172              'mkdir (coreutils) '* | \
2173              'mkdir (fileutils) '4.1*)
2174                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2175                break 3;;
2176            esac
2177          done
2178        done
2179 done
2180 IFS=$as_save_IFS
2181
2182 fi
2183
2184   if test "${ac_cv_path_mkdir+set}" = set; then
2185     MKDIR_P="$ac_cv_path_mkdir -p"
2186   else
2187     # As a last resort, use the slow shell script.  Don't cache a
2188     # value for MKDIR_P within a source directory, because that will
2189     # break other packages using the cache if that directory is
2190     # removed, or if the value is a relative name.
2191     test -d ./--version && rmdir ./--version
2192     MKDIR_P="$ac_install_sh -d"
2193   fi
2194 fi
2195 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196 echo "${ECHO_T}$MKDIR_P" >&6; }
2197
2198 mkdir_p="$MKDIR_P"
2199 case $mkdir_p in
2200   [\\/$]* | ?:[\\/]*) ;;
2201   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202 esac
2203
2204 for ac_prog in gawk mawk nawk awk
2205 do
2206   # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_AWK+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$AWK"; then
2214   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223     ac_cv_prog_AWK="$ac_prog"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229 IFS=$as_save_IFS
2230
2231 fi
2232 fi
2233 AWK=$ac_cv_prog_AWK
2234 if test -n "$AWK"; then
2235   { echo "$as_me:$LINENO: result: $AWK" >&5
2236 echo "${ECHO_T}$AWK" >&6; }
2237 else
2238   { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 fi
2241
2242
2243   test -n "$AWK" && break
2244 done
2245
2246 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   cat >conftest.make <<\_ACEOF
2253 SHELL = /bin/sh
2254 all:
2255         @echo '@@@%%%=$(MAKE)=@@@%%%'
2256 _ACEOF
2257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259   *@@@%%%=?*=@@@%%%*)
2260     eval ac_cv_prog_make_${ac_make}_set=yes;;
2261   *)
2262     eval ac_cv_prog_make_${ac_make}_set=no;;
2263 esac
2264 rm -f conftest.make
2265 fi
2266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267   { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2269   SET_MAKE=
2270 else
2271   { echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6; }
2273   SET_MAKE="MAKE=${MAKE-make}"
2274 fi
2275
2276 rm -rf .tst 2>/dev/null
2277 mkdir .tst 2>/dev/null
2278 if test -d .tst; then
2279   am__leading_dot=.
2280 else
2281   am__leading_dot=_
2282 fi
2283 rmdir .tst 2>/dev/null
2284
2285 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287   # is not polluted with repeated "-I."
2288   am__isrc=' -I$(srcdir)'
2289   # test to see if srcdir already configured
2290   if test -f $srcdir/config.status; then
2291     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293    { (exit 1); exit 1; }; }
2294   fi
2295 fi
2296
2297 # test whether we have cygpath
2298 if test -z "$CYGPATH_W"; then
2299   if (cygpath --version) >/dev/null 2>/dev/null; then
2300     CYGPATH_W='cygpath -w'
2301   else
2302     CYGPATH_W=echo
2303   fi
2304 fi
2305
2306
2307 # Define the identity of the package.
2308  PACKAGE='iptables'
2309  VERSION='1.4.9.1'
2310
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE "$PACKAGE"
2314 _ACEOF
2315
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define VERSION "$VERSION"
2319 _ACEOF
2320
2321 # Some tools Automake needs.
2322
2323 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324
2325
2326 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327
2328
2329 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330
2331
2332 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333
2334
2335 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336
2337 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338
2339 # Installed binaries are usually stripped using `strip' when the user
2340 # run `make install-strip'.  However `strip' might not be the right
2341 # tool to use in cross-compilation environments, therefore Automake
2342 # will honor the `STRIP' environment variable to overrule this program.
2343 if test "$cross_compiling" != no; then
2344   if test -n "$ac_tool_prefix"; then
2345   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_STRIP+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$STRIP"; then
2353   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 STRIP=$ac_cv_prog_STRIP
2373 if test -n "$STRIP"; then
2374   { echo "$as_me:$LINENO: result: $STRIP" >&5
2375 echo "${ECHO_T}$STRIP" >&6; }
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381
2382 fi
2383 if test -z "$ac_cv_prog_STRIP"; then
2384   ac_ct_STRIP=$STRIP
2385   # Extract the first word of "strip", so it can be a program name with args.
2386 set dummy strip; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$ac_ct_STRIP"; then
2393   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402     ac_cv_prog_ac_ct_STRIP="strip"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408 IFS=$as_save_IFS
2409
2410 fi
2411 fi
2412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413 if test -n "$ac_ct_STRIP"; then
2414   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416 else
2417   { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2419 fi
2420
2421   if test "x$ac_ct_STRIP" = x; then
2422     STRIP=":"
2423   else
2424     case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet.  If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet.  If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434     STRIP=$ac_ct_STRIP
2435   fi
2436 else
2437   STRIP="$ac_cv_prog_STRIP"
2438 fi
2439
2440 fi
2441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443 # We need awk for the "check" target.  The system "awk" is bad on
2444 # some platforms.
2445 # Always define AMTAR for backward compatibility.
2446
2447 AMTAR=${AMTAR-"${am_missing_run}tar"}
2448
2449 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450
2451
2452
2453
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460 if test -n "$ac_tool_prefix"; then
2461   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$CC"; then
2469   ac_cv_prog_CC="$CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 CC=$ac_cv_prog_CC
2489 if test -n "$CC"; then
2490   { echo "$as_me:$LINENO: result: $CC" >&5
2491 echo "${ECHO_T}$CC" >&6; }
2492 else
2493   { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2495 fi
2496
2497
2498 fi
2499 if test -z "$ac_cv_prog_CC"; then
2500   ac_ct_CC=$CC
2501   # Extract the first word of "gcc", so it can be a program name with args.
2502 set dummy gcc; ac_word=$2
2503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test -n "$ac_ct_CC"; then
2509   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518     ac_cv_prog_ac_ct_CC="gcc"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524 IFS=$as_save_IFS
2525
2526 fi
2527 fi
2528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529 if test -n "$ac_ct_CC"; then
2530   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2531 echo "${ECHO_T}$ac_ct_CC" >&6; }
2532 else
2533   { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 fi
2536
2537   if test "x$ac_ct_CC" = x; then
2538     CC=""
2539   else
2540     case $cross_compiling:$ac_tool_warned in
2541 yes:)
2542 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet.  If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&5
2545 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet.  If you think this
2547 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2548 ac_tool_warned=yes ;;
2549 esac
2550     CC=$ac_ct_CC
2551   fi
2552 else
2553   CC="$ac_cv_prog_CC"
2554 fi
2555
2556 if test -z "$CC"; then
2557           if test -n "$ac_tool_prefix"; then
2558     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}cc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   if test -n "$CC"; then
2566   ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     ac_cv_prog_CC="${ac_tool_prefix}cc"
2576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590   { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595   fi
2596 fi
2597 if test -z "$CC"; then
2598   # Extract the first word of "cc", so it can be a program name with args.
2599 set dummy cc; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   if test -n "$CC"; then
2606   ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608   ac_prog_rejected=no
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2617        ac_prog_rejected=yes
2618        continue
2619      fi
2620     ac_cv_prog_CC="cc"
2621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 if test $ac_prog_rejected = yes; then
2629   # We found a bogon in the path, so make sure we never use it.
2630   set dummy $ac_cv_prog_CC
2631   shift
2632   if test $# != 0; then
2633     # We chose a different compiler from the bogus one.
2634     # However, it has the same basename, so the bogon will be chosen
2635     # first if we set CC to just the basename; use the full file name.
2636     shift
2637     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2638   fi
2639 fi
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644   { echo "$as_me:$LINENO: result: $CC" >&5
2645 echo "${ECHO_T}$CC" >&6; }
2646 else
2647   { echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6; }
2649 fi
2650
2651
2652 fi
2653 if test -z "$CC"; then
2654   if test -n "$ac_tool_prefix"; then
2655   for ac_prog in cl.exe
2656   do
2657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   if test -n "$CC"; then
2665   ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672   for ac_exec_ext in '' $ac_executable_extensions; do
2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686   { echo "$as_me:$LINENO: result: $CC" >&5
2687 echo "${ECHO_T}$CC" >&6; }
2688 else
2689   { echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6; }
2691 fi
2692
2693
2694     test -n "$CC" && break
2695   done
2696 fi
2697 if test -z "$CC"; then
2698   ac_ct_CC=$CC
2699   for ac_prog in cl.exe
2700 do
2701   # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   if test -n "$ac_ct_CC"; then
2709   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714   IFS=$as_save_IFS
2715   test -z "$as_dir" && as_dir=.
2716   for ac_exec_ext in '' $ac_executable_extensions; do
2717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718     ac_cv_prog_ac_ct_CC="$ac_prog"
2719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720     break 2
2721   fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2729 if test -n "$ac_ct_CC"; then
2730   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2731 echo "${ECHO_T}$ac_ct_CC" >&6; }
2732 else
2733   { echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6; }
2735 fi
2736
2737
2738   test -n "$ac_ct_CC" && break
2739 done
2740
2741   if test "x$ac_ct_CC" = x; then
2742     CC=""
2743   else
2744     case $cross_compiling:$ac_tool_warned in
2745 yes:)
2746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet.  If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&5
2749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet.  If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2752 ac_tool_warned=yes ;;
2753 esac
2754     CC=$ac_ct_CC
2755   fi
2756 fi
2757
2758 fi
2759
2760
2761 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2762 See \`config.log' for more details." >&5
2763 echo "$as_me: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&2;}
2765    { (exit 1); exit 1; }; }
2766
2767 # Provide some information about the compiler.
2768 echo "$as_me:$LINENO: checking for C compiler version" >&5
2769 ac_compiler=`set X $ac_compile; echo $2`
2770 { (ac_try="$ac_compiler --version >&5"
2771 case "(($ac_try" in
2772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773   *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776   (eval "$ac_compiler --version >&5") 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }
2780 { (ac_try="$ac_compiler -v >&5"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_compiler -v >&5") 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }
2790 { (ac_try="$ac_compiler -V >&5"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_compiler -V >&5") 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }
2800
2801 cat >conftest.$ac_ext <<_ACEOF
2802 /* confdefs.h.  */
2803 _ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h.  */
2807
2808 int
2809 main ()
2810 {
2811
2812   ;
2813   return 0;
2814 }
2815 _ACEOF
2816 ac_clean_files_save=$ac_clean_files
2817 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2818 # Try to create an executable without -o first, disregard a.out.
2819 # It will help us diagnose broken compilers, and finding out an intuition
2820 # of exeext.
2821 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2822 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2823 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2824 #
2825 # List of possible output files, starting from the most likely.
2826 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2827 # only as a last resort.  b.out is created by i960 compilers.
2828 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2829 #
2830 # The IRIX 6 linker writes into existing files which may not be
2831 # executable, retaining their permissions.  Remove them first so a
2832 # subsequent execution test works.
2833 ac_rmfiles=
2834 for ac_file in $ac_files
2835 do
2836   case $ac_file in
2837     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2838     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2839   esac
2840 done
2841 rm -f $ac_rmfiles
2842
2843 if { (ac_try="$ac_link_default"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_link_default") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; then
2853   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2855 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2856 # so that the user can short-circuit this test for compilers unknown to
2857 # Autoconf.
2858 for ac_file in $ac_files ''
2859 do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2863         ;;
2864     [ab].out )
2865         # We found the default executable, but exeext='' is most
2866         # certainly right.
2867         break;;
2868     *.* )
2869         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2870         then :; else
2871            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872         fi
2873         # We set ac_cv_exeext here because the later test for it is not
2874         # safe: cross compilers may not add the suffix if given an `-o'
2875         # argument, so we may need to know it at that point already.
2876         # Even if this section looks crufty: it has the advantage of
2877         # actually working.
2878         break;;
2879     * )
2880         break;;
2881   esac
2882 done
2883 test "$ac_cv_exeext" = no && ac_cv_exeext=
2884
2885 else
2886   ac_file=''
2887 fi
2888
2889 { echo "$as_me:$LINENO: result: $ac_file" >&5
2890 echo "${ECHO_T}$ac_file" >&6; }
2891 if test -z "$ac_file"; then
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: C compiler cannot create executables
2898 See \`config.log' for more details." >&2;}
2899    { (exit 77); exit 77; }; }
2900 fi
2901
2902 ac_exeext=$ac_cv_exeext
2903
2904 # Check that the compiler produces executables we can run.  If not, either
2905 # the compiler is broken, or we cross compile.
2906 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2907 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2908 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2909 # If not cross compiling, check that we can run a simple program.
2910 if test "$cross_compiling" != yes; then
2911   if { ac_try='./$ac_file'
2912   { (case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_try") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; }; then
2921     cross_compiling=no
2922   else
2923     if test "$cross_compiling" = maybe; then
2924         cross_compiling=yes
2925     else
2926         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2927 If you meant to cross compile, use \`--host'.
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot run C compiled programs.
2930 If you meant to cross compile, use \`--host'.
2931 See \`config.log' for more details." >&2;}
2932    { (exit 1); exit 1; }; }
2933     fi
2934   fi
2935 fi
2936 { echo "$as_me:$LINENO: result: yes" >&5
2937 echo "${ECHO_T}yes" >&6; }
2938
2939 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2940 ac_clean_files=$ac_clean_files_save
2941 # Check that the compiler produces executables we can run.  If not, either
2942 # the compiler is broken, or we cross compile.
2943 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2944 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2945 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2946 echo "${ECHO_T}$cross_compiling" >&6; }
2947
2948 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2949 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2950 if { (ac_try="$ac_link"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_link") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; then
2960   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2961 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2962 # work properly (i.e., refer to `conftest.exe'), while it won't with
2963 # `rm'.
2964 for ac_file in conftest.exe conftest conftest.*; do
2965   test -f "$ac_file" || continue
2966   case $ac_file in
2967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2968     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969           break;;
2970     * ) break;;
2971   esac
2972 done
2973 else
2974   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2975 See \`config.log' for more details." >&5
2976 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details." >&2;}
2978    { (exit 1); exit 1; }; }
2979 fi
2980
2981 rm -f conftest$ac_cv_exeext
2982 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2983 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2984
2985 rm -f conftest.$ac_ext
2986 EXEEXT=$ac_cv_exeext
2987 ac_exeext=$EXEEXT
2988 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2989 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2990 if test "${ac_cv_objext+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003
3004   ;
3005   return 0;
3006 }
3007 _ACEOF
3008 rm -f conftest.o conftest.obj
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_compile") 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; then
3019   for ac_file in conftest.o conftest.obj conftest.*; do
3020   test -f "$ac_file" || continue;
3021   case $ac_file in
3022     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3023     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3024        break;;
3025   esac
3026 done
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3032 See \`config.log' for more details." >&5
3033 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details." >&2;}
3035    { (exit 1); exit 1; }; }
3036 fi
3037
3038 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039 fi
3040 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3041 echo "${ECHO_T}$ac_cv_objext" >&6; }
3042 OBJEXT=$ac_cv_objext
3043 ac_objext=$OBJEXT
3044 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3045 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3046 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059 #ifndef __GNUC__
3060        choke me
3061 #endif
3062
3063   ;
3064   return 0;
3065 }
3066 _ACEOF
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_compile") 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } && {
3081          test -z "$ac_c_werror_flag" ||
3082          test ! -s conftest.err
3083        } && test -s conftest.$ac_objext; then
3084   ac_compiler_gnu=yes
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089         ac_compiler_gnu=no
3090 fi
3091
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3094
3095 fi
3096 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3097 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3098 GCC=`test $ac_compiler_gnu = yes && echo yes`
3099 ac_test_CFLAGS=${CFLAGS+set}
3100 ac_save_CFLAGS=$CFLAGS
3101 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3102 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_cc_g+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   ac_save_c_werror_flag=$ac_c_werror_flag
3107    ac_c_werror_flag=yes
3108    ac_cv_prog_cc_g=no
3109    CFLAGS="-g"
3110    cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } && {
3139          test -z "$ac_c_werror_flag" ||
3140          test ! -s conftest.err
3141        } && test -s conftest.$ac_objext; then
3142   ac_cv_prog_cc_g=yes
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         CFLAGS=""
3148       cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compile") 2>conftest.er1
3171   ac_status=$?
3172   grep -v '^ *+' conftest.er1 >conftest.err
3173   rm -f conftest.er1
3174   cat conftest.err >&5
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } && {
3177          test -z "$ac_c_werror_flag" ||
3178          test ! -s conftest.err
3179        } && test -s conftest.$ac_objext; then
3180   :
3181 else
3182   echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3184
3185         ac_c_werror_flag=$ac_save_c_werror_flag
3186          CFLAGS="-g"
3187          cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h.  */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193
3194 int
3195 main ()
3196 {
3197
3198   ;
3199   return 0;
3200 }
3201 _ACEOF
3202 rm -f conftest.$ac_objext
3203 if { (ac_try="$ac_compile"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209   (eval "$ac_compile") 2>conftest.er1
3210   ac_status=$?
3211   grep -v '^ *+' conftest.er1 >conftest.err
3212   rm -f conftest.er1
3213   cat conftest.err >&5
3214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215   (exit $ac_status); } && {
3216          test -z "$ac_c_werror_flag" ||
3217          test ! -s conftest.err
3218        } && test -s conftest.$ac_objext; then
3219   ac_cv_prog_cc_g=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234    ac_c_werror_flag=$ac_save_c_werror_flag
3235 fi
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239   CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241   if test "$GCC" = yes; then
3242     CFLAGS="-g -O2"
3243   else
3244     CFLAGS="-g"
3245   fi
3246 else
3247   if test "$GCC" = yes; then
3248     CFLAGS="-O2"
3249   else
3250     CFLAGS=
3251   fi
3252 fi
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   ac_cv_prog_cc_c89=no
3259 ac_save_CC=$CC
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3274      char **p;
3275      int i;
3276 {
3277   return p[i];
3278 }
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3280 {
3281   char *s;
3282   va_list v;
3283   va_start (v,p);
3284   s = g (p, va_arg (v,int));
3285   va_end (v);
3286   return s;
3287 }
3288
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3290    function prototypes and stuff, but not '\xHH' hex character constants.
3291    These don't provoke an error unfortunately, instead are silently treated
3292    as 'x'.  The following induces an error, until -std is added to get
3293    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3294    array size at least.  It's necessary to write '\x00'==0 to get something
3295    that's true only with -std.  */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299    inside strings and character constants.  */
3300 #define FOO(x) 'x'
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 int argc;
3308 char **argv;
3309 int
3310 main ()
3311 {
3312 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 do
3320   CC="$ac_save_CC $ac_arg"
3321   rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } && {
3335          test -z "$ac_c_werror_flag" ||
3336          test ! -s conftest.err
3337        } && test -s conftest.$ac_objext; then
3338   ac_cv_prog_cc_c89=$ac_arg
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343
3344 fi
3345
3346 rm -f core conftest.err conftest.$ac_objext
3347   test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 done
3349 rm -f conftest.$ac_ext
3350 CC=$ac_save_CC
3351
3352 fi
3353 # AC_CACHE_VAL
3354 case "x$ac_cv_prog_cc_c89" in
3355   x)
3356     { echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6; } ;;
3358   xno)
3359     { echo "$as_me:$LINENO: result: unsupported" >&5
3360 echo "${ECHO_T}unsupported" >&6; } ;;
3361   *)
3362     CC="$CC $ac_cv_prog_cc_c89"
3363     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365 esac
3366
3367
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 DEPDIR="${am__leading_dot}deps"
3374
3375 ac_config_commands="$ac_config_commands depfiles"
3376
3377
3378 am_make=${MAKE-make}
3379 cat > confinc << 'END'
3380 am__doit:
3381         @echo done
3382 .PHONY: am__doit
3383 END
3384 # If we don't find an include directive, just comment out the code.
3385 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3386 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3387 am__include="#"
3388 am__quote=
3389 _am_result=none
3390 # First try GNU make style include.
3391 echo "include confinc" > confmf
3392 # We grep out `Entering directory' and `Leaving directory'
3393 # messages which can occur if `w' ends up in MAKEFLAGS.
3394 # In particular we don't look at `^make:' because GNU make might
3395 # be invoked under some other name (usually "gmake"), in which
3396 # case it prints its new name instead of `make'.
3397 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3398    am__include=include
3399    am__quote=
3400    _am_result=GNU
3401 fi
3402 # Now try BSD make style include.
3403 if test "$am__include" = "#"; then
3404    echo '.include "confinc"' > confmf
3405    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3406       am__include=.include
3407       am__quote="\""
3408       _am_result=BSD
3409    fi
3410 fi
3411
3412
3413 { echo "$as_me:$LINENO: result: $_am_result" >&5
3414 echo "${ECHO_T}$_am_result" >&6; }
3415 rm -f confinc confmf
3416
3417 # Check whether --enable-dependency-tracking was given.
3418 if test "${enable_dependency_tracking+set}" = set; then
3419   enableval=$enable_dependency_tracking;
3420 fi
3421
3422 if test "x$enable_dependency_tracking" != xno; then
3423   am_depcomp="$ac_aux_dir/depcomp"
3424   AMDEPBACKSLASH='\'
3425 fi
3426  if test "x$enable_dependency_tracking" != xno; then
3427   AMDEP_TRUE=
3428   AMDEP_FALSE='#'
3429 else
3430   AMDEP_TRUE='#'
3431   AMDEP_FALSE=
3432 fi
3433
3434
3435
3436 depcc="$CC"   am_compiler_list=
3437
3438 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444   # We make a subdir and do the tests there.  Otherwise we can end up
3445   # making bogus files that we don't know about and never remove.  For
3446   # instance it was reported that on HP-UX the gcc test will end up
3447   # making a dummy file named `D' -- because `-MD' means `put the output
3448   # in D'.
3449   mkdir conftest.dir
3450   # Copy depcomp to subdir because otherwise we won't find it if we're
3451   # using a relative directory.
3452   cp "$am_depcomp" conftest.dir
3453   cd conftest.dir
3454   # We will build objects and dependencies in a subdirectory because
3455   # it helps to detect inapplicable dependency modes.  For instance
3456   # both Tru64's cc and ICC support -MD to output dependencies as a
3457   # side effect of compilation, but ICC will put the dependencies in
3458   # the current directory while Tru64 will put them in the object
3459   # directory.
3460   mkdir sub
3461
3462   am_cv_CC_dependencies_compiler_type=none
3463   if test "$am_compiler_list" = ""; then
3464      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3465   fi
3466   for depmode in $am_compiler_list; do
3467     # Setup a source with many dependencies, because some compilers
3468     # like to wrap large dependency lists on column 80 (with \), and
3469     # we should not choose a depcomp mode which is confused by this.
3470     #
3471     # We need to recreate these files for each test, as the compiler may
3472     # overwrite some of them when testing with obscure command lines.
3473     # This happens at least with the AIX C compiler.
3474     : > sub/conftest.c
3475     for i in 1 2 3 4 5 6; do
3476       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3478       # Solaris 8's {/usr,}/bin/sh.
3479       touch sub/conftst$i.h
3480     done
3481     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482
3483     case $depmode in
3484     nosideeffect)
3485       # after this tag, mechanisms are not by side-effect, so they'll
3486       # only be used when explicitly requested
3487       if test "x$enable_dependency_tracking" = xyes; then
3488         continue
3489       else
3490         break
3491       fi
3492       ;;
3493     none) break ;;
3494     esac
3495     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496     # mode.  It turns out that the SunPro C++ compiler does not properly
3497     # handle `-M -o', and we need to detect this.
3498     if depmode=$depmode \
3499        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502          >/dev/null 2>conftest.err &&
3503        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3504        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3505        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3506        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3507       # icc doesn't choke on unknown options, it will just issue warnings
3508       # or remarks (even with -Werror).  So we grep stderr for any message
3509       # that says an option was ignored or not supported.
3510       # When given -MP, icc 7.0 and 7.1 complain thusly:
3511       #   icc: Command line warning: ignoring option '-M'; no argument required
3512       # The diagnosis changed in icc 8.0:
3513       #   icc: Command line remark: option '-MP' not supported
3514       if (grep 'ignoring option' conftest.err ||
3515           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3516         am_cv_CC_dependencies_compiler_type=$depmode
3517         break
3518       fi
3519     fi
3520   done
3521
3522   cd ..
3523   rm -rf conftest.dir
3524 else
3525   am_cv_CC_dependencies_compiler_type=none
3526 fi
3527
3528 fi
3529 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3530 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3532
3533  if
3534   test "x$enable_dependency_tracking" != xno \
3535   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3536   am__fastdepCC_TRUE=
3537   am__fastdepCC_FALSE='#'
3538 else
3539   am__fastdepCC_TRUE='#'
3540   am__fastdepCC_FALSE=
3541 fi
3542
3543
3544 if test "x$CC" != xcc; then
3545   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3546 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3547 else
3548   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3549 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3550 fi
3551 set dummy $CC; ac_cc=`echo $2 |
3552                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3553 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 # Make sure it works both with $CC and with simple cc.
3572 # We do the test twice because some compilers refuse to overwrite an
3573 # existing .o file with -o, though they will create one.
3574 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3575 rm -f conftest2.*
3576 if { (case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_try") 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); } &&
3585    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_try") 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); };
3594 then
3595   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3596   if test "x$CC" != xcc; then
3597     # Test first that cc exists at all.
3598     if { ac_try='cc -c conftest.$ac_ext >&5'
3599   { (case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604   (eval "$ac_try") 2>&5
3605   ac_status=$?
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); }; }; then
3608       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3609       rm -f conftest2.*
3610       if { (case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_try") 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } &&
3619          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624   (eval "$ac_try") 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); };
3628       then
3629         # cc works too.
3630         :
3631       else
3632         # cc exists but doesn't like -o.
3633         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3634       fi
3635     fi
3636   fi
3637 else
3638   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3639 fi
3640 rm -f core conftest*
3641
3642 fi
3643 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3644   { echo "$as_me:$LINENO: result: yes" >&5
3645 echo "${ECHO_T}yes" >&6; }
3646 else
3647   { echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6; }
3649
3650 cat >>confdefs.h <<\_ACEOF
3651 #define NO_MINUS_C_MINUS_O 1
3652 _ACEOF
3653
3654 fi
3655
3656 # FIXME: we rely on the cache variable name because
3657 # there is no other way.
3658 set dummy $CC
3659 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3660 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3661 if test "$am_t" != yes; then
3662    # Losing compiler, so override with the script.
3663    # FIXME: It is wrong to rewrite CC.
3664    # But if we don't then we get into trouble of one sort or another.
3665    # A longer-term fix would be to have automake use am__CC in this case,
3666    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3667    CC="$am_aux_dir/compile $CC"
3668 fi
3669
3670
3671 # Check whether --enable-static was given.
3672 if test "${enable_static+set}" = set; then
3673   enableval=$enable_static; p=${PACKAGE-default}
3674     case $enableval in
3675     yes) enable_static=yes ;;
3676     no) enable_static=no ;;
3677     *)
3678      enable_static=no
3679       # Look at the argument we got.  We use all the common list separators.
3680       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681       for pkg in $enableval; do
3682         IFS="$lt_save_ifs"
3683         if test "X$pkg" = "X$p"; then
3684           enable_static=yes
3685         fi
3686       done
3687       IFS="$lt_save_ifs"
3688       ;;
3689     esac
3690 else
3691   enable_static=no
3692 fi
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702 case `pwd` in
3703   *\ * | *\     *)
3704     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3705 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3706 esac
3707
3708
3709
3710 macro_version='2.2.4'
3711 macro_revision='1.2976'
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725 ltmain="$ac_aux_dir/ltmain.sh"
3726
3727 # Make sure we can run config.sub.
3728 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3729   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3730 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3731    { (exit 1); exit 1; }; }
3732
3733 { echo "$as_me:$LINENO: checking build system type" >&5
3734 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3735 if test "${ac_cv_build+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   ac_build_alias=$build_alias
3739 test "x$ac_build_alias" = x &&
3740   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3741 test "x$ac_build_alias" = x &&
3742   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3743 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3744    { (exit 1); exit 1; }; }
3745 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3746   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3747 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3748    { (exit 1); exit 1; }; }
3749
3750 fi
3751 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3752 echo "${ECHO_T}$ac_cv_build" >&6; }
3753 case $ac_cv_build in
3754 *-*-*) ;;
3755 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3756 echo "$as_me: error: invalid value of canonical build" >&2;}
3757    { (exit 1); exit 1; }; };;
3758 esac
3759 build=$ac_cv_build
3760 ac_save_IFS=$IFS; IFS='-'
3761 set x $ac_cv_build
3762 shift
3763 build_cpu=$1
3764 build_vendor=$2
3765 shift; shift
3766 # Remember, the first character of IFS is used to create $*,
3767 # except with old shells:
3768 build_os=$*
3769 IFS=$ac_save_IFS
3770 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3771
3772
3773 { echo "$as_me:$LINENO: checking host system type" >&5
3774 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3775 if test "${ac_cv_host+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if test "x$host_alias" = x; then
3779   ac_cv_host=$ac_cv_build
3780 else
3781   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3782     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3783 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3784    { (exit 1); exit 1; }; }
3785 fi
3786
3787 fi
3788 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3789 echo "${ECHO_T}$ac_cv_host" >&6; }
3790 case $ac_cv_host in
3791 *-*-*) ;;
3792 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3793 echo "$as_me: error: invalid value of canonical host" >&2;}
3794    { (exit 1); exit 1; }; };;
3795 esac
3796 host=$ac_cv_host
3797 ac_save_IFS=$IFS; IFS='-'
3798 set x $ac_cv_host
3799 shift
3800 host_cpu=$1
3801 host_vendor=$2
3802 shift; shift
3803 # Remember, the first character of IFS is used to create $*,
3804 # except with old shells:
3805 host_os=$*
3806 IFS=$ac_save_IFS
3807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3808
3809
3810 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3811 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3812 if test "${ac_cv_path_SED+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3816      for ac_i in 1 2 3 4 5 6 7; do
3817        ac_script="$ac_script$as_nl$ac_script"
3818      done
3819      echo "$ac_script" | sed 99q >conftest.sed
3820      $as_unset ac_script || ac_script=
3821      # Extract the first word of "sed gsed" to use in msg output
3822 if test -z "$SED"; then
3823 set dummy sed gsed; ac_prog_name=$2
3824 if test "${ac_cv_path_SED+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   ac_path_SED_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832   IFS=$as_save_IFS
3833   test -z "$as_dir" && as_dir=.
3834   for ac_prog in sed gsed; do
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3837     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3838     # Check for GNU ac_path_SED and select it if it is found.
3839   # Check for GNU $ac_path_SED
3840 case `"$ac_path_SED" --version 2>&1` in
3841 *GNU*)
3842   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3843 *)
3844   ac_count=0
3845   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3846   while :
3847   do
3848     cat "conftest.in" "conftest.in" >"conftest.tmp"
3849     mv "conftest.tmp" "conftest.in"
3850     cp "conftest.in" "conftest.nl"
3851     echo '' >> "conftest.nl"
3852     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854     ac_count=`expr $ac_count + 1`
3855     if test $ac_count -gt ${ac_path_SED_max-0}; then
3856       # Best one so far, save it but keep looking for a better one
3857       ac_cv_path_SED="$ac_path_SED"
3858       ac_path_SED_max=$ac_count
3859     fi
3860     # 10*(2^10) chars as input seems more than enough
3861     test $ac_count -gt 10 && break
3862   done
3863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864 esac
3865
3866
3867     $ac_path_SED_found && break 3
3868   done
3869 done
3870
3871 done
3872 IFS=$as_save_IFS
3873
3874
3875 fi
3876
3877 SED="$ac_cv_path_SED"
3878 if test -z "$SED"; then
3879   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3880 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3881    { (exit 1); exit 1; }; }
3882 fi
3883
3884 else
3885   ac_cv_path_SED=$SED
3886 fi
3887
3888 fi
3889 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3890 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3891  SED="$ac_cv_path_SED"
3892   rm -f conftest.sed
3893
3894 test -z "$SED" && SED=sed
3895 Xsed="$SED -e 1s/^X//"
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3908 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3909 if test "${ac_cv_path_GREP+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   # Extract the first word of "grep ggrep" to use in msg output
3913 if test -z "$GREP"; then
3914 set dummy grep ggrep; ac_prog_name=$2
3915 if test "${ac_cv_path_GREP+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925   for ac_prog in grep ggrep; do
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929     # Check for GNU ac_path_GREP and select it if it is found.
3930   # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3932 *GNU*)
3933   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934 *)
3935   ac_count=0
3936   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3937   while :
3938   do
3939     cat "conftest.in" "conftest.in" >"conftest.tmp"
3940     mv "conftest.tmp" "conftest.in"
3941     cp "conftest.in" "conftest.nl"
3942     echo 'GREP' >> "conftest.nl"
3943     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945     ac_count=`expr $ac_count + 1`
3946     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947       # Best one so far, save it but keep looking for a better one
3948       ac_cv_path_GREP="$ac_path_GREP"
3949       ac_path_GREP_max=$ac_count
3950     fi
3951     # 10*(2^10) chars as input seems more than enough
3952     test $ac_count -gt 10 && break
3953   done
3954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957
3958     $ac_path_GREP_found && break 3
3959   done
3960 done
3961
3962 done
3963 IFS=$as_save_IFS
3964
3965
3966 fi
3967
3968 GREP="$ac_cv_path_GREP"
3969 if test -z "$GREP"; then
3970   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3971 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3972    { (exit 1); exit 1; }; }
3973 fi
3974
3975 else
3976   ac_cv_path_GREP=$GREP
3977 fi
3978
3979
3980 fi
3981 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3982 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3983  GREP="$ac_cv_path_GREP"
3984
3985
3986 { echo "$as_me:$LINENO: checking for egrep" >&5
3987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3988 if test "${ac_cv_path_EGREP+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3992    then ac_cv_path_EGREP="$GREP -E"
3993    else
3994      # Extract the first word of "egrep" to use in msg output
3995 if test -z "$EGREP"; then
3996 set dummy egrep; ac_prog_name=$2
3997 if test "${ac_cv_path_EGREP+set}" = set; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000   ac_path_EGREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_prog in egrep; do
4008   for ac_exec_ext in '' $ac_executable_extensions; do
4009     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4010     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4011     # Check for GNU ac_path_EGREP and select it if it is found.
4012   # Check for GNU $ac_path_EGREP
4013 case `"$ac_path_EGREP" --version 2>&1` in
4014 *GNU*)
4015   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4016 *)
4017   ac_count=0
4018   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4019   while :
4020   do
4021     cat "conftest.in" "conftest.in" >"conftest.tmp"
4022     mv "conftest.tmp" "conftest.in"
4023     cp "conftest.in" "conftest.nl"
4024     echo 'EGREP' >> "conftest.nl"
4025     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027     ac_count=`expr $ac_count + 1`
4028     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4029       # Best one so far, save it but keep looking for a better one
4030       ac_cv_path_EGREP="$ac_path_EGREP"
4031       ac_path_EGREP_max=$ac_count
4032     fi
4033     # 10*(2^10) chars as input seems more than enough
4034     test $ac_count -gt 10 && break
4035   done
4036   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4038
4039
4040     $ac_path_EGREP_found && break 3
4041   done
4042 done
4043
4044 done
4045 IFS=$as_save_IFS
4046
4047
4048 fi
4049
4050 EGREP="$ac_cv_path_EGREP"
4051 if test -z "$EGREP"; then
4052   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054    { (exit 1); exit 1; }; }
4055 fi
4056
4057 else
4058   ac_cv_path_EGREP=$EGREP
4059 fi
4060
4061
4062    fi
4063 fi
4064 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4065 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4066  EGREP="$ac_cv_path_EGREP"
4067
4068
4069 { echo "$as_me:$LINENO: checking for fgrep" >&5
4070 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4071 if test "${ac_cv_path_FGREP+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4075    then ac_cv_path_FGREP="$GREP -F"
4076    else
4077      # Extract the first word of "fgrep" to use in msg output
4078 if test -z "$FGREP"; then
4079 set dummy fgrep; ac_prog_name=$2
4080 if test "${ac_cv_path_FGREP+set}" = set; then
4081   echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083   ac_path_FGREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_prog in fgrep; do
4091   for ac_exec_ext in '' $ac_executable_extensions; do
4092     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4093     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4094     # Check for GNU ac_path_FGREP and select it if it is found.
4095   # Check for GNU $ac_path_FGREP
4096 case `"$ac_path_FGREP" --version 2>&1` in
4097 *GNU*)
4098   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4099 *)
4100   ac_count=0
4101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4102   while :
4103   do
4104     cat "conftest.in" "conftest.in" >"conftest.tmp"
4105     mv "conftest.tmp" "conftest.in"
4106     cp "conftest.in" "conftest.nl"
4107     echo 'FGREP' >> "conftest.nl"
4108     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110     ac_count=`expr $ac_count + 1`
4111     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4112       # Best one so far, save it but keep looking for a better one
4113       ac_cv_path_FGREP="$ac_path_FGREP"
4114       ac_path_FGREP_max=$ac_count
4115     fi
4116     # 10*(2^10) chars as input seems more than enough
4117     test $ac_count -gt 10 && break
4118   done
4119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 esac
4121
4122
4123     $ac_path_FGREP_found && break 3
4124   done
4125 done
4126
4127 done
4128 IFS=$as_save_IFS
4129
4130
4131 fi
4132
4133 FGREP="$ac_cv_path_FGREP"
4134 if test -z "$FGREP"; then
4135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137    { (exit 1); exit 1; }; }
4138 fi
4139
4140 else
4141   ac_cv_path_FGREP=$FGREP
4142 fi
4143
4144
4145    fi
4146 fi
4147 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4148 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4149  FGREP="$ac_cv_path_FGREP"
4150
4151
4152 test -z "$GREP" && GREP=grep
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172 # Check whether --with-gnu-ld was given.
4173 if test "${with_gnu_ld+set}" = set; then
4174   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4175 else
4176   with_gnu_ld=no
4177 fi
4178
4179 ac_prog=ld
4180 if test "$GCC" = yes; then
4181   # Check if gcc -print-prog-name=ld gives a path.
4182   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4184   case $host in
4185   *-*-mingw*)
4186     # gcc leaves a trailing carriage return which upsets mingw
4187     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4188   *)
4189     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4190   esac
4191   case $ac_prog in
4192     # Accept absolute paths.
4193     [\\/]* | ?:[\\/]*)
4194       re_direlt='/[^/][^/]*/\.\./'
4195       # Canonicalize the pathname of ld
4196       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4197       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4198         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4199       done
4200       test -z "$LD" && LD="$ac_prog"
4201       ;;
4202   "")
4203     # If it fails, then pretend we aren't using GCC.
4204     ac_prog=ld
4205     ;;
4206   *)
4207     # If it is relative, then search for the first ld in PATH.
4208     with_gnu_ld=unknown
4209     ;;
4210   esac
4211 elif test "$with_gnu_ld" = yes; then
4212   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4214 else
4215   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4217 fi
4218 if test "${lt_cv_path_LD+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -z "$LD"; then
4222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223   for ac_dir in $PATH; do
4224     IFS="$lt_save_ifs"
4225     test -z "$ac_dir" && ac_dir=.
4226     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4227       lt_cv_path_LD="$ac_dir/$ac_prog"
4228       # Check to see if the program is GNU ld.  I'd rather use --version,
4229       # but apparently some variants of GNU ld only accept -v.
4230       # Break only if it was the GNU/non-GNU ld that we prefer.
4231       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4232       *GNU* | *'with BFD'*)
4233         test "$with_gnu_ld" != no && break
4234         ;;
4235       *)
4236         test "$with_gnu_ld" != yes && break
4237         ;;
4238       esac
4239     fi
4240   done
4241   IFS="$lt_save_ifs"
4242 else
4243   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4244 fi
4245 fi
4246
4247 LD="$lt_cv_path_LD"
4248 if test -n "$LD"; then
4249   { echo "$as_me:$LINENO: result: $LD" >&5
4250 echo "${ECHO_T}$LD" >&6; }
4251 else
4252   { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4254 fi
4255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4257    { (exit 1); exit 1; }; }
4258 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4264 case `$LD -v 2>&1 </dev/null` in
4265 *GNU* | *'with BFD'*)
4266   lt_cv_prog_gnu_ld=yes
4267   ;;
4268 *)
4269   lt_cv_prog_gnu_ld=no
4270   ;;
4271 esac
4272 fi
4273 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4275 with_gnu_ld=$lt_cv_prog_gnu_ld
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4286 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4287 if test "${lt_cv_path_NM+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   if test -n "$NM"; then
4291   # Let the user override the test.
4292   lt_cv_path_NM="$NM"
4293 else
4294   lt_nm_to_check="${ac_tool_prefix}nm"
4295   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4296     lt_nm_to_check="$lt_nm_to_check nm"
4297   fi
4298   for lt_tmp_nm in $lt_nm_to_check; do
4299     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4300     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4301       IFS="$lt_save_ifs"
4302       test -z "$ac_dir" && ac_dir=.
4303       tmp_nm="$ac_dir/$lt_tmp_nm"
4304       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4305         # Check to see if the nm accepts a BSD-compat flag.
4306         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4307         #   nm: unknown option "B" ignored
4308         # Tru64's nm complains that /dev/null is an invalid object file
4309         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4310         */dev/null* | *'Invalid file or object type'*)
4311           lt_cv_path_NM="$tmp_nm -B"
4312           break
4313           ;;
4314         *)
4315           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4316           */dev/null*)
4317             lt_cv_path_NM="$tmp_nm -p"
4318             break
4319             ;;
4320           *)
4321             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4322             continue # so that we can try to find one that supports BSD flags
4323             ;;
4324           esac
4325           ;;
4326         esac
4327       fi
4328     done
4329     IFS="$lt_save_ifs"
4330   done
4331   : ${lt_cv_path_NM=no}
4332 fi
4333 fi
4334 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4335 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4336 if test "$lt_cv_path_NM" != "no"; then
4337   NM="$lt_cv_path_NM"
4338 else
4339   # Didn't find any BSD compatible name lister, look for dumpbin.
4340   if test -n "$ac_tool_prefix"; then
4341   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4342   do
4343     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   if test -n "$DUMPBIN"; then
4351   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356   IFS=$as_save_IFS
4357   test -z "$as_dir" && as_dir=.
4358   for ac_exec_ext in '' $ac_executable_extensions; do
4359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362     break 2
4363   fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 DUMPBIN=$ac_cv_prog_DUMPBIN
4371 if test -n "$DUMPBIN"; then
4372   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4373 echo "${ECHO_T}$DUMPBIN" >&6; }
4374 else
4375   { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4377 fi
4378
4379
4380     test -n "$DUMPBIN" && break
4381   done
4382 fi
4383 if test -z "$DUMPBIN"; then
4384   ac_ct_DUMPBIN=$DUMPBIN
4385   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4386 do
4387   # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 set dummy $ac_prog; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$ac_ct_DUMPBIN"; then
4395   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4415 if test -n "$ac_ct_DUMPBIN"; then
4416   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4417 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424   test -n "$ac_ct_DUMPBIN" && break
4425 done
4426
4427   if test "x$ac_ct_DUMPBIN" = x; then
4428     DUMPBIN=":"
4429   else
4430     case $cross_compiling:$ac_tool_warned in
4431 yes:)
4432 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4433 whose name does not start with the host triplet.  If you think this
4434 configuration is useful to you, please write to autoconf@gnu.org." >&5
4435 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4436 whose name does not start with the host triplet.  If you think this
4437 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4438 ac_tool_warned=yes ;;
4439 esac
4440     DUMPBIN=$ac_ct_DUMPBIN
4441   fi
4442 fi
4443
4444
4445   if test "$DUMPBIN" != ":"; then
4446     NM="$DUMPBIN"
4447   fi
4448 fi
4449 test -z "$NM" && NM=nm
4450
4451
4452
4453
4454
4455
4456 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4457 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4458 if test "${lt_cv_nm_interface+set}" = set; then
4459   echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461   lt_cv_nm_interface="BSD nm"
4462   echo "int some_variable = 0;" > conftest.$ac_ext
4463   (eval echo "\"\$as_me:4463: $ac_compile\"" >&5)
4464   (eval "$ac_compile" 2>conftest.err)
4465   cat conftest.err >&5
4466   (eval echo "\"\$as_me:4466: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4467   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4468   cat conftest.err >&5
4469   (eval echo "\"\$as_me:4469: output\"" >&5)
4470   cat conftest.out >&5
4471   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4472     lt_cv_nm_interface="MS dumpbin"
4473   fi
4474   rm -f conftest*
4475 fi
4476 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4477 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4478
4479 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4480 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4481 LN_S=$as_ln_s
4482 if test "$LN_S" = "ln -s"; then
4483   { echo "$as_me:$LINENO: result: yes" >&5
4484 echo "${ECHO_T}yes" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4487 echo "${ECHO_T}no, using $LN_S" >&6; }
4488 fi
4489
4490 # find the maximum length of command line arguments
4491 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4492 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4493 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496     i=0
4497   teststring="ABCD"
4498
4499   case $build_os in
4500   msdosdjgpp*)
4501     # On DJGPP, this test can blow up pretty badly due to problems in libc
4502     # (any single argument exceeding 2000 bytes causes a buffer overrun
4503     # during glob expansion).  Even if it were fixed, the result of this
4504     # check would be larger than it should be.
4505     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4506     ;;
4507
4508   gnu*)
4509     # Under GNU Hurd, this test is not required because there is
4510     # no limit to the length of command line arguments.
4511     # Libtool will interpret -1 as no limit whatsoever
4512     lt_cv_sys_max_cmd_len=-1;
4513     ;;
4514
4515   cygwin* | mingw*)
4516     # On Win9x/ME, this test blows up -- it succeeds, but takes
4517     # about 5 minutes as the teststring grows exponentially.
4518     # Worse, since 9x/ME are not pre-emptively multitasking,
4519     # you end up with a "frozen" computer, even though with patience
4520     # the test eventually succeeds (with a max line length of 256k).
4521     # Instead, let's just punt: use the minimum linelength reported by
4522     # all of the supported platforms: 8192 (on NT/2K/XP).
4523     lt_cv_sys_max_cmd_len=8192;
4524     ;;
4525
4526   amigaos*)
4527     # On AmigaOS with pdksh, this test takes hours, literally.
4528     # So we just punt and use a minimum line length of 8192.
4529     lt_cv_sys_max_cmd_len=8192;
4530     ;;
4531
4532   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4533     # This has been around since 386BSD, at least.  Likely further.
4534     if test -x /sbin/sysctl; then
4535       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4536     elif test -x /usr/sbin/sysctl; then
4537       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4538     else
4539       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4540     fi
4541     # And add a safety zone
4542     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4544     ;;
4545
4546   interix*)
4547     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4548     lt_cv_sys_max_cmd_len=196608
4549     ;;
4550
4551   osf*)
4552     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4553     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4554     # nice to cause kernel panics so lets avoid the loop below.
4555     # First set a reasonable default.
4556     lt_cv_sys_max_cmd_len=16384
4557     #
4558     if test -x /sbin/sysconfig; then
4559       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4560         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4561       esac
4562     fi
4563     ;;
4564   sco3.2v5*)
4565     lt_cv_sys_max_cmd_len=102400
4566     ;;
4567   sysv5* | sco5v6* | sysv4.2uw2*)
4568     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4569     if test -n "$kargmax"; then
4570       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4571     else
4572       lt_cv_sys_max_cmd_len=32768
4573     fi
4574     ;;
4575   *)
4576     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4577     if test -n "$lt_cv_sys_max_cmd_len"; then
4578       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4579       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4580     else
4581       # Make teststring a little bigger before we do anything with it.
4582       # a 1K string should be a reasonable start.
4583       for i in 1 2 3 4 5 6 7 8 ; do
4584         teststring=$teststring$teststring
4585       done
4586       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4587       # If test is not a shell built-in, we'll probably end up computing a
4588       # maximum length that is only half of the actual maximum length, but
4589       # we can't tell.
4590       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4591                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4592               test $i != 17 # 1/2 MB should be enough
4593       do
4594         i=`expr $i + 1`
4595         teststring=$teststring$teststring
4596       done
4597       # Only check the string length outside the loop.
4598       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4599       teststring=
4600       # Add a significant safety factor because C++ compilers can tack on
4601       # massive amounts of additional arguments before passing them to the
4602       # linker.  It appears as though 1/2 is a usable value.
4603       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4604     fi
4605     ;;
4606   esac
4607
4608 fi
4609
4610 if test -n $lt_cv_sys_max_cmd_len ; then
4611   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4612 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4613 else
4614   { echo "$as_me:$LINENO: result: none" >&5
4615 echo "${ECHO_T}none" >&6; }
4616 fi
4617 max_cmd_len=$lt_cv_sys_max_cmd_len
4618
4619
4620
4621
4622
4623
4624 : ${CP="cp -f"}
4625 : ${MV="mv -f"}
4626 : ${RM="rm -f"}
4627
4628 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4629 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4630 # Try some XSI features
4631 xsi_shell=no
4632 ( _lt_dummy="a/b/c"
4633   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4634       = c,a/b,, \
4635     && eval 'test $(( 1 + 1 )) -eq 2 \
4636     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4637   && xsi_shell=yes
4638 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4639 echo "${ECHO_T}$xsi_shell" >&6; }
4640
4641
4642 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4643 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4644 lt_shell_append=no
4645 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4646     >/dev/null 2>&1 \
4647   && lt_shell_append=yes
4648 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4649 echo "${ECHO_T}$lt_shell_append" >&6; }
4650
4651
4652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4653   lt_unset=unset
4654 else
4655   lt_unset=false
4656 fi
4657
4658
4659
4660
4661
4662 # test EBCDIC or ASCII
4663 case `echo X|tr X '\101'` in
4664  A) # ASCII based system
4665     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4666   lt_SP2NL='tr \040 \012'
4667   lt_NL2SP='tr \015\012 \040\040'
4668   ;;
4669  *) # EBCDIC based system
4670   lt_SP2NL='tr \100 \n'
4671   lt_NL2SP='tr \r\n \100\100'
4672   ;;
4673 esac
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4684 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4685 if test "${lt_cv_ld_reload_flag+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   lt_cv_ld_reload_flag='-r'
4689 fi
4690 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4691 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4692 reload_flag=$lt_cv_ld_reload_flag
4693 case $reload_flag in
4694 "" | " "*) ;;
4695 *) reload_flag=" $reload_flag" ;;
4696 esac
4697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4698 case $host_os in
4699   darwin*)
4700     if test "$GCC" = yes; then
4701       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4702     else
4703       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4704     fi
4705     ;;
4706 esac
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4718 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4719 if test "${lt_cv_deplibs_check_method+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   lt_cv_file_magic_cmd='$MAGIC_CMD'
4723 lt_cv_file_magic_test_file=
4724 lt_cv_deplibs_check_method='unknown'
4725 # Need to set the preceding variable on all platforms that support
4726 # interlibrary dependencies.
4727 # 'none' -- dependencies not supported.
4728 # `unknown' -- same as none, but documents that we really don't know.
4729 # 'pass_all' -- all dependencies passed with no checks.
4730 # 'test_compile' -- check by making test program.
4731 # 'file_magic [[regex]]' -- check by looking for files in library path
4732 # which responds to the $file_magic_cmd with a given extended regex.
4733 # If you have `file' or equivalent on your system and you're not sure
4734 # whether `pass_all' will *always* work, you probably want this one.
4735
4736 case $host_os in
4737 aix[4-9]*)
4738   lt_cv_deplibs_check_method=pass_all
4739   ;;
4740
4741 beos*)
4742   lt_cv_deplibs_check_method=pass_all
4743   ;;
4744
4745 bsdi[45]*)
4746   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4747   lt_cv_file_magic_cmd='/usr/bin/file -L'
4748   lt_cv_file_magic_test_file=/shlib/libc.so
4749   ;;
4750
4751 cygwin*)
4752   # func_win32_libid is a shell function defined in ltmain.sh
4753   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4754   lt_cv_file_magic_cmd='func_win32_libid'
4755   ;;
4756
4757 mingw* | pw32*)
4758   # Base MSYS/MinGW do not provide the 'file' command needed by
4759   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4760   # unless we find 'file', for example because we are cross-compiling.
4761   if ( file / ) >/dev/null 2>&1; then
4762     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4763     lt_cv_file_magic_cmd='func_win32_libid'
4764   else
4765     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4766     lt_cv_file_magic_cmd='$OBJDUMP -f'
4767   fi
4768   ;;
4769
4770 darwin* | rhapsody*)
4771   lt_cv_deplibs_check_method=pass_all
4772   ;;
4773
4774 freebsd* | dragonfly*)
4775   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4776     case $host_cpu in
4777     i*86 )
4778       # Not sure whether the presence of OpenBSD here was a mistake.
4779       # Let's accept both of them until this is cleared up.
4780       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4781       lt_cv_file_magic_cmd=/usr/bin/file
4782       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4783       ;;
4784     esac
4785   else
4786     lt_cv_deplibs_check_method=pass_all
4787   fi
4788   ;;
4789
4790 gnu*)
4791   lt_cv_deplibs_check_method=pass_all
4792   ;;
4793
4794 hpux10.20* | hpux11*)
4795   lt_cv_file_magic_cmd=/usr/bin/file
4796   case $host_cpu in
4797   ia64*)
4798     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4799     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4800     ;;
4801   hppa*64*)
4802     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]'
4803     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4804     ;;
4805   *)
4806     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4807     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4808     ;;
4809   esac
4810   ;;
4811
4812 interix[3-9]*)
4813   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4814   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4815   ;;
4816
4817 irix5* | irix6* | nonstopux*)
4818   case $LD in
4819   *-32|*"-32 ") libmagic=32-bit;;
4820   *-n32|*"-n32 ") libmagic=N32;;
4821   *-64|*"-64 ") libmagic=64-bit;;
4822   *) libmagic=never-match;;
4823   esac
4824   lt_cv_deplibs_check_method=pass_all
4825   ;;
4826
4827 # This must be Linux ELF.
4828 linux* | k*bsd*-gnu)
4829   lt_cv_deplibs_check_method=pass_all
4830   ;;
4831
4832 netbsd*)
4833   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4834     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4835   else
4836     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4837   fi
4838   ;;
4839
4840 newos6*)
4841   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4842   lt_cv_file_magic_cmd=/usr/bin/file
4843   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4844   ;;
4845
4846 *nto* | *qnx*)
4847   lt_cv_deplibs_check_method=pass_all
4848   ;;
4849
4850 openbsd*)
4851   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4852     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4853   else
4854     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4855   fi
4856   ;;
4857
4858 osf3* | osf4* | osf5*)
4859   lt_cv_deplibs_check_method=pass_all
4860   ;;
4861
4862 rdos*)
4863   lt_cv_deplibs_check_method=pass_all
4864   ;;
4865
4866 solaris*)
4867   lt_cv_deplibs_check_method=pass_all
4868   ;;
4869
4870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4871   lt_cv_deplibs_check_method=pass_all
4872   ;;
4873
4874 sysv4 | sysv4.3*)
4875   case $host_vendor in
4876   motorola)
4877     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]'
4878     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4879     ;;
4880   ncr)
4881     lt_cv_deplibs_check_method=pass_all
4882     ;;
4883   sequent)
4884     lt_cv_file_magic_cmd='/bin/file'
4885     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4886     ;;
4887   sni)
4888     lt_cv_file_magic_cmd='/bin/file'
4889     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4890     lt_cv_file_magic_test_file=/lib/libc.so
4891     ;;
4892   siemens)
4893     lt_cv_deplibs_check_method=pass_all
4894     ;;
4895   pc)
4896     lt_cv_deplibs_check_method=pass_all
4897     ;;
4898   esac
4899   ;;
4900
4901 tpf*)
4902   lt_cv_deplibs_check_method=pass_all
4903   ;;
4904 esac
4905
4906 fi
4907 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4908 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4909 file_magic_cmd=$lt_cv_file_magic_cmd
4910 deplibs_check_method=$lt_cv_deplibs_check_method
4911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924 if test -n "$ac_tool_prefix"; then
4925   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4926 set dummy ${ac_tool_prefix}ar; ac_word=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_prog_AR+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   if test -n "$AR"; then
4933   ac_cv_prog_AR="$AR" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940   for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_prog_AR="${ac_tool_prefix}ar"
4943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947 done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 AR=$ac_cv_prog_AR
4953 if test -n "$AR"; then
4954   { echo "$as_me:$LINENO: result: $AR" >&5
4955 echo "${ECHO_T}$AR" >&6; }
4956 else
4957   { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4959 fi
4960
4961
4962 fi
4963 if test -z "$ac_cv_prog_AR"; then
4964   ac_ct_AR=$AR
4965   # Extract the first word of "ar", so it can be a program name with args.
4966 set dummy ar; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   if test -n "$ac_ct_AR"; then
4973   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980   for ac_exec_ext in '' $ac_executable_extensions; do
4981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982     ac_cv_prog_ac_ct_AR="ar"
4983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4993 if test -n "$ac_ct_AR"; then
4994   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4995 echo "${ECHO_T}$ac_ct_AR" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001   if test "x$ac_ct_AR" = x; then
5002     AR="false"
5003   else
5004     case $cross_compiling:$ac_tool_warned in
5005 yes:)
5006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5007 whose name does not start with the host triplet.  If you think this
5008 configuration is useful to you, please write to autoconf@gnu.org." >&5
5009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5010 whose name does not start with the host triplet.  If you think this
5011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014     AR=$ac_ct_AR
5015   fi
5016 else
5017   AR="$ac_cv_prog_AR"
5018 fi
5019
5020 test -z "$AR" && AR=ar
5021 test -z "$AR_FLAGS" && AR_FLAGS=cru
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 if test -n "$ac_tool_prefix"; then
5034   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}strip; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_prog_STRIP+set}" = set; then
5039   echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041   if test -n "$STRIP"; then
5042   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049   for ac_exec_ext in '' $ac_executable_extensions; do
5050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053     break 2
5054   fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 STRIP=$ac_cv_prog_STRIP
5062 if test -n "$STRIP"; then
5063   { echo "$as_me:$LINENO: result: $STRIP" >&5
5064 echo "${ECHO_T}$STRIP" >&6; }
5065 else
5066   { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5068 fi
5069
5070
5071 fi
5072 if test -z "$ac_cv_prog_STRIP"; then
5073   ac_ct_STRIP=$STRIP
5074   # Extract the first word of "strip", so it can be a program name with args.
5075 set dummy strip; ac_word=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   if test -n "$ac_ct_STRIP"; then
5082   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089   for ac_exec_ext in '' $ac_executable_extensions; do
5090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091     ac_cv_prog_ac_ct_STRIP="strip"
5092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093     break 2
5094   fi
5095 done
5096 done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5102 if test -n "$ac_ct_STRIP"; then
5103   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5104 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5105 else
5106   { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5108 fi
5109
5110   if test "x$ac_ct_STRIP" = x; then
5111     STRIP=":"
5112   else
5113     case $cross_compiling:$ac_tool_warned in
5114 yes:)
5115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5116 whose name does not start with the host triplet.  If you think this
5117 configuration is useful to you, please write to autoconf@gnu.org." >&5
5118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5119 whose name does not start with the host triplet.  If you think this
5120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123     STRIP=$ac_ct_STRIP
5124   fi
5125 else
5126   STRIP="$ac_cv_prog_STRIP"
5127 fi
5128
5129 test -z "$STRIP" && STRIP=:
5130
5131
5132
5133
5134
5135
5136 if test -n "$ac_tool_prefix"; then
5137   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5141 if test "${ac_cv_prog_RANLIB+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   if test -n "$RANLIB"; then
5145   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160 IFS=$as_save_IFS
5161
5162 fi
5163 fi
5164 RANLIB=$ac_cv_prog_RANLIB
5165 if test -n "$RANLIB"; then
5166   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5167 echo "${ECHO_T}$RANLIB" >&6; }
5168 else
5169   { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5171 fi
5172
5173
5174 fi
5175 if test -z "$ac_cv_prog_RANLIB"; then
5176   ac_ct_RANLIB=$RANLIB
5177   # Extract the first word of "ranlib", so it can be a program name with args.
5178 set dummy ranlib; ac_word=$2
5179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5182   echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184   if test -n "$ac_ct_RANLIB"; then
5185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5186 else
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5189 do
5190   IFS=$as_save_IFS
5191   test -z "$as_dir" && as_dir=.
5192   for ac_exec_ext in '' $ac_executable_extensions; do
5193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194     ac_cv_prog_ac_ct_RANLIB="ranlib"
5195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197   fi
5198 done
5199 done
5200 IFS=$as_save_IFS
5201
5202 fi
5203 fi
5204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5205 if test -n "$ac_ct_RANLIB"; then
5206   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5207 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5208 else
5209   { echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6; }
5211 fi
5212
5213   if test "x$ac_ct_RANLIB" = x; then
5214     RANLIB=":"
5215   else
5216     case $cross_compiling:$ac_tool_warned in
5217 yes:)
5218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5219 whose name does not start with the host triplet.  If you think this
5220 configuration is useful to you, please write to autoconf@gnu.org." >&5
5221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5222 whose name does not start with the host triplet.  If you think this
5223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5224 ac_tool_warned=yes ;;
5225 esac
5226     RANLIB=$ac_ct_RANLIB
5227   fi
5228 else
5229   RANLIB="$ac_cv_prog_RANLIB"
5230 fi
5231
5232 test -z "$RANLIB" && RANLIB=:
5233
5234
5235
5236
5237
5238
5239 # Determine commands to create old-style static archives.
5240 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5241 old_postinstall_cmds='chmod 644 $oldlib'
5242 old_postuninstall_cmds=
5243
5244 if test -n "$RANLIB"; then
5245   case $host_os in
5246   openbsd*)
5247     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5248     ;;
5249   *)
5250     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5251     ;;
5252   esac
5253   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5254 fi
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 # If no C compiler was specified, use CC.
5290 LTCC=${LTCC-"$CC"}
5291
5292 # If no C compiler flags were specified, use CFLAGS.
5293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5294
5295 # Allow CC to be a program name with arguments.
5296 compiler=$CC
5297
5298
5299 # Check for command to grab the raw symbol name followed by C symbol from nm.
5300 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5301 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5302 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305
5306 # These are sane defaults that work on at least a few old systems.
5307 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5308
5309 # Character class describing NM global symbol codes.
5310 symcode='[BCDEGRST]'
5311
5312 # Regexp to match symbols that can be accessed directly from C.
5313 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5314
5315 # Define system-specific variables.
5316 case $host_os in
5317 aix*)
5318   symcode='[BCDT]'
5319   ;;
5320 cygwin* | mingw* | pw32*)
5321   symcode='[ABCDGISTW]'
5322   ;;
5323 hpux*)
5324   if test "$host_cpu" = ia64; then
5325     symcode='[ABCDEGRST]'
5326   fi
5327   ;;
5328 irix* | nonstopux*)
5329   symcode='[BCDEGRST]'
5330   ;;
5331 osf*)
5332   symcode='[BCDEGQRST]'
5333   ;;
5334 solaris*)
5335   symcode='[BDRT]'
5336   ;;
5337 sco3.2v5*)
5338   symcode='[DT]'
5339   ;;
5340 sysv4.2uw2*)
5341   symcode='[DT]'
5342   ;;
5343 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5344   symcode='[ABDT]'
5345   ;;
5346 sysv4)
5347   symcode='[DFNSTU]'
5348   ;;
5349 esac
5350
5351 # If we're using GNU nm, then use its standard symbol codes.
5352 case `$NM -V 2>&1` in
5353 *GNU* | *'with BFD'*)
5354   symcode='[ABCDGIRSTW]' ;;
5355 esac
5356
5357 # Transform an extracted symbol line into a proper C declaration.
5358 # Some systems (esp. on ia64) link data and code symbols differently,
5359 # so use this general approach.
5360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5361
5362 # Transform an extracted symbol line into symbol name and symbol address
5363 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5364 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'"
5365
5366 # Handle CRLF in mingw tool chain
5367 opt_cr=
5368 case $build_os in
5369 mingw*)
5370   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5371   ;;
5372 esac
5373
5374 # Try without a prefix underscore, then with it.
5375 for ac_symprfx in "" "_"; do
5376
5377   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5378   symxfrm="\\1 $ac_symprfx\\2 \\2"
5379
5380   # Write the raw and C identifiers.
5381   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5382     # Fake it for dumpbin and say T for any non-static function
5383     # and D for any global variable.
5384     # Also find C++ and __fastcall symbols from MSVC++,
5385     # which start with @ or ?.
5386     lt_cv_sys_global_symbol_pipe="$AWK '"\
5387 "     {last_section=section; section=\$ 3};"\
5388 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5389 "     \$ 0!~/External *\|/{next};"\
5390 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5391 "     {if(hide[section]) next};"\
5392 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5393 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5394 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5395 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5396 "     ' prfx=^$ac_symprfx"
5397   else
5398     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5399   fi
5400
5401   # Check to see that the pipe works correctly.
5402   pipe_works=no
5403
5404   rm -f conftest*
5405   cat > conftest.$ac_ext <<_LT_EOF
5406 #ifdef __cplusplus
5407 extern "C" {
5408 #endif
5409 char nm_test_var;
5410 void nm_test_func(void);
5411 void nm_test_func(void){}
5412 #ifdef __cplusplus
5413 }
5414 #endif
5415 int main(){nm_test_var='a';nm_test_func();return(0);}
5416 _LT_EOF
5417
5418   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419   (eval $ac_compile) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; then
5423     # Now try to grab the symbols.
5424     nlist=conftest.nm
5425     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5426   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5427   ac_status=$?
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } && test -s "$nlist"; then
5430       # Try sorting and uniquifying the output.
5431       if sort "$nlist" | uniq > "$nlist"T; then
5432         mv -f "$nlist"T "$nlist"
5433       else
5434         rm -f "$nlist"T
5435       fi
5436
5437       # Make sure that we snagged all the symbols we need.
5438       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5439         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5440           cat <<_LT_EOF > conftest.$ac_ext
5441 #ifdef __cplusplus
5442 extern "C" {
5443 #endif
5444
5445 _LT_EOF
5446           # Now generate the symbol file.
5447           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5448
5449           cat <<_LT_EOF >> conftest.$ac_ext
5450
5451 /* The mapping between symbol names and symbols.  */
5452 const struct {
5453   const char *name;
5454   void       *address;
5455 }
5456 lt__PROGRAM__LTX_preloaded_symbols[] =
5457 {
5458   { "@PROGRAM@", (void *) 0 },
5459 _LT_EOF
5460           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5461           cat <<\_LT_EOF >> conftest.$ac_ext
5462   {0, (void *) 0}
5463 };
5464
5465 /* This works around a problem in FreeBSD linker */
5466 #ifdef FREEBSD_WORKAROUND
5467 static const void *lt_preloaded_setup() {
5468   return lt__PROGRAM__LTX_preloaded_symbols;
5469 }
5470 #endif
5471
5472 #ifdef __cplusplus
5473 }
5474 #endif
5475 _LT_EOF
5476           # Now try linking the two files.
5477           mv conftest.$ac_objext conftstm.$ac_objext
5478           lt_save_LIBS="$LIBS"
5479           lt_save_CFLAGS="$CFLAGS"
5480           LIBS="conftstm.$ac_objext"
5481           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5482           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483   (eval $ac_link) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5487             pipe_works=yes
5488           fi
5489           LIBS="$lt_save_LIBS"
5490           CFLAGS="$lt_save_CFLAGS"
5491         else
5492           echo "cannot find nm_test_func in $nlist" >&5
5493         fi
5494       else
5495         echo "cannot find nm_test_var in $nlist" >&5
5496       fi
5497     else
5498       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5499     fi
5500   else
5501     echo "$progname: failed program was:" >&5
5502     cat conftest.$ac_ext >&5
5503   fi
5504   rm -rf conftest* conftst*
5505
5506   # Do not use the global_symbol_pipe unless it works.
5507   if test "$pipe_works" = yes; then
5508     break
5509   else
5510     lt_cv_sys_global_symbol_pipe=
5511   fi
5512 done
5513
5514 fi
5515
5516 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5517   lt_cv_sys_global_symbol_to_cdecl=
5518 fi
5519 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5520   { echo "$as_me:$LINENO: result: failed" >&5
5521 echo "${ECHO_T}failed" >&6; }
5522 else
5523   { echo "$as_me:$LINENO: result: ok" >&5
5524 echo "${ECHO_T}ok" >&6; }
5525 fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 # Check whether --enable-libtool-lock was given.
5550 if test "${enable_libtool_lock+set}" = set; then
5551   enableval=$enable_libtool_lock;
5552 fi
5553
5554 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5555
5556 # Some flags need to be propagated to the compiler or linker for good
5557 # libtool support.
5558 case $host in
5559 ia64-*-hpux*)
5560   # Find out which ABI we are using.
5561   echo 'int i;' > conftest.$ac_ext
5562   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563   (eval $ac_compile) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); }; then
5567     case `/usr/bin/file conftest.$ac_objext` in
5568       *ELF-32*)
5569         HPUX_IA64_MODE="32"
5570         ;;
5571       *ELF-64*)
5572         HPUX_IA64_MODE="64"
5573         ;;
5574     esac
5575   fi
5576   rm -rf conftest*
5577   ;;
5578 *-*-irix6*)
5579   # Find out which ABI we are using.
5580   echo '#line 5580 "configure"' > conftest.$ac_ext
5581   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582   (eval $ac_compile) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; then
5586     if test "$lt_cv_prog_gnu_ld" = yes; then
5587       case `/usr/bin/file conftest.$ac_objext` in
5588         *32-bit*)
5589           LD="${LD-ld} -melf32bsmip"
5590           ;;
5591         *N32*)
5592           LD="${LD-ld} -melf32bmipn32"
5593           ;;
5594         *64-bit*)
5595           LD="${LD-ld} -melf64bmip"
5596         ;;
5597       esac
5598     else
5599       case `/usr/bin/file conftest.$ac_objext` in
5600         *32-bit*)
5601           LD="${LD-ld} -32"
5602           ;;
5603         *N32*)
5604           LD="${LD-ld} -n32"
5605           ;;
5606         *64-bit*)
5607           LD="${LD-ld} -64"
5608           ;;
5609       esac
5610     fi
5611   fi
5612   rm -rf conftest*
5613   ;;
5614
5615 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5616 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5617   # Find out which ABI we are using.
5618   echo 'int i;' > conftest.$ac_ext
5619   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620   (eval $ac_compile) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; then
5624     case `/usr/bin/file conftest.o` in
5625       *32-bit*)
5626         case $host in
5627           x86_64-*kfreebsd*-gnu)
5628             LD="${LD-ld} -m elf_i386_fbsd"
5629             ;;
5630           x86_64-*linux*)
5631             LD="${LD-ld} -m elf_i386"
5632             ;;
5633           ppc64-*linux*|powerpc64-*linux*)
5634             LD="${LD-ld} -m elf32ppclinux"
5635             ;;
5636           s390x-*linux*)
5637             LD="${LD-ld} -m elf_s390"
5638             ;;
5639           sparc64-*linux*)
5640             LD="${LD-ld} -m elf32_sparc"
5641             ;;
5642         esac
5643         ;;
5644       *64-bit*)
5645         case $host in
5646           x86_64-*kfreebsd*-gnu)
5647             LD="${LD-ld} -m elf_x86_64_fbsd"
5648             ;;
5649           x86_64-*linux*)
5650             LD="${LD-ld} -m elf_x86_64"
5651             ;;
5652           ppc*-*linux*|powerpc*-*linux*)
5653             LD="${LD-ld} -m elf64ppc"
5654             ;;
5655           s390*-*linux*|s390*-*tpf*)
5656             LD="${LD-ld} -m elf64_s390"
5657             ;;
5658           sparc*-*linux*)
5659             LD="${LD-ld} -m elf64_sparc"
5660             ;;
5661         esac
5662         ;;
5663     esac
5664   fi
5665   rm -rf conftest*
5666   ;;
5667
5668 *-*-sco3.2v5*)
5669   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5670   SAVE_CFLAGS="$CFLAGS"
5671   CFLAGS="$CFLAGS -belf"
5672   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5673 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5674 if test "${lt_cv_cc_needs_belf+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   ac_ext=c
5678 ac_cpp='$CPP $CPPFLAGS'
5679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5682
5683      cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689
5690 int
5691 main ()
5692 {
5693
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (ac_try="$ac_link"
5700 case "(($ac_try" in
5701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702   *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705   (eval "$ac_link") 2>conftest.er1
5706   ac_status=$?
5707   grep -v '^ *+' conftest.er1 >conftest.err
5708   rm -f conftest.er1
5709   cat conftest.err >&5
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } && {
5712          test -z "$ac_c_werror_flag" ||
5713          test ! -s conftest.err
5714        } && test -s conftest$ac_exeext &&
5715        $as_test_x conftest$ac_exeext; then
5716   lt_cv_cc_needs_belf=yes
5717 else
5718   echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721         lt_cv_cc_needs_belf=no
5722 fi
5723
5724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725       conftest$ac_exeext conftest.$ac_ext
5726      ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732 fi
5733 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5734 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5735   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5736     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5737     CFLAGS="$SAVE_CFLAGS"
5738   fi
5739   ;;
5740 sparc*-*solaris*)
5741   # Find out which ABI we are using.
5742   echo 'int i;' > conftest.$ac_ext
5743   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744   (eval $ac_compile) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; then
5748     case `/usr/bin/file conftest.o` in
5749     *64-bit*)
5750       case $lt_cv_prog_gnu_ld in
5751       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5752       *)
5753         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5754           LD="${LD-ld} -64"
5755         fi
5756         ;;
5757       esac
5758       ;;
5759     esac
5760   fi
5761   rm -rf conftest*
5762   ;;
5763 esac
5764
5765 need_locks="$enable_libtool_lock"
5766
5767
5768   case $host_os in
5769     rhapsody* | darwin*)
5770     if test -n "$ac_tool_prefix"; then
5771   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5772 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   if test -n "$DSYMUTIL"; then
5779   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5780 else
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786   for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793 done
5794 IFS=$as_save_IFS
5795
5796 fi
5797 fi
5798 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5799 if test -n "$DSYMUTIL"; then
5800   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5801 echo "${ECHO_T}$DSYMUTIL" >&6; }
5802 else
5803   { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5805 fi
5806
5807
5808 fi
5809 if test -z "$ac_cv_prog_DSYMUTIL"; then
5810   ac_ct_DSYMUTIL=$DSYMUTIL
5811   # Extract the first word of "dsymutil", so it can be a program name with args.
5812 set dummy dsymutil; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   if test -n "$ac_ct_DSYMUTIL"; then
5819   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824   IFS=$as_save_IFS
5825   test -z "$as_dir" && as_dir=.
5826   for ac_exec_ext in '' $ac_executable_extensions; do
5827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830     break 2
5831   fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5839 if test -n "$ac_ct_DSYMUTIL"; then
5840   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5841 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5842 else
5843   { echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6; }
5845 fi
5846
5847   if test "x$ac_ct_DSYMUTIL" = x; then
5848     DSYMUTIL=":"
5849   else
5850     case $cross_compiling:$ac_tool_warned in
5851 yes:)
5852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet.  If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&5
5855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5856 whose name does not start with the host triplet.  If you think this
5857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5858 ac_tool_warned=yes ;;
5859 esac
5860     DSYMUTIL=$ac_ct_DSYMUTIL
5861   fi
5862 else
5863   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5864 fi
5865
5866     if test -n "$ac_tool_prefix"; then
5867   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5868 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test -n "$NMEDIT"; then
5875   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880   IFS=$as_save_IFS
5881   test -z "$as_dir" && as_dir=.
5882   for ac_exec_ext in '' $ac_executable_extensions; do
5883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886     break 2
5887   fi
5888 done
5889 done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 NMEDIT=$ac_cv_prog_NMEDIT
5895 if test -n "$NMEDIT"; then
5896   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5897 echo "${ECHO_T}$NMEDIT" >&6; }
5898 else
5899   { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5901 fi
5902
5903
5904 fi
5905 if test -z "$ac_cv_prog_NMEDIT"; then
5906   ac_ct_NMEDIT=$NMEDIT
5907   # Extract the first word of "nmedit", so it can be a program name with args.
5908 set dummy nmedit; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   if test -n "$ac_ct_NMEDIT"; then
5915   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5935 if test -n "$ac_ct_NMEDIT"; then
5936   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5937 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5938 else
5939   { echo "$as_me:$LINENO: result: no" >&5
5940 echo "${ECHO_T}no" >&6; }
5941 fi
5942
5943   if test "x$ac_ct_NMEDIT" = x; then
5944     NMEDIT=":"
5945   else
5946     case $cross_compiling:$ac_tool_warned in
5947 yes:)
5948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5949 whose name does not start with the host triplet.  If you think this
5950 configuration is useful to you, please write to autoconf@gnu.org." >&5
5951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5952 whose name does not start with the host triplet.  If you think this
5953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956     NMEDIT=$ac_ct_NMEDIT
5957   fi
5958 else
5959   NMEDIT="$ac_cv_prog_NMEDIT"
5960 fi
5961
5962     if test -n "$ac_tool_prefix"; then
5963   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5964 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_prog_LIPO+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   if test -n "$LIPO"; then
5971   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_exec_ext in '' $ac_executable_extensions; do
5979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 LIPO=$ac_cv_prog_LIPO
5991 if test -n "$LIPO"; then
5992   { echo "$as_me:$LINENO: result: $LIPO" >&5
5993 echo "${ECHO_T}$LIPO" >&6; }
5994 else
5995   { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
5997 fi
5998
5999
6000 fi
6001 if test -z "$ac_cv_prog_LIPO"; then
6002   ac_ct_LIPO=$LIPO
6003   # Extract the first word of "lipo", so it can be a program name with args.
6004 set dummy lipo; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   if test -n "$ac_ct_LIPO"; then
6011   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018   for ac_exec_ext in '' $ac_executable_extensions; do
6019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020     ac_cv_prog_ac_ct_LIPO="lipo"
6021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6031 if test -n "$ac_ct_LIPO"; then
6032   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6033 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6034 else
6035   { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6037 fi
6038
6039   if test "x$ac_ct_LIPO" = x; then
6040     LIPO=":"
6041   else
6042     case $cross_compiling:$ac_tool_warned in
6043 yes:)
6044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6045 whose name does not start with the host triplet.  If you think this
6046 configuration is useful to you, please write to autoconf@gnu.org." >&5
6047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6048 whose name does not start with the host triplet.  If you think this
6049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6050 ac_tool_warned=yes ;;
6051 esac
6052     LIPO=$ac_ct_LIPO
6053   fi
6054 else
6055   LIPO="$ac_cv_prog_LIPO"
6056 fi
6057
6058     if test -n "$ac_tool_prefix"; then
6059   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6060 set dummy ${ac_tool_prefix}otool; ac_word=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_OTOOL+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   if test -n "$OTOOL"; then
6067   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074   for ac_exec_ext in '' $ac_executable_extensions; do
6075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078     break 2
6079   fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 OTOOL=$ac_cv_prog_OTOOL
6087 if test -n "$OTOOL"; then
6088   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6089 echo "${ECHO_T}$OTOOL" >&6; }
6090 else
6091   { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6093 fi
6094
6095
6096 fi
6097 if test -z "$ac_cv_prog_OTOOL"; then
6098   ac_ct_OTOOL=$OTOOL
6099   # Extract the first word of "otool", so it can be a program name with args.
6100 set dummy otool; ac_word=$2
6101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   if test -n "$ac_ct_OTOOL"; then
6107   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114   for ac_exec_ext in '' $ac_executable_extensions; do
6115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116     ac_cv_prog_ac_ct_OTOOL="otool"
6117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6127 if test -n "$ac_ct_OTOOL"; then
6128   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6129 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6130 else
6131   { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6133 fi
6134
6135   if test "x$ac_ct_OTOOL" = x; then
6136     OTOOL=":"
6137   else
6138     case $cross_compiling:$ac_tool_warned in
6139 yes:)
6140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6141 whose name does not start with the host triplet.  If you think this
6142 configuration is useful to you, please write to autoconf@gnu.org." >&5
6143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6144 whose name does not start with the host triplet.  If you think this
6145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148     OTOOL=$ac_ct_OTOOL
6149   fi
6150 else
6151   OTOOL="$ac_cv_prog_OTOOL"
6152 fi
6153
6154     if test -n "$ac_tool_prefix"; then
6155   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162   if test -n "$OTOOL64"; then
6163   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168   IFS=$as_save_IFS
6169   test -z "$as_dir" && as_dir=.
6170   for ac_exec_ext in '' $ac_executable_extensions; do
6171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174     break 2
6175   fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 OTOOL64=$ac_cv_prog_OTOOL64
6183 if test -n "$OTOOL64"; then
6184   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6185 echo "${ECHO_T}$OTOOL64" >&6; }
6186 else
6187   { echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_OTOOL64"; then
6194   ac_ct_OTOOL64=$OTOOL64
6195   # Extract the first word of "otool64", so it can be a program name with args.
6196 set dummy otool64; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   if test -n "$ac_ct_OTOOL64"; then
6203   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210   for ac_exec_ext in '' $ac_executable_extensions; do
6211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212     ac_cv_prog_ac_ct_OTOOL64="otool64"
6213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214     break 2
6215   fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6223 if test -n "$ac_ct_OTOOL64"; then
6224   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6225 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6226 else
6227   { echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6; }
6229 fi
6230
6231   if test "x$ac_ct_OTOOL64" = x; then
6232     OTOOL64=":"
6233   else
6234     case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6237 whose name does not start with the host triplet.  If you think this
6238 configuration is useful to you, please write to autoconf@gnu.org." >&5
6239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6240 whose name does not start with the host triplet.  If you think this
6241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6242 ac_tool_warned=yes ;;
6243 esac
6244     OTOOL64=$ac_ct_OTOOL64
6245   fi
6246 else
6247   OTOOL64="$ac_cv_prog_OTOOL64"
6248 fi
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6277 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6278 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6279   echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281   lt_cv_apple_cc_single_mod=no
6282       if test -z "${LT_MULTI_MODULE}"; then
6283         # By default we will add the -single_module flag. You can override
6284         # by either setting the environment variable LT_MULTI_MODULE
6285         # non-empty at configure time, or by adding -multi_module to the
6286         # link flags.
6287         rm -rf libconftest.dylib*
6288         echo "int foo(void){return 1;}" > conftest.c
6289         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6290 -dynamiclib -Wl,-single_module conftest.c" >&5
6291         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6292           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6293         _lt_result=$?
6294         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6295           lt_cv_apple_cc_single_mod=yes
6296         else
6297           cat conftest.err >&5
6298         fi
6299         rm -rf libconftest.dylib*
6300         rm -f conftest.*
6301       fi
6302 fi
6303 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6304 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6305     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6306 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6307 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6308   echo $ECHO_N "(cached) $ECHO_C" >&6
6309 else
6310   lt_cv_ld_exported_symbols_list=no
6311       save_LDFLAGS=$LDFLAGS
6312       echo "_main" > conftest.sym
6313       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6314       cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h.  */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h.  */
6320
6321 int
6322 main ()
6323 {
6324
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (ac_try="$ac_link"
6331 case "(($ac_try" in
6332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333   *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336   (eval "$ac_link") 2>conftest.er1
6337   ac_status=$?
6338   grep -v '^ *+' conftest.er1 >conftest.err
6339   rm -f conftest.er1
6340   cat conftest.err >&5
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } && {
6343          test -z "$ac_c_werror_flag" ||
6344          test ! -s conftest.err
6345        } && test -s conftest$ac_exeext &&
6346        $as_test_x conftest$ac_exeext; then
6347   lt_cv_ld_exported_symbols_list=yes
6348 else
6349   echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352         lt_cv_ld_exported_symbols_list=no
6353 fi
6354
6355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6356       conftest$ac_exeext conftest.$ac_ext
6357         LDFLAGS="$save_LDFLAGS"
6358
6359 fi
6360 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6361 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6362     case $host_os in
6363     rhapsody* | darwin1.[012])
6364       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6365     darwin1.*)
6366       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6367     darwin*) # darwin 5.x on
6368       # if running on 10.5 or later, the deployment target defaults
6369       # to the OS version, if on x86, and 10.4, the deployment
6370       # target defaults to 10.4. Don't you love it?
6371       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6372         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6373           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6374         10.[012]*)
6375           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6376         10.*)
6377           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6378       esac
6379     ;;
6380   esac
6381     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6382       _lt_dar_single_mod='$single_module'
6383     fi
6384     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6385       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6386     else
6387       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6388     fi
6389     if test "$DSYMUTIL" != ":"; then
6390       _lt_dsymutil='~$DSYMUTIL $lib || :'
6391     else
6392       _lt_dsymutil=
6393     fi
6394     ;;
6395   esac
6396
6397 ac_ext=c
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6403 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6404 # On Suns, sometimes $CPP names a directory.
6405 if test -n "$CPP" && test -d "$CPP"; then
6406   CPP=
6407 fi
6408 if test -z "$CPP"; then
6409   if test "${ac_cv_prog_CPP+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412       # Double quotes because CPP needs to be expanded
6413     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6414     do
6415       ac_preproc_ok=false
6416 for ac_c_preproc_warn_flag in '' yes
6417 do
6418   # Use a header file that comes with gcc, so configuring glibc
6419   # with a fresh cross-compiler works.
6420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6421   # <limits.h> exists even on freestanding compilers.
6422   # On the NeXT, cc -E runs the code through the compiler's parser,
6423   # not just through cpp. "Syntax error" is here to catch this case.
6424   cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 #ifdef __STDC__
6431 # include <limits.h>
6432 #else
6433 # include <assert.h>
6434 #endif
6435                      Syntax error
6436 _ACEOF
6437 if { (ac_try="$ac_cpp conftest.$ac_ext"
6438 case "(($ac_try" in
6439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440   *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6444   ac_status=$?
6445   grep -v '^ *+' conftest.er1 >conftest.err
6446   rm -f conftest.er1
6447   cat conftest.err >&5
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } >/dev/null && {
6450          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6451          test ! -s conftest.err
6452        }; then
6453   :
6454 else
6455   echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458   # Broken: fails on valid input.
6459 continue
6460 fi
6461
6462 rm -f conftest.err conftest.$ac_ext
6463
6464   # OK, works on sane cases.  Now check whether nonexistent headers
6465   # can be detected and how.
6466   cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 #include <ac_nonexistent.h>
6473 _ACEOF
6474 if { (ac_try="$ac_cpp conftest.$ac_ext"
6475 case "(($ac_try" in
6476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477   *) ac_try_echo=$ac_try;;
6478 esac
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6481   ac_status=$?
6482   grep -v '^ *+' conftest.er1 >conftest.err
6483   rm -f conftest.er1
6484   cat conftest.err >&5
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } >/dev/null && {
6487          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6488          test ! -s conftest.err
6489        }; then
6490   # Broken: success on invalid input.
6491 continue
6492 else
6493   echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496   # Passes both tests.
6497 ac_preproc_ok=:
6498 break
6499 fi
6500
6501 rm -f conftest.err conftest.$ac_ext
6502
6503 done
6504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6505 rm -f conftest.err conftest.$ac_ext
6506 if $ac_preproc_ok; then
6507   break
6508 fi
6509
6510     done
6511     ac_cv_prog_CPP=$CPP
6512
6513 fi
6514   CPP=$ac_cv_prog_CPP
6515 else
6516   ac_cv_prog_CPP=$CPP
6517 fi
6518 { echo "$as_me:$LINENO: result: $CPP" >&5
6519 echo "${ECHO_T}$CPP" >&6; }
6520 ac_preproc_ok=false
6521 for ac_c_preproc_warn_flag in '' yes
6522 do
6523   # Use a header file that comes with gcc, so configuring glibc
6524   # with a fresh cross-compiler works.
6525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6526   # <limits.h> exists even on freestanding compilers.
6527   # On the NeXT, cc -E runs the code through the compiler's parser,
6528   # not just through cpp. "Syntax error" is here to catch this case.
6529   cat >conftest.$ac_ext <<_ACEOF
6530 /* confdefs.h.  */
6531 _ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h.  */
6535 #ifdef __STDC__
6536 # include <limits.h>
6537 #else
6538 # include <assert.h>
6539 #endif
6540                      Syntax error
6541 _ACEOF
6542 if { (ac_try="$ac_cpp conftest.$ac_ext"
6543 case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6549   ac_status=$?
6550   grep -v '^ *+' conftest.er1 >conftest.err
6551   rm -f conftest.er1
6552   cat conftest.err >&5
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } >/dev/null && {
6555          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6556          test ! -s conftest.err
6557        }; then
6558   :
6559 else
6560   echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563   # Broken: fails on valid input.
6564 continue
6565 fi
6566
6567 rm -f conftest.err conftest.$ac_ext
6568
6569   # OK, works on sane cases.  Now check whether nonexistent headers
6570   # can be detected and how.
6571   cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 #include <ac_nonexistent.h>
6578 _ACEOF
6579 if { (ac_try="$ac_cpp conftest.$ac_ext"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } >/dev/null && {
6592          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        }; then
6595   # Broken: success on invalid input.
6596 continue
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601   # Passes both tests.
6602 ac_preproc_ok=:
6603 break
6604 fi
6605
6606 rm -f conftest.err conftest.$ac_ext
6607
6608 done
6609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6610 rm -f conftest.err conftest.$ac_ext
6611 if $ac_preproc_ok; then
6612   :
6613 else
6614   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6615 See \`config.log' for more details." >&5
6616 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6617 See \`config.log' for more details." >&2;}
6618    { (exit 1); exit 1; }; }
6619 fi
6620
6621 ac_ext=c
6622 ac_cpp='$CPP $CPPFLAGS'
6623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627
6628 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6630 if test "${ac_cv_header_stdc+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 #include <stdlib.h>
6640 #include <stdarg.h>
6641 #include <string.h>
6642 #include <float.h>
6643
6644 int
6645 main ()
6646 {
6647
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (ac_try="$ac_compile"
6654 case "(($ac_try" in
6655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656   *) ac_try_echo=$ac_try;;
6657 esac
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659   (eval "$ac_compile") 2>conftest.er1
6660   ac_status=$?
6661   grep -v '^ *+' conftest.er1 >conftest.err
6662   rm -f conftest.er1
6663   cat conftest.err >&5
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } && {
6666          test -z "$ac_c_werror_flag" ||
6667          test ! -s conftest.err
6668        } && test -s conftest.$ac_objext; then
6669   ac_cv_header_stdc=yes
6670 else
6671   echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674         ac_cv_header_stdc=no
6675 fi
6676
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678
6679 if test $ac_cv_header_stdc = yes; then
6680   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6681   cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h.  */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h.  */
6687 #include <string.h>
6688
6689 _ACEOF
6690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6691   $EGREP "memchr" >/dev/null 2>&1; then
6692   :
6693 else
6694   ac_cv_header_stdc=no
6695 fi
6696 rm -f conftest*
6697
6698 fi
6699
6700 if test $ac_cv_header_stdc = yes; then
6701   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6702   cat >conftest.$ac_ext <<_ACEOF
6703 /* confdefs.h.  */
6704 _ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h.  */
6708 #include <stdlib.h>
6709
6710 _ACEOF
6711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712   $EGREP "free" >/dev/null 2>&1; then
6713   :
6714 else
6715   ac_cv_header_stdc=no
6716 fi
6717 rm -f conftest*
6718
6719 fi
6720
6721 if test $ac_cv_header_stdc = yes; then
6722   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6723   if test "$cross_compiling" = yes; then
6724   :
6725 else
6726   cat >conftest.$ac_ext <<_ACEOF
6727 /* confdefs.h.  */
6728 _ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h.  */
6732 #include <ctype.h>
6733 #include <stdlib.h>
6734 #if ((' ' & 0x0FF) == 0x020)
6735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6737 #else
6738 # define ISLOWER(c) \
6739                    (('a' <= (c) && (c) <= 'i') \
6740                      || ('j' <= (c) && (c) <= 'r') \
6741                      || ('s' <= (c) && (c) <= 'z'))
6742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6743 #endif
6744
6745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6746 int
6747 main ()
6748 {
6749   int i;
6750   for (i = 0; i < 256; i++)
6751     if (XOR (islower (i), ISLOWER (i))
6752         || toupper (i) != TOUPPER (i))
6753       return 2;
6754   return 0;
6755 }
6756 _ACEOF
6757 rm -f conftest$ac_exeext
6758 if { (ac_try="$ac_link"
6759 case "(($ac_try" in
6760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761   *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764   (eval "$ac_link") 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6768   { (case "(($ac_try" in
6769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770   *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773   (eval "$ac_try") 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   :
6778 else
6779   echo "$as_me: program exited with status $ac_status" >&5
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ( exit $ac_status )
6784 ac_cv_header_stdc=no
6785 fi
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6787 fi
6788
6789
6790 fi
6791 fi
6792 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6793 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6794 if test $ac_cv_header_stdc = yes; then
6795
6796 cat >>confdefs.h <<\_ACEOF
6797 #define STDC_HEADERS 1
6798 _ACEOF
6799
6800 fi
6801
6802 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6813                   inttypes.h stdint.h unistd.h
6814 do
6815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 $ac_includes_default
6828
6829 #include <$ac_header>
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (ac_try="$ac_compile"
6833 case "(($ac_try" in
6834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835   *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838   (eval "$ac_compile") 2>conftest.er1
6839   ac_status=$?
6840   grep -v '^ *+' conftest.er1 >conftest.err
6841   rm -f conftest.er1
6842   cat conftest.err >&5
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } && {
6845          test -z "$ac_c_werror_flag" ||
6846          test ! -s conftest.err
6847        } && test -s conftest.$ac_objext; then
6848   eval "$as_ac_Header=yes"
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853         eval "$as_ac_Header=no"
6854 fi
6855
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 ac_res=`eval echo '${'$as_ac_Header'}'`
6859                { echo "$as_me:$LINENO: result: $ac_res" >&5
6860 echo "${ECHO_T}$ac_res" >&6; }
6861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6862   cat >>confdefs.h <<_ACEOF
6863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6864 _ACEOF
6865
6866 fi
6867
6868 done
6869
6870
6871
6872 for ac_header in dlfcn.h
6873 do
6874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 $ac_includes_default
6887
6888 #include <$ac_header>
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (ac_try="$ac_compile"
6892 case "(($ac_try" in
6893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894   *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897   (eval "$ac_compile") 2>conftest.er1
6898   ac_status=$?
6899   grep -v '^ *+' conftest.er1 >conftest.err
6900   rm -f conftest.er1
6901   cat conftest.err >&5
6902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903   (exit $ac_status); } && {
6904          test -z "$ac_c_werror_flag" ||
6905          test ! -s conftest.err
6906        } && test -s conftest.$ac_objext; then
6907   eval "$as_ac_Header=yes"
6908 else
6909   echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912         eval "$as_ac_Header=no"
6913 fi
6914
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 fi
6917 ac_res=`eval echo '${'$as_ac_Header'}'`
6918                { echo "$as_me:$LINENO: result: $ac_res" >&5
6919 echo "${ECHO_T}$ac_res" >&6; }
6920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6921   cat >>confdefs.h <<_ACEOF
6922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6923 _ACEOF
6924
6925 fi
6926
6927 done
6928
6929
6930
6931 # Set options
6932
6933
6934
6935         enable_dlopen=no
6936
6937
6938   enable_win32_dll=no
6939
6940
6941             # Check whether --enable-shared was given.
6942 if test "${enable_shared+set}" = set; then
6943   enableval=$enable_shared; p=${PACKAGE-default}
6944     case $enableval in
6945     yes) enable_shared=yes ;;
6946     no) enable_shared=no ;;
6947     *)
6948       enable_shared=no
6949       # Look at the argument we got.  We use all the common list separators.
6950       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6951       for pkg in $enableval; do
6952         IFS="$lt_save_ifs"
6953         if test "X$pkg" = "X$p"; then
6954           enable_shared=yes
6955         fi
6956       done
6957       IFS="$lt_save_ifs"
6958       ;;
6959     esac
6960 else
6961   enable_shared=yes
6962 fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974 # Check whether --with-pic was given.
6975 if test "${with_pic+set}" = set; then
6976   withval=$with_pic; pic_mode="$withval"
6977 else
6978   pic_mode=default
6979 fi
6980
6981
6982 test -z "$pic_mode" && pic_mode=default
6983
6984
6985
6986
6987
6988
6989
6990   # Check whether --enable-fast-install was given.
6991 if test "${enable_fast_install+set}" = set; then
6992   enableval=$enable_fast_install; p=${PACKAGE-default}
6993     case $enableval in
6994     yes) enable_fast_install=yes ;;
6995     no) enable_fast_install=no ;;
6996     *)
6997       enable_fast_install=no
6998       # Look at the argument we got.  We use all the common list separators.
6999       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7000       for pkg in $enableval; do
7001         IFS="$lt_save_ifs"
7002         if test "X$pkg" = "X$p"; then
7003           enable_fast_install=yes
7004         fi
7005       done
7006       IFS="$lt_save_ifs"
7007       ;;
7008     esac
7009 else
7010   enable_fast_install=yes
7011 fi
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023 # This can be used to rebuild libtool when needed
7024 LIBTOOL_DEPS="$ltmain"
7025
7026 # Always use our own libtool.
7027 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 test -z "$LN_S" && LN_S="ln -s"
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068 if test -n "${ZSH_VERSION+set}" ; then
7069    setopt NO_GLOB_SUBST
7070 fi
7071
7072 { echo "$as_me:$LINENO: checking for objdir" >&5
7073 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7074 if test "${lt_cv_objdir+set}" = set; then
7075   echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077   rm -f .libs 2>/dev/null
7078 mkdir .libs 2>/dev/null
7079 if test -d .libs; then
7080   lt_cv_objdir=.libs
7081 else
7082   # MS-DOS does not allow filenames that begin with a dot.
7083   lt_cv_objdir=_libs
7084 fi
7085 rmdir .libs 2>/dev/null
7086 fi
7087 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7088 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7089 objdir=$lt_cv_objdir
7090
7091
7092
7093
7094
7095 cat >>confdefs.h <<_ACEOF
7096 #define LT_OBJDIR "$lt_cv_objdir/"
7097 _ACEOF
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 case $host_os in
7116 aix3*)
7117   # AIX sometimes has problems with the GCC collect2 program.  For some
7118   # reason, if we set the COLLECT_NAMES environment variable, the problems
7119   # vanish in a puff of smoke.
7120   if test "X${COLLECT_NAMES+set}" != Xset; then
7121     COLLECT_NAMES=
7122     export COLLECT_NAMES
7123   fi
7124   ;;
7125 esac
7126
7127 # Sed substitution that helps us do robust quoting.  It backslashifies
7128 # metacharacters that are still active within double-quoted strings.
7129 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7130
7131 # Same as above, but do not quote variable references.
7132 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7133
7134 # Sed substitution to delay expansion of an escaped shell variable in a
7135 # double_quote_subst'ed string.
7136 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7137
7138 # Sed substitution to delay expansion of an escaped single quote.
7139 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7140
7141 # Sed substitution to avoid accidental globbing in evaled expressions
7142 no_glob_subst='s/\*/\\\*/g'
7143
7144 # Global variables:
7145 ofile=libtool
7146 can_build_shared=yes
7147
7148 # All known linkers require a `.a' archive for static linking (except MSVC,
7149 # which needs '.lib').
7150 libext=a
7151
7152 with_gnu_ld="$lt_cv_prog_gnu_ld"
7153
7154 old_CC="$CC"
7155 old_CFLAGS="$CFLAGS"
7156
7157 # Set sane defaults for various variables
7158 test -z "$CC" && CC=cc
7159 test -z "$LTCC" && LTCC=$CC
7160 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7161 test -z "$LD" && LD=ld
7162 test -z "$ac_objext" && ac_objext=o
7163
7164 for cc_temp in $compiler""; do
7165   case $cc_temp in
7166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7168     \-*) ;;
7169     *) break;;
7170   esac
7171 done
7172 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7173
7174
7175 # Only perform the check for file, if the check method requires it
7176 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7177 case $deplibs_check_method in
7178 file_magic*)
7179   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7180     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7181 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   case $MAGIC_CMD in
7186 [\\/*] |  ?:[\\/]*)
7187   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7188   ;;
7189 *)
7190   lt_save_MAGIC_CMD="$MAGIC_CMD"
7191   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7192   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7193   for ac_dir in $ac_dummy; do
7194     IFS="$lt_save_ifs"
7195     test -z "$ac_dir" && ac_dir=.
7196     if test -f $ac_dir/${ac_tool_prefix}file; then
7197       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7198       if test -n "$file_magic_test_file"; then
7199         case $deplibs_check_method in
7200         "file_magic "*)
7201           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7202           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7203           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7204             $EGREP "$file_magic_regex" > /dev/null; then
7205             :
7206           else
7207             cat <<_LT_EOF 1>&2
7208
7209 *** Warning: the command libtool uses to detect shared libraries,
7210 *** $file_magic_cmd, produces output that libtool cannot recognize.
7211 *** The result is that libtool may fail to recognize shared libraries
7212 *** as such.  This will affect the creation of libtool libraries that
7213 *** depend on shared libraries, but programs linked with such libtool
7214 *** libraries will work regardless of this problem.  Nevertheless, you
7215 *** may want to report the problem to your system manager and/or to
7216 *** bug-libtool@gnu.org
7217
7218 _LT_EOF
7219           fi ;;
7220         esac
7221       fi
7222       break
7223     fi
7224   done
7225   IFS="$lt_save_ifs"
7226   MAGIC_CMD="$lt_save_MAGIC_CMD"
7227   ;;
7228 esac
7229 fi
7230
7231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7232 if test -n "$MAGIC_CMD"; then
7233   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7234 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7235 else
7236   { echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6; }
7238 fi
7239
7240
7241
7242
7243
7244 if test -z "$lt_cv_path_MAGIC_CMD"; then
7245   if test -n "$ac_tool_prefix"; then
7246     { echo "$as_me:$LINENO: checking for file" >&5
7247 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7248 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 else
7251   case $MAGIC_CMD in
7252 [\\/*] |  ?:[\\/]*)
7253   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7254   ;;
7255 *)
7256   lt_save_MAGIC_CMD="$MAGIC_CMD"
7257   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7258   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7259   for ac_dir in $ac_dummy; do
7260     IFS="$lt_save_ifs"
7261     test -z "$ac_dir" && ac_dir=.
7262     if test -f $ac_dir/file; then
7263       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7264       if test -n "$file_magic_test_file"; then
7265         case $deplibs_check_method in
7266         "file_magic "*)
7267           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7268           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7269           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7270             $EGREP "$file_magic_regex" > /dev/null; then
7271             :
7272           else
7273             cat <<_LT_EOF 1>&2
7274
7275 *** Warning: the command libtool uses to detect shared libraries,
7276 *** $file_magic_cmd, produces output that libtool cannot recognize.
7277 *** The result is that libtool may fail to recognize shared libraries
7278 *** as such.  This will affect the creation of libtool libraries that
7279 *** depend on shared libraries, but programs linked with such libtool
7280 *** libraries will work regardless of this problem.  Nevertheless, you
7281 *** may want to report the problem to your system manager and/or to
7282 *** bug-libtool@gnu.org
7283
7284 _LT_EOF
7285           fi ;;
7286         esac
7287       fi
7288       break
7289     fi
7290   done
7291   IFS="$lt_save_ifs"
7292   MAGIC_CMD="$lt_save_MAGIC_CMD"
7293   ;;
7294 esac
7295 fi
7296
7297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7298 if test -n "$MAGIC_CMD"; then
7299   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7300 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7301 else
7302   { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7304 fi
7305
7306
7307   else
7308     MAGIC_CMD=:
7309   fi
7310 fi
7311
7312   fi
7313   ;;
7314 esac
7315
7316 # Use C for the default configuration in the libtool script
7317
7318 lt_save_CC="$CC"
7319 ac_ext=c
7320 ac_cpp='$CPP $CPPFLAGS'
7321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325
7326 # Source file extension for C test sources.
7327 ac_ext=c
7328
7329 # Object file extension for compiled C test sources.
7330 objext=o
7331 objext=$objext
7332
7333 # Code to be used in simple compile tests
7334 lt_simple_compile_test_code="int some_variable = 0;"
7335
7336 # Code to be used in simple link tests
7337 lt_simple_link_test_code='int main(){return(0);}'
7338
7339
7340
7341
7342
7343
7344
7345 # If no C compiler was specified, use CC.
7346 LTCC=${LTCC-"$CC"}
7347
7348 # If no C compiler flags were specified, use CFLAGS.
7349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7350
7351 # Allow CC to be a program name with arguments.
7352 compiler=$CC
7353
7354 # Save the default compiler, since it gets overwritten when the other
7355 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7356 compiler_DEFAULT=$CC
7357
7358 # save warnings/boilerplate of simple test code
7359 ac_outfile=conftest.$ac_objext
7360 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7361 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7362 _lt_compiler_boilerplate=`cat conftest.err`
7363 $RM conftest*
7364
7365 ac_outfile=conftest.$ac_objext
7366 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7367 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7368 _lt_linker_boilerplate=`cat conftest.err`
7369 $RM -r conftest*
7370
7371
7372 ## CAVEAT EMPTOR:
7373 ## There is no encapsulation within the following macros, do not change
7374 ## the running order or otherwise move them around unless you know exactly
7375 ## what you are doing...
7376 if test -n "$compiler"; then
7377
7378 lt_prog_compiler_no_builtin_flag=
7379
7380 if test "$GCC" = yes; then
7381   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7382
7383   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7384 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7385 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   lt_cv_prog_compiler_rtti_exceptions=no
7389    ac_outfile=conftest.$ac_objext
7390    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7391    lt_compiler_flag="-fno-rtti -fno-exceptions"
7392    # Insert the option either (1) after the last *FLAGS variable, or
7393    # (2) before a word containing "conftest.", or (3) at the end.
7394    # Note that $ac_compile itself does not contain backslashes and begins
7395    # with a dollar sign (not a hyphen), so the echo should work correctly.
7396    # The option is referenced via a variable to avoid confusing sed.
7397    lt_compile=`echo "$ac_compile" | $SED \
7398    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7399    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7400    -e 's:$: $lt_compiler_flag:'`
7401    (eval echo "\"\$as_me:7401: $lt_compile\"" >&5)
7402    (eval "$lt_compile" 2>conftest.err)
7403    ac_status=$?
7404    cat conftest.err >&5
7405    echo "$as_me:7405: \$? = $ac_status" >&5
7406    if (exit $ac_status) && test -s "$ac_outfile"; then
7407      # The compiler can only warn and ignore the option if not recognized
7408      # So say no if there are warnings other than the usual output.
7409      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7410      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7411      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7412        lt_cv_prog_compiler_rtti_exceptions=yes
7413      fi
7414    fi
7415    $RM conftest*
7416
7417 fi
7418 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7419 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7420
7421 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7422     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7423 else
7424     :
7425 fi
7426
7427 fi
7428
7429
7430
7431
7432
7433
7434   lt_prog_compiler_wl=
7435 lt_prog_compiler_pic=
7436 lt_prog_compiler_static=
7437
7438 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7439 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7440
7441   if test "$GCC" = yes; then
7442     lt_prog_compiler_wl='-Wl,'
7443     lt_prog_compiler_static='-static'
7444
7445     case $host_os in
7446       aix*)
7447       # All AIX code is PIC.
7448       if test "$host_cpu" = ia64; then
7449         # AIX 5 now supports IA64 processor
7450         lt_prog_compiler_static='-Bstatic'
7451       fi
7452       ;;
7453
7454     amigaos*)
7455       case $host_cpu in
7456       powerpc)
7457             # see comment about AmigaOS4 .so support
7458             lt_prog_compiler_pic='-fPIC'
7459         ;;
7460       m68k)
7461             # FIXME: we need at least 68020 code to build shared libraries, but
7462             # adding the `-m68020' flag to GCC prevents building anything better,
7463             # like `-m68040'.
7464             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7465         ;;
7466       esac
7467       ;;
7468
7469     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7470       # PIC is the default for these OSes.
7471       ;;
7472
7473     mingw* | cygwin* | pw32* | os2*)
7474       # This hack is so that the source file can tell whether it is being
7475       # built for inclusion in a dll (and should export symbols for example).
7476       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7477       # (--disable-auto-import) libraries
7478       lt_prog_compiler_pic='-DDLL_EXPORT'
7479       ;;
7480
7481     darwin* | rhapsody*)
7482       # PIC is the default on this platform
7483       # Common symbols not allowed in MH_DYLIB files
7484       lt_prog_compiler_pic='-fno-common'
7485       ;;
7486
7487     hpux*)
7488       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7489       # not for PA HP-UX.
7490       case $host_cpu in
7491       hppa*64*|ia64*)
7492         # +Z the default
7493         ;;
7494       *)
7495         lt_prog_compiler_pic='-fPIC'
7496         ;;
7497       esac
7498       ;;
7499
7500     interix[3-9]*)
7501       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7502       # Instead, we relocate shared libraries at runtime.
7503       ;;
7504
7505     msdosdjgpp*)
7506       # Just because we use GCC doesn't mean we suddenly get shared libraries
7507       # on systems that don't support them.
7508       lt_prog_compiler_can_build_shared=no
7509       enable_shared=no
7510       ;;
7511
7512     *nto* | *qnx*)
7513       # QNX uses GNU C++, but need to define -shared option too, otherwise
7514       # it will coredump.
7515       lt_prog_compiler_pic='-fPIC -shared'
7516       ;;
7517
7518     sysv4*MP*)
7519       if test -d /usr/nec; then
7520         lt_prog_compiler_pic=-Kconform_pic
7521       fi
7522       ;;
7523
7524     *)
7525       lt_prog_compiler_pic='-fPIC'
7526       ;;
7527     esac
7528   else
7529     # PORTME Check for flag to pass linker flags through the system compiler.
7530     case $host_os in
7531     aix*)
7532       lt_prog_compiler_wl='-Wl,'
7533       if test "$host_cpu" = ia64; then
7534         # AIX 5 now supports IA64 processor
7535         lt_prog_compiler_static='-Bstatic'
7536       else
7537         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7538       fi
7539       ;;
7540
7541     mingw* | cygwin* | pw32* | os2*)
7542       # This hack is so that the source file can tell whether it is being
7543       # built for inclusion in a dll (and should export symbols for example).
7544       lt_prog_compiler_pic='-DDLL_EXPORT'
7545       ;;
7546
7547     hpux9* | hpux10* | hpux11*)
7548       lt_prog_compiler_wl='-Wl,'
7549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7550       # not for PA HP-UX.
7551       case $host_cpu in
7552       hppa*64*|ia64*)
7553         # +Z the default
7554         ;;
7555       *)
7556         lt_prog_compiler_pic='+Z'
7557         ;;
7558       esac
7559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7560       lt_prog_compiler_static='${wl}-a ${wl}archive'
7561       ;;
7562
7563     irix5* | irix6* | nonstopux*)
7564       lt_prog_compiler_wl='-Wl,'
7565       # PIC (with -KPIC) is the default.
7566       lt_prog_compiler_static='-non_shared'
7567       ;;
7568
7569     linux* | k*bsd*-gnu)
7570       case $cc_basename in
7571       icc* | ecc* | ifort*)
7572         lt_prog_compiler_wl='-Wl,'
7573         lt_prog_compiler_pic='-KPIC'
7574         lt_prog_compiler_static='-static'
7575         ;;
7576       pgcc* | pgf77* | pgf90* | pgf95*)
7577         # Portland Group compilers (*not* the Pentium gcc compiler,
7578         # which looks to be a dead project)
7579         lt_prog_compiler_wl='-Wl,'
7580         lt_prog_compiler_pic='-fpic'
7581         lt_prog_compiler_static='-Bstatic'
7582         ;;
7583       ccc*)
7584         lt_prog_compiler_wl='-Wl,'
7585         # All Alpha code is PIC.
7586         lt_prog_compiler_static='-non_shared'
7587         ;;
7588       xl*)
7589         # IBM XL C 8.0/Fortran 10.1 on PPC
7590         lt_prog_compiler_wl='-Wl,'
7591         lt_prog_compiler_pic='-qpic'
7592         lt_prog_compiler_static='-qstaticlink'
7593         ;;
7594       *)
7595         case `$CC -V 2>&1 | sed 5q` in
7596         *Sun\ C*)
7597           # Sun C 5.9
7598           lt_prog_compiler_pic='-KPIC'
7599           lt_prog_compiler_static='-Bstatic'
7600           lt_prog_compiler_wl='-Wl,'
7601           ;;
7602         *Sun\ F*)
7603           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7604           lt_prog_compiler_pic='-KPIC'
7605           lt_prog_compiler_static='-Bstatic'
7606           lt_prog_compiler_wl=''
7607           ;;
7608         esac
7609         ;;
7610       esac
7611       ;;
7612
7613     newsos6)
7614       lt_prog_compiler_pic='-KPIC'
7615       lt_prog_compiler_static='-Bstatic'
7616       ;;
7617
7618     *nto* | *qnx*)
7619       # QNX uses GNU C++, but need to define -shared option too, otherwise
7620       # it will coredump.
7621       lt_prog_compiler_pic='-fPIC -shared'
7622       ;;
7623
7624     osf3* | osf4* | osf5*)
7625       lt_prog_compiler_wl='-Wl,'
7626       # All OSF/1 code is PIC.
7627       lt_prog_compiler_static='-non_shared'
7628       ;;
7629
7630     rdos*)
7631       lt_prog_compiler_static='-non_shared'
7632       ;;
7633
7634     solaris*)
7635       lt_prog_compiler_pic='-KPIC'
7636       lt_prog_compiler_static='-Bstatic'
7637       case $cc_basename in
7638       f77* | f90* | f95*)
7639         lt_prog_compiler_wl='-Qoption ld ';;
7640       *)
7641         lt_prog_compiler_wl='-Wl,';;
7642       esac
7643       ;;
7644
7645     sunos4*)
7646       lt_prog_compiler_wl='-Qoption ld '
7647       lt_prog_compiler_pic='-PIC'
7648       lt_prog_compiler_static='-Bstatic'
7649       ;;
7650
7651     sysv4 | sysv4.2uw2* | sysv4.3*)
7652       lt_prog_compiler_wl='-Wl,'
7653       lt_prog_compiler_pic='-KPIC'
7654       lt_prog_compiler_static='-Bstatic'
7655       ;;
7656
7657     sysv4*MP*)
7658       if test -d /usr/nec ;then
7659         lt_prog_compiler_pic='-Kconform_pic'
7660         lt_prog_compiler_static='-Bstatic'
7661       fi
7662       ;;
7663
7664     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7665       lt_prog_compiler_wl='-Wl,'
7666       lt_prog_compiler_pic='-KPIC'
7667       lt_prog_compiler_static='-Bstatic'
7668       ;;
7669
7670     unicos*)
7671       lt_prog_compiler_wl='-Wl,'
7672       lt_prog_compiler_can_build_shared=no
7673       ;;
7674
7675     uts4*)
7676       lt_prog_compiler_pic='-pic'
7677       lt_prog_compiler_static='-Bstatic'
7678       ;;
7679
7680     *)
7681       lt_prog_compiler_can_build_shared=no
7682       ;;
7683     esac
7684   fi
7685
7686 case $host_os in
7687   # For platforms which do not support PIC, -DPIC is meaningless:
7688   *djgpp*)
7689     lt_prog_compiler_pic=
7690     ;;
7691   *)
7692     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7693     ;;
7694 esac
7695 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7696 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7697
7698
7699
7700
7701
7702
7703 #
7704 # Check to make sure the PIC flag actually works.
7705 #
7706 if test -n "$lt_prog_compiler_pic"; then
7707   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7708 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7709 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712   lt_cv_prog_compiler_pic_works=no
7713    ac_outfile=conftest.$ac_objext
7714    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7716    # Insert the option either (1) after the last *FLAGS variable, or
7717    # (2) before a word containing "conftest.", or (3) at the end.
7718    # Note that $ac_compile itself does not contain backslashes and begins
7719    # with a dollar sign (not a hyphen), so the echo should work correctly.
7720    # The option is referenced via a variable to avoid confusing sed.
7721    lt_compile=`echo "$ac_compile" | $SED \
7722    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724    -e 's:$: $lt_compiler_flag:'`
7725    (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
7726    (eval "$lt_compile" 2>conftest.err)
7727    ac_status=$?
7728    cat conftest.err >&5
7729    echo "$as_me:7729: \$? = $ac_status" >&5
7730    if (exit $ac_status) && test -s "$ac_outfile"; then
7731      # The compiler can only warn and ignore the option if not recognized
7732      # So say no if there are warnings other than the usual output.
7733      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7734      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736        lt_cv_prog_compiler_pic_works=yes
7737      fi
7738    fi
7739    $RM conftest*
7740
7741 fi
7742 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7743 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7744
7745 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7746     case $lt_prog_compiler_pic in
7747      "" | " "*) ;;
7748      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7749      esac
7750 else
7751     lt_prog_compiler_pic=
7752      lt_prog_compiler_can_build_shared=no
7753 fi
7754
7755 fi
7756
7757
7758
7759
7760
7761
7762 #
7763 # Check to make sure the static flag actually works.
7764 #
7765 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7766 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7767 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7768 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   lt_cv_prog_compiler_static_works=no
7772    save_LDFLAGS="$LDFLAGS"
7773    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7774    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7775    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7776      # The linker can only warn and ignore the option if not recognized
7777      # So say no if there are warnings
7778      if test -s conftest.err; then
7779        # Append any errors to the config.log.
7780        cat conftest.err 1>&5
7781        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7782        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783        if diff conftest.exp conftest.er2 >/dev/null; then
7784          lt_cv_prog_compiler_static_works=yes
7785        fi
7786      else
7787        lt_cv_prog_compiler_static_works=yes
7788      fi
7789    fi
7790    $RM -r conftest*
7791    LDFLAGS="$save_LDFLAGS"
7792
7793 fi
7794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7795 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7796
7797 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7798     :
7799 else
7800     lt_prog_compiler_static=
7801 fi
7802
7803
7804
7805
7806
7807
7808
7809   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7810 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7811 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   lt_cv_prog_compiler_c_o=no
7815    $RM -r conftest 2>/dev/null
7816    mkdir conftest
7817    cd conftest
7818    mkdir out
7819    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7820
7821    lt_compiler_flag="-o out/conftest2.$ac_objext"
7822    # Insert the option either (1) after the last *FLAGS variable, or
7823    # (2) before a word containing "conftest.", or (3) at the end.
7824    # Note that $ac_compile itself does not contain backslashes and begins
7825    # with a dollar sign (not a hyphen), so the echo should work correctly.
7826    lt_compile=`echo "$ac_compile" | $SED \
7827    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829    -e 's:$: $lt_compiler_flag:'`
7830    (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831    (eval "$lt_compile" 2>out/conftest.err)
7832    ac_status=$?
7833    cat out/conftest.err >&5
7834    echo "$as_me:7834: \$? = $ac_status" >&5
7835    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7836    then
7837      # The compiler can only warn and ignore the option if not recognized
7838      # So say no if there are warnings
7839      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7840      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7841      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7842        lt_cv_prog_compiler_c_o=yes
7843      fi
7844    fi
7845    chmod u+w . 2>&5
7846    $RM conftest*
7847    # SGI C++ compiler will create directory out/ii_files/ for
7848    # template instantiation
7849    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7850    $RM out/* && rmdir out
7851    cd ..
7852    $RM -r conftest
7853    $RM conftest*
7854
7855 fi
7856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7857 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7858
7859
7860
7861
7862
7863
7864   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7866 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7867   echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869   lt_cv_prog_compiler_c_o=no
7870    $RM -r conftest 2>/dev/null
7871    mkdir conftest
7872    cd conftest
7873    mkdir out
7874    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875
7876    lt_compiler_flag="-o out/conftest2.$ac_objext"
7877    # Insert the option either (1) after the last *FLAGS variable, or
7878    # (2) before a word containing "conftest.", or (3) at the end.
7879    # Note that $ac_compile itself does not contain backslashes and begins
7880    # with a dollar sign (not a hyphen), so the echo should work correctly.
7881    lt_compile=`echo "$ac_compile" | $SED \
7882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884    -e 's:$: $lt_compiler_flag:'`
7885    (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886    (eval "$lt_compile" 2>out/conftest.err)
7887    ac_status=$?
7888    cat out/conftest.err >&5
7889    echo "$as_me:7889: \$? = $ac_status" >&5
7890    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7891    then
7892      # The compiler can only warn and ignore the option if not recognized
7893      # So say no if there are warnings
7894      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7895      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7896      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7897        lt_cv_prog_compiler_c_o=yes
7898      fi
7899    fi
7900    chmod u+w . 2>&5
7901    $RM conftest*
7902    # SGI C++ compiler will create directory out/ii_files/ for
7903    # template instantiation
7904    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7905    $RM out/* && rmdir out
7906    cd ..
7907    $RM -r conftest
7908    $RM conftest*
7909
7910 fi
7911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7913
7914
7915
7916
7917 hard_links="nottested"
7918 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7919   # do not overwrite the value of need_locks provided by the user
7920   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7921 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7922   hard_links=yes
7923   $RM conftest*
7924   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7925   touch conftest.a
7926   ln conftest.a conftest.b 2>&5 || hard_links=no
7927   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7928   { echo "$as_me:$LINENO: result: $hard_links" >&5
7929 echo "${ECHO_T}$hard_links" >&6; }
7930   if test "$hard_links" = no; then
7931     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7932 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7933     need_locks=warn
7934   fi
7935 else
7936   need_locks=no
7937 fi
7938
7939
7940
7941
7942
7943
7944   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7945 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7946
7947   runpath_var=
7948   allow_undefined_flag=
7949   always_export_symbols=no
7950   archive_cmds=
7951   archive_expsym_cmds=
7952   compiler_needs_object=no
7953   enable_shared_with_static_runtimes=no
7954   export_dynamic_flag_spec=
7955   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7956   hardcode_automatic=no
7957   hardcode_direct=no
7958   hardcode_direct_absolute=no
7959   hardcode_libdir_flag_spec=
7960   hardcode_libdir_flag_spec_ld=
7961   hardcode_libdir_separator=
7962   hardcode_minus_L=no
7963   hardcode_shlibpath_var=unsupported
7964   inherit_rpath=no
7965   link_all_deplibs=unknown
7966   module_cmds=
7967   module_expsym_cmds=
7968   old_archive_from_new_cmds=
7969   old_archive_from_expsyms_cmds=
7970   thread_safe_flag_spec=
7971   whole_archive_flag_spec=
7972   # include_expsyms should be a list of space-separated symbols to be *always*
7973   # included in the symbol list
7974   include_expsyms=
7975   # exclude_expsyms can be an extended regexp of symbols to exclude
7976   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7977   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7978   # as well as any symbol that contains `d'.
7979   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7980   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7981   # platforms (ab)use it in PIC code, but their linkers get confused if
7982   # the symbol is explicitly referenced.  Since portable code cannot
7983   # rely on this symbol name, it's probably fine to never include it in
7984   # preloaded symbol tables.
7985   # Exclude shared library initialization/finalization symbols.
7986   extract_expsyms_cmds=
7987
7988   case $host_os in
7989   cygwin* | mingw* | pw32*)
7990     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7991     # When not using gcc, we currently assume that we are using
7992     # Microsoft Visual C++.
7993     if test "$GCC" != yes; then
7994       with_gnu_ld=no
7995     fi
7996     ;;
7997   interix*)
7998     # we just hope/assume this is gcc and not c89 (= MSVC++)
7999     with_gnu_ld=yes
8000     ;;
8001   openbsd*)
8002     with_gnu_ld=no
8003     ;;
8004   esac
8005
8006   ld_shlibs=yes
8007   if test "$with_gnu_ld" = yes; then
8008     # If archive_cmds runs LD, not CC, wlarc should be empty
8009     wlarc='${wl}'
8010
8011     # Set some defaults for GNU ld with shared library support. These
8012     # are reset later if shared libraries are not supported. Putting them
8013     # here allows them to be overridden if necessary.
8014     runpath_var=LD_RUN_PATH
8015     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8016     export_dynamic_flag_spec='${wl}--export-dynamic'
8017     # ancient GNU ld didn't support --whole-archive et. al.
8018     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8019       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8020     else
8021       whole_archive_flag_spec=
8022     fi
8023     supports_anon_versioning=no
8024     case `$LD -v 2>&1` in
8025       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8026       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8027       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8028       *\ 2.11.*) ;; # other 2.11 versions
8029       *) supports_anon_versioning=yes ;;
8030     esac
8031
8032     # See if GNU ld supports shared libraries.
8033     case $host_os in
8034     aix[3-9]*)
8035       # On AIX/PPC, the GNU linker is very broken
8036       if test "$host_cpu" != ia64; then
8037         ld_shlibs=no
8038         cat <<_LT_EOF 1>&2
8039
8040 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8041 *** to be unable to reliably create shared libraries on AIX.
8042 *** Therefore, libtool is disabling shared libraries support.  If you
8043 *** really care for shared libraries, you may want to modify your PATH
8044 *** so that a non-GNU linker is found, and then restart.
8045
8046 _LT_EOF
8047       fi
8048       ;;
8049
8050     amigaos*)
8051       case $host_cpu in
8052       powerpc)
8053             # see comment about AmigaOS4 .so support
8054             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055             archive_expsym_cmds=''
8056         ;;
8057       m68k)
8058             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)'
8059             hardcode_libdir_flag_spec='-L$libdir'
8060             hardcode_minus_L=yes
8061         ;;
8062       esac
8063       ;;
8064
8065     beos*)
8066       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8067         allow_undefined_flag=unsupported
8068         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8069         # support --undefined.  This deserves some investigation.  FIXME
8070         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8071       else
8072         ld_shlibs=no
8073       fi
8074       ;;
8075
8076     cygwin* | mingw* | pw32*)
8077       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8078       # as there is no search path for DLLs.
8079       hardcode_libdir_flag_spec='-L$libdir'
8080       allow_undefined_flag=unsupported
8081       always_export_symbols=no
8082       enable_shared_with_static_runtimes=yes
8083       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8084
8085       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8086         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8087         # If the export-symbols file already is a .def file (1st line
8088         # is EXPORTS), use it as is; otherwise, prepend...
8089         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8090           cp $export_symbols $output_objdir/$soname.def;
8091         else
8092           echo EXPORTS > $output_objdir/$soname.def;
8093           cat $export_symbols >> $output_objdir/$soname.def;
8094         fi~
8095         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8096       else
8097         ld_shlibs=no
8098       fi
8099       ;;
8100
8101     interix[3-9]*)
8102       hardcode_direct=no
8103       hardcode_shlibpath_var=no
8104       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8105       export_dynamic_flag_spec='${wl}-E'
8106       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8107       # Instead, shared libraries are loaded at an image base (0x10000000 by
8108       # default) and relocated if they conflict, which is a slow very memory
8109       # consuming and fragmenting process.  To avoid this, we pick a random,
8110       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8111       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8112       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8113       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'
8114       ;;
8115
8116     gnu* | linux* | tpf* | k*bsd*-gnu)
8117       tmp_diet=no
8118       if test "$host_os" = linux-dietlibc; then
8119         case $cc_basename in
8120           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8121         esac
8122       fi
8123       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8124          && test "$tmp_diet" = no
8125       then
8126         tmp_addflag=
8127         tmp_sharedflag='-shared'
8128         case $cc_basename,$host_cpu in
8129         pgcc*)                          # Portland Group C compiler
8130           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'
8131           tmp_addflag=' $pic_flag'
8132           ;;
8133         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8134           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'
8135           tmp_addflag=' $pic_flag -Mnomain' ;;
8136         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8137           tmp_addflag=' -i_dynamic' ;;
8138         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8139           tmp_addflag=' -i_dynamic -nofor_main' ;;
8140         ifc* | ifort*)                  # Intel Fortran compiler
8141           tmp_addflag=' -nofor_main' ;;
8142         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8143           tmp_sharedflag='-qmkshrobj'
8144           tmp_addflag= ;;
8145         esac
8146         case `$CC -V 2>&1 | sed 5q` in
8147         *Sun\ C*)                       # Sun C 5.9
8148           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'
8149           compiler_needs_object=yes
8150           tmp_sharedflag='-G' ;;
8151         *Sun\ F*)                       # Sun Fortran 8.3
8152           tmp_sharedflag='-G' ;;
8153         esac
8154         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155
8156         if test "x$supports_anon_versioning" = xyes; then
8157           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8158             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8159             echo "local: *; };" >> $output_objdir/$libname.ver~
8160             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8161         fi
8162
8163         case $cc_basename in
8164         xlf*)
8165           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8166           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8167           hardcode_libdir_flag_spec=
8168           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8169           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8170           if test "x$supports_anon_versioning" = xyes; then
8171             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8172               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8173               echo "local: *; };" >> $output_objdir/$libname.ver~
8174               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8175           fi
8176           ;;
8177         esac
8178       else
8179         ld_shlibs=no
8180       fi
8181       ;;
8182
8183     netbsd*)
8184       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8185         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8186         wlarc=
8187       else
8188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8189         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8190       fi
8191       ;;
8192
8193     solaris*)
8194       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8195         ld_shlibs=no
8196         cat <<_LT_EOF 1>&2
8197
8198 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8199 *** create shared libraries on Solaris systems.  Therefore, libtool
8200 *** is disabling shared libraries support.  We urge you to upgrade GNU
8201 *** binutils to release 2.9.1 or newer.  Another option is to modify
8202 *** your PATH or compiler configuration so that the native linker is
8203 *** used, and then restart.
8204
8205 _LT_EOF
8206       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8207         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8209       else
8210         ld_shlibs=no
8211       fi
8212       ;;
8213
8214     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8215       case `$LD -v 2>&1` in
8216         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8217         ld_shlibs=no
8218         cat <<_LT_EOF 1>&2
8219
8220 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8221 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8222 *** is disabling shared libraries support.  We urge you to upgrade GNU
8223 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8224 *** your PATH or compiler configuration so that the native linker is
8225 *** used, and then restart.
8226
8227 _LT_EOF
8228         ;;
8229         *)
8230           # For security reasons, it is highly recommended that you always
8231           # use absolute paths for naming shared libraries, and exclude the
8232           # DT_RUNPATH tag from executables and libraries.  But doing so
8233           # requires that you compile everything twice, which is a pain.
8234           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8235             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8236             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8238           else
8239             ld_shlibs=no
8240           fi
8241         ;;
8242       esac
8243       ;;
8244
8245     sunos4*)
8246       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247       wlarc=
8248       hardcode_direct=yes
8249       hardcode_shlibpath_var=no
8250       ;;
8251
8252     *)
8253       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256       else
8257         ld_shlibs=no
8258       fi
8259       ;;
8260     esac
8261
8262     if test "$ld_shlibs" = no; then
8263       runpath_var=
8264       hardcode_libdir_flag_spec=
8265       export_dynamic_flag_spec=
8266       whole_archive_flag_spec=
8267     fi
8268   else
8269     # PORTME fill in a description of your system's linker (not GNU ld)
8270     case $host_os in
8271     aix3*)
8272       allow_undefined_flag=unsupported
8273       always_export_symbols=yes
8274       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'
8275       # Note: this linker hardcodes the directories in LIBPATH if there
8276       # are no directories specified by -L.
8277       hardcode_minus_L=yes
8278       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8279         # Neither direct hardcoding nor static linking is supported with a
8280         # broken collect2.
8281         hardcode_direct=unsupported
8282       fi
8283       ;;
8284
8285     aix[4-9]*)
8286       if test "$host_cpu" = ia64; then
8287         # On IA64, the linker does run time linking by default, so we don't
8288         # have to do anything special.
8289         aix_use_runtimelinking=no
8290         exp_sym_flag='-Bexport'
8291         no_entry_flag=""
8292       else
8293         # If we're using GNU nm, then we don't want the "-C" option.
8294         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8295         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8296           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'
8297         else
8298           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'
8299         fi
8300         aix_use_runtimelinking=no
8301
8302         # Test if we are trying to use run time linking or normal
8303         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8304         # need to do runtime linking.
8305         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8306           for ld_flag in $LDFLAGS; do
8307           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8308             aix_use_runtimelinking=yes
8309             break
8310           fi
8311           done
8312           ;;
8313         esac
8314
8315         exp_sym_flag='-bexport'
8316         no_entry_flag='-bnoentry'
8317       fi
8318
8319       # When large executables or shared objects are built, AIX ld can
8320       # have problems creating the table of contents.  If linking a library
8321       # or program results in "error TOC overflow" add -mminimal-toc to
8322       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8323       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8324
8325       archive_cmds=''
8326       hardcode_direct=yes
8327       hardcode_direct_absolute=yes
8328       hardcode_libdir_separator=':'
8329       link_all_deplibs=yes
8330       file_list_spec='${wl}-f,'
8331
8332       if test "$GCC" = yes; then
8333         case $host_os in aix4.[012]|aix4.[012].*)
8334         # We only want to do this on AIX 4.2 and lower, the check
8335         # below for broken collect2 doesn't work under 4.3+
8336           collect2name=`${CC} -print-prog-name=collect2`
8337           if test -f "$collect2name" &&
8338            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8339           then
8340           # We have reworked collect2
8341           :
8342           else
8343           # We have old collect2
8344           hardcode_direct=unsupported
8345           # It fails to find uninstalled libraries when the uninstalled
8346           # path is not listed in the libpath.  Setting hardcode_minus_L
8347           # to unsupported forces relinking
8348           hardcode_minus_L=yes
8349           hardcode_libdir_flag_spec='-L$libdir'
8350           hardcode_libdir_separator=
8351           fi
8352           ;;
8353         esac
8354         shared_flag='-shared'
8355         if test "$aix_use_runtimelinking" = yes; then
8356           shared_flag="$shared_flag "'${wl}-G'
8357         fi
8358       else
8359         # not using gcc
8360         if test "$host_cpu" = ia64; then
8361         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8362         # chokes on -Wl,-G. The following line is correct:
8363           shared_flag='-G'
8364         else
8365           if test "$aix_use_runtimelinking" = yes; then
8366             shared_flag='${wl}-G'
8367           else
8368             shared_flag='${wl}-bM:SRE'
8369           fi
8370         fi
8371       fi
8372
8373       # It seems that -bexpall does not export symbols beginning with
8374       # underscore (_), so it is better to generate a list of symbols to export.
8375       always_export_symbols=yes
8376       if test "$aix_use_runtimelinking" = yes; then
8377         # Warning - without using the other runtime loading flags (-brtl),
8378         # -berok will link without error, but may produce a broken library.
8379         allow_undefined_flag='-berok'
8380         # Determine the default libpath from the value encoded in an
8381         # empty executable.
8382         cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388
8389 int
8390 main ()
8391 {
8392
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (ac_try="$ac_link"
8399 case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_link") 2>conftest.er1
8405   ac_status=$?
8406   grep -v '^ *+' conftest.er1 >conftest.err
8407   rm -f conftest.er1
8408   cat conftest.err >&5
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); } && {
8411          test -z "$ac_c_werror_flag" ||
8412          test ! -s conftest.err
8413        } && test -s conftest$ac_exeext &&
8414        $as_test_x conftest$ac_exeext; then
8415
8416 lt_aix_libpath_sed='
8417     /Import File Strings/,/^$/ {
8418         /^0/ {
8419             s/^0  *\(.*\)$/\1/
8420             p
8421         }
8422     }'
8423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424 # Check for a 64-bit object if we didn't find anything.
8425 if test -z "$aix_libpath"; then
8426   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8427 fi
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432
8433 fi
8434
8435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8436       conftest$ac_exeext conftest.$ac_ext
8437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8438
8439         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8440         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"
8441       else
8442         if test "$host_cpu" = ia64; then
8443           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8444           allow_undefined_flag="-z nodefs"
8445           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"
8446         else
8447          # Determine the default libpath from the value encoded in an
8448          # empty executable.
8449          cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455
8456 int
8457 main ()
8458 {
8459
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (ac_try="$ac_link"
8466 case "(($ac_try" in
8467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468   *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471   (eval "$ac_link") 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } && {
8478          test -z "$ac_c_werror_flag" ||
8479          test ! -s conftest.err
8480        } && test -s conftest$ac_exeext &&
8481        $as_test_x conftest$ac_exeext; then
8482
8483 lt_aix_libpath_sed='
8484     /Import File Strings/,/^$/ {
8485         /^0/ {
8486             s/^0  *\(.*\)$/\1/
8487             p
8488         }
8489     }'
8490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8491 # Check for a 64-bit object if we didn't find anything.
8492 if test -z "$aix_libpath"; then
8493   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8494 fi
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499
8500 fi
8501
8502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8503       conftest$ac_exeext conftest.$ac_ext
8504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8505
8506          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8507           # Warning - without using the other run time loading flags,
8508           # -berok will link without error, but may produce a broken library.
8509           no_undefined_flag=' ${wl}-bernotok'
8510           allow_undefined_flag=' ${wl}-berok'
8511           # Exported symbols can be pulled into shared objects from archives
8512           whole_archive_flag_spec='$convenience'
8513           archive_cmds_need_lc=yes
8514           # This is similar to how AIX traditionally builds its shared libraries.
8515           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'
8516         fi
8517       fi
8518       ;;
8519
8520     amigaos*)
8521       case $host_cpu in
8522       powerpc)
8523             # see comment about AmigaOS4 .so support
8524             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525             archive_expsym_cmds=''
8526         ;;
8527       m68k)
8528             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)'
8529             hardcode_libdir_flag_spec='-L$libdir'
8530             hardcode_minus_L=yes
8531         ;;
8532       esac
8533       ;;
8534
8535     bsdi[45]*)
8536       export_dynamic_flag_spec=-rdynamic
8537       ;;
8538
8539     cygwin* | mingw* | pw32*)
8540       # When not using gcc, we currently assume that we are using
8541       # Microsoft Visual C++.
8542       # hardcode_libdir_flag_spec is actually meaningless, as there is
8543       # no search path for DLLs.
8544       hardcode_libdir_flag_spec=' '
8545       allow_undefined_flag=unsupported
8546       # Tell ltmain to make .lib files, not .a files.
8547       libext=lib
8548       # Tell ltmain to make .dll files, not .so files.
8549       shrext_cmds=".dll"
8550       # FIXME: Setting linknames here is a bad hack.
8551       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8552       # The linker will automatically build a .lib file if we build a DLL.
8553       old_archive_from_new_cmds='true'
8554       # FIXME: Should let the user specify the lib program.
8555       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8556       fix_srcfile_path='`cygpath -w "$srcfile"`'
8557       enable_shared_with_static_runtimes=yes
8558       ;;
8559
8560     darwin* | rhapsody*)
8561
8562
8563   archive_cmds_need_lc=no
8564   hardcode_direct=no
8565   hardcode_automatic=yes
8566   hardcode_shlibpath_var=unsupported
8567   whole_archive_flag_spec=''
8568   link_all_deplibs=yes
8569   allow_undefined_flag="$_lt_dar_allow_undefined"
8570   if test "$GCC" = "yes"; then
8571     output_verbose_link_cmd=echo
8572     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8573     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8574     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}"
8575     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}"
8576
8577   else
8578   ld_shlibs=no
8579   fi
8580
8581       ;;
8582
8583     dgux*)
8584       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8585       hardcode_libdir_flag_spec='-L$libdir'
8586       hardcode_shlibpath_var=no
8587       ;;
8588
8589     freebsd1*)
8590       ld_shlibs=no
8591       ;;
8592
8593     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8594     # support.  Future versions do this automatically, but an explicit c++rt0.o
8595     # does not break anything, and helps significantly (at the cost of a little
8596     # extra space).
8597     freebsd2.2*)
8598       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8599       hardcode_libdir_flag_spec='-R$libdir'
8600       hardcode_direct=yes
8601       hardcode_shlibpath_var=no
8602       ;;
8603
8604     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8605     freebsd2*)
8606       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607       hardcode_direct=yes
8608       hardcode_minus_L=yes
8609       hardcode_shlibpath_var=no
8610       ;;
8611
8612     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8613     freebsd* | dragonfly*)
8614       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8615       hardcode_libdir_flag_spec='-R$libdir'
8616       hardcode_direct=yes
8617       hardcode_shlibpath_var=no
8618       ;;
8619
8620     hpux9*)
8621       if test "$GCC" = yes; then
8622         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'
8623       else
8624         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'
8625       fi
8626       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8627       hardcode_libdir_separator=:
8628       hardcode_direct=yes
8629
8630       # hardcode_minus_L: Not really in the search PATH,
8631       # but as the default location of the library.
8632       hardcode_minus_L=yes
8633       export_dynamic_flag_spec='${wl}-E'
8634       ;;
8635
8636     hpux10*)
8637       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8638         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8639       else
8640         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8641       fi
8642       if test "$with_gnu_ld" = no; then
8643         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8644         hardcode_libdir_flag_spec_ld='+b $libdir'
8645         hardcode_libdir_separator=:
8646         hardcode_direct=yes
8647         hardcode_direct_absolute=yes
8648         export_dynamic_flag_spec='${wl}-E'
8649         # hardcode_minus_L: Not really in the search PATH,
8650         # but as the default location of the library.
8651         hardcode_minus_L=yes
8652       fi
8653       ;;
8654
8655     hpux11*)
8656       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8657         case $host_cpu in
8658         hppa*64*)
8659           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660           ;;
8661         ia64*)
8662           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8663           ;;
8664         *)
8665           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8666           ;;
8667         esac
8668       else
8669         case $host_cpu in
8670         hppa*64*)
8671           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672           ;;
8673         ia64*)
8674           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8675           ;;
8676         *)
8677           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678           ;;
8679         esac
8680       fi
8681       if test "$with_gnu_ld" = no; then
8682         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8683         hardcode_libdir_separator=:
8684
8685         case $host_cpu in
8686         hppa*64*|ia64*)
8687           hardcode_direct=no
8688           hardcode_shlibpath_var=no
8689           ;;
8690         *)
8691           hardcode_direct=yes
8692           hardcode_direct_absolute=yes
8693           export_dynamic_flag_spec='${wl}-E'
8694
8695           # hardcode_minus_L: Not really in the search PATH,
8696           # but as the default location of the library.
8697           hardcode_minus_L=yes
8698           ;;
8699         esac
8700       fi
8701       ;;
8702
8703     irix5* | irix6* | nonstopux*)
8704       if test "$GCC" = yes; then
8705         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'
8706         # Try to use the -exported_symbol ld option, if it does not
8707         # work, assume that -exports_file does not work either and
8708         # implicitly export all symbols.
8709         save_LDFLAGS="$LDFLAGS"
8710         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8711         cat >conftest.$ac_ext <<_ACEOF
8712 int foo(void) {}
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (ac_try="$ac_link"
8716 case "(($ac_try" in
8717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8718   *) ac_try_echo=$ac_try;;
8719 esac
8720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8721   (eval "$ac_link") 2>conftest.er1
8722   ac_status=$?
8723   grep -v '^ *+' conftest.er1 >conftest.err
8724   rm -f conftest.er1
8725   cat conftest.err >&5
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); } && {
8728          test -z "$ac_c_werror_flag" ||
8729          test ! -s conftest.err
8730        } && test -s conftest$ac_exeext &&
8731        $as_test_x conftest$ac_exeext; then
8732   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'
8733
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738
8739 fi
8740
8741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8742       conftest$ac_exeext conftest.$ac_ext
8743         LDFLAGS="$save_LDFLAGS"
8744       else
8745         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'
8746         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'
8747       fi
8748       archive_cmds_need_lc='no'
8749       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750       hardcode_libdir_separator=:
8751       inherit_rpath=yes
8752       link_all_deplibs=yes
8753       ;;
8754
8755     netbsd*)
8756       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8757         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8758       else
8759         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8760       fi
8761       hardcode_libdir_flag_spec='-R$libdir'
8762       hardcode_direct=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     newsos6)
8767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768       hardcode_direct=yes
8769       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770       hardcode_libdir_separator=:
8771       hardcode_shlibpath_var=no
8772       ;;
8773
8774     *nto* | *qnx*)
8775       ;;
8776
8777     openbsd*)
8778       if test -f /usr/libexec/ld.so; then
8779         hardcode_direct=yes
8780         hardcode_shlibpath_var=no
8781         hardcode_direct_absolute=yes
8782         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8783           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8784           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8785           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786           export_dynamic_flag_spec='${wl}-E'
8787         else
8788           case $host_os in
8789            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8790              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791              hardcode_libdir_flag_spec='-R$libdir'
8792              ;;
8793            *)
8794              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8795              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8796              ;;
8797           esac
8798         fi
8799       else
8800         ld_shlibs=no
8801       fi
8802       ;;
8803
8804     os2*)
8805       hardcode_libdir_flag_spec='-L$libdir'
8806       hardcode_minus_L=yes
8807       allow_undefined_flag=unsupported
8808       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'
8809       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8810       ;;
8811
8812     osf3*)
8813       if test "$GCC" = yes; then
8814         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8815         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'
8816       else
8817         allow_undefined_flag=' -expect_unresolved \*'
8818         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'
8819       fi
8820       archive_cmds_need_lc='no'
8821       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822       hardcode_libdir_separator=:
8823       ;;
8824
8825     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8826       if test "$GCC" = yes; then
8827         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8828         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'
8829         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830       else
8831         allow_undefined_flag=' -expect_unresolved \*'
8832         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'
8833         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~
8834         $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'
8835
8836         # Both c and cxx compiler support -rpath directly
8837         hardcode_libdir_flag_spec='-rpath $libdir'
8838       fi
8839       archive_cmds_need_lc='no'
8840       hardcode_libdir_separator=:
8841       ;;
8842
8843     solaris*)
8844       no_undefined_flag=' -z defs'
8845       if test "$GCC" = yes; then
8846         wlarc='${wl}'
8847         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8849           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8850       else
8851         case `$CC -V 2>&1` in
8852         *"Compilers 5.0"*)
8853           wlarc=''
8854           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8856           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8857           ;;
8858         *)
8859           wlarc='${wl}'
8860           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8861           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8862           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8863           ;;
8864         esac
8865       fi
8866       hardcode_libdir_flag_spec='-R$libdir'
8867       hardcode_shlibpath_var=no
8868       case $host_os in
8869       solaris2.[0-5] | solaris2.[0-5].*) ;;
8870       *)
8871         # The compiler driver will combine and reorder linker options,
8872         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8873         # but is careful enough not to reorder.
8874         # Supported since Solaris 2.6 (maybe 2.5.1?)
8875         if test "$GCC" = yes; then
8876           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8877         else
8878           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8879         fi
8880         ;;
8881       esac
8882       link_all_deplibs=yes
8883       ;;
8884
8885     sunos4*)
8886       if test "x$host_vendor" = xsequent; then
8887         # Use $CC to link under sequent, because it throws in some extra .o
8888         # files that make .init and .fini sections work.
8889         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8890       else
8891         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8892       fi
8893       hardcode_libdir_flag_spec='-L$libdir'
8894       hardcode_direct=yes
8895       hardcode_minus_L=yes
8896       hardcode_shlibpath_var=no
8897       ;;
8898
8899     sysv4)
8900       case $host_vendor in
8901         sni)
8902           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903           hardcode_direct=yes # is this really true???
8904         ;;
8905         siemens)
8906           ## LD is ld it makes a PLAMLIB
8907           ## CC just makes a GrossModule.
8908           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8909           reload_cmds='$CC -r -o $output$reload_objs'
8910           hardcode_direct=no
8911         ;;
8912         motorola)
8913           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8915         ;;
8916       esac
8917       runpath_var='LD_RUN_PATH'
8918       hardcode_shlibpath_var=no
8919       ;;
8920
8921     sysv4.3*)
8922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923       hardcode_shlibpath_var=no
8924       export_dynamic_flag_spec='-Bexport'
8925       ;;
8926
8927     sysv4*MP*)
8928       if test -d /usr/nec; then
8929         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930         hardcode_shlibpath_var=no
8931         runpath_var=LD_RUN_PATH
8932         hardcode_runpath_var=yes
8933         ld_shlibs=yes
8934       fi
8935       ;;
8936
8937     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8938       no_undefined_flag='${wl}-z,text'
8939       archive_cmds_need_lc=no
8940       hardcode_shlibpath_var=no
8941       runpath_var='LD_RUN_PATH'
8942
8943       if test "$GCC" = yes; then
8944         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8945         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946       else
8947         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8949       fi
8950       ;;
8951
8952     sysv5* | sco3.2v5* | sco5v6*)
8953       # Note: We can NOT use -z defs as we might desire, because we do not
8954       # link with -lc, and that would cause any symbols used from libc to
8955       # always be unresolved, which means just about no library would
8956       # ever link correctly.  If we're not using GNU ld we use -z text
8957       # though, which does catch some bad symbols but isn't as heavy-handed
8958       # as -z defs.
8959       no_undefined_flag='${wl}-z,text'
8960       allow_undefined_flag='${wl}-z,nodefs'
8961       archive_cmds_need_lc=no
8962       hardcode_shlibpath_var=no
8963       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8964       hardcode_libdir_separator=':'
8965       link_all_deplibs=yes
8966       export_dynamic_flag_spec='${wl}-Bexport'
8967       runpath_var='LD_RUN_PATH'
8968
8969       if test "$GCC" = yes; then
8970         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8971         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972       else
8973         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8974         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8975       fi
8976       ;;
8977
8978     uts4*)
8979       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980       hardcode_libdir_flag_spec='-L$libdir'
8981       hardcode_shlibpath_var=no
8982       ;;
8983
8984     *)
8985       ld_shlibs=no
8986       ;;
8987     esac
8988
8989     if test x$host_vendor = xsni; then
8990       case $host in
8991       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8992         export_dynamic_flag_spec='${wl}-Blargedynsym'
8993         ;;
8994       esac
8995     fi
8996   fi
8997
8998 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8999 echo "${ECHO_T}$ld_shlibs" >&6; }
9000 test "$ld_shlibs" = no && can_build_shared=no
9001
9002 with_gnu_ld=$with_gnu_ld
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018 #
9019 # Do we need to explicitly link libc?
9020 #
9021 case "x$archive_cmds_need_lc" in
9022 x|xyes)
9023   # Assume -lc should be added
9024   archive_cmds_need_lc=yes
9025
9026   if test "$enable_shared" = yes && test "$GCC" = yes; then
9027     case $archive_cmds in
9028     *'~'*)
9029       # FIXME: we may have to deal with multi-command sequences.
9030       ;;
9031     '$CC '*)
9032       # Test whether the compiler implicitly links with -lc since on some
9033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9034       # to ld, don't add -lc before -lgcc.
9035       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9037       $RM conftest*
9038       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039
9040       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041   (eval $ac_compile) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } 2>conftest.err; then
9045         soname=conftest
9046         lib=conftest
9047         libobjs=conftest.$ac_objext
9048         deplibs=
9049         wl=$lt_prog_compiler_wl
9050         pic_flag=$lt_prog_compiler_pic
9051         compiler_flags=-v
9052         linker_flags=-v
9053         verstring=
9054         output_objdir=.
9055         libname=conftest
9056         lt_save_allow_undefined_flag=$allow_undefined_flag
9057         allow_undefined_flag=
9058         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9059   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }
9063         then
9064           archive_cmds_need_lc=no
9065         else
9066           archive_cmds_need_lc=yes
9067         fi
9068         allow_undefined_flag=$lt_save_allow_undefined_flag
9069       else
9070         cat conftest.err 1>&5
9071       fi
9072       $RM conftest*
9073       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9074 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9075       ;;
9076     esac
9077   fi
9078   ;;
9079 esac
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9239
9240 if test "$GCC" = yes; then
9241   case $host_os in
9242     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9243     *) lt_awk_arg="/^libraries:/" ;;
9244   esac
9245   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9246   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9247     # if the path contains ";" then we assume it to be the separator
9248     # otherwise default to the standard path separator (i.e. ":") - it is
9249     # assumed that no part of a normal pathname contains ";" but that should
9250     # okay in the real world where ";" in dirpaths is itself problematic.
9251     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9252   else
9253     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9254   fi
9255   # Ok, now we have the path, separated by spaces, we can step through it
9256   # and add multilib dir if necessary.
9257   lt_tmp_lt_search_path_spec=
9258   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9259   for lt_sys_path in $lt_search_path_spec; do
9260     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9261       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9262     else
9263       test -d "$lt_sys_path" && \
9264         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9265     fi
9266   done
9267   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9268 BEGIN {RS=" "; FS="/|\n";} {
9269   lt_foo="";
9270   lt_count=0;
9271   for (lt_i = NF; lt_i > 0; lt_i--) {
9272     if ($lt_i != "" && $lt_i != ".") {
9273       if ($lt_i == "..") {
9274         lt_count++;
9275       } else {
9276         if (lt_count == 0) {
9277           lt_foo="/" $lt_i lt_foo;
9278         } else {
9279           lt_count--;
9280         }
9281       }
9282     }
9283   }
9284   if (lt_foo != "") { lt_freq[lt_foo]++; }
9285   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9286 }'`
9287   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9288 else
9289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9290 fi
9291 library_names_spec=
9292 libname_spec='lib$name'
9293 soname_spec=
9294 shrext_cmds=".so"
9295 postinstall_cmds=
9296 postuninstall_cmds=
9297 finish_cmds=
9298 finish_eval=
9299 shlibpath_var=
9300 shlibpath_overrides_runpath=unknown
9301 version_type=none
9302 dynamic_linker="$host_os ld.so"
9303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9304 need_lib_prefix=unknown
9305 hardcode_into_libs=no
9306
9307 # when you set need_version to no, make sure it does not cause -set_version
9308 # flags to be left without arguments
9309 need_version=unknown
9310
9311 case $host_os in
9312 aix3*)
9313   version_type=linux
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9315   shlibpath_var=LIBPATH
9316
9317   # AIX 3 has no versioning support, so we append a major version to the name.
9318   soname_spec='${libname}${release}${shared_ext}$major'
9319   ;;
9320
9321 aix[4-9]*)
9322   version_type=linux
9323   need_lib_prefix=no
9324   need_version=no
9325   hardcode_into_libs=yes
9326   if test "$host_cpu" = ia64; then
9327     # AIX 5 supports IA64
9328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9329     shlibpath_var=LD_LIBRARY_PATH
9330   else
9331     # With GCC up to 2.95.x, collect2 would create an import file
9332     # for dependence libraries.  The import file would start with
9333     # the line `#! .'.  This would cause the generated library to
9334     # depend on `.', always an invalid library.  This was fixed in
9335     # development snapshots of GCC prior to 3.0.
9336     case $host_os in
9337       aix4 | aix4.[01] | aix4.[01].*)
9338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9339            echo ' yes '
9340            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9341         :
9342       else
9343         can_build_shared=no
9344       fi
9345       ;;
9346     esac
9347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9348     # soname into executable. Probably we can add versioning support to
9349     # collect2, so additional links can be useful in future.
9350     if test "$aix_use_runtimelinking" = yes; then
9351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9352       # instead of lib<name>.a to let people know that these are not
9353       # typical AIX shared libraries.
9354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355     else
9356       # We preserve .a as extension for shared libraries through AIX4.2
9357       # and later when we are not doing run time linking.
9358       library_names_spec='${libname}${release}.a $libname.a'
9359       soname_spec='${libname}${release}${shared_ext}$major'
9360     fi
9361     shlibpath_var=LIBPATH
9362   fi
9363   ;;
9364
9365 amigaos*)
9366   case $host_cpu in
9367   powerpc)
9368     # Since July 2007 AmigaOS4 officially supports .so libraries.
9369     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371     ;;
9372   m68k)
9373     library_names_spec='$libname.ixlibrary $libname.a'
9374     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9375     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'
9376     ;;
9377   esac
9378   ;;
9379
9380 beos*)
9381   library_names_spec='${libname}${shared_ext}'
9382   dynamic_linker="$host_os ld.so"
9383   shlibpath_var=LIBRARY_PATH
9384   ;;
9385
9386 bsdi[45]*)
9387   version_type=linux
9388   need_version=no
9389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390   soname_spec='${libname}${release}${shared_ext}$major'
9391   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9392   shlibpath_var=LD_LIBRARY_PATH
9393   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9394   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9395   # the default ld.so.conf also contains /usr/contrib/lib and
9396   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9397   # libtool to hard-code these into programs
9398   ;;
9399
9400 cygwin* | mingw* | pw32*)
9401   version_type=windows
9402   shrext_cmds=".dll"
9403   need_version=no
9404   need_lib_prefix=no
9405
9406   case $GCC,$host_os in
9407   yes,cygwin* | yes,mingw* | yes,pw32*)
9408     library_names_spec='$libname.dll.a'
9409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9410     postinstall_cmds='base_file=`basename \${file}`~
9411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9412       dldir=$destdir/`dirname \$dlpath`~
9413       test -d \$dldir || mkdir -p \$dldir~
9414       $install_prog $dir/$dlname \$dldir/$dlname~
9415       chmod a+x \$dldir/$dlname~
9416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9418       fi'
9419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9420       dlpath=$dir/\$dldll~
9421        $RM \$dlpath'
9422     shlibpath_overrides_runpath=yes
9423
9424     case $host_os in
9425     cygwin*)
9426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9427       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9428       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9429       ;;
9430     mingw*)
9431       # MinGW DLLs use traditional 'lib' prefix
9432       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9433       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9434       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9435         # It is most probably a Windows format PATH printed by
9436         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9437         # path with ; separators, and with drive letters. We can handle the
9438         # drive letters (cygwin fileutils understands them), so leave them,
9439         # especially as we might pass files found there to a mingw objdump,
9440         # which wouldn't understand a cygwinified path. Ahh.
9441         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9442       else
9443         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9444       fi
9445       ;;
9446     pw32*)
9447       # pw32 DLLs use 'pw' prefix rather than 'lib'
9448       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9449       ;;
9450     esac
9451     ;;
9452
9453   *)
9454     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9455     ;;
9456   esac
9457   dynamic_linker='Win32 ld.exe'
9458   # FIXME: first we should search . and the directory the executable is in
9459   shlibpath_var=PATH
9460   ;;
9461
9462 darwin* | rhapsody*)
9463   dynamic_linker="$host_os dyld"
9464   version_type=darwin
9465   need_lib_prefix=no
9466   need_version=no
9467   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9468   soname_spec='${libname}${release}${major}$shared_ext'
9469   shlibpath_overrides_runpath=yes
9470   shlibpath_var=DYLD_LIBRARY_PATH
9471   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9472
9473   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9474   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9475   ;;
9476
9477 dgux*)
9478   version_type=linux
9479   need_lib_prefix=no
9480   need_version=no
9481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9482   soname_spec='${libname}${release}${shared_ext}$major'
9483   shlibpath_var=LD_LIBRARY_PATH
9484   ;;
9485
9486 freebsd1*)
9487   dynamic_linker=no
9488   ;;
9489
9490 freebsd* | dragonfly*)
9491   # DragonFly does not have aout.  When/if they implement a new
9492   # versioning mechanism, adjust this.
9493   if test -x /usr/bin/objformat; then
9494     objformat=`/usr/bin/objformat`
9495   else
9496     case $host_os in
9497     freebsd[123]*) objformat=aout ;;
9498     *) objformat=elf ;;
9499     esac
9500   fi
9501   version_type=freebsd-$objformat
9502   case $version_type in
9503     freebsd-elf*)
9504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9505       need_version=no
9506       need_lib_prefix=no
9507       ;;
9508     freebsd-*)
9509       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9510       need_version=yes
9511       ;;
9512   esac
9513   shlibpath_var=LD_LIBRARY_PATH
9514   case $host_os in
9515   freebsd2*)
9516     shlibpath_overrides_runpath=yes
9517     ;;
9518   freebsd3.[01]* | freebsdelf3.[01]*)
9519     shlibpath_overrides_runpath=yes
9520     hardcode_into_libs=yes
9521     ;;
9522   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9523   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9524     shlibpath_overrides_runpath=no
9525     hardcode_into_libs=yes
9526     ;;
9527   *) # from 4.6 on, and DragonFly
9528     shlibpath_overrides_runpath=yes
9529     hardcode_into_libs=yes
9530     ;;
9531   esac
9532   ;;
9533
9534 gnu*)
9535   version_type=linux
9536   need_lib_prefix=no
9537   need_version=no
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9539   soname_spec='${libname}${release}${shared_ext}$major'
9540   shlibpath_var=LD_LIBRARY_PATH
9541   hardcode_into_libs=yes
9542   ;;
9543
9544 hpux9* | hpux10* | hpux11*)
9545   # Give a soname corresponding to the major version so that dld.sl refuses to
9546   # link against other versions.
9547   version_type=sunos
9548   need_lib_prefix=no
9549   need_version=no
9550   case $host_cpu in
9551   ia64*)
9552     shrext_cmds='.so'
9553     hardcode_into_libs=yes
9554     dynamic_linker="$host_os dld.so"
9555     shlibpath_var=LD_LIBRARY_PATH
9556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558     soname_spec='${libname}${release}${shared_ext}$major'
9559     if test "X$HPUX_IA64_MODE" = X32; then
9560       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9561     else
9562       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9563     fi
9564     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9565     ;;
9566   hppa*64*)
9567     shrext_cmds='.sl'
9568     hardcode_into_libs=yes
9569     dynamic_linker="$host_os dld.sl"
9570     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573     soname_spec='${libname}${release}${shared_ext}$major'
9574     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9575     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9576     ;;
9577   *)
9578     shrext_cmds='.sl'
9579     dynamic_linker="$host_os dld.sl"
9580     shlibpath_var=SHLIB_PATH
9581     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583     soname_spec='${libname}${release}${shared_ext}$major'
9584     ;;
9585   esac
9586   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9587   postinstall_cmds='chmod 555 $lib'
9588   ;;
9589
9590 interix[3-9]*)
9591   version_type=linux
9592   need_lib_prefix=no
9593   need_version=no
9594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9595   soname_spec='${libname}${release}${shared_ext}$major'
9596   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9597   shlibpath_var=LD_LIBRARY_PATH
9598   shlibpath_overrides_runpath=no
9599   hardcode_into_libs=yes
9600   ;;
9601
9602 irix5* | irix6* | nonstopux*)
9603   case $host_os in
9604     nonstopux*) version_type=nonstopux ;;
9605     *)
9606         if test "$lt_cv_prog_gnu_ld" = yes; then
9607                 version_type=linux
9608         else
9609                 version_type=irix
9610         fi ;;
9611   esac
9612   need_lib_prefix=no
9613   need_version=no
9614   soname_spec='${libname}${release}${shared_ext}$major'
9615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9616   case $host_os in
9617   irix5* | nonstopux*)
9618     libsuff= shlibsuff=
9619     ;;
9620   *)
9621     case $LD in # libtool.m4 will add one of these switches to LD
9622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9623       libsuff= shlibsuff= libmagic=32-bit;;
9624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9625       libsuff=32 shlibsuff=N32 libmagic=N32;;
9626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9628     *) libsuff= shlibsuff= libmagic=never-match;;
9629     esac
9630     ;;
9631   esac
9632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9633   shlibpath_overrides_runpath=no
9634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9636   hardcode_into_libs=yes
9637   ;;
9638
9639 # No shared lib support for Linux oldld, aout, or coff.
9640 linux*oldld* | linux*aout* | linux*coff*)
9641   dynamic_linker=no
9642   ;;
9643
9644 # This must be Linux ELF.
9645 linux* | k*bsd*-gnu)
9646   version_type=linux
9647   need_lib_prefix=no
9648   need_version=no
9649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9650   soname_spec='${libname}${release}${shared_ext}$major'
9651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9652   shlibpath_var=LD_LIBRARY_PATH
9653   shlibpath_overrides_runpath=no
9654   # Some binutils ld are patched to set DT_RUNPATH
9655   save_LDFLAGS=$LDFLAGS
9656   save_libdir=$libdir
9657   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9658        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9659   cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665
9666 int
9667 main ()
9668 {
9669
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9676 case "(($ac_try" in
9677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678   *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681   (eval "$ac_link") 2>conftest.er1
9682   ac_status=$?
9683   grep -v '^ *+' conftest.er1 >conftest.err
9684   rm -f conftest.er1
9685   cat conftest.err >&5
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); } && {
9688          test -z "$ac_c_werror_flag" ||
9689          test ! -s conftest.err
9690        } && test -s conftest$ac_exeext &&
9691        $as_test_x conftest$ac_exeext; then
9692   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9693   shlibpath_overrides_runpath=yes
9694 fi
9695
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9704       conftest$ac_exeext conftest.$ac_ext
9705   LDFLAGS=$save_LDFLAGS
9706   libdir=$save_libdir
9707
9708   # This implies no fast_install, which is unacceptable.
9709   # Some rework will be needed to allow for fast_install
9710   # before this can be enabled.
9711   hardcode_into_libs=yes
9712
9713   # Append ld.so.conf contents to the search path
9714   if test -f /etc/ld.so.conf; then
9715     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' ' '`
9716     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9717   fi
9718
9719   # We used to test for /lib/ld.so.1 and disable shared libraries on
9720   # powerpc, because MkLinux only supported shared libraries with the
9721   # GNU dynamic linker.  Since this was broken with cross compilers,
9722   # most powerpc-linux boxes support dynamic linking these days and
9723   # people can always --disable-shared, the test was removed, and we
9724   # assume the GNU/Linux dynamic linker is in use.
9725   dynamic_linker='GNU/Linux ld.so'
9726   ;;
9727
9728 netbsd*)
9729   version_type=sunos
9730   need_lib_prefix=no
9731   need_version=no
9732   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9735     dynamic_linker='NetBSD (a.out) ld.so'
9736   else
9737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9738     soname_spec='${libname}${release}${shared_ext}$major'
9739     dynamic_linker='NetBSD ld.elf_so'
9740   fi
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=yes
9743   hardcode_into_libs=yes
9744   ;;
9745
9746 newsos6)
9747   version_type=linux
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749   shlibpath_var=LD_LIBRARY_PATH
9750   shlibpath_overrides_runpath=yes
9751   ;;
9752
9753 *nto* | *qnx*)
9754   version_type=qnx
9755   need_lib_prefix=no
9756   need_version=no
9757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758   soname_spec='${libname}${release}${shared_ext}$major'
9759   shlibpath_var=LD_LIBRARY_PATH
9760   shlibpath_overrides_runpath=no
9761   hardcode_into_libs=yes
9762   dynamic_linker='ldqnx.so'
9763   ;;
9764
9765 openbsd*)
9766   version_type=sunos
9767   sys_lib_dlsearch_path_spec="/usr/lib"
9768   need_lib_prefix=no
9769   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9770   case $host_os in
9771     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9772     *)                          need_version=no  ;;
9773   esac
9774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9776   shlibpath_var=LD_LIBRARY_PATH
9777   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9778     case $host_os in
9779       openbsd2.[89] | openbsd2.[89].*)
9780         shlibpath_overrides_runpath=no
9781         ;;
9782       *)
9783         shlibpath_overrides_runpath=yes
9784         ;;
9785       esac
9786   else
9787     shlibpath_overrides_runpath=yes
9788   fi
9789   ;;
9790
9791 os2*)
9792   libname_spec='$name'
9793   shrext_cmds=".dll"
9794   need_lib_prefix=no
9795   library_names_spec='$libname${shared_ext} $libname.a'
9796   dynamic_linker='OS/2 ld.exe'
9797   shlibpath_var=LIBPATH
9798   ;;
9799
9800 osf3* | osf4* | osf5*)
9801   version_type=osf
9802   need_lib_prefix=no
9803   need_version=no
9804   soname_spec='${libname}${release}${shared_ext}$major'
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806   shlibpath_var=LD_LIBRARY_PATH
9807   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9808   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9809   ;;
9810
9811 rdos*)
9812   dynamic_linker=no
9813   ;;
9814
9815 solaris*)
9816   version_type=linux
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   shlibpath_var=LD_LIBRARY_PATH
9822   shlibpath_overrides_runpath=yes
9823   hardcode_into_libs=yes
9824   # ldd complains unless libraries are executable
9825   postinstall_cmds='chmod +x $lib'
9826   ;;
9827
9828 sunos4*)
9829   version_type=sunos
9830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9831   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9832   shlibpath_var=LD_LIBRARY_PATH
9833   shlibpath_overrides_runpath=yes
9834   if test "$with_gnu_ld" = yes; then
9835     need_lib_prefix=no
9836   fi
9837   need_version=yes
9838   ;;
9839
9840 sysv4 | sysv4.3*)
9841   version_type=linux
9842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843   soname_spec='${libname}${release}${shared_ext}$major'
9844   shlibpath_var=LD_LIBRARY_PATH
9845   case $host_vendor in
9846     sni)
9847       shlibpath_overrides_runpath=no
9848       need_lib_prefix=no
9849       runpath_var=LD_RUN_PATH
9850       ;;
9851     siemens)
9852       need_lib_prefix=no
9853       ;;
9854     motorola)
9855       need_lib_prefix=no
9856       need_version=no
9857       shlibpath_overrides_runpath=no
9858       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9859       ;;
9860   esac
9861   ;;
9862
9863 sysv4*MP*)
9864   if test -d /usr/nec ;then
9865     version_type=linux
9866     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9867     soname_spec='$libname${shared_ext}.$major'
9868     shlibpath_var=LD_LIBRARY_PATH
9869   fi
9870   ;;
9871
9872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9873   version_type=freebsd-elf
9874   need_lib_prefix=no
9875   need_version=no
9876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877   soname_spec='${libname}${release}${shared_ext}$major'
9878   shlibpath_var=LD_LIBRARY_PATH
9879   shlibpath_overrides_runpath=yes
9880   hardcode_into_libs=yes
9881   if test "$with_gnu_ld" = yes; then
9882     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9883   else
9884     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9885     case $host_os in
9886       sco3.2v5*)
9887         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9888         ;;
9889     esac
9890   fi
9891   sys_lib_dlsearch_path_spec='/usr/lib'
9892   ;;
9893
9894 tpf*)
9895   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9896   version_type=linux
9897   need_lib_prefix=no
9898   need_version=no
9899   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900   shlibpath_var=LD_LIBRARY_PATH
9901   shlibpath_overrides_runpath=no
9902   hardcode_into_libs=yes
9903   ;;
9904
9905 uts4*)
9906   version_type=linux
9907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908   soname_spec='${libname}${release}${shared_ext}$major'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   ;;
9911
9912 *)
9913   dynamic_linker=no
9914   ;;
9915 esac
9916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9917 echo "${ECHO_T}$dynamic_linker" >&6; }
9918 test "$dynamic_linker" = no && can_build_shared=no
9919
9920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9921 if test "$GCC" = yes; then
9922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9923 fi
9924
9925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9926   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9927 fi
9928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9929   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9930 fi
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10020 hardcode_action=
10021 if test -n "$hardcode_libdir_flag_spec" ||
10022    test -n "$runpath_var" ||
10023    test "X$hardcode_automatic" = "Xyes" ; then
10024
10025   # We can hardcode non-existent directories.
10026   if test "$hardcode_direct" != no &&
10027      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10028      # have to relink, otherwise we might link with an installed library
10029      # when we should be linking with a yet-to-be-installed one
10030      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10031      test "$hardcode_minus_L" != no; then
10032     # Linking always hardcodes the temporary library directory.
10033     hardcode_action=relink
10034   else
10035     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10036     hardcode_action=immediate
10037   fi
10038 else
10039   # We cannot hardcode anything, or else we can only hardcode existing
10040   # directories.
10041   hardcode_action=unsupported
10042 fi
10043 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10044 echo "${ECHO_T}$hardcode_action" >&6; }
10045
10046 if test "$hardcode_action" = relink ||
10047    test "$inherit_rpath" = yes; then
10048   # Fast installation is not supported
10049   enable_fast_install=no
10050 elif test "$shlibpath_overrides_runpath" = yes ||
10051      test "$enable_shared" = no; then
10052   # Fast installation is not necessary
10053   enable_fast_install=needless
10054 fi
10055
10056
10057
10058
10059
10060
10061   if test "x$enable_dlopen" != xyes; then
10062   enable_dlopen=unknown
10063   enable_dlopen_self=unknown
10064   enable_dlopen_self_static=unknown
10065 else
10066   lt_cv_dlopen=no
10067   lt_cv_dlopen_libs=
10068
10069   case $host_os in
10070   beos*)
10071     lt_cv_dlopen="load_add_on"
10072     lt_cv_dlopen_libs=
10073     lt_cv_dlopen_self=yes
10074     ;;
10075
10076   mingw* | pw32*)
10077     lt_cv_dlopen="LoadLibrary"
10078     lt_cv_dlopen_libs=
10079     ;;
10080
10081   cygwin*)
10082     lt_cv_dlopen="dlopen"
10083     lt_cv_dlopen_libs=
10084     ;;
10085
10086   darwin*)
10087   # if libdl is installed we need to link against it
10088     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-ldl  $LIBS"
10095 cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101
10102 /* Override any GCC internal prototype to avoid an error.
10103    Use char because int might match the return type of a GCC
10104    builtin and then its argument prototype would still apply.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 char dlopen ();
10109 int
10110 main ()
10111 {
10112 return dlopen ();
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (ac_try="$ac_link"
10119 case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124   (eval "$ac_link") 2>conftest.er1
10125   ac_status=$?
10126   grep -v '^ *+' conftest.er1 >conftest.err
10127   rm -f conftest.er1
10128   cat conftest.err >&5
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); } && {
10131          test -z "$ac_c_werror_flag" ||
10132          test ! -s conftest.err
10133        } && test -s conftest$ac_exeext &&
10134        $as_test_x conftest$ac_exeext; then
10135   ac_cv_lib_dl_dlopen=yes
10136 else
10137   echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140         ac_cv_lib_dl_dlopen=no
10141 fi
10142
10143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10144       conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_lib_save_LIBS
10146 fi
10147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10149 if test $ac_cv_lib_dl_dlopen = yes; then
10150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10151 else
10152
10153     lt_cv_dlopen="dyld"
10154     lt_cv_dlopen_libs=
10155     lt_cv_dlopen_self=yes
10156
10157 fi
10158
10159     ;;
10160
10161   *)
10162     { echo "$as_me:$LINENO: checking for shl_load" >&5
10163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10164 if test "${ac_cv_func_shl_load+set}" = set; then
10165   echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167   cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h.  */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h.  */
10173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10175 #define shl_load innocuous_shl_load
10176
10177 /* System header to define __stub macros and hopefully few prototypes,
10178     which can conflict with char shl_load (); below.
10179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10180     <limits.h> exists even on freestanding compilers.  */
10181
10182 #ifdef __STDC__
10183 # include <limits.h>
10184 #else
10185 # include <assert.h>
10186 #endif
10187
10188 #undef shl_load
10189
10190 /* Override any GCC internal prototype to avoid an error.
10191    Use char because int might match the return type of a GCC
10192    builtin and then its argument prototype would still apply.  */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char shl_load ();
10197 /* The GNU C library defines this for functions which it implements
10198     to always fail with ENOSYS.  Some functions are actually named
10199     something starting with __ and the normal name is an alias.  */
10200 #if defined __stub_shl_load || defined __stub___shl_load
10201 choke me
10202 #endif
10203
10204 int
10205 main ()
10206 {
10207 return shl_load ();
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_link") 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } && {
10226          test -z "$ac_c_werror_flag" ||
10227          test ! -s conftest.err
10228        } && test -s conftest$ac_exeext &&
10229        $as_test_x conftest$ac_exeext; then
10230   ac_cv_func_shl_load=yes
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235         ac_cv_func_shl_load=no
10236 fi
10237
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239       conftest$ac_exeext conftest.$ac_ext
10240 fi
10241 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10242 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10243 if test $ac_cv_func_shl_load = yes; then
10244   lt_cv_dlopen="shl_load"
10245 else
10246   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10247 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-ldld  $LIBS"
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h.  */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h.  */
10259
10260 /* Override any GCC internal prototype to avoid an error.
10261    Use char because int might match the return type of a GCC
10262    builtin and then its argument prototype would still apply.  */
10263 #ifdef __cplusplus
10264 extern "C"
10265 #endif
10266 char shl_load ();
10267 int
10268 main ()
10269 {
10270 return shl_load ();
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext conftest$ac_exeext
10276 if { (ac_try="$ac_link"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_link") 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } && {
10289          test -z "$ac_c_werror_flag" ||
10290          test ! -s conftest.err
10291        } && test -s conftest$ac_exeext &&
10292        $as_test_x conftest$ac_exeext; then
10293   ac_cv_lib_dld_shl_load=yes
10294 else
10295   echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298         ac_cv_lib_dld_shl_load=no
10299 fi
10300
10301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10302       conftest$ac_exeext conftest.$ac_ext
10303 LIBS=$ac_check_lib_save_LIBS
10304 fi
10305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10306 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10307 if test $ac_cv_lib_dld_shl_load = yes; then
10308   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10309 else
10310   { echo "$as_me:$LINENO: checking for dlopen" >&5
10311 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10312 if test "${ac_cv_func_dlopen+set}" = set; then
10313   echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315   cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10323 #define dlopen innocuous_dlopen
10324
10325 /* System header to define __stub macros and hopefully few prototypes,
10326     which can conflict with char dlopen (); below.
10327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10328     <limits.h> exists even on freestanding compilers.  */
10329
10330 #ifdef __STDC__
10331 # include <limits.h>
10332 #else
10333 # include <assert.h>
10334 #endif
10335
10336 #undef dlopen
10337
10338 /* Override any GCC internal prototype to avoid an error.
10339    Use char because int might match the return type of a GCC
10340    builtin and then its argument prototype would still apply.  */
10341 #ifdef __cplusplus
10342 extern "C"
10343 #endif
10344 char dlopen ();
10345 /* The GNU C library defines this for functions which it implements
10346     to always fail with ENOSYS.  Some functions are actually named
10347     something starting with __ and the normal name is an alias.  */
10348 #if defined __stub_dlopen || defined __stub___dlopen
10349 choke me
10350 #endif
10351
10352 int
10353 main ()
10354 {
10355 return dlopen ();
10356   ;
10357   return 0;
10358 }
10359 _ACEOF
10360 rm -f conftest.$ac_objext conftest$ac_exeext
10361 if { (ac_try="$ac_link"
10362 case "(($ac_try" in
10363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364   *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367   (eval "$ac_link") 2>conftest.er1
10368   ac_status=$?
10369   grep -v '^ *+' conftest.er1 >conftest.err
10370   rm -f conftest.er1
10371   cat conftest.err >&5
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); } && {
10374          test -z "$ac_c_werror_flag" ||
10375          test ! -s conftest.err
10376        } && test -s conftest$ac_exeext &&
10377        $as_test_x conftest$ac_exeext; then
10378   ac_cv_func_dlopen=yes
10379 else
10380   echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383         ac_cv_func_dlopen=no
10384 fi
10385
10386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10387       conftest$ac_exeext conftest.$ac_ext
10388 fi
10389 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10390 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10391 if test $ac_cv_func_dlopen = yes; then
10392   lt_cv_dlopen="dlopen"
10393 else
10394   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-ldl  $LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407
10408 /* Override any GCC internal prototype to avoid an error.
10409    Use char because int might match the return type of a GCC
10410    builtin and then its argument prototype would still apply.  */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char dlopen ();
10415 int
10416 main ()
10417 {
10418 return dlopen ();
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_link") 2>conftest.er1
10431   ac_status=$?
10432   grep -v '^ *+' conftest.er1 >conftest.err
10433   rm -f conftest.er1
10434   cat conftest.err >&5
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } && {
10437          test -z "$ac_c_werror_flag" ||
10438          test ! -s conftest.err
10439        } && test -s conftest$ac_exeext &&
10440        $as_test_x conftest$ac_exeext; then
10441   ac_cv_lib_dl_dlopen=yes
10442 else
10443   echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446         ac_cv_lib_dl_dlopen=no
10447 fi
10448
10449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10450       conftest$ac_exeext conftest.$ac_ext
10451 LIBS=$ac_check_lib_save_LIBS
10452 fi
10453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10455 if test $ac_cv_lib_dl_dlopen = yes; then
10456   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10457 else
10458   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10459 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10460 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-lsvld  $LIBS"
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471
10472 /* Override any GCC internal prototype to avoid an error.
10473    Use char because int might match the return type of a GCC
10474    builtin and then its argument prototype would still apply.  */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 char dlopen ();
10479 int
10480 main ()
10481 {
10482 return dlopen ();
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (ac_try="$ac_link"
10489 case "(($ac_try" in
10490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491   *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494   (eval "$ac_link") 2>conftest.er1
10495   ac_status=$?
10496   grep -v '^ *+' conftest.er1 >conftest.err
10497   rm -f conftest.er1
10498   cat conftest.err >&5
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } && {
10501          test -z "$ac_c_werror_flag" ||
10502          test ! -s conftest.err
10503        } && test -s conftest$ac_exeext &&
10504        $as_test_x conftest$ac_exeext; then
10505   ac_cv_lib_svld_dlopen=yes
10506 else
10507   echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510         ac_cv_lib_svld_dlopen=no
10511 fi
10512
10513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10514       conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10516 fi
10517 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10518 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10519 if test $ac_cv_lib_svld_dlopen = yes; then
10520   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10521 else
10522   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10523 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10524 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527   ac_check_lib_save_LIBS=$LIBS
10528 LIBS="-ldld  $LIBS"
10529 cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h.  */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h.  */
10535
10536 /* Override any GCC internal prototype to avoid an error.
10537    Use char because int might match the return type of a GCC
10538    builtin and then its argument prototype would still apply.  */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char dld_link ();
10543 int
10544 main ()
10545 {
10546 return dld_link ();
10547   ;
10548   return 0;
10549 }
10550 _ACEOF
10551 rm -f conftest.$ac_objext conftest$ac_exeext
10552 if { (ac_try="$ac_link"
10553 case "(($ac_try" in
10554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555   *) ac_try_echo=$ac_try;;
10556 esac
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558   (eval "$ac_link") 2>conftest.er1
10559   ac_status=$?
10560   grep -v '^ *+' conftest.er1 >conftest.err
10561   rm -f conftest.er1
10562   cat conftest.err >&5
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); } && {
10565          test -z "$ac_c_werror_flag" ||
10566          test ! -s conftest.err
10567        } && test -s conftest$ac_exeext &&
10568        $as_test_x conftest$ac_exeext; then
10569   ac_cv_lib_dld_dld_link=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574         ac_cv_lib_dld_dld_link=no
10575 fi
10576
10577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10578       conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10580 fi
10581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10582 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10583 if test $ac_cv_lib_dld_dld_link = yes; then
10584   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10585 fi
10586
10587
10588 fi
10589
10590
10591 fi
10592
10593
10594 fi
10595
10596
10597 fi
10598
10599
10600 fi
10601
10602     ;;
10603   esac
10604
10605   if test "x$lt_cv_dlopen" != xno; then
10606     enable_dlopen=yes
10607   else
10608     enable_dlopen=no
10609   fi
10610
10611   case $lt_cv_dlopen in
10612   dlopen)
10613     save_CPPFLAGS="$CPPFLAGS"
10614     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10615
10616     save_LDFLAGS="$LDFLAGS"
10617     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10618
10619     save_LIBS="$LIBS"
10620     LIBS="$lt_cv_dlopen_libs $LIBS"
10621
10622     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10623 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10624 if test "${lt_cv_dlopen_self+set}" = set; then
10625   echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10627           if test "$cross_compiling" = yes; then :
10628   lt_cv_dlopen_self=cross
10629 else
10630   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10631   lt_status=$lt_dlunknown
10632   cat > conftest.$ac_ext <<_LT_EOF
10633 #line 10633 "configure"
10634 #include "confdefs.h"
10635
10636 #if HAVE_DLFCN_H
10637 #include <dlfcn.h>
10638 #endif
10639
10640 #include <stdio.h>
10641
10642 #ifdef RTLD_GLOBAL
10643 #  define LT_DLGLOBAL           RTLD_GLOBAL
10644 #else
10645 #  ifdef DL_GLOBAL
10646 #    define LT_DLGLOBAL         DL_GLOBAL
10647 #  else
10648 #    define LT_DLGLOBAL         0
10649 #  endif
10650 #endif
10651
10652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10653    find out it does not work in some platform. */
10654 #ifndef LT_DLLAZY_OR_NOW
10655 #  ifdef RTLD_LAZY
10656 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10657 #  else
10658 #    ifdef DL_LAZY
10659 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10660 #    else
10661 #      ifdef RTLD_NOW
10662 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10663 #      else
10664 #        ifdef DL_NOW
10665 #          define LT_DLLAZY_OR_NOW      DL_NOW
10666 #        else
10667 #          define LT_DLLAZY_OR_NOW      0
10668 #        endif
10669 #      endif
10670 #    endif
10671 #  endif
10672 #endif
10673
10674 #ifdef __cplusplus
10675 extern "C" void exit (int);
10676 #endif
10677
10678 void fnord() { int i=42;}
10679 int main ()
10680 {
10681   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10682   int status = $lt_dlunknown;
10683
10684   if (self)
10685     {
10686       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10687       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10688       /* dlclose (self); */
10689     }
10690   else
10691     puts (dlerror ());
10692
10693     exit (status);
10694 }
10695 _LT_EOF
10696   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697   (eval $ac_link) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10701     (./conftest; exit; ) >&5 2>/dev/null
10702     lt_status=$?
10703     case x$lt_status in
10704       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10705       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10706       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10707     esac
10708   else :
10709     # compilation failed
10710     lt_cv_dlopen_self=no
10711   fi
10712 fi
10713 rm -fr conftest*
10714
10715
10716 fi
10717 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10718 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10719
10720     if test "x$lt_cv_dlopen_self" = xyes; then
10721       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10722       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10723 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10724 if test "${lt_cv_dlopen_self_static+set}" = set; then
10725   echo $ECHO_N "(cached) $ECHO_C" >&6
10726 else
10727           if test "$cross_compiling" = yes; then :
10728   lt_cv_dlopen_self_static=cross
10729 else
10730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10731   lt_status=$lt_dlunknown
10732   cat > conftest.$ac_ext <<_LT_EOF
10733 #line 10733 "configure"
10734 #include "confdefs.h"
10735
10736 #if HAVE_DLFCN_H
10737 #include <dlfcn.h>
10738 #endif
10739
10740 #include <stdio.h>
10741
10742 #ifdef RTLD_GLOBAL
10743 #  define LT_DLGLOBAL           RTLD_GLOBAL
10744 #else
10745 #  ifdef DL_GLOBAL
10746 #    define LT_DLGLOBAL         DL_GLOBAL
10747 #  else
10748 #    define LT_DLGLOBAL         0
10749 #  endif
10750 #endif
10751
10752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10753    find out it does not work in some platform. */
10754 #ifndef LT_DLLAZY_OR_NOW
10755 #  ifdef RTLD_LAZY
10756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10757 #  else
10758 #    ifdef DL_LAZY
10759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10760 #    else
10761 #      ifdef RTLD_NOW
10762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10763 #      else
10764 #        ifdef DL_NOW
10765 #          define LT_DLLAZY_OR_NOW      DL_NOW
10766 #        else
10767 #          define LT_DLLAZY_OR_NOW      0
10768 #        endif
10769 #      endif
10770 #    endif
10771 #  endif
10772 #endif
10773
10774 #ifdef __cplusplus
10775 extern "C" void exit (int);
10776 #endif
10777
10778 void fnord() { int i=42;}
10779 int main ()
10780 {
10781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10782   int status = $lt_dlunknown;
10783
10784   if (self)
10785     {
10786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10787       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10788       /* dlclose (self); */
10789     }
10790   else
10791     puts (dlerror ());
10792
10793     exit (status);
10794 }
10795 _LT_EOF
10796   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797   (eval $ac_link) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10801     (./conftest; exit; ) >&5 2>/dev/null
10802     lt_status=$?
10803     case x$lt_status in
10804       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10805       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10806       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10807     esac
10808   else :
10809     # compilation failed
10810     lt_cv_dlopen_self_static=no
10811   fi
10812 fi
10813 rm -fr conftest*
10814
10815
10816 fi
10817 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10818 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10819     fi
10820
10821     CPPFLAGS="$save_CPPFLAGS"
10822     LDFLAGS="$save_LDFLAGS"
10823     LIBS="$save_LIBS"
10824     ;;
10825   esac
10826
10827   case $lt_cv_dlopen_self in
10828   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10829   *) enable_dlopen_self=unknown ;;
10830   esac
10831
10832   case $lt_cv_dlopen_self_static in
10833   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10834   *) enable_dlopen_self_static=unknown ;;
10835   esac
10836 fi
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854 striplib=
10855 old_striplib=
10856 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10857 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10858 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10859   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10860   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10861   { echo "$as_me:$LINENO: result: yes" >&5
10862 echo "${ECHO_T}yes" >&6; }
10863 else
10864 # FIXME - insert some real tests, host_os isn't really good enough
10865   case $host_os in
10866   darwin*)
10867     if test -n "$STRIP" ; then
10868       striplib="$STRIP -x"
10869       old_striplib="$STRIP -S"
10870       { echo "$as_me:$LINENO: result: yes" >&5
10871 echo "${ECHO_T}yes" >&6; }
10872     else
10873       { echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6; }
10875     fi
10876     ;;
10877   *)
10878     { echo "$as_me:$LINENO: result: no" >&5
10879 echo "${ECHO_T}no" >&6; }
10880     ;;
10881   esac
10882 fi
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895   # Report which library types will actually be built
10896   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10897 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10898   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10899 echo "${ECHO_T}$can_build_shared" >&6; }
10900
10901   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10902 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10903   test "$can_build_shared" = "no" && enable_shared=no
10904
10905   # On AIX, shared libraries and static libraries use the same namespace, and
10906   # are all built from PIC.
10907   case $host_os in
10908   aix3*)
10909     test "$enable_shared" = yes && enable_static=no
10910     if test -n "$RANLIB"; then
10911       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10912       postinstall_cmds='$RANLIB $lib'
10913     fi
10914     ;;
10915
10916   aix[4-9]*)
10917     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10918       test "$enable_shared" = yes && enable_static=no
10919     fi
10920     ;;
10921   esac
10922   { echo "$as_me:$LINENO: result: $enable_shared" >&5
10923 echo "${ECHO_T}$enable_shared" >&6; }
10924
10925   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10926 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10927   # Make sure either enable_shared or enable_static is yes.
10928   test "$enable_shared" = yes || enable_static=yes
10929   { echo "$as_me:$LINENO: result: $enable_static" >&5
10930 echo "${ECHO_T}$enable_static" >&6; }
10931
10932
10933
10934
10935 fi
10936 ac_ext=c
10937 ac_cpp='$CPP $CPPFLAGS'
10938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941
10942 CC="$lt_save_CC"
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956         ac_config_commands="$ac_config_commands libtool"
10957
10958
10959
10960
10961 # Only expand once:
10962
10963
10964
10965
10966 # Check whether --with-kernel was given.
10967 if test "${with_kernel+set}" = set; then
10968   withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
10969 fi
10970
10971
10972 # Check whether --with-kbuild was given.
10973 if test "${with_kbuild+set}" = set; then
10974   withval=$with_kbuild; kbuilddir="$withval"
10975 fi
10976
10977
10978 # Check whether --with-ksource was given.
10979 if test "${with_ksource+set}" = set; then
10980   withval=$with_ksource; ksourcedir="$withval"
10981 fi
10982
10983
10984 # Check whether --with-xtlibdir was given.
10985 if test "${with_xtlibdir+set}" = set; then
10986   withval=$with_xtlibdir; xtlibdir="$withval"
10987 else
10988   xtlibdir="${libexecdir}/xtables"
10989 fi
10990
10991 # Check whether --enable-ipv4 was given.
10992 if test "${enable_ipv4+set}" = set; then
10993   enableval=$enable_ipv4; enable_ipv4="$enableval"
10994 else
10995   enable_ipv4="yes"
10996 fi
10997
10998 # Check whether --enable-ipv6 was given.
10999 if test "${enable_ipv6+set}" = set; then
11000   enableval=$enable_ipv6; enable_ipv6="$enableval"
11001 else
11002   enable_ipv6="yes"
11003 fi
11004
11005 # Check whether --enable-largefile was given.
11006 if test "${enable_largefile+set}" = set; then
11007   enableval=$enable_largefile; enable_largefile="$enableval"
11008 else
11009   enable_largefile="yes";
11010         largefile_cflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'
11011 fi
11012
11013 # Check whether --enable-devel was given.
11014 if test "${enable_devel+set}" = set; then
11015   enableval=$enable_devel; enable_devel="$enableval"
11016 else
11017   enable_devel="yes"
11018 fi
11019
11020 # Check whether --enable-libipq was given.
11021 if test "${enable_libipq+set}" = set; then
11022   enableval=$enable_libipq;
11023 fi
11024
11025
11026 # Check whether --with-pkgconfigdir was given.
11027 if test "${with_pkgconfigdir+set}" = set; then
11028   withval=$with_pkgconfigdir; pkgconfigdir="$withval"
11029 else
11030   pkgconfigdir='${libdir}/pkgconfig'
11031 fi
11032
11033
11034 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
11035   { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
11036 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
11037 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 fi
11040 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
11041 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
11042 else
11043   # Is the header compilable?
11044 { echo "$as_me:$LINENO: checking linux/dccp.h usability" >&5
11045 echo $ECHO_N "checking linux/dccp.h usability... $ECHO_C" >&6; }
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h.  */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h.  */
11052 $ac_includes_default
11053 #include <linux/dccp.h>
11054 _ACEOF
11055 rm -f conftest.$ac_objext
11056 if { (ac_try="$ac_compile"
11057 case "(($ac_try" in
11058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059   *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062   (eval "$ac_compile") 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } && {
11069          test -z "$ac_c_werror_flag" ||
11070          test ! -s conftest.err
11071        } && test -s conftest.$ac_objext; then
11072   ac_header_compiler=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077         ac_header_compiler=no
11078 fi
11079
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11082 echo "${ECHO_T}$ac_header_compiler" >&6; }
11083
11084 # Is the header present?
11085 { echo "$as_me:$LINENO: checking linux/dccp.h presence" >&5
11086 echo $ECHO_N "checking linux/dccp.h presence... $ECHO_C" >&6; }
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h.  */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h.  */
11093 #include <linux/dccp.h>
11094 _ACEOF
11095 if { (ac_try="$ac_cpp conftest.$ac_ext"
11096 case "(($ac_try" in
11097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098   *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11102   ac_status=$?
11103   grep -v '^ *+' conftest.er1 >conftest.err
11104   rm -f conftest.er1
11105   cat conftest.err >&5
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); } >/dev/null && {
11108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11109          test ! -s conftest.err
11110        }; then
11111   ac_header_preproc=yes
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116   ac_header_preproc=no
11117 fi
11118
11119 rm -f conftest.err conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11121 echo "${ECHO_T}$ac_header_preproc" >&6; }
11122
11123 # So?  What about this header?
11124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11125   yes:no: )
11126     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&5
11127 echo "$as_me: WARNING: linux/dccp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11128     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the compiler's result" >&5
11129 echo "$as_me: WARNING: linux/dccp.h: proceeding with the compiler's result" >&2;}
11130     ac_header_preproc=yes
11131     ;;
11132   no:yes:* )
11133     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: present but cannot be compiled" >&5
11134 echo "$as_me: WARNING: linux/dccp.h: present but cannot be compiled" >&2;}
11135     { echo "$as_me:$LINENO: WARNING: linux/dccp.h:     check for missing prerequisite headers?" >&5
11136 echo "$as_me: WARNING: linux/dccp.h:     check for missing prerequisite headers?" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: see the Autoconf documentation" >&5
11138 echo "$as_me: WARNING: linux/dccp.h: see the Autoconf documentation" >&2;}
11139     { echo "$as_me:$LINENO: WARNING: linux/dccp.h:     section \"Present But Cannot Be Compiled\"" >&5
11140 echo "$as_me: WARNING: linux/dccp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11141     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&5
11142 echo "$as_me: WARNING: linux/dccp.h: proceeding with the preprocessor's result" >&2;}
11143     { echo "$as_me:$LINENO: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&5
11144 echo "$as_me: WARNING: linux/dccp.h: in the future, the compiler will take precedence" >&2;}
11145
11146     ;;
11147 esac
11148 { echo "$as_me:$LINENO: checking for linux/dccp.h" >&5
11149 echo $ECHO_N "checking for linux/dccp.h... $ECHO_C" >&6; }
11150 if test "${ac_cv_header_linux_dccp_h+set}" = set; then
11151   echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153   ac_cv_header_linux_dccp_h=$ac_header_preproc
11154 fi
11155 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_dccp_h" >&5
11156 echo "${ECHO_T}$ac_cv_header_linux_dccp_h" >&6; }
11157
11158 fi
11159
11160
11161
11162 blacklist_modules="";
11163 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
11164         blacklist_modules="$blacklist_modules dccp";
11165 fi;
11166
11167
11168  if test "$enable_static" = "yes"; then
11169   ENABLE_STATIC_TRUE=
11170   ENABLE_STATIC_FALSE='#'
11171 else
11172   ENABLE_STATIC_TRUE='#'
11173   ENABLE_STATIC_FALSE=
11174 fi
11175
11176  if test "$enable_shared" = "yes"; then
11177   ENABLE_SHARED_TRUE=
11178   ENABLE_SHARED_FALSE='#'
11179 else
11180   ENABLE_SHARED_TRUE='#'
11181   ENABLE_SHARED_FALSE=
11182 fi
11183
11184  if test "$enable_ipv4" = "yes"; then
11185   ENABLE_IPV4_TRUE=
11186   ENABLE_IPV4_FALSE='#'
11187 else
11188   ENABLE_IPV4_TRUE='#'
11189   ENABLE_IPV4_FALSE=
11190 fi
11191
11192  if test "$enable_ipv6" = "yes"; then
11193   ENABLE_IPV6_TRUE=
11194   ENABLE_IPV6_FALSE='#'
11195 else
11196   ENABLE_IPV6_TRUE='#'
11197   ENABLE_IPV6_FALSE=
11198 fi
11199
11200  if test "$enable_largefile" = "yes"; then
11201   ENABLE_LARGEFILE_TRUE=
11202   ENABLE_LARGEFILE_FALSE='#'
11203 else
11204   ENABLE_LARGEFILE_TRUE='#'
11205   ENABLE_LARGEFILE_FALSE=
11206 fi
11207
11208  if test "$enable_devel" = "yes"; then
11209   ENABLE_DEVEL_TRUE=
11210   ENABLE_DEVEL_FALSE='#'
11211 else
11212   ENABLE_DEVEL_TRUE='#'
11213   ENABLE_DEVEL_FALSE=
11214 fi
11215
11216  if test "$enable_libipq" = "yes"; then
11217   ENABLE_LIBIPQ_TRUE=
11218   ENABLE_LIBIPQ_FALSE='#'
11219 else
11220   ENABLE_LIBIPQ_TRUE='#'
11221   ENABLE_LIBIPQ_FALSE=
11222 fi
11223
11224
11225
11226
11227 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11228         if test -n "$ac_tool_prefix"; then
11229   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11230 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11233 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   case $PKG_CONFIG in
11237   [\\/]* | ?:[\\/]*)
11238   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11239   ;;
11240   *)
11241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11243 do
11244   IFS=$as_save_IFS
11245   test -z "$as_dir" && as_dir=.
11246   for ac_exec_ext in '' $ac_executable_extensions; do
11247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11250     break 2
11251   fi
11252 done
11253 done
11254 IFS=$as_save_IFS
11255
11256   ;;
11257 esac
11258 fi
11259 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11260 if test -n "$PKG_CONFIG"; then
11261   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11262 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11263 else
11264   { echo "$as_me:$LINENO: result: no" >&5
11265 echo "${ECHO_T}no" >&6; }
11266 fi
11267
11268
11269 fi
11270 if test -z "$ac_cv_path_PKG_CONFIG"; then
11271   ac_pt_PKG_CONFIG=$PKG_CONFIG
11272   # Extract the first word of "pkg-config", so it can be a program name with args.
11273 set dummy pkg-config; ac_word=$2
11274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11276 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279   case $ac_pt_PKG_CONFIG in
11280   [\\/]* | ?:[\\/]*)
11281   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11282   ;;
11283   *)
11284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287   IFS=$as_save_IFS
11288   test -z "$as_dir" && as_dir=.
11289   for ac_exec_ext in '' $ac_executable_extensions; do
11290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11293     break 2
11294   fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299   ;;
11300 esac
11301 fi
11302 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11303 if test -n "$ac_pt_PKG_CONFIG"; then
11304   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11305 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11306 else
11307   { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11309 fi
11310
11311   if test "x$ac_pt_PKG_CONFIG" = x; then
11312     PKG_CONFIG=""
11313   else
11314     case $cross_compiling:$ac_tool_warned in
11315 yes:)
11316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11317 whose name does not start with the host triplet.  If you think this
11318 configuration is useful to you, please write to autoconf@gnu.org." >&5
11319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11320 whose name does not start with the host triplet.  If you think this
11321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11322 ac_tool_warned=yes ;;
11323 esac
11324     PKG_CONFIG=$ac_pt_PKG_CONFIG
11325   fi
11326 else
11327   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11328 fi
11329
11330 fi
11331 if test -n "$PKG_CONFIG"; then
11332         _pkg_min_version=0.9.0
11333         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11334 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11335         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11336                 { echo "$as_me:$LINENO: result: yes" >&5
11337 echo "${ECHO_T}yes" >&6; }
11338         else
11339                 { echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6; }
11341                 PKG_CONFIG=""
11342         fi
11343
11344 fi
11345
11346 pkg_failed=no
11347 { echo "$as_me:$LINENO: checking for libnfnetlink" >&5
11348 echo $ECHO_N "checking for libnfnetlink... $ECHO_C" >&6; }
11349
11350 if test -n "$PKG_CONFIG"; then
11351     if test -n "$libnfnetlink_CFLAGS"; then
11352         pkg_cv_libnfnetlink_CFLAGS="$libnfnetlink_CFLAGS"
11353     else
11354         if test -n "$PKG_CONFIG" && \
11355     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0\"") >&5
11356   ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; then
11360   pkg_cv_libnfnetlink_CFLAGS=`$PKG_CONFIG --cflags "libnfnetlink >= 1.0" 2>/dev/null`
11361 else
11362   pkg_failed=yes
11363 fi
11364     fi
11365 else
11366         pkg_failed=untried
11367 fi
11368 if test -n "$PKG_CONFIG"; then
11369     if test -n "$libnfnetlink_LIBS"; then
11370         pkg_cv_libnfnetlink_LIBS="$libnfnetlink_LIBS"
11371     else
11372         if test -n "$PKG_CONFIG" && \
11373     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0\"") >&5
11374   ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0") 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; then
11378   pkg_cv_libnfnetlink_LIBS=`$PKG_CONFIG --libs "libnfnetlink >= 1.0" 2>/dev/null`
11379 else
11380   pkg_failed=yes
11381 fi
11382     fi
11383 else
11384         pkg_failed=untried
11385 fi
11386
11387
11388
11389 if test $pkg_failed = yes; then
11390
11391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11392         _pkg_short_errors_supported=yes
11393 else
11394         _pkg_short_errors_supported=no
11395 fi
11396         if test $_pkg_short_errors_supported = yes; then
11397                 libnfnetlink_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnfnetlink >= 1.0"`
11398         else
11399                 libnfnetlink_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnfnetlink >= 1.0"`
11400         fi
11401         # Put the nasty error message in config.log where it belongs
11402         echo "$libnfnetlink_PKG_ERRORS" >&5
11403
11404         { echo "$as_me:$LINENO: result: no" >&5
11405 echo "${ECHO_T}no" >&6; }
11406                 nfnetlink=0
11407 elif test $pkg_failed = untried; then
11408         nfnetlink=0
11409 else
11410         libnfnetlink_CFLAGS=$pkg_cv_libnfnetlink_CFLAGS
11411         libnfnetlink_LIBS=$pkg_cv_libnfnetlink_LIBS
11412         { echo "$as_me:$LINENO: result: yes" >&5
11413 echo "${ECHO_T}yes" >&6; }
11414         nfnetlink=1
11415 fi
11416  if test "$nfnetlink" = 1; then
11417   HAVE_LIBNFNETLINK_TRUE=
11418   HAVE_LIBNFNETLINK_FALSE='#'
11419 else
11420   HAVE_LIBNFNETLINK_TRUE='#'
11421   HAVE_LIBNFNETLINK_FALSE=
11422 fi
11423
11424
11425 regular_CFLAGS="${largefile_cflags} \
11426         -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
11427         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
11428         -Winline -pipe \
11429         -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
11430 kinclude_CFLAGS="";
11431 if [ -n "$kbuilddir" ]; then
11432         kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
11433 fi;
11434 if [ -n "$ksourcedir" ]; then
11435         kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
11436 fi;
11437 pkgdatadir='${datadir}/xtables';
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
11449
11450
11451 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile libipq/Makefile utils/Makefile include/xtables.h include/iptables/internal.h libiptc.pc xtables.pc"
11452
11453 cat >confcache <<\_ACEOF
11454 # This file is a shell script that caches the results of configure
11455 # tests run on this system so they can be shared between configure
11456 # scripts and configure runs, see configure's option --config-cache.
11457 # It is not useful on other systems.  If it contains results you don't
11458 # want to keep, you may remove or edit it.
11459 #
11460 # config.status only pays attention to the cache file if you give it
11461 # the --recheck option to rerun configure.
11462 #
11463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11465 # following values.
11466
11467 _ACEOF
11468
11469 # The following way of writing the cache mishandles newlines in values,
11470 # but we know of no workaround that is simple, portable, and efficient.
11471 # So, we kill variables containing newlines.
11472 # Ultrix sh set writes to stderr and can't be redirected directly,
11473 # and sets the high bit in the cache file unless we assign to the vars.
11474 (
11475   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11476     eval ac_val=\$$ac_var
11477     case $ac_val in #(
11478     *${as_nl}*)
11479       case $ac_var in #(
11480       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11482       esac
11483       case $ac_var in #(
11484       _ | IFS | as_nl) ;; #(
11485       *) $as_unset $ac_var ;;
11486       esac ;;
11487     esac
11488   done
11489
11490   (set) 2>&1 |
11491     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11492     *${as_nl}ac_space=\ *)
11493       # `set' does not quote correctly, so add quotes (double-quote
11494       # substitution turns \\\\ into \\, and sed turns \\ into \).
11495       sed -n \
11496         "s/'/'\\\\''/g;
11497           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11498       ;; #(
11499     *)
11500       # `set' quotes correctly as required by POSIX, so do not add quotes.
11501       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11502       ;;
11503     esac |
11504     sort
11505 ) |
11506   sed '
11507      /^ac_cv_env_/b end
11508      t clear
11509      :clear
11510      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11511      t end
11512      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11513      :end' >>confcache
11514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11515   if test -w "$cache_file"; then
11516     test "x$cache_file" != "x/dev/null" &&
11517       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11518 echo "$as_me: updating cache $cache_file" >&6;}
11519     cat confcache >$cache_file
11520   else
11521     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11523   fi
11524 fi
11525 rm -f confcache
11526
11527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11528 # Let make expand exec_prefix.
11529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11530
11531 DEFS=-DHAVE_CONFIG_H
11532
11533 ac_libobjs=
11534 ac_ltlibobjs=
11535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11536   # 1. Remove the extension, and $U if already installed.
11537   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11538   ac_i=`echo "$ac_i" | sed "$ac_script"`
11539   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11540   #    will be set to the directory where LIBOBJS objects are built.
11541   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11542   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11543 done
11544 LIBOBJS=$ac_libobjs
11545
11546 LTLIBOBJS=$ac_ltlibobjs
11547
11548
11549 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11550   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11551 Usually this means the macro was only invoked conditionally." >&5
11552 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11553 Usually this means the macro was only invoked conditionally." >&2;}
11554    { (exit 1); exit 1; }; }
11555 fi
11556 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11557   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11558 Usually this means the macro was only invoked conditionally." >&5
11559 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11560 Usually this means the macro was only invoked conditionally." >&2;}
11561    { (exit 1); exit 1; }; }
11562 fi
11563 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
11564   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
11565 Usually this means the macro was only invoked conditionally." >&5
11566 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
11567 Usually this means the macro was only invoked conditionally." >&2;}
11568    { (exit 1); exit 1; }; }
11569 fi
11570 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
11571   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
11572 Usually this means the macro was only invoked conditionally." >&5
11573 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
11574 Usually this means the macro was only invoked conditionally." >&2;}
11575    { (exit 1); exit 1; }; }
11576 fi
11577 if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
11578   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV4\" was never defined.
11579 Usually this means the macro was only invoked conditionally." >&5
11580 echo "$as_me: error: conditional \"ENABLE_IPV4\" was never defined.
11581 Usually this means the macro was only invoked conditionally." >&2;}
11582    { (exit 1); exit 1; }; }
11583 fi
11584 if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
11585   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IPV6\" was never defined.
11586 Usually this means the macro was only invoked conditionally." >&5
11587 echo "$as_me: error: conditional \"ENABLE_IPV6\" was never defined.
11588 Usually this means the macro was only invoked conditionally." >&2;}
11589    { (exit 1); exit 1; }; }
11590 fi
11591 if test -z "${ENABLE_LARGEFILE_TRUE}" && test -z "${ENABLE_LARGEFILE_FALSE}"; then
11592   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LARGEFILE\" was never defined.
11593 Usually this means the macro was only invoked conditionally." >&5
11594 echo "$as_me: error: conditional \"ENABLE_LARGEFILE\" was never defined.
11595 Usually this means the macro was only invoked conditionally." >&2;}
11596    { (exit 1); exit 1; }; }
11597 fi
11598 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
11599   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DEVEL\" was never defined.
11600 Usually this means the macro was only invoked conditionally." >&5
11601 echo "$as_me: error: conditional \"ENABLE_DEVEL\" was never defined.
11602 Usually this means the macro was only invoked conditionally." >&2;}
11603    { (exit 1); exit 1; }; }
11604 fi
11605 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
11606   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBIPQ\" was never defined.
11607 Usually this means the macro was only invoked conditionally." >&5
11608 echo "$as_me: error: conditional \"ENABLE_LIBIPQ\" was never defined.
11609 Usually this means the macro was only invoked conditionally." >&2;}
11610    { (exit 1); exit 1; }; }
11611 fi
11612 if test -z "${HAVE_LIBNFNETLINK_TRUE}" && test -z "${HAVE_LIBNFNETLINK_FALSE}"; then
11613   { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBNFNETLINK\" was never defined.
11614 Usually this means the macro was only invoked conditionally." >&5
11615 echo "$as_me: error: conditional \"HAVE_LIBNFNETLINK\" was never defined.
11616 Usually this means the macro was only invoked conditionally." >&2;}
11617    { (exit 1); exit 1; }; }
11618 fi
11619
11620 : ${CONFIG_STATUS=./config.status}
11621 ac_clean_files_save=$ac_clean_files
11622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11623 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11624 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11625 cat >$CONFIG_STATUS <<_ACEOF
11626 #! $SHELL
11627 # Generated by $as_me.
11628 # Run this file to recreate the current configuration.
11629 # Compiler output produced by configure, useful for debugging
11630 # configure, is in config.log if it exists.
11631
11632 debug=false
11633 ac_cs_recheck=false
11634 ac_cs_silent=false
11635 SHELL=\${CONFIG_SHELL-$SHELL}
11636 _ACEOF
11637
11638 cat >>$CONFIG_STATUS <<\_ACEOF
11639 ## --------------------- ##
11640 ## M4sh Initialization.  ##
11641 ## --------------------- ##
11642
11643 # Be more Bourne compatible
11644 DUALCASE=1; export DUALCASE # for MKS sh
11645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11646   emulate sh
11647   NULLCMD=:
11648   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11649   # is contrary to our usage.  Disable this feature.
11650   alias -g '${1+"$@"}'='"$@"'
11651   setopt NO_GLOB_SUBST
11652 else
11653   case `(set -o) 2>/dev/null` in
11654   *posix*) set -o posix ;;
11655 esac
11656
11657 fi
11658
11659
11660
11661
11662 # PATH needs CR
11663 # Avoid depending upon Character Ranges.
11664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11667 as_cr_digits='0123456789'
11668 as_cr_alnum=$as_cr_Letters$as_cr_digits
11669
11670 # The user is always right.
11671 if test "${PATH_SEPARATOR+set}" != set; then
11672   echo "#! /bin/sh" >conf$$.sh
11673   echo  "exit 0"   >>conf$$.sh
11674   chmod +x conf$$.sh
11675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11676     PATH_SEPARATOR=';'
11677   else
11678     PATH_SEPARATOR=:
11679   fi
11680   rm -f conf$$.sh
11681 fi
11682
11683 # Support unset when possible.
11684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11685   as_unset=unset
11686 else
11687   as_unset=false
11688 fi
11689
11690
11691 # IFS
11692 # We need space, tab and new line, in precisely that order.  Quoting is
11693 # there to prevent editors from complaining about space-tab.
11694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11695 # splitting by setting IFS to empty value.)
11696 as_nl='
11697 '
11698 IFS=" ""        $as_nl"
11699
11700 # Find who we are.  Look in the path if we contain no directory separator.
11701 case $0 in
11702   *[\\/]* ) as_myself=$0 ;;
11703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11705 do
11706   IFS=$as_save_IFS
11707   test -z "$as_dir" && as_dir=.
11708   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11709 done
11710 IFS=$as_save_IFS
11711
11712      ;;
11713 esac
11714 # We did not find ourselves, most probably we were run as `sh COMMAND'
11715 # in which case we are not to be found in the path.
11716 if test "x$as_myself" = x; then
11717   as_myself=$0
11718 fi
11719 if test ! -f "$as_myself"; then
11720   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11721   { (exit 1); exit 1; }
11722 fi
11723
11724 # Work around bugs in pre-3.0 UWIN ksh.
11725 for as_var in ENV MAIL MAILPATH
11726 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11727 done
11728 PS1='$ '
11729 PS2='> '
11730 PS4='+ '
11731
11732 # NLS nuisances.
11733 for as_var in \
11734   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11735   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11736   LC_TELEPHONE LC_TIME
11737 do
11738   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11739     eval $as_var=C; export $as_var
11740   else
11741     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11742   fi
11743 done
11744
11745 # Required to use basename.
11746 if expr a : '\(a\)' >/dev/null 2>&1 &&
11747    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11748   as_expr=expr
11749 else
11750   as_expr=false
11751 fi
11752
11753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11754   as_basename=basename
11755 else
11756   as_basename=false
11757 fi
11758
11759
11760 # Name of the executable.
11761 as_me=`$as_basename -- "$0" ||
11762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11763          X"$0" : 'X\(//\)$' \| \
11764          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11765 echo X/"$0" |
11766     sed '/^.*\/\([^/][^/]*\)\/*$/{
11767             s//\1/
11768             q
11769           }
11770           /^X\/\(\/\/\)$/{
11771             s//\1/
11772             q
11773           }
11774           /^X\/\(\/\).*/{
11775             s//\1/
11776             q
11777           }
11778           s/.*/./; q'`
11779
11780 # CDPATH.
11781 $as_unset CDPATH
11782
11783
11784
11785   as_lineno_1=$LINENO
11786   as_lineno_2=$LINENO
11787   test "x$as_lineno_1" != "x$as_lineno_2" &&
11788   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11789
11790   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11791   # uniformly replaced by the line number.  The first 'sed' inserts a
11792   # line-number line after each line using $LINENO; the second 'sed'
11793   # does the real work.  The second script uses 'N' to pair each
11794   # line-number line with the line containing $LINENO, and appends
11795   # trailing '-' during substitution so that $LINENO is not a special
11796   # case at line end.
11797   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11798   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11799   # E. McMahon (1931-1989) for sed's syntax.  :-)
11800   sed -n '
11801     p
11802     /[$]LINENO/=
11803   ' <$as_myself |
11804     sed '
11805       s/[$]LINENO.*/&-/
11806       t lineno
11807       b
11808       :lineno
11809       N
11810       :loop
11811       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11812       t loop
11813       s/-\n.*//
11814     ' >$as_me.lineno &&
11815   chmod +x "$as_me.lineno" ||
11816     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11817    { (exit 1); exit 1; }; }
11818
11819   # Don't try to exec as it changes $[0], causing all sort of problems
11820   # (the dirname of $[0] is not the place where we might find the
11821   # original and so on.  Autoconf is especially sensitive to this).
11822   . "./$as_me.lineno"
11823   # Exit status is that of the last command.
11824   exit
11825 }
11826
11827
11828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11829   as_dirname=dirname
11830 else
11831   as_dirname=false
11832 fi
11833
11834 ECHO_C= ECHO_N= ECHO_T=
11835 case `echo -n x` in
11836 -n*)
11837   case `echo 'x\c'` in
11838   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11839   *)   ECHO_C='\c';;
11840   esac;;
11841 *)
11842   ECHO_N='-n';;
11843 esac
11844
11845 if expr a : '\(a\)' >/dev/null 2>&1 &&
11846    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11847   as_expr=expr
11848 else
11849   as_expr=false
11850 fi
11851
11852 rm -f conf$$ conf$$.exe conf$$.file
11853 if test -d conf$$.dir; then
11854   rm -f conf$$.dir/conf$$.file
11855 else
11856   rm -f conf$$.dir
11857   mkdir conf$$.dir
11858 fi
11859 echo >conf$$.file
11860 if ln -s conf$$.file conf$$ 2>/dev/null; then
11861   as_ln_s='ln -s'
11862   # ... but there are two gotchas:
11863   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11864   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11865   # In both cases, we have to default to `cp -p'.
11866   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11867     as_ln_s='cp -p'
11868 elif ln conf$$.file conf$$ 2>/dev/null; then
11869   as_ln_s=ln
11870 else
11871   as_ln_s='cp -p'
11872 fi
11873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11874 rmdir conf$$.dir 2>/dev/null
11875
11876 if mkdir -p . 2>/dev/null; then
11877   as_mkdir_p=:
11878 else
11879   test -d ./-p && rmdir ./-p
11880   as_mkdir_p=false
11881 fi
11882
11883 if test -x / >/dev/null 2>&1; then
11884   as_test_x='test -x'
11885 else
11886   if ls -dL / >/dev/null 2>&1; then
11887     as_ls_L_option=L
11888   else
11889     as_ls_L_option=
11890   fi
11891   as_test_x='
11892     eval sh -c '\''
11893       if test -d "$1"; then
11894         test -d "$1/.";
11895       else
11896         case $1 in
11897         -*)set "./$1";;
11898         esac;
11899         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11900         ???[sx]*):;;*)false;;esac;fi
11901     '\'' sh
11902   '
11903 fi
11904 as_executable_p=$as_test_x
11905
11906 # Sed expression to map a string onto a valid CPP name.
11907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11908
11909 # Sed expression to map a string onto a valid variable name.
11910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11911
11912
11913 exec 6>&1
11914
11915 # Save the log message, to keep $[0] and so on meaningful, and to
11916 # report actual input values of CONFIG_FILES etc. instead of their
11917 # values after options handling.
11918 ac_log="
11919 This file was extended by iptables $as_me 1.4.9.1, which was
11920 generated by GNU Autoconf 2.61.  Invocation command line was
11921
11922   CONFIG_FILES    = $CONFIG_FILES
11923   CONFIG_HEADERS  = $CONFIG_HEADERS
11924   CONFIG_LINKS    = $CONFIG_LINKS
11925   CONFIG_COMMANDS = $CONFIG_COMMANDS
11926   $ $0 $@
11927
11928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11929 "
11930
11931 _ACEOF
11932
11933 cat >>$CONFIG_STATUS <<_ACEOF
11934 # Files that config.status was made for.
11935 config_files="$ac_config_files"
11936 config_headers="$ac_config_headers"
11937 config_commands="$ac_config_commands"
11938
11939 _ACEOF
11940
11941 cat >>$CONFIG_STATUS <<\_ACEOF
11942 ac_cs_usage="\
11943 \`$as_me' instantiates files from templates according to the
11944 current configuration.
11945
11946 Usage: $0 [OPTIONS] [FILE]...
11947
11948   -h, --help       print this help, then exit
11949   -V, --version    print version number and configuration settings, then exit
11950   -q, --quiet      do not print progress messages
11951   -d, --debug      don't remove temporary files
11952       --recheck    update $as_me by reconfiguring in the same conditions
11953   --file=FILE[:TEMPLATE]
11954                    instantiate the configuration file FILE
11955   --header=FILE[:TEMPLATE]
11956                    instantiate the configuration header FILE
11957
11958 Configuration files:
11959 $config_files
11960
11961 Configuration headers:
11962 $config_headers
11963
11964 Configuration commands:
11965 $config_commands
11966
11967 Report bugs to <bug-autoconf@gnu.org>."
11968
11969 _ACEOF
11970 cat >>$CONFIG_STATUS <<_ACEOF
11971 ac_cs_version="\\
11972 iptables config.status 1.4.9.1
11973 configured by $0, generated by GNU Autoconf 2.61,
11974   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11975
11976 Copyright (C) 2006 Free Software Foundation, Inc.
11977 This config.status script is free software; the Free Software Foundation
11978 gives unlimited permission to copy, distribute and modify it."
11979
11980 ac_pwd='$ac_pwd'
11981 srcdir='$srcdir'
11982 INSTALL='$INSTALL'
11983 MKDIR_P='$MKDIR_P'
11984 _ACEOF
11985
11986 cat >>$CONFIG_STATUS <<\_ACEOF
11987 # If no file are specified by the user, then we need to provide default
11988 # value.  By we need to know if files were specified by the user.
11989 ac_need_defaults=:
11990 while test $# != 0
11991 do
11992   case $1 in
11993   --*=*)
11994     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11995     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11996     ac_shift=:
11997     ;;
11998   *)
11999     ac_option=$1
12000     ac_optarg=$2
12001     ac_shift=shift
12002     ;;
12003   esac
12004
12005   case $ac_option in
12006   # Handling of the options.
12007   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12008     ac_cs_recheck=: ;;
12009   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12010     echo "$ac_cs_version"; exit ;;
12011   --debug | --debu | --deb | --de | --d | -d )
12012     debug=: ;;
12013   --file | --fil | --fi | --f )
12014     $ac_shift
12015     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12016     ac_need_defaults=false;;
12017   --header | --heade | --head | --hea )
12018     $ac_shift
12019     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12020     ac_need_defaults=false;;
12021   --he | --h)
12022     # Conflict between --help and --header
12023     { echo "$as_me: error: ambiguous option: $1
12024 Try \`$0 --help' for more information." >&2
12025    { (exit 1); exit 1; }; };;
12026   --help | --hel | -h )
12027     echo "$ac_cs_usage"; exit ;;
12028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12029   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12030     ac_cs_silent=: ;;
12031
12032   # This is an error.
12033   -*) { echo "$as_me: error: unrecognized option: $1
12034 Try \`$0 --help' for more information." >&2
12035    { (exit 1); exit 1; }; } ;;
12036
12037   *) ac_config_targets="$ac_config_targets $1"
12038      ac_need_defaults=false ;;
12039
12040   esac
12041   shift
12042 done
12043
12044 ac_configure_extra_args=
12045
12046 if $ac_cs_silent; then
12047   exec 6>/dev/null
12048   ac_configure_extra_args="$ac_configure_extra_args --silent"
12049 fi
12050
12051 _ACEOF
12052 cat >>$CONFIG_STATUS <<_ACEOF
12053 if \$ac_cs_recheck; then
12054   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12055   CONFIG_SHELL=$SHELL
12056   export CONFIG_SHELL
12057   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12058 fi
12059
12060 _ACEOF
12061 cat >>$CONFIG_STATUS <<\_ACEOF
12062 exec 5>>config.log
12063 {
12064   echo
12065   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12066 ## Running $as_me. ##
12067 _ASBOX
12068   echo "$ac_log"
12069 } >&5
12070
12071 _ACEOF
12072 cat >>$CONFIG_STATUS <<_ACEOF
12073 #
12074 # INIT-COMMANDS
12075 #
12076 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12077
12078
12079 # The HP-UX ksh and POSIX shell print the target directory to stdout
12080 # if CDPATH is set.
12081 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12082
12083 sed_quote_subst='$sed_quote_subst'
12084 double_quote_subst='$double_quote_subst'
12085 delay_variable_subst='$delay_variable_subst'
12086 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12087 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12088 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12089 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12090 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12091 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12092 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12093 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12094 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12095 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12096 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12097 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12098 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12099 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12100 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12101 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12102 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12103 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12104 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12105 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12106 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12107 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12108 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12109 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12110 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12111 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12112 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12113 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12114 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12115 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12116 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12117 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12118 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12119 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12120 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12121 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12122 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12123 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12124 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12125 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12126 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12127 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12128 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12129 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"`'
12130 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"`'
12131 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12132 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12133 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12134 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12135 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12136 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12137 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12138 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12139 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12140 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12141 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12142 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12143 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12144 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12145 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12146 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12147 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12148 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12149 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12150 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12151 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12152 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12153 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12154 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12155 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12156 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12157 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12158 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12159 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12160 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12161 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12162 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12163 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12164 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12165 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12166 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12167 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12168 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12169 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12170 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12171 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12172 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12173 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12174 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12175 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12176 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12177 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12178 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12180 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12181 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12182 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12183 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12184 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12185 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12186 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12187 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12188 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12189 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12190 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12191 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12192 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12193 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12194 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12195 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12196 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12197 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12198 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12199 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12200 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12201 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12202 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12203
12204 LTCC='$LTCC'
12205 LTCFLAGS='$LTCFLAGS'
12206 compiler='$compiler_DEFAULT'
12207
12208 # Quote evaled strings.
12209 for var in SED \
12210 GREP \
12211 EGREP \
12212 FGREP \
12213 LD \
12214 NM \
12215 LN_S \
12216 lt_SP2NL \
12217 lt_NL2SP \
12218 reload_flag \
12219 deplibs_check_method \
12220 file_magic_cmd \
12221 AR \
12222 AR_FLAGS \
12223 STRIP \
12224 RANLIB \
12225 CC \
12226 CFLAGS \
12227 compiler \
12228 lt_cv_sys_global_symbol_pipe \
12229 lt_cv_sys_global_symbol_to_cdecl \
12230 lt_cv_sys_global_symbol_to_c_name_address \
12231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12232 SHELL \
12233 ECHO \
12234 lt_prog_compiler_no_builtin_flag \
12235 lt_prog_compiler_wl \
12236 lt_prog_compiler_pic \
12237 lt_prog_compiler_static \
12238 lt_cv_prog_compiler_c_o \
12239 need_locks \
12240 DSYMUTIL \
12241 NMEDIT \
12242 LIPO \
12243 OTOOL \
12244 OTOOL64 \
12245 shrext_cmds \
12246 export_dynamic_flag_spec \
12247 whole_archive_flag_spec \
12248 compiler_needs_object \
12249 with_gnu_ld \
12250 allow_undefined_flag \
12251 no_undefined_flag \
12252 hardcode_libdir_flag_spec \
12253 hardcode_libdir_flag_spec_ld \
12254 hardcode_libdir_separator \
12255 fix_srcfile_path \
12256 exclude_expsyms \
12257 include_expsyms \
12258 file_list_spec \
12259 variables_saved_for_relink \
12260 libname_spec \
12261 library_names_spec \
12262 soname_spec \
12263 finish_eval \
12264 old_striplib \
12265 striplib; do
12266     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12267     *[\\\\\\\`\\"\\\$]*)
12268       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12269       ;;
12270     *)
12271       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12272       ;;
12273     esac
12274 done
12275
12276 # Double-quote double-evaled strings.
12277 for var in reload_cmds \
12278 old_postinstall_cmds \
12279 old_postuninstall_cmds \
12280 old_archive_cmds \
12281 extract_expsyms_cmds \
12282 old_archive_from_new_cmds \
12283 old_archive_from_expsyms_cmds \
12284 archive_cmds \
12285 archive_expsym_cmds \
12286 module_cmds \
12287 module_expsym_cmds \
12288 export_symbols_cmds \
12289 prelink_cmds \
12290 postinstall_cmds \
12291 postuninstall_cmds \
12292 finish_cmds \
12293 sys_lib_search_path_spec \
12294 sys_lib_dlsearch_path_spec; do
12295     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12296     *[\\\\\\\`\\"\\\$]*)
12297       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12298       ;;
12299     *)
12300       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12301       ;;
12302     esac
12303 done
12304
12305 # Fix-up fallback echo if it was mangled by the above quoting rules.
12306 case \$lt_ECHO in
12307 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12308   ;;
12309 esac
12310
12311 ac_aux_dir='$ac_aux_dir'
12312 xsi_shell='$xsi_shell'
12313 lt_shell_append='$lt_shell_append'
12314
12315 # See if we are running on zsh, and set the options which allow our
12316 # commands through without removal of \ escapes INIT.
12317 if test -n "\${ZSH_VERSION+set}" ; then
12318    setopt NO_GLOB_SUBST
12319 fi
12320
12321
12322     PACKAGE='$PACKAGE'
12323     VERSION='$VERSION'
12324     TIMESTAMP='$TIMESTAMP'
12325     RM='$RM'
12326     ofile='$ofile'
12327
12328
12329
12330
12331 _ACEOF
12332
12333 cat >>$CONFIG_STATUS <<\_ACEOF
12334
12335 # Handling of arguments.
12336 for ac_config_target in $ac_config_targets
12337 do
12338   case $ac_config_target in
12339     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12340     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12341     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12342     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12343     "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
12344     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12345     "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
12346     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
12347     "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
12348     "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
12349     "libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc.pc" ;;
12350     "xtables.pc") CONFIG_FILES="$CONFIG_FILES xtables.pc" ;;
12351
12352   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12354    { (exit 1); exit 1; }; };;
12355   esac
12356 done
12357
12358
12359 # If the user did not use the arguments to specify the items to instantiate,
12360 # then the envvar interface is used.  Set only those that are not.
12361 # We use the long form for the default assignment because of an extremely
12362 # bizarre bug on SunOS 4.1.3.
12363 if $ac_need_defaults; then
12364   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12365   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12366   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12367 fi
12368
12369 # Have a temporary directory for convenience.  Make it in the build tree
12370 # simply because there is no reason against having it here, and in addition,
12371 # creating and moving files from /tmp can sometimes cause problems.
12372 # Hook for its removal unless debugging.
12373 # Note that there is a small window in which the directory will not be cleaned:
12374 # after its creation but before its name has been assigned to `$tmp'.
12375 $debug ||
12376 {
12377   tmp=
12378   trap 'exit_status=$?
12379   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12380 ' 0
12381   trap '{ (exit 1); exit 1; }' 1 2 13 15
12382 }
12383 # Create a (secure) tmp directory for tmp files.
12384
12385 {
12386   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12387   test -n "$tmp" && test -d "$tmp"
12388 }  ||
12389 {
12390   tmp=./conf$$-$RANDOM
12391   (umask 077 && mkdir "$tmp")
12392 } ||
12393 {
12394    echo "$me: cannot create a temporary directory in ." >&2
12395    { (exit 1); exit 1; }
12396 }
12397
12398 #
12399 # Set up the sed scripts for CONFIG_FILES section.
12400 #
12401
12402 # No need to generate the scripts if there are no CONFIG_FILES.
12403 # This happens for instance when ./config.status config.h
12404 if test -n "$CONFIG_FILES"; then
12405
12406 _ACEOF
12407
12408
12409
12410 ac_delim='%!_!# '
12411 for ac_last_try in false false false false false :; do
12412   cat >conf$$subs.sed <<_ACEOF
12413 SHELL!$SHELL$ac_delim
12414 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12415 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12416 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12417 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12418 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12419 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12420 exec_prefix!$exec_prefix$ac_delim
12421 prefix!$prefix$ac_delim
12422 program_transform_name!$program_transform_name$ac_delim
12423 bindir!$bindir$ac_delim
12424 sbindir!$sbindir$ac_delim
12425 libexecdir!$libexecdir$ac_delim
12426 datarootdir!$datarootdir$ac_delim
12427 datadir!$datadir$ac_delim
12428 sysconfdir!$sysconfdir$ac_delim
12429 sharedstatedir!$sharedstatedir$ac_delim
12430 localstatedir!$localstatedir$ac_delim
12431 includedir!$includedir$ac_delim
12432 oldincludedir!$oldincludedir$ac_delim
12433 docdir!$docdir$ac_delim
12434 infodir!$infodir$ac_delim
12435 htmldir!$htmldir$ac_delim
12436 dvidir!$dvidir$ac_delim
12437 pdfdir!$pdfdir$ac_delim
12438 psdir!$psdir$ac_delim
12439 libdir!$libdir$ac_delim
12440 localedir!$localedir$ac_delim
12441 mandir!$mandir$ac_delim
12442 DEFS!$DEFS$ac_delim
12443 ECHO_C!$ECHO_C$ac_delim
12444 ECHO_N!$ECHO_N$ac_delim
12445 ECHO_T!$ECHO_T$ac_delim
12446 LIBS!$LIBS$ac_delim
12447 build_alias!$build_alias$ac_delim
12448 host_alias!$host_alias$ac_delim
12449 target_alias!$target_alias$ac_delim
12450 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12451 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12452 INSTALL_DATA!$INSTALL_DATA$ac_delim
12453 am__isrc!$am__isrc$ac_delim
12454 CYGPATH_W!$CYGPATH_W$ac_delim
12455 PACKAGE!$PACKAGE$ac_delim
12456 VERSION!$VERSION$ac_delim
12457 ACLOCAL!$ACLOCAL$ac_delim
12458 AUTOCONF!$AUTOCONF$ac_delim
12459 AUTOMAKE!$AUTOMAKE$ac_delim
12460 AUTOHEADER!$AUTOHEADER$ac_delim
12461 MAKEINFO!$MAKEINFO$ac_delim
12462 install_sh!$install_sh$ac_delim
12463 STRIP!$STRIP$ac_delim
12464 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12465 mkdir_p!$mkdir_p$ac_delim
12466 AWK!$AWK$ac_delim
12467 SET_MAKE!$SET_MAKE$ac_delim
12468 am__leading_dot!$am__leading_dot$ac_delim
12469 AMTAR!$AMTAR$ac_delim
12470 am__tar!$am__tar$ac_delim
12471 am__untar!$am__untar$ac_delim
12472 CC!$CC$ac_delim
12473 CFLAGS!$CFLAGS$ac_delim
12474 LDFLAGS!$LDFLAGS$ac_delim
12475 CPPFLAGS!$CPPFLAGS$ac_delim
12476 ac_ct_CC!$ac_ct_CC$ac_delim
12477 EXEEXT!$EXEEXT$ac_delim
12478 OBJEXT!$OBJEXT$ac_delim
12479 DEPDIR!$DEPDIR$ac_delim
12480 am__include!$am__include$ac_delim
12481 am__quote!$am__quote$ac_delim
12482 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12483 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12484 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12485 CCDEPMODE!$CCDEPMODE$ac_delim
12486 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12487 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12488 LIBTOOL!$LIBTOOL$ac_delim
12489 build!$build$ac_delim
12490 build_cpu!$build_cpu$ac_delim
12491 build_vendor!$build_vendor$ac_delim
12492 build_os!$build_os$ac_delim
12493 host!$host$ac_delim
12494 host_cpu!$host_cpu$ac_delim
12495 host_vendor!$host_vendor$ac_delim
12496 host_os!$host_os$ac_delim
12497 SED!$SED$ac_delim
12498 GREP!$GREP$ac_delim
12499 EGREP!$EGREP$ac_delim
12500 FGREP!$FGREP$ac_delim
12501 LD!$LD$ac_delim
12502 DUMPBIN!$DUMPBIN$ac_delim
12503 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
12504 NM!$NM$ac_delim
12505 LN_S!$LN_S$ac_delim
12506 AR!$AR$ac_delim
12507 RANLIB!$RANLIB$ac_delim
12508 lt_ECHO!$lt_ECHO$ac_delim
12509 DSYMUTIL!$DSYMUTIL$ac_delim
12510 _ACEOF
12511
12512   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12513     break
12514   elif $ac_last_try; then
12515     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12517    { (exit 1); exit 1; }; }
12518   else
12519     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12520   fi
12521 done
12522
12523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12524 if test -n "$ac_eof"; then
12525   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12526   ac_eof=`expr $ac_eof + 1`
12527 fi
12528
12529 cat >>$CONFIG_STATUS <<_ACEOF
12530 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12532 _ACEOF
12533 sed '
12534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12535 s/^/s,@/; s/!/@,|#_!!_#|/
12536 :n
12537 t n
12538 s/'"$ac_delim"'$/,g/; t
12539 s/$/\\/; p
12540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12541 ' >>$CONFIG_STATUS <conf$$subs.sed
12542 rm -f conf$$subs.sed
12543 cat >>$CONFIG_STATUS <<_ACEOF
12544 CEOF$ac_eof
12545 _ACEOF
12546
12547
12548 ac_delim='%!_!# '
12549 for ac_last_try in false false false false false :; do
12550   cat >conf$$subs.sed <<_ACEOF
12551 NMEDIT!$NMEDIT$ac_delim
12552 LIPO!$LIPO$ac_delim
12553 OTOOL!$OTOOL$ac_delim
12554 OTOOL64!$OTOOL64$ac_delim
12555 CPP!$CPP$ac_delim
12556 blacklist_modules!$blacklist_modules$ac_delim
12557 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
12558 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
12559 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
12560 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
12561 ENABLE_IPV4_TRUE!$ENABLE_IPV4_TRUE$ac_delim
12562 ENABLE_IPV4_FALSE!$ENABLE_IPV4_FALSE$ac_delim
12563 ENABLE_IPV6_TRUE!$ENABLE_IPV6_TRUE$ac_delim
12564 ENABLE_IPV6_FALSE!$ENABLE_IPV6_FALSE$ac_delim
12565 ENABLE_LARGEFILE_TRUE!$ENABLE_LARGEFILE_TRUE$ac_delim
12566 ENABLE_LARGEFILE_FALSE!$ENABLE_LARGEFILE_FALSE$ac_delim
12567 ENABLE_DEVEL_TRUE!$ENABLE_DEVEL_TRUE$ac_delim
12568 ENABLE_DEVEL_FALSE!$ENABLE_DEVEL_FALSE$ac_delim
12569 ENABLE_LIBIPQ_TRUE!$ENABLE_LIBIPQ_TRUE$ac_delim
12570 ENABLE_LIBIPQ_FALSE!$ENABLE_LIBIPQ_FALSE$ac_delim
12571 PKG_CONFIG!$PKG_CONFIG$ac_delim
12572 libnfnetlink_CFLAGS!$libnfnetlink_CFLAGS$ac_delim
12573 libnfnetlink_LIBS!$libnfnetlink_LIBS$ac_delim
12574 HAVE_LIBNFNETLINK_TRUE!$HAVE_LIBNFNETLINK_TRUE$ac_delim
12575 HAVE_LIBNFNETLINK_FALSE!$HAVE_LIBNFNETLINK_FALSE$ac_delim
12576 regular_CFLAGS!$regular_CFLAGS$ac_delim
12577 kinclude_CFLAGS!$kinclude_CFLAGS$ac_delim
12578 kbuilddir!$kbuilddir$ac_delim
12579 ksourcedir!$ksourcedir$ac_delim
12580 xtlibdir!$xtlibdir$ac_delim
12581 pkgconfigdir!$pkgconfigdir$ac_delim
12582 pkgdatadir!$pkgdatadir$ac_delim
12583 libxtables_vcurrent!$libxtables_vcurrent$ac_delim
12584 libxtables_vage!$libxtables_vage$ac_delim
12585 libxtables_vmajor!$libxtables_vmajor$ac_delim
12586 LIBOBJS!$LIBOBJS$ac_delim
12587 LTLIBOBJS!$LTLIBOBJS$ac_delim
12588 _ACEOF
12589
12590   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
12591     break
12592   elif $ac_last_try; then
12593     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12594 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12595    { (exit 1); exit 1; }; }
12596   else
12597     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12598   fi
12599 done
12600
12601 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12602 if test -n "$ac_eof"; then
12603   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12604   ac_eof=`expr $ac_eof + 1`
12605 fi
12606
12607 cat >>$CONFIG_STATUS <<_ACEOF
12608 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12610 _ACEOF
12611 sed '
12612 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12613 s/^/s,@/; s/!/@,|#_!!_#|/
12614 :n
12615 t n
12616 s/'"$ac_delim"'$/,g/; t
12617 s/$/\\/; p
12618 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12619 ' >>$CONFIG_STATUS <conf$$subs.sed
12620 rm -f conf$$subs.sed
12621 cat >>$CONFIG_STATUS <<_ACEOF
12622 :end
12623 s/|#_!!_#|//g
12624 CEOF$ac_eof
12625 _ACEOF
12626
12627
12628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12630 # trailing colons and then remove the whole line if VPATH becomes empty
12631 # (actually we leave an empty line to preserve line numbers).
12632 if test "x$srcdir" = x.; then
12633   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12634 s/:*\$(srcdir):*/:/
12635 s/:*\${srcdir}:*/:/
12636 s/:*@srcdir@:*/:/
12637 s/^\([^=]*=[     ]*\):*/\1/
12638 s/:*$//
12639 s/^[^=]*=[       ]*$//
12640 }'
12641 fi
12642
12643 cat >>$CONFIG_STATUS <<\_ACEOF
12644 fi # test -n "$CONFIG_FILES"
12645
12646
12647 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12648 do
12649   case $ac_tag in
12650   :[FHLC]) ac_mode=$ac_tag; continue;;
12651   esac
12652   case $ac_mode$ac_tag in
12653   :[FHL]*:*);;
12654   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12655 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12656    { (exit 1); exit 1; }; };;
12657   :[FH]-) ac_tag=-:-;;
12658   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12659   esac
12660   ac_save_IFS=$IFS
12661   IFS=:
12662   set x $ac_tag
12663   IFS=$ac_save_IFS
12664   shift
12665   ac_file=$1
12666   shift
12667
12668   case $ac_mode in
12669   :L) ac_source=$1;;
12670   :[FH])
12671     ac_file_inputs=
12672     for ac_f
12673     do
12674       case $ac_f in
12675       -) ac_f="$tmp/stdin";;
12676       *) # Look for the file first in the build tree, then in the source tree
12677          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12678          # because $ac_f cannot contain `:'.
12679          test -f "$ac_f" ||
12680            case $ac_f in
12681            [\\/$]*) false;;
12682            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12683            esac ||
12684            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12685 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12686    { (exit 1); exit 1; }; };;
12687       esac
12688       ac_file_inputs="$ac_file_inputs $ac_f"
12689     done
12690
12691     # Let's still pretend it is `configure' which instantiates (i.e., don't
12692     # use $as_me), people would be surprised to read:
12693     #    /* config.h.  Generated by config.status.  */
12694     configure_input="Generated from "`IFS=:
12695           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12696     if test x"$ac_file" != x-; then
12697       configure_input="$ac_file.  $configure_input"
12698       { echo "$as_me:$LINENO: creating $ac_file" >&5
12699 echo "$as_me: creating $ac_file" >&6;}
12700     fi
12701
12702     case $ac_tag in
12703     *:-:* | *:-) cat >"$tmp/stdin";;
12704     esac
12705     ;;
12706   esac
12707
12708   ac_dir=`$as_dirname -- "$ac_file" ||
12709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12710          X"$ac_file" : 'X\(//\)[^/]' \| \
12711          X"$ac_file" : 'X\(//\)$' \| \
12712          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12713 echo X"$ac_file" |
12714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12715             s//\1/
12716             q
12717           }
12718           /^X\(\/\/\)[^/].*/{
12719             s//\1/
12720             q
12721           }
12722           /^X\(\/\/\)$/{
12723             s//\1/
12724             q
12725           }
12726           /^X\(\/\).*/{
12727             s//\1/
12728             q
12729           }
12730           s/.*/./; q'`
12731   { as_dir="$ac_dir"
12732   case $as_dir in #(
12733   -*) as_dir=./$as_dir;;
12734   esac
12735   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12736     as_dirs=
12737     while :; do
12738       case $as_dir in #(
12739       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12740       *) as_qdir=$as_dir;;
12741       esac
12742       as_dirs="'$as_qdir' $as_dirs"
12743       as_dir=`$as_dirname -- "$as_dir" ||
12744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12745          X"$as_dir" : 'X\(//\)[^/]' \| \
12746          X"$as_dir" : 'X\(//\)$' \| \
12747          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12748 echo X"$as_dir" |
12749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12750             s//\1/
12751             q
12752           }
12753           /^X\(\/\/\)[^/].*/{
12754             s//\1/
12755             q
12756           }
12757           /^X\(\/\/\)$/{
12758             s//\1/
12759             q
12760           }
12761           /^X\(\/\).*/{
12762             s//\1/
12763             q
12764           }
12765           s/.*/./; q'`
12766       test -d "$as_dir" && break
12767     done
12768     test -z "$as_dirs" || eval "mkdir $as_dirs"
12769   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12770 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12771    { (exit 1); exit 1; }; }; }
12772   ac_builddir=.
12773
12774 case "$ac_dir" in
12775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12776 *)
12777   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12778   # A ".." for each directory in $ac_dir_suffix.
12779   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12780   case $ac_top_builddir_sub in
12781   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12782   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12783   esac ;;
12784 esac
12785 ac_abs_top_builddir=$ac_pwd
12786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12787 # for backward compatibility:
12788 ac_top_builddir=$ac_top_build_prefix
12789
12790 case $srcdir in
12791   .)  # We are building in place.
12792     ac_srcdir=.
12793     ac_top_srcdir=$ac_top_builddir_sub
12794     ac_abs_top_srcdir=$ac_pwd ;;
12795   [\\/]* | ?:[\\/]* )  # Absolute name.
12796     ac_srcdir=$srcdir$ac_dir_suffix;
12797     ac_top_srcdir=$srcdir
12798     ac_abs_top_srcdir=$srcdir ;;
12799   *) # Relative name.
12800     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12801     ac_top_srcdir=$ac_top_build_prefix$srcdir
12802     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12803 esac
12804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12805
12806
12807   case $ac_mode in
12808   :F)
12809   #
12810   # CONFIG_FILE
12811   #
12812
12813   case $INSTALL in
12814   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12815   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12816   esac
12817   ac_MKDIR_P=$MKDIR_P
12818   case $MKDIR_P in
12819   [\\/$]* | ?:[\\/]* ) ;;
12820   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12821   esac
12822 _ACEOF
12823
12824 cat >>$CONFIG_STATUS <<\_ACEOF
12825 # If the template does not know about datarootdir, expand it.
12826 # FIXME: This hack should be removed a few years after 2.60.
12827 ac_datarootdir_hack=; ac_datarootdir_seen=
12828
12829 case `sed -n '/datarootdir/ {
12830   p
12831   q
12832 }
12833 /@datadir@/p
12834 /@docdir@/p
12835 /@infodir@/p
12836 /@localedir@/p
12837 /@mandir@/p
12838 ' $ac_file_inputs` in
12839 *datarootdir*) ac_datarootdir_seen=yes;;
12840 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12841   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12842 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12843 _ACEOF
12844 cat >>$CONFIG_STATUS <<_ACEOF
12845   ac_datarootdir_hack='
12846   s&@datadir@&$datadir&g
12847   s&@docdir@&$docdir&g
12848   s&@infodir@&$infodir&g
12849   s&@localedir@&$localedir&g
12850   s&@mandir@&$mandir&g
12851     s&\\\${datarootdir}&$datarootdir&g' ;;
12852 esac
12853 _ACEOF
12854
12855 # Neutralize VPATH when `$srcdir' = `.'.
12856 # Shell code in configure.ac might set extrasub.
12857 # FIXME: do we really want to maintain this feature?
12858 cat >>$CONFIG_STATUS <<_ACEOF
12859   sed "$ac_vpsub
12860 $extrasub
12861 _ACEOF
12862 cat >>$CONFIG_STATUS <<\_ACEOF
12863 :t
12864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12865 s&@configure_input@&$configure_input&;t t
12866 s&@top_builddir@&$ac_top_builddir_sub&;t t
12867 s&@srcdir@&$ac_srcdir&;t t
12868 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12869 s&@top_srcdir@&$ac_top_srcdir&;t t
12870 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12871 s&@builddir@&$ac_builddir&;t t
12872 s&@abs_builddir@&$ac_abs_builddir&;t t
12873 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12874 s&@INSTALL@&$ac_INSTALL&;t t
12875 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12876 $ac_datarootdir_hack
12877 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12878
12879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12880   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12881   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12882   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12883 which seems to be undefined.  Please make sure it is defined." >&5
12884 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12885 which seems to be undefined.  Please make sure it is defined." >&2;}
12886
12887   rm -f "$tmp/stdin"
12888   case $ac_file in
12889   -) cat "$tmp/out"; rm -f "$tmp/out";;
12890   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12891   esac
12892  ;;
12893   :H)
12894   #
12895   # CONFIG_HEADER
12896   #
12897 _ACEOF
12898
12899 # Transform confdefs.h into a sed script `conftest.defines', that
12900 # substitutes the proper values into config.h.in to produce config.h.
12901 rm -f conftest.defines conftest.tail
12902 # First, append a space to every undef/define line, to ease matching.
12903 echo 's/$/ /' >conftest.defines
12904 # Then, protect against being on the right side of a sed subst, or in
12905 # an unquoted here document, in config.status.  If some macros were
12906 # called several times there might be several #defines for the same
12907 # symbol, which is useless.  But do not sort them, since the last
12908 # AC_DEFINE must be honored.
12909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12910 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12911 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12912 # PARAMS is the parameter list in the macro definition--in most cases, it's
12913 # just an empty string.
12914 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12915 ac_dB='\\)[      (].*,\\1define\\2'
12916 ac_dC=' '
12917 ac_dD=' ,'
12918
12919 uniq confdefs.h |
12920   sed -n '
12921         t rset
12922         :rset
12923         s/^[     ]*#[    ]*define[       ][      ]*//
12924         t ok
12925         d
12926         :ok
12927         s/[\\&,]/\\&/g
12928         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12929         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12930   ' >>conftest.defines
12931
12932 # Remove the space that was appended to ease matching.
12933 # Then replace #undef with comments.  This is necessary, for
12934 # example, in the case of _POSIX_SOURCE, which is predefined and required
12935 # on some systems where configure will not decide to define it.
12936 # (The regexp can be short, since the line contains either #define or #undef.)
12937 echo 's/ $//
12938 s,^[     #]*u.*,/* & */,' >>conftest.defines
12939
12940 # Break up conftest.defines:
12941 ac_max_sed_lines=50
12942
12943 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12944 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12945 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12946 # et cetera.
12947 ac_in='$ac_file_inputs'
12948 ac_out='"$tmp/out1"'
12949 ac_nxt='"$tmp/out2"'
12950
12951 while :
12952 do
12953   # Write a here document:
12954     cat >>$CONFIG_STATUS <<_ACEOF
12955     # First, check the format of the line:
12956     cat >"\$tmp/defines.sed" <<\\CEOF
12957 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12958 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12959 b
12960 :def
12961 _ACEOF
12962   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12963   echo 'CEOF
12964     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12965   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12966   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12967   grep . conftest.tail >/dev/null || break
12968   rm -f conftest.defines
12969   mv conftest.tail conftest.defines
12970 done
12971 rm -f conftest.defines conftest.tail
12972
12973 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12974 cat >>$CONFIG_STATUS <<\_ACEOF
12975   if test x"$ac_file" != x-; then
12976     echo "/* $configure_input  */" >"$tmp/config.h"
12977     cat "$ac_result" >>"$tmp/config.h"
12978     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12979       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12980 echo "$as_me: $ac_file is unchanged" >&6;}
12981     else
12982       rm -f $ac_file
12983       mv "$tmp/config.h" $ac_file
12984     fi
12985   else
12986     echo "/* $configure_input  */"
12987     cat "$ac_result"
12988   fi
12989   rm -f "$tmp/out12"
12990 # Compute $ac_file's index in $config_headers.
12991 _am_arg=$ac_file
12992 _am_stamp_count=1
12993 for _am_header in $config_headers :; do
12994   case $_am_header in
12995     $_am_arg | $_am_arg:* )
12996       break ;;
12997     * )
12998       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12999   esac
13000 done
13001 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13002 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13003          X"$_am_arg" : 'X\(//\)[^/]' \| \
13004          X"$_am_arg" : 'X\(//\)$' \| \
13005          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13006 echo X"$_am_arg" |
13007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13008             s//\1/
13009             q
13010           }
13011           /^X\(\/\/\)[^/].*/{
13012             s//\1/
13013             q
13014           }
13015           /^X\(\/\/\)$/{
13016             s//\1/
13017             q
13018           }
13019           /^X\(\/\).*/{
13020             s//\1/
13021             q
13022           }
13023           s/.*/./; q'`/stamp-h$_am_stamp_count
13024  ;;
13025
13026   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13027 echo "$as_me: executing $ac_file commands" >&6;}
13028  ;;
13029   esac
13030
13031
13032   case $ac_file$ac_mode in
13033     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
13034 # are listed without --file.  Let's play safe and only enable the eval
13035 # if we detect the quoting.
13036 case $CONFIG_FILES in
13037 *\'*) eval set x "$CONFIG_FILES" ;;
13038 *)   set x $CONFIG_FILES ;;
13039 esac
13040 shift
13041 for mf
13042 do
13043   # Strip MF so we end up with the name of the file.
13044   mf=`echo "$mf" | sed -e 's/:.*$//'`
13045   # Check whether this is an Automake generated Makefile or not.
13046   # We used to match only the files named `Makefile.in', but
13047   # some people rename them; so instead we look at the file content.
13048   # Grep'ing the first line is not enough: some people post-process
13049   # each Makefile.in and add a new line on top of each file to say so.
13050   # Grep'ing the whole file is not good either: AIX grep has a line
13051   # limit of 2048, but all sed's we know have understand at least 4000.
13052   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13053     dirpart=`$as_dirname -- "$mf" ||
13054 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13055          X"$mf" : 'X\(//\)[^/]' \| \
13056          X"$mf" : 'X\(//\)$' \| \
13057          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13058 echo X"$mf" |
13059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13060             s//\1/
13061             q
13062           }
13063           /^X\(\/\/\)[^/].*/{
13064             s//\1/
13065             q
13066           }
13067           /^X\(\/\/\)$/{
13068             s//\1/
13069             q
13070           }
13071           /^X\(\/\).*/{
13072             s//\1/
13073             q
13074           }
13075           s/.*/./; q'`
13076   else
13077     continue
13078   fi
13079   # Extract the definition of DEPDIR, am__include, and am__quote
13080   # from the Makefile without running `make'.
13081   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13082   test -z "$DEPDIR" && continue
13083   am__include=`sed -n 's/^am__include = //p' < "$mf"`
13084   test -z "am__include" && continue
13085   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13086   # When using ansi2knr, U may be empty or an underscore; expand it
13087   U=`sed -n 's/^U = //p' < "$mf"`
13088   # Find all dependency output files, they are included files with
13089   # $(DEPDIR) in their names.  We invoke sed twice because it is the
13090   # simplest approach to changing $(DEPDIR) to its actual value in the
13091   # expansion.
13092   for file in `sed -n "
13093     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13094        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13095     # Make sure the directory exists.
13096     test -f "$dirpart/$file" && continue
13097     fdir=`$as_dirname -- "$file" ||
13098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13099          X"$file" : 'X\(//\)[^/]' \| \
13100          X"$file" : 'X\(//\)$' \| \
13101          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13102 echo X"$file" |
13103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13104             s//\1/
13105             q
13106           }
13107           /^X\(\/\/\)[^/].*/{
13108             s//\1/
13109             q
13110           }
13111           /^X\(\/\/\)$/{
13112             s//\1/
13113             q
13114           }
13115           /^X\(\/\).*/{
13116             s//\1/
13117             q
13118           }
13119           s/.*/./; q'`
13120     { as_dir=$dirpart/$fdir
13121   case $as_dir in #(
13122   -*) as_dir=./$as_dir;;
13123   esac
13124   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13125     as_dirs=
13126     while :; do
13127       case $as_dir in #(
13128       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13129       *) as_qdir=$as_dir;;
13130       esac
13131       as_dirs="'$as_qdir' $as_dirs"
13132       as_dir=`$as_dirname -- "$as_dir" ||
13133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134          X"$as_dir" : 'X\(//\)[^/]' \| \
13135          X"$as_dir" : 'X\(//\)$' \| \
13136          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13137 echo X"$as_dir" |
13138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13139             s//\1/
13140             q
13141           }
13142           /^X\(\/\/\)[^/].*/{
13143             s//\1/
13144             q
13145           }
13146           /^X\(\/\/\)$/{
13147             s//\1/
13148             q
13149           }
13150           /^X\(\/\).*/{
13151             s//\1/
13152             q
13153           }
13154           s/.*/./; q'`
13155       test -d "$as_dir" && break
13156     done
13157     test -z "$as_dirs" || eval "mkdir $as_dirs"
13158   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13159 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13160    { (exit 1); exit 1; }; }; }
13161     # echo "creating $dirpart/$file"
13162     echo '# dummy' > "$dirpart/$file"
13163   done
13164 done
13165  ;;
13166     "libtool":C)
13167
13168     # See if we are running on zsh, and set the options which allow our
13169     # commands through without removal of \ escapes.
13170     if test -n "${ZSH_VERSION+set}" ; then
13171       setopt NO_GLOB_SUBST
13172     fi
13173
13174     cfgfile="${ofile}T"
13175     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13176     $RM "$cfgfile"
13177
13178     cat <<_LT_EOF >> "$cfgfile"
13179 #! $SHELL
13180
13181 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13182 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13184 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13185 #
13186 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13187 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13188 #   Written by Gordon Matzigkeit, 1996
13189 #
13190 #   This file is part of GNU Libtool.
13191 #
13192 # GNU Libtool is free software; you can redistribute it and/or
13193 # modify it under the terms of the GNU General Public License as
13194 # published by the Free Software Foundation; either version 2 of
13195 # the License, or (at your option) any later version.
13196 #
13197 # As a special exception to the GNU General Public License,
13198 # if you distribute this file as part of a program or library that
13199 # is built using GNU Libtool, you may include this file under the
13200 # same distribution terms that you use for the rest of that program.
13201 #
13202 # GNU Libtool is distributed in the hope that it will be useful,
13203 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13204 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13205 # GNU General Public License for more details.
13206 #
13207 # You should have received a copy of the GNU General Public License
13208 # along with GNU Libtool; see the file COPYING.  If not, a copy
13209 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13210 # obtained by writing to the Free Software Foundation, Inc.,
13211 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13212
13213
13214 # The names of the tagged configurations supported by this script.
13215 available_tags=""
13216
13217 # ### BEGIN LIBTOOL CONFIG
13218
13219 # Whether or not to build static libraries.
13220 build_old_libs=$enable_static
13221
13222 # Which release of libtool.m4 was used?
13223 macro_version=$macro_version
13224 macro_revision=$macro_revision
13225
13226 # Whether or not to build shared libraries.
13227 build_libtool_libs=$enable_shared
13228
13229 # What type of objects to build.
13230 pic_mode=$pic_mode
13231
13232 # Whether or not to optimize for fast installation.
13233 fast_install=$enable_fast_install
13234
13235 # The host system.
13236 host_alias=$host_alias
13237 host=$host
13238 host_os=$host_os
13239
13240 # The build system.
13241 build_alias=$build_alias
13242 build=$build
13243 build_os=$build_os
13244
13245 # A sed program that does not truncate output.
13246 SED=$lt_SED
13247
13248 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13249 Xsed="\$SED -e 1s/^X//"
13250
13251 # A grep program that handles long lines.
13252 GREP=$lt_GREP
13253
13254 # An ERE matcher.
13255 EGREP=$lt_EGREP
13256
13257 # A literal string matcher.
13258 FGREP=$lt_FGREP
13259
13260 # A BSD- or MS-compatible name lister.
13261 NM=$lt_NM
13262
13263 # Whether we need soft or hard links.
13264 LN_S=$lt_LN_S
13265
13266 # What is the maximum length of a command?
13267 max_cmd_len=$max_cmd_len
13268
13269 # Object file suffix (normally "o").
13270 objext=$ac_objext
13271
13272 # Executable file suffix (normally "").
13273 exeext=$exeext
13274
13275 # whether the shell understands "unset".
13276 lt_unset=$lt_unset
13277
13278 # turn spaces into newlines.
13279 SP2NL=$lt_lt_SP2NL
13280
13281 # turn newlines into spaces.
13282 NL2SP=$lt_lt_NL2SP
13283
13284 # How to create reloadable object files.
13285 reload_flag=$lt_reload_flag
13286 reload_cmds=$lt_reload_cmds
13287
13288 # Method to check whether dependent libraries are shared objects.
13289 deplibs_check_method=$lt_deplibs_check_method
13290
13291 # Command to use when deplibs_check_method == "file_magic".
13292 file_magic_cmd=$lt_file_magic_cmd
13293
13294 # The archiver.
13295 AR=$lt_AR
13296 AR_FLAGS=$lt_AR_FLAGS
13297
13298 # A symbol stripping program.
13299 STRIP=$lt_STRIP
13300
13301 # Commands used to install an old-style archive.
13302 RANLIB=$lt_RANLIB
13303 old_postinstall_cmds=$lt_old_postinstall_cmds
13304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13305
13306 # A C compiler.
13307 LTCC=$lt_CC
13308
13309 # LTCC compiler flags.
13310 LTCFLAGS=$lt_CFLAGS
13311
13312 # Take the output of nm and produce a listing of raw symbols and C names.
13313 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13314
13315 # Transform the output of nm in a proper C declaration.
13316 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13317
13318 # Transform the output of nm in a C name address pair.
13319 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13320
13321 # Transform the output of nm in a C name address pair when lib prefix is needed.
13322 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13323
13324 # The name of the directory that contains temporary libtool files.
13325 objdir=$objdir
13326
13327 # Shell to use when invoking shell scripts.
13328 SHELL=$lt_SHELL
13329
13330 # An echo program that does not interpret backslashes.
13331 ECHO=$lt_ECHO
13332
13333 # Used to examine libraries when file_magic_cmd begins with "file".
13334 MAGIC_CMD=$MAGIC_CMD
13335
13336 # Must we lock files when doing compilation?
13337 need_locks=$lt_need_locks
13338
13339 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13340 DSYMUTIL=$lt_DSYMUTIL
13341
13342 # Tool to change global to local symbols on Mac OS X.
13343 NMEDIT=$lt_NMEDIT
13344
13345 # Tool to manipulate fat objects and archives on Mac OS X.
13346 LIPO=$lt_LIPO
13347
13348 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13349 OTOOL=$lt_OTOOL
13350
13351 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13352 OTOOL64=$lt_OTOOL64
13353
13354 # Old archive suffix (normally "a").
13355 libext=$libext
13356
13357 # Shared library suffix (normally ".so").
13358 shrext_cmds=$lt_shrext_cmds
13359
13360 # The commands to extract the exported symbol list from a shared archive.
13361 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13362
13363 # Variables whose values should be saved in libtool wrapper scripts and
13364 # restored at link time.
13365 variables_saved_for_relink=$lt_variables_saved_for_relink
13366
13367 # Do we need the "lib" prefix for modules?
13368 need_lib_prefix=$need_lib_prefix
13369
13370 # Do we need a version for libraries?
13371 need_version=$need_version
13372
13373 # Library versioning type.
13374 version_type=$version_type
13375
13376 # Shared library runtime path variable.
13377 runpath_var=$runpath_var
13378
13379 # Shared library path variable.
13380 shlibpath_var=$shlibpath_var
13381
13382 # Is shlibpath searched before the hard-coded library search path?
13383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13384
13385 # Format of library name prefix.
13386 libname_spec=$lt_libname_spec
13387
13388 # List of archive names.  First name is the real one, the rest are links.
13389 # The last name is the one that the linker finds with -lNAME
13390 library_names_spec=$lt_library_names_spec
13391
13392 # The coded name of the library, if different from the real name.
13393 soname_spec=$lt_soname_spec
13394
13395 # Command to use after installation of a shared archive.
13396 postinstall_cmds=$lt_postinstall_cmds
13397
13398 # Command to use after uninstallation of a shared archive.
13399 postuninstall_cmds=$lt_postuninstall_cmds
13400
13401 # Commands used to finish a libtool library installation in a directory.
13402 finish_cmds=$lt_finish_cmds
13403
13404 # As "finish_cmds", except a single script fragment to be evaled but
13405 # not shown.
13406 finish_eval=$lt_finish_eval
13407
13408 # Whether we should hardcode library paths into libraries.
13409 hardcode_into_libs=$hardcode_into_libs
13410
13411 # Compile-time system search path for libraries.
13412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13413
13414 # Run-time system search path for libraries.
13415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13416
13417 # Whether dlopen is supported.
13418 dlopen_support=$enable_dlopen
13419
13420 # Whether dlopen of programs is supported.
13421 dlopen_self=$enable_dlopen_self
13422
13423 # Whether dlopen of statically linked programs is supported.
13424 dlopen_self_static=$enable_dlopen_self_static
13425
13426 # Commands to strip libraries.
13427 old_striplib=$lt_old_striplib
13428 striplib=$lt_striplib
13429
13430
13431 # The linker used to build libraries.
13432 LD=$lt_LD
13433
13434 # Commands used to build an old-style archive.
13435 old_archive_cmds=$lt_old_archive_cmds
13436
13437 # A language specific compiler.
13438 CC=$lt_compiler
13439
13440 # Is the compiler the GNU compiler?
13441 with_gcc=$GCC
13442
13443 # Compiler flag to turn off builtin functions.
13444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13445
13446 # How to pass a linker flag through the compiler.
13447 wl=$lt_lt_prog_compiler_wl
13448
13449 # Additional compiler flags for building library objects.
13450 pic_flag=$lt_lt_prog_compiler_pic
13451
13452 # Compiler flag to prevent dynamic linking.
13453 link_static_flag=$lt_lt_prog_compiler_static
13454
13455 # Does compiler simultaneously support -c and -o options?
13456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13457
13458 # Whether or not to add -lc for building shared libraries.
13459 build_libtool_need_lc=$archive_cmds_need_lc
13460
13461 # Whether or not to disallow shared libs when runtime libs are static.
13462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13463
13464 # Compiler flag to allow reflexive dlopens.
13465 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13466
13467 # Compiler flag to generate shared objects directly from archives.
13468 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13469
13470 # Whether the compiler copes with passing no objects directly.
13471 compiler_needs_object=$lt_compiler_needs_object
13472
13473 # Create an old-style archive from a shared archive.
13474 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13475
13476 # Create a temporary old-style archive to link instead of a shared archive.
13477 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13478
13479 # Commands used to build a shared archive.
13480 archive_cmds=$lt_archive_cmds
13481 archive_expsym_cmds=$lt_archive_expsym_cmds
13482
13483 # Commands used to build a loadable module if different from building
13484 # a shared archive.
13485 module_cmds=$lt_module_cmds
13486 module_expsym_cmds=$lt_module_expsym_cmds
13487
13488 # Whether we are building with GNU ld or not.
13489 with_gnu_ld=$lt_with_gnu_ld
13490
13491 # Flag that allows shared libraries with undefined symbols to be built.
13492 allow_undefined_flag=$lt_allow_undefined_flag
13493
13494 # Flag that enforces no undefined symbols.
13495 no_undefined_flag=$lt_no_undefined_flag
13496
13497 # Flag to hardcode \$libdir into a binary during linking.
13498 # This must work even if \$libdir does not exist
13499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13500
13501 # If ld is used when linking, flag to hardcode \$libdir into a binary
13502 # during linking.  This must work even if \$libdir does not exist.
13503 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13504
13505 # Whether we need a single "-rpath" flag with a separated argument.
13506 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13507
13508 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13509 # DIR into the resulting binary.
13510 hardcode_direct=$hardcode_direct
13511
13512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13513 # DIR into the resulting binary and the resulting library dependency is
13514 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13515 # library is relocated.
13516 hardcode_direct_absolute=$hardcode_direct_absolute
13517
13518 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13519 # into the resulting binary.
13520 hardcode_minus_L=$hardcode_minus_L
13521
13522 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13523 # into the resulting binary.
13524 hardcode_shlibpath_var=$hardcode_shlibpath_var
13525
13526 # Set to "yes" if building a shared library automatically hardcodes DIR
13527 # into the library and all subsequent libraries and executables linked
13528 # against it.
13529 hardcode_automatic=$hardcode_automatic
13530
13531 # Set to yes if linker adds runtime paths of dependent libraries
13532 # to runtime path list.
13533 inherit_rpath=$inherit_rpath
13534
13535 # Whether libtool must link a program against all its dependency libraries.
13536 link_all_deplibs=$link_all_deplibs
13537
13538 # Fix the shell variable \$srcfile for the compiler.
13539 fix_srcfile_path=$lt_fix_srcfile_path
13540
13541 # Set to "yes" if exported symbols are required.
13542 always_export_symbols=$always_export_symbols
13543
13544 # The commands to list exported symbols.
13545 export_symbols_cmds=$lt_export_symbols_cmds
13546
13547 # Symbols that should not be listed in the preloaded symbols.
13548 exclude_expsyms=$lt_exclude_expsyms
13549
13550 # Symbols that must always be exported.
13551 include_expsyms=$lt_include_expsyms
13552
13553 # Commands necessary for linking programs (against libraries) with templates.
13554 prelink_cmds=$lt_prelink_cmds
13555
13556 # Specify filename containing input files.
13557 file_list_spec=$lt_file_list_spec
13558
13559 # How to hardcode a shared library path into an executable.
13560 hardcode_action=$hardcode_action
13561
13562 # ### END LIBTOOL CONFIG
13563
13564 _LT_EOF
13565
13566   case $host_os in
13567   aix3*)
13568     cat <<\_LT_EOF >> "$cfgfile"
13569 # AIX sometimes has problems with the GCC collect2 program.  For some
13570 # reason, if we set the COLLECT_NAMES environment variable, the problems
13571 # vanish in a puff of smoke.
13572 if test "X${COLLECT_NAMES+set}" != Xset; then
13573   COLLECT_NAMES=
13574   export COLLECT_NAMES
13575 fi
13576 _LT_EOF
13577     ;;
13578   esac
13579
13580
13581 ltmain="$ac_aux_dir/ltmain.sh"
13582
13583
13584   # We use sed instead of cat because bash on DJGPP gets confused if
13585   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13586   # text mode, it properly converts lines to CR/LF.  This bash problem
13587   # is reportedly fixed, but why not run on old versions too?
13588   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13589     || (rm -f "$cfgfile"; exit 1)
13590
13591   case $xsi_shell in
13592   yes)
13593     cat << \_LT_EOF >> "$cfgfile"
13594
13595 # func_dirname file append nondir_replacement
13596 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13597 # otherwise set result to NONDIR_REPLACEMENT.
13598 func_dirname ()
13599 {
13600   case ${1} in
13601     */*) func_dirname_result="${1%/*}${2}" ;;
13602     *  ) func_dirname_result="${3}" ;;
13603   esac
13604 }
13605
13606 # func_basename file
13607 func_basename ()
13608 {
13609   func_basename_result="${1##*/}"
13610 }
13611
13612 # func_dirname_and_basename file append nondir_replacement
13613 # perform func_basename and func_dirname in a single function
13614 # call:
13615 #   dirname:  Compute the dirname of FILE.  If nonempty,
13616 #             add APPEND to the result, otherwise set result
13617 #             to NONDIR_REPLACEMENT.
13618 #             value returned in "$func_dirname_result"
13619 #   basename: Compute filename of FILE.
13620 #             value retuned in "$func_basename_result"
13621 # Implementation must be kept synchronized with func_dirname
13622 # and func_basename. For efficiency, we do not delegate to
13623 # those functions but instead duplicate the functionality here.
13624 func_dirname_and_basename ()
13625 {
13626   case ${1} in
13627     */*) func_dirname_result="${1%/*}${2}" ;;
13628     *  ) func_dirname_result="${3}" ;;
13629   esac
13630   func_basename_result="${1##*/}"
13631 }
13632
13633 # func_stripname prefix suffix name
13634 # strip PREFIX and SUFFIX off of NAME.
13635 # PREFIX and SUFFIX must not contain globbing or regex special
13636 # characters, hashes, percent signs, but SUFFIX may contain a leading
13637 # dot (in which case that matches only a dot).
13638 func_stripname ()
13639 {
13640   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13641   # positional parameters, so assign one to ordinary parameter first.
13642   func_stripname_result=${3}
13643   func_stripname_result=${func_stripname_result#"${1}"}
13644   func_stripname_result=${func_stripname_result%"${2}"}
13645 }
13646
13647 # func_opt_split
13648 func_opt_split ()
13649 {
13650   func_opt_split_opt=${1%%=*}
13651   func_opt_split_arg=${1#*=}
13652 }
13653
13654 # func_lo2o object
13655 func_lo2o ()
13656 {
13657   case ${1} in
13658     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13659     *)    func_lo2o_result=${1} ;;
13660   esac
13661 }
13662
13663 # func_xform libobj-or-source
13664 func_xform ()
13665 {
13666   func_xform_result=${1%.*}.lo
13667 }
13668
13669 # func_arith arithmetic-term...
13670 func_arith ()
13671 {
13672   func_arith_result=$(( $* ))
13673 }
13674
13675 # func_len string
13676 # STRING may not start with a hyphen.
13677 func_len ()
13678 {
13679   func_len_result=${#1}
13680 }
13681
13682 _LT_EOF
13683     ;;
13684   *) # Bourne compatible functions.
13685     cat << \_LT_EOF >> "$cfgfile"
13686
13687 # func_dirname file append nondir_replacement
13688 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13689 # otherwise set result to NONDIR_REPLACEMENT.
13690 func_dirname ()
13691 {
13692   # Extract subdirectory from the argument.
13693   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13694   if test "X$func_dirname_result" = "X${1}"; then
13695     func_dirname_result="${3}"
13696   else
13697     func_dirname_result="$func_dirname_result${2}"
13698   fi
13699 }
13700
13701 # func_basename file
13702 func_basename ()
13703 {
13704   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13705 }
13706
13707
13708 # func_stripname prefix suffix name
13709 # strip PREFIX and SUFFIX off of NAME.
13710 # PREFIX and SUFFIX must not contain globbing or regex special
13711 # characters, hashes, percent signs, but SUFFIX may contain a leading
13712 # dot (in which case that matches only a dot).
13713 # func_strip_suffix prefix name
13714 func_stripname ()
13715 {
13716   case ${2} in
13717     .*) func_stripname_result=`$ECHO "X${3}" \
13718            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13719     *)  func_stripname_result=`$ECHO "X${3}" \
13720            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13721   esac
13722 }
13723
13724 # sed scripts:
13725 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13726 my_sed_long_arg='1s/^-[^=]*=//'
13727
13728 # func_opt_split
13729 func_opt_split ()
13730 {
13731   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13732   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13733 }
13734
13735 # func_lo2o object
13736 func_lo2o ()
13737 {
13738   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13739 }
13740
13741 # func_xform libobj-or-source
13742 func_xform ()
13743 {
13744   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13745 }
13746
13747 # func_arith arithmetic-term...
13748 func_arith ()
13749 {
13750   func_arith_result=`expr "$@"`
13751 }
13752
13753 # func_len string
13754 # STRING may not start with a hyphen.
13755 func_len ()
13756 {
13757   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13758 }
13759
13760 _LT_EOF
13761 esac
13762
13763 case $lt_shell_append in
13764   yes)
13765     cat << \_LT_EOF >> "$cfgfile"
13766
13767 # func_append var value
13768 # Append VALUE to the end of shell variable VAR.
13769 func_append ()
13770 {
13771   eval "$1+=\$2"
13772 }
13773 _LT_EOF
13774     ;;
13775   *)
13776     cat << \_LT_EOF >> "$cfgfile"
13777
13778 # func_append var value
13779 # Append VALUE to the end of shell variable VAR.
13780 func_append ()
13781 {
13782   eval "$1=\$$1\$2"
13783 }
13784
13785 _LT_EOF
13786     ;;
13787   esac
13788
13789
13790   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13791     || (rm -f "$cfgfile"; exit 1)
13792
13793   mv -f "$cfgfile" "$ofile" ||
13794     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13795   chmod +x "$ofile"
13796
13797  ;;
13798
13799   esac
13800 done # for ac_tag
13801
13802
13803 { (exit 0); exit 0; }
13804 _ACEOF
13805 chmod +x $CONFIG_STATUS
13806 ac_clean_files=$ac_clean_files_save
13807
13808
13809 # configure is writing to config.log, and then calls config.status.
13810 # config.status does its own redirection, appending to config.log.
13811 # Unfortunately, on DOS this fails, as config.log is still kept open
13812 # by configure, so config.status won't be able to write to it; its
13813 # output is simply discarded.  So we exec the FD to /dev/null,
13814 # effectively closing config.log, so it can be properly (re)opened and
13815 # appended to by config.status.  When coming back to configure, we
13816 # need to make the FD available again.
13817 if test "$no_create" != yes; then
13818   ac_cs_success=:
13819   ac_config_status_args=
13820   test "$silent" = yes &&
13821     ac_config_status_args="$ac_config_status_args --quiet"
13822   exec 5>/dev/null
13823   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13824   exec 5>>config.log
13825   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13826   # would make configure fail if this is the last instruction.
13827   $ac_cs_success || { (exit 1); exit 1; }
13828 fi
13829