remove unused source file
[platform/upstream/iptables.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for iptables 1.4.21.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='iptables'
589 PACKAGE_TARNAME='iptables'
590 PACKAGE_VERSION='1.4.21'
591 PACKAGE_STRING='iptables 1.4.21'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 libxtables_vmajor
636 libxtables_vage
637 libxtables_vcurrent
638 pkgdatadir
639 pkgconfigdir
640 xtlibdir
641 ksourcedir
642 kbuilddir
643 kinclude_CPPFLAGS
644 noundef_LDFLAGS
645 regular_CPPFLAGS
646 regular_CFLAGS
647 HAVE_LIBNFNETLINK_FALSE
648 HAVE_LIBNFNETLINK_TRUE
649 libnfnetlink_LIBS
650 libnfnetlink_CFLAGS
651 ENABLE_SYNCONF_FALSE
652 ENABLE_SYNCONF_TRUE
653 ENABLE_BPFC_FALSE
654 ENABLE_BPFC_TRUE
655 ENABLE_LIBIPQ_FALSE
656 ENABLE_LIBIPQ_TRUE
657 ENABLE_DEVEL_FALSE
658 ENABLE_DEVEL_TRUE
659 ENABLE_LARGEFILE_FALSE
660 ENABLE_LARGEFILE_TRUE
661 ENABLE_IPV6_FALSE
662 ENABLE_IPV6_TRUE
663 ENABLE_IPV4_FALSE
664 ENABLE_IPV4_TRUE
665 ENABLE_SHARED_FALSE
666 ENABLE_SHARED_TRUE
667 ENABLE_STATIC_FALSE
668 ENABLE_STATIC_TRUE
669 blacklist_modules
670 HAVE_LIBNETFILTER_CONNTRACK_FALSE
671 HAVE_LIBNETFILTER_CONNTRACK_TRUE
672 libnetfilter_conntrack_LIBS
673 libnetfilter_conntrack_CFLAGS
674 PKG_CONFIG_LIBDIR
675 PKG_CONFIG_PATH
676 PKG_CONFIG
677 libiptc_LDFLAGS2
678 CPP
679 OTOOL64
680 OTOOL
681 LIPO
682 NMEDIT
683 DSYMUTIL
684 MANIFEST_TOOL
685 RANLIB
686 DLLTOOL
687 OBJDUMP
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 EGREP
695 GREP
696 SED
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 LIBTOOL
706 ac_ct_AR
707 AR
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_dependency_tracking
790 enable_static
791 enable_shared
792 with_pic
793 enable_fast_install
794 with_gnu_ld
795 with_sysroot
796 enable_libtool_lock
797 with_kernel
798 with_kbuild
799 with_ksource
800 with_xtlibdir
801 enable_ipv4
802 enable_ipv6
803 enable_largefile
804 enable_devel
805 enable_libipq
806 enable_bpf_compiler
807 enable_nfsynproxy
808 with_pkgconfigdir
809 '
810       ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP
819 PKG_CONFIG
820 PKG_CONFIG_PATH
821 PKG_CONFIG_LIBDIR
822 libnetfilter_conntrack_CFLAGS
823 libnetfilter_conntrack_LIBS
824 libnfnetlink_CFLAGS
825 libnfnetlink_LIBS'
826
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
875
876 ac_prev=
877 ac_dashdash=
878 for ac_option
879 do
880   # If the previous option needs an argument, assign it.
881   if test -n "$ac_prev"; then
882     eval $ac_prev=\$ac_option
883     ac_prev=
884     continue
885   fi
886
887   case $ac_option in
888   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889   *=)   ac_optarg= ;;
890   *)    ac_optarg=yes ;;
891   esac
892
893   # Accept the important Cygnus configure options, so we can diagnose typos.
894
895   case $ac_dashdash$ac_option in
896   --)
897     ac_dashdash=yes ;;
898
899   -bindir | --bindir | --bindi | --bind | --bin | --bi)
900     ac_prev=bindir ;;
901   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902     bindir=$ac_optarg ;;
903
904   -build | --build | --buil | --bui | --bu)
905     ac_prev=build_alias ;;
906   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907     build_alias=$ac_optarg ;;
908
909   -cache-file | --cache-file | --cache-fil | --cache-fi \
910   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911     ac_prev=cache_file ;;
912   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914     cache_file=$ac_optarg ;;
915
916   --config-cache | -C)
917     cache_file=config.cache ;;
918
919   -datadir | --datadir | --datadi | --datad)
920     ac_prev=datadir ;;
921   -datadir=* | --datadir=* | --datadi=* | --datad=*)
922     datadir=$ac_optarg ;;
923
924   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925   | --dataroo | --dataro | --datar)
926     ac_prev=datarootdir ;;
927   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929     datarootdir=$ac_optarg ;;
930
931   -disable-* | --disable-*)
932     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933     # Reject names that are not valid shell variable names.
934     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935       as_fn_error $? "invalid feature name: $ac_useropt"
936     ac_useropt_orig=$ac_useropt
937     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938     case $ac_user_opts in
939       *"
940 "enable_$ac_useropt"
941 "*) ;;
942       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943          ac_unrecognized_sep=', ';;
944     esac
945     eval enable_$ac_useropt=no ;;
946
947   -docdir | --docdir | --docdi | --doc | --do)
948     ac_prev=docdir ;;
949   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950     docdir=$ac_optarg ;;
951
952   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953     ac_prev=dvidir ;;
954   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955     dvidir=$ac_optarg ;;
956
957   -enable-* | --enable-*)
958     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961       as_fn_error $? "invalid feature name: $ac_useropt"
962     ac_useropt_orig=$ac_useropt
963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964     case $ac_user_opts in
965       *"
966 "enable_$ac_useropt"
967 "*) ;;
968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969          ac_unrecognized_sep=', ';;
970     esac
971     eval enable_$ac_useropt=\$ac_optarg ;;
972
973   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975   | --exec | --exe | --ex)
976     ac_prev=exec_prefix ;;
977   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979   | --exec=* | --exe=* | --ex=*)
980     exec_prefix=$ac_optarg ;;
981
982   -gas | --gas | --ga | --g)
983     # Obsolete; use --with-gas.
984     with_gas=yes ;;
985
986   -help | --help | --hel | --he | -h)
987     ac_init_help=long ;;
988   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989     ac_init_help=recursive ;;
990   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991     ac_init_help=short ;;
992
993   -host | --host | --hos | --ho)
994     ac_prev=host_alias ;;
995   -host=* | --host=* | --hos=* | --ho=*)
996     host_alias=$ac_optarg ;;
997
998   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999     ac_prev=htmldir ;;
1000   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001   | --ht=*)
1002     htmldir=$ac_optarg ;;
1003
1004   -includedir | --includedir | --includedi | --included | --include \
1005   | --includ | --inclu | --incl | --inc)
1006     ac_prev=includedir ;;
1007   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008   | --includ=* | --inclu=* | --incl=* | --inc=*)
1009     includedir=$ac_optarg ;;
1010
1011   -infodir | --infodir | --infodi | --infod | --info | --inf)
1012     ac_prev=infodir ;;
1013   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014     infodir=$ac_optarg ;;
1015
1016   -libdir | --libdir | --libdi | --libd)
1017     ac_prev=libdir ;;
1018   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019     libdir=$ac_optarg ;;
1020
1021   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022   | --libexe | --libex | --libe)
1023     ac_prev=libexecdir ;;
1024   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025   | --libexe=* | --libex=* | --libe=*)
1026     libexecdir=$ac_optarg ;;
1027
1028   -localedir | --localedir | --localedi | --localed | --locale)
1029     ac_prev=localedir ;;
1030   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031     localedir=$ac_optarg ;;
1032
1033   -localstatedir | --localstatedir | --localstatedi | --localstated \
1034   | --localstate | --localstat | --localsta | --localst | --locals)
1035     ac_prev=localstatedir ;;
1036   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038     localstatedir=$ac_optarg ;;
1039
1040   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041     ac_prev=mandir ;;
1042   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043     mandir=$ac_optarg ;;
1044
1045   -nfp | --nfp | --nf)
1046     # Obsolete; use --without-fp.
1047     with_fp=no ;;
1048
1049   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050   | --no-cr | --no-c | -n)
1051     no_create=yes ;;
1052
1053   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055     no_recursion=yes ;;
1056
1057   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059   | --oldin | --oldi | --old | --ol | --o)
1060     ac_prev=oldincludedir ;;
1061   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064     oldincludedir=$ac_optarg ;;
1065
1066   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067     ac_prev=prefix ;;
1068   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069     prefix=$ac_optarg ;;
1070
1071   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072   | --program-pre | --program-pr | --program-p)
1073     ac_prev=program_prefix ;;
1074   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076     program_prefix=$ac_optarg ;;
1077
1078   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079   | --program-suf | --program-su | --program-s)
1080     ac_prev=program_suffix ;;
1081   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083     program_suffix=$ac_optarg ;;
1084
1085   -program-transform-name | --program-transform-name \
1086   | --program-transform-nam | --program-transform-na \
1087   | --program-transform-n | --program-transform- \
1088   | --program-transform | --program-transfor \
1089   | --program-transfo | --program-transf \
1090   | --program-trans | --program-tran \
1091   | --progr-tra | --program-tr | --program-t)
1092     ac_prev=program_transform_name ;;
1093   -program-transform-name=* | --program-transform-name=* \
1094   | --program-transform-nam=* | --program-transform-na=* \
1095   | --program-transform-n=* | --program-transform-=* \
1096   | --program-transform=* | --program-transfor=* \
1097   | --program-transfo=* | --program-transf=* \
1098   | --program-trans=* | --program-tran=* \
1099   | --progr-tra=* | --program-tr=* | --program-t=*)
1100     program_transform_name=$ac_optarg ;;
1101
1102   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103     ac_prev=pdfdir ;;
1104   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105     pdfdir=$ac_optarg ;;
1106
1107   -psdir | --psdir | --psdi | --psd | --ps)
1108     ac_prev=psdir ;;
1109   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110     psdir=$ac_optarg ;;
1111
1112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113   | -silent | --silent | --silen | --sile | --sil)
1114     silent=yes ;;
1115
1116   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117     ac_prev=sbindir ;;
1118   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119   | --sbi=* | --sb=*)
1120     sbindir=$ac_optarg ;;
1121
1122   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124   | --sharedst | --shareds | --shared | --share | --shar \
1125   | --sha | --sh)
1126     ac_prev=sharedstatedir ;;
1127   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130   | --sha=* | --sh=*)
1131     sharedstatedir=$ac_optarg ;;
1132
1133   -site | --site | --sit)
1134     ac_prev=site ;;
1135   -site=* | --site=* | --sit=*)
1136     site=$ac_optarg ;;
1137
1138   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139     ac_prev=srcdir ;;
1140   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141     srcdir=$ac_optarg ;;
1142
1143   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144   | --syscon | --sysco | --sysc | --sys | --sy)
1145     ac_prev=sysconfdir ;;
1146   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148     sysconfdir=$ac_optarg ;;
1149
1150   -target | --target | --targe | --targ | --tar | --ta | --t)
1151     ac_prev=target_alias ;;
1152   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153     target_alias=$ac_optarg ;;
1154
1155   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156     verbose=yes ;;
1157
1158   -version | --version | --versio | --versi | --vers | -V)
1159     ac_init_version=: ;;
1160
1161   -with-* | --with-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error $? "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=\$ac_optarg ;;
1176
1177   -without-* | --without-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213     ;;
1214
1215   *=*)
1216     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217     # Reject names that are not valid shell variable names.
1218     case $ac_envvar in #(
1219       '' | [0-9]* | *[!_$as_cr_alnum]* )
1220       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221     esac
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242   case $enable_option_checking in
1243     no) ;;
1244     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246   esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251                 datadir sysconfdir sharedstatedir localstatedir includedir \
1252                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253                 libdir localedir mandir
1254 do
1255   eval ac_val=\$$ac_var
1256   # Remove trailing slashes.
1257   case $ac_val in
1258     */ )
1259       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260       eval $ac_var=\$ac_val;;
1261   esac
1262   # Be sure to have absolute directory names.
1263   case $ac_val in
1264     [\\/$]* | ?:[\\/]* )  continue;;
1265     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266   esac
1267   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279   if test "x$build_alias" = x; then
1280     cross_compiling=maybe
1281   elif test "x$build_alias" != "x$host_alias"; then
1282     cross_compiling=yes
1283   fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295   as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297   as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302   ac_srcdir_defaulted=yes
1303   # Try the directory containing this script, then the parent directory.
1304   ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306          X"$as_myself" : 'X\(//\)[^/]' \| \
1307          X"$as_myself" : 'X\(//\)$' \| \
1308          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)[^/].*/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\).*/{
1323             s//\1/
1324             q
1325           }
1326           s/.*/./; q'`
1327   srcdir=$ac_confdir
1328   if test ! -r "$srcdir/$ac_unique_file"; then
1329     srcdir=..
1330   fi
1331 else
1332   ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341         pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344   srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354   eval ac_env_${ac_var}_value=\$${ac_var}
1355   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363   # Omit some internal or obsolete options to make the list less imposing.
1364   # This message is too long to be a string in the A/UX 3.1 sh.
1365   cat <<_ACEOF
1366 \`configure' configures iptables 1.4.21 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376   -h, --help              display this help and exit
1377       --help=short        display options specific to this package
1378       --help=recursive    display the short help of all the included packages
1379   -V, --version           display version information and exit
1380   -q, --quiet, --silent   do not print \`checking ...' messages
1381       --cache-file=FILE   cache test results in FILE [disabled]
1382   -C, --config-cache      alias for \`--cache-file=config.cache'
1383   -n, --no-create         do not create output files
1384       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387   --prefix=PREFIX         install architecture-independent files in PREFIX
1388                           [$ac_default_prefix]
1389   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                           [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400   --bindir=DIR            user executables [EPREFIX/bin]
1401   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402   --libexecdir=DIR        program executables [EPREFIX/libexec]
1403   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406   --libdir=DIR            object code libraries [EPREFIX/lib]
1407   --includedir=DIR        C header files [PREFIX/include]
1408   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1409   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1410   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1411   --infodir=DIR           info documentation [DATAROOTDIR/info]
1412   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1413   --mandir=DIR            man documentation [DATAROOTDIR/man]
1414   --docdir=DIR            documentation root [DATAROOTDIR/doc/iptables]
1415   --htmldir=DIR           html documentation [DOCDIR]
1416   --dvidir=DIR            dvi documentation [DOCDIR]
1417   --pdfdir=DIR            pdf documentation [DOCDIR]
1418   --psdir=DIR             ps documentation [DOCDIR]
1419 _ACEOF
1420
1421   cat <<\_ACEOF
1422
1423 Program names:
1424   --program-prefix=PREFIX            prepend PREFIX to installed program names
1425   --program-suffix=SUFFIX            append SUFFIX to installed program names
1426   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1427
1428 System types:
1429   --build=BUILD     configure for building on BUILD [guessed]
1430   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1431 _ACEOF
1432 fi
1433
1434 if test -n "$ac_init_help"; then
1435   case $ac_init_help in
1436      short | recursive ) echo "Configuration of iptables 1.4.21:";;
1437    esac
1438   cat <<\_ACEOF
1439
1440 Optional Features:
1441   --disable-option-checking  ignore unrecognized --enable/--with options
1442   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1443   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1444   --disable-dependency-tracking  speeds up one-time build
1445   --enable-dependency-tracking   do not reject slow dependency extractors
1446   --enable-static[=PKGS]  build static libraries [default=no]
1447   --enable-shared[=PKGS]  build shared libraries [default=yes]
1448   --enable-fast-install[=PKGS]
1449                           optimize for fast installation [default=yes]
1450   --disable-libtool-lock  avoid locking (might break parallel builds)
1451   --disable-ipv4          Do not build iptables
1452   --disable-ipv6          Do not build ip6tables
1453   --disable-largefile     Do not build largefile support
1454   --enable-devel          Install Xtables development headers
1455   --enable-libipq         Build and install libipq
1456   --enable-bpf-compiler   Build bpf compiler
1457   --enable-nfsynproxy     Build SYNPROXY configuration tool
1458
1459 Optional Packages:
1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1462   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463                           both]
1464   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465   --with-sysroot=DIR Search for dependent libraries within DIR
1466                         (or the compiler's sysroot if not specified).
1467   --with-kernel=PATH      Path to kernel source/build directory
1468   --with-kbuild=PATH      Path to kernel build directory
1469                           [[/lib/modules/CURRENT/build]]
1470   --with-ksource=PATH     Path to kernel source directory
1471                           [[/lib/modules/CURRENT/source]]
1472   --with-xtlibdir=PATH    Path where to install Xtables extensions
1473                           [[LIBEXECDIR/xtables]]
1474   --with-pkgconfigdir=PATH
1475                           Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1476
1477 Some influential environment variables:
1478   CC          C compiler command
1479   CFLAGS      C compiler flags
1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1481               nonstandard directory <lib dir>
1482   LIBS        libraries to pass to the linker, e.g. -l<library>
1483   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484               you have headers in a nonstandard directory <include dir>
1485   CPP         C preprocessor
1486   PKG_CONFIG  path to pkg-config utility
1487   PKG_CONFIG_PATH
1488               directories to add to pkg-config's search path
1489   PKG_CONFIG_LIBDIR
1490               path overriding pkg-config's built-in search path
1491   libnetfilter_conntrack_CFLAGS
1492               C compiler flags for libnetfilter_conntrack, overriding
1493               pkg-config
1494   libnetfilter_conntrack_LIBS
1495               linker flags for libnetfilter_conntrack, overriding pkg-config
1496   libnfnetlink_CFLAGS
1497               C compiler flags for libnfnetlink, overriding pkg-config
1498   libnfnetlink_LIBS
1499               linker flags for libnfnetlink, overriding pkg-config
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to the package provider.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" ||
1513       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514       continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 iptables configure 1.4.21
1568 generated by GNU Autoconf 2.69
1569
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574   exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   rm -f conftest.$ac_objext
1588   if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_compile") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && {
1604          test -z "$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        } && test -s conftest.$ac_objext; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612         ac_retval=1
1613 fi
1614   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615   as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   rm -f conftest.$ac_objext conftest$ac_exeext
1626   if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633   (eval "$ac_link") 2>conftest.err
1634   ac_status=$?
1635   if test -s conftest.err; then
1636     grep -v '^ *+' conftest.err >conftest.er1
1637     cat conftest.er1 >&5
1638     mv -f conftest.er1 conftest.err
1639   fi
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && {
1642          test -z "$ac_c_werror_flag" ||
1643          test ! -s conftest.err
1644        } && test -s conftest$ac_exeext && {
1645          test "$cross_compiling" = yes ||
1646          test -x conftest$ac_exeext
1647        }; then :
1648   ac_retval=0
1649 else
1650   $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653         ac_retval=1
1654 fi
1655   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657   # interfere with the next link command; also delete a directory that is
1658   # left behind by Apple's compiler.  We do this before executing the actions.
1659   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_link
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 else
1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683   eval "$3=yes"
1684 else
1685   eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } > conftest.i && {
1718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        }; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726     ac_retval=1
1727 fi
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_cpp
1732
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1737 ac_fn_c_try_run ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_link") 2>&5
1748   ac_status=$?
1749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751   { { case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_try") 2>&5
1758   ac_status=$?
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; }; }; then :
1761   ac_retval=0
1762 else
1763   $as_echo "$as_me: program exited with status $ac_status" >&5
1764        $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767        ac_retval=$ac_status
1768 fi
1769   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_run
1774
1775 # ac_fn_c_check_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784   $as_echo_n "(cached) " >&6
1785 else
1786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1790 #define $2 innocuous_$2
1791
1792 /* System header to define __stub macros and hopefully few prototypes,
1793     which can conflict with char $2 (); below.
1794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795     <limits.h> exists even on freestanding compilers.  */
1796
1797 #ifdef __STDC__
1798 # include <limits.h>
1799 #else
1800 # include <assert.h>
1801 #endif
1802
1803 #undef $2
1804
1805 /* Override any GCC internal prototype to avoid an error.
1806    Use char because int might match the return type of a GCC
1807    builtin and then its argument prototype would still apply.  */
1808 #ifdef __cplusplus
1809 extern "C"
1810 #endif
1811 char $2 ();
1812 /* The GNU C library defines this for functions which it implements
1813     to always fail with ENOSYS.  Some functions are actually named
1814     something starting with __ and the normal name is an alias.  */
1815 #if defined __stub_$2 || defined __stub___$2
1816 choke me
1817 #endif
1818
1819 int
1820 main ()
1821 {
1822 return $2 ();
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_link "$LINENO"; then :
1828   eval "$3=yes"
1829 else
1830   eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext \
1833     conftest$ac_exeext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840 } # ac_fn_c_check_func
1841
1842 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845 # the include files in INCLUDES and setting the cache variable VAR
1846 # accordingly.
1847 ac_fn_c_check_header_mongrel ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if eval \${$3+:} false; then :
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 else
1860   # Is the header compilable?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862 $as_echo_n "checking $2 usability... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h.  */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869   ac_header_compiler=yes
1870 else
1871   ac_header_compiler=no
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875 $as_echo "$ac_header_compiler" >&6; }
1876
1877 # Is the header present?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879 $as_echo_n "checking $2 presence... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_cpp "$LINENO"; then :
1885   ac_header_preproc=yes
1886 else
1887   ac_header_preproc=no
1888 fi
1889 rm -f conftest.err conftest.i conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891 $as_echo "$ac_header_preproc" >&6; }
1892
1893 # So?  What about this header?
1894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895   yes:no: )
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900     ;;
1901   no:yes:* )
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1905 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1909 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912     ;;
1913 esac
1914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917   $as_echo_n "(cached) " >&6
1918 else
1919   eval "$3=\$ac_header_compiler"
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 fi
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926
1927 } # ac_fn_c_check_header_mongrel
1928
1929 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1930 # --------------------------------------------
1931 # Tries to find the compile-time value of EXPR in a program that includes
1932 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1933 # computed
1934 ac_fn_c_compute_int ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if test "$cross_compiling" = yes; then
1938     # Depending upon the size, compute the lo and hi bounds.
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 $4
1942 int
1943 main ()
1944 {
1945 static int test_array [1 - 2 * !(($2) >= 0)];
1946 test_array [0] = 0;
1947 return test_array [0];
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954   ac_lo=0 ac_mid=0
1955   while :; do
1956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_hi=$ac_mid; break
1972 else
1973   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1974                         if test $ac_lo -le $ac_mid; then
1975                           ac_lo= ac_hi=
1976                           break
1977                         fi
1978                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981   done
1982 else
1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) < 0)];
1990 test_array [0] = 0;
1991 return test_array [0];
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   ac_hi=-1 ac_mid=-1
1999   while :; do
2000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015   ac_lo=$ac_mid; break
2016 else
2017   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2018                         if test $ac_mid -le $ac_hi; then
2019                           ac_lo= ac_hi=
2020                           break
2021                         fi
2022                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025   done
2026 else
2027   ac_lo= ac_hi=
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 # Binary search between lo and hi bounds.
2033 while test "x$ac_lo" != "x$ac_hi"; do
2034   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2042 test_array [0] = 0;
2043 return test_array [0];
2044
2045   ;
2046   return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050   ac_hi=$ac_mid
2051 else
2052   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 done
2056 case $ac_lo in #((
2057 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2058 '') ac_retval=1 ;;
2059 esac
2060   else
2061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 static long int longval () { return $2; }
2065 static unsigned long int ulongval () { return $2; }
2066 #include <stdio.h>
2067 #include <stdlib.h>
2068 int
2069 main ()
2070 {
2071
2072   FILE *f = fopen ("conftest.val", "w");
2073   if (! f)
2074     return 1;
2075   if (($2) < 0)
2076     {
2077       long int i = longval ();
2078       if (i != ($2))
2079         return 1;
2080       fprintf (f, "%ld", i);
2081     }
2082   else
2083     {
2084       unsigned long int i = ulongval ();
2085       if (i != ($2))
2086         return 1;
2087       fprintf (f, "%lu", i);
2088     }
2089   /* Do not output a trailing newline, as this causes \r\n confusion
2090      on some platforms.  */
2091   return ferror (f) || fclose (f) != 0;
2092
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_run "$LINENO"; then :
2098   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2099 else
2100   ac_retval=1
2101 fi
2102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2103   conftest.$ac_objext conftest.beam conftest.$ac_ext
2104 rm -f conftest.val
2105
2106   fi
2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108   as_fn_set_status $ac_retval
2109
2110 } # ac_fn_c_compute_int
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2114
2115 It was created by iptables $as_me 1.4.21, which was
2116 generated by GNU Autoconf 2.69.  Invocation command line was
2117
2118   $ $0 $@
2119
2120 _ACEOF
2121 exec 5>>config.log
2122 {
2123 cat <<_ASUNAME
2124 ## --------- ##
2125 ## Platform. ##
2126 ## --------- ##
2127
2128 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2129 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2130 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2131 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2132 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2133
2134 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2135 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2136
2137 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2138 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2139 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2140 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2141 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2142 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2143 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2144
2145 _ASUNAME
2146
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152     $as_echo "PATH: $as_dir"
2153   done
2154 IFS=$as_save_IFS
2155
2156 } >&5
2157
2158 cat >&5 <<_ACEOF
2159
2160
2161 ## ----------- ##
2162 ## Core tests. ##
2163 ## ----------- ##
2164
2165 _ACEOF
2166
2167
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2173 ac_configure_args=
2174 ac_configure_args0=
2175 ac_configure_args1=
2176 ac_must_keep_next=false
2177 for ac_pass in 1 2
2178 do
2179   for ac_arg
2180   do
2181     case $ac_arg in
2182     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184     | -silent | --silent | --silen | --sile | --sil)
2185       continue ;;
2186     *\'*)
2187       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2188     esac
2189     case $ac_pass in
2190     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2191     2)
2192       as_fn_append ac_configure_args1 " '$ac_arg'"
2193       if test $ac_must_keep_next = true; then
2194         ac_must_keep_next=false # Got value, back to normal.
2195       else
2196         case $ac_arg in
2197           *=* | --config-cache | -C | -disable-* | --disable-* \
2198           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200           | -with-* | --with-* | -without-* | --without-* | --x)
2201             case "$ac_configure_args0 " in
2202               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2203             esac
2204             ;;
2205           -* ) ac_must_keep_next=true ;;
2206         esac
2207       fi
2208       as_fn_append ac_configure_args " '$ac_arg'"
2209       ;;
2210     esac
2211   done
2212 done
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2215
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log.  We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222   # Save into config.log some information that might help in debugging.
2223   {
2224     echo
2225
2226     $as_echo "## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##"
2229     echo
2230     # The following way of writing the cache mishandles newlines in values,
2231 (
2232   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233     eval ac_val=\$$ac_var
2234     case $ac_val in #(
2235     *${as_nl}*)
2236       case $ac_var in #(
2237       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239       esac
2240       case $ac_var in #(
2241       _ | IFS | as_nl) ;; #(
2242       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243       *) { eval $ac_var=; unset $ac_var;} ;;
2244       esac ;;
2245     esac
2246   done
2247   (set) 2>&1 |
2248     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249     *${as_nl}ac_space=\ *)
2250       sed -n \
2251         "s/'\''/'\''\\\\'\'''\''/g;
2252           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253       ;; #(
2254     *)
2255       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256       ;;
2257     esac |
2258     sort
2259 )
2260     echo
2261
2262     $as_echo "## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##"
2265     echo
2266     for ac_var in $ac_subst_vars
2267     do
2268       eval ac_val=\$$ac_var
2269       case $ac_val in
2270       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271       esac
2272       $as_echo "$ac_var='\''$ac_val'\''"
2273     done | sort
2274     echo
2275
2276     if test -n "$ac_subst_files"; then
2277       $as_echo "## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##"
2280       echo
2281       for ac_var in $ac_subst_files
2282       do
2283         eval ac_val=\$$ac_var
2284         case $ac_val in
2285         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286         esac
2287         $as_echo "$ac_var='\''$ac_val'\''"
2288       done | sort
2289       echo
2290     fi
2291
2292     if test -s confdefs.h; then
2293       $as_echo "## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##"
2296       echo
2297       cat confdefs.h
2298       echo
2299     fi
2300     test "$ac_signal" != 0 &&
2301       $as_echo "$as_me: caught signal $ac_signal"
2302     $as_echo "$as_me: exit $exit_status"
2303   } >&5
2304   rm -f core *.core core.conftest.* &&
2305     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306     exit $exit_status
2307 ' 0
2308 for ac_signal in 1 2 13 15; do
2309   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2312
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2315
2316 $as_echo "/* confdefs.h */" > confdefs.h
2317
2318 # Predefined preprocessor variables.
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2342 _ACEOF
2343
2344
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2347 ac_site_file1=NONE
2348 ac_site_file2=NONE
2349 if test -n "$CONFIG_SITE"; then
2350   # We do not want a PATH search for config.site.
2351   case $CONFIG_SITE in #((
2352     -*)  ac_site_file1=./$CONFIG_SITE;;
2353     */*) ac_site_file1=$CONFIG_SITE;;
2354     *)   ac_site_file1=./$CONFIG_SITE;;
2355   esac
2356 elif test "x$prefix" != xNONE; then
2357   ac_site_file1=$prefix/share/config.site
2358   ac_site_file2=$prefix/etc/config.site
2359 else
2360   ac_site_file1=$ac_default_prefix/share/config.site
2361   ac_site_file2=$ac_default_prefix/etc/config.site
2362 fi
2363 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364 do
2365   test "x$ac_site_file" = xNONE && continue
2366   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2369     sed 's/^/| /' "$ac_site_file" >&5
2370     . "$ac_site_file" \
2371       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 as_fn_error $? "failed to load site script $ac_site_file
2374 See \`config.log' for more details" "$LINENO" 5; }
2375   fi
2376 done
2377
2378 if test -r "$cache_file"; then
2379   # Some versions of bash will fail to source /dev/null (special files
2380   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2381   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2382     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2383 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384     case $cache_file in
2385       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386       *)                      . "./$cache_file";;
2387     esac
2388   fi
2389 else
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2391 $as_echo "$as_me: creating cache $cache_file" >&6;}
2392   >$cache_file
2393 fi
2394
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400   eval ac_new_set=\$ac_env_${ac_var}_set
2401   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402   eval ac_new_val=\$ac_env_${ac_var}_value
2403   case $ac_old_set,$ac_new_set in
2404     set,)
2405       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407       ac_cache_corrupted=: ;;
2408     ,set)
2409       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411       ac_cache_corrupted=: ;;
2412     ,);;
2413     *)
2414       if test "x$ac_old_val" != "x$ac_new_val"; then
2415         # differences in whitespace do not lead to failure.
2416         ac_old_val_w=`echo x $ac_old_val`
2417         ac_new_val_w=`echo x $ac_new_val`
2418         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421           ac_cache_corrupted=:
2422         else
2423           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425           eval $ac_var=\$ac_old_val
2426         fi
2427         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2428 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2429         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2431       fi;;
2432   esac
2433   # Pass precious variables to config.status.
2434   if test "$ac_new_set" = set; then
2435     case $ac_new_val in
2436     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437     *) ac_arg=$ac_var=$ac_new_val ;;
2438     esac
2439     case " $ac_configure_args " in
2440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2441       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442     esac
2443   fi
2444 done
2445 if $ac_cache_corrupted; then
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2451 fi
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2455
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463
2464 # See libtool.info "Libtool's versioning system"
2465 libxtables_vcurrent=10
2466 libxtables_vage=0
2467
2468 ac_aux_dir=
2469 for ac_dir in build-aux "$srcdir"/build-aux; do
2470   if test -f "$ac_dir/install-sh"; then
2471     ac_aux_dir=$ac_dir
2472     ac_install_sh="$ac_aux_dir/install-sh -c"
2473     break
2474   elif test -f "$ac_dir/install.sh"; then
2475     ac_aux_dir=$ac_dir
2476     ac_install_sh="$ac_aux_dir/install.sh -c"
2477     break
2478   elif test -f "$ac_dir/shtool"; then
2479     ac_aux_dir=$ac_dir
2480     ac_install_sh="$ac_aux_dir/shtool install -c"
2481     break
2482   fi
2483 done
2484 if test -z "$ac_aux_dir"; then
2485   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2486 fi
2487
2488 # These three variables are undocumented and unsupported,
2489 # and are intended to be withdrawn in a future Autoconf release.
2490 # They can cause serious problems if a builder's source tree is in a directory
2491 # whose full name contains unusual characters.
2492 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2493 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2494 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2495
2496
2497 ac_config_headers="$ac_config_headers config.h"
2498
2499
2500 # Find a good install program.  We prefer a C program (faster),
2501 # so one script is as good as another.  But avoid the broken or
2502 # incompatible versions:
2503 # SysV /etc/install, /usr/sbin/install
2504 # SunOS /usr/etc/install
2505 # IRIX /sbin/install
2506 # AIX /bin/install
2507 # AmigaOS /C/install, which installs bootblocks on floppy discs
2508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511 # OS/2's system install, which has a completely different semantic
2512 # ./install, which can be erroneously created by make from ./install.sh.
2513 # Reject install programs that cannot install multiple files.
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2515 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2516 if test -z "$INSTALL"; then
2517 if ${ac_cv_path_install+:} false; then :
2518   $as_echo_n "(cached) " >&6
2519 else
2520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525     # Account for people who put trailing slashes in PATH elements.
2526 case $as_dir/ in #((
2527   ./ | .// | /[cC]/* | \
2528   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2529   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2530   /usr/ucb/* ) ;;
2531   *)
2532     # OSF1 and SCO ODT 3.0 have their own names for install.
2533     # Don't use installbsd from OSF since it installs stuff as root
2534     # by default.
2535     for ac_prog in ginstall scoinst install; do
2536       for ac_exec_ext in '' $ac_executable_extensions; do
2537         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2538           if test $ac_prog = install &&
2539             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540             # AIX install.  It has an incompatible calling convention.
2541             :
2542           elif test $ac_prog = install &&
2543             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544             # program-specific install script used by HP pwplus--don't use.
2545             :
2546           else
2547             rm -rf conftest.one conftest.two conftest.dir
2548             echo one > conftest.one
2549             echo two > conftest.two
2550             mkdir conftest.dir
2551             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2552               test -s conftest.one && test -s conftest.two &&
2553               test -s conftest.dir/conftest.one &&
2554               test -s conftest.dir/conftest.two
2555             then
2556               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2557               break 3
2558             fi
2559           fi
2560         fi
2561       done
2562     done
2563     ;;
2564 esac
2565
2566   done
2567 IFS=$as_save_IFS
2568
2569 rm -rf conftest.one conftest.two conftest.dir
2570
2571 fi
2572   if test "${ac_cv_path_install+set}" = set; then
2573     INSTALL=$ac_cv_path_install
2574   else
2575     # As a last resort, use the slow shell script.  Don't cache a
2576     # value for INSTALL within a source directory, because that will
2577     # break other packages using the cache if that directory is
2578     # removed, or if the value is a relative name.
2579     INSTALL=$ac_install_sh
2580   fi
2581 fi
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2583 $as_echo "$INSTALL" >&6; }
2584
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590
2591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
2593 am__api_version='1.11'
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2596 $as_echo_n "checking whether build environment is sane... " >&6; }
2597 # Just in case
2598 sleep 1
2599 echo timestamp > conftest.file
2600 # Reject unsafe characters in $srcdir or the absolute working directory
2601 # name.  Accept space and tab only in the latter.
2602 am_lf='
2603 '
2604 case `pwd` in
2605   *[\\\"\#\$\&\'\`$am_lf]*)
2606     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2607 esac
2608 case $srcdir in
2609   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2610     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2611 esac
2612
2613 # Do `set' in a subshell so we don't clobber the current shell's
2614 # arguments.  Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2617 # directory).
2618 if (
2619    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620    if test "$*" = "X"; then
2621       # -L didn't work.
2622       set X `ls -t "$srcdir/configure" conftest.file`
2623    fi
2624    rm -f conftest.file
2625    if test "$*" != "X $srcdir/configure conftest.file" \
2626       && test "$*" != "X conftest.file $srcdir/configure"; then
2627
2628       # If neither matched, then we have a broken ls.  This can happen
2629       # if, for instance, CONFIG_SHELL is bash and it inherits a
2630       # broken ls alias from the environment.  This has actually
2631       # happened.  Such a system could not be considered "sane".
2632       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2633 alias in your environment" "$LINENO" 5
2634    fi
2635
2636    test "$2" = conftest.file
2637    )
2638 then
2639    # Ok.
2640    :
2641 else
2642    as_fn_error $? "newly created file is older than distributed files!
2643 Check your system clock" "$LINENO" 5
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 test "$program_prefix" != NONE &&
2648   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2649 # Use a double $ so make ignores it.
2650 test "$program_suffix" != NONE &&
2651   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2652 # Double any \ or $.
2653 # By default was `s,x,x', remove it if useless.
2654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656
2657 # expand $ac_aux_dir to an absolute path
2658 am_aux_dir=`cd $ac_aux_dir && pwd`
2659
2660 if test x"${MISSING+set}" != xset; then
2661   case $am_aux_dir in
2662   *\ * | *\     *)
2663     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2664   *)
2665     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2666   esac
2667 fi
2668 # Use eval to expand $SHELL
2669 if eval "$MISSING --run true"; then
2670   am_missing_run="$MISSING --run "
2671 else
2672   am_missing_run=
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2674 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2675 fi
2676
2677 if test x"${install_sh}" != xset; then
2678   case $am_aux_dir in
2679   *\ * | *\     *)
2680     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2681   *)
2682     install_sh="\${SHELL} $am_aux_dir/install-sh"
2683   esac
2684 fi
2685
2686 # Installed binaries are usually stripped using `strip' when the user
2687 # run `make install-strip'.  However `strip' might not be the right
2688 # tool to use in cross-compilation environments, therefore Automake
2689 # will honor the `STRIP' environment variable to overrule this program.
2690 if test "$cross_compiling" != no; then
2691   if test -n "$ac_tool_prefix"; then
2692   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}strip; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_STRIP+:} false; then :
2697   $as_echo_n "(cached) " >&6
2698 else
2699   if test -n "$STRIP"; then
2700   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707     for ac_exec_ext in '' $ac_executable_extensions; do
2708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711     break 2
2712   fi
2713 done
2714   done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 STRIP=$ac_cv_prog_STRIP
2720 if test -n "$STRIP"; then
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2722 $as_echo "$STRIP" >&6; }
2723 else
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$ac_cv_prog_STRIP"; then
2731   ac_ct_STRIP=$STRIP
2732   # Extract the first word of "strip", so it can be a program name with args.
2733 set dummy strip; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2737   $as_echo_n "(cached) " >&6
2738 else
2739   if test -n "$ac_ct_STRIP"; then
2740   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747     for ac_exec_ext in '' $ac_executable_extensions; do
2748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749     ac_cv_prog_ac_ct_STRIP="strip"
2750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754   done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2760 if test -n "$ac_ct_STRIP"; then
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2762 $as_echo "$ac_ct_STRIP" >&6; }
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768   if test "x$ac_ct_STRIP" = x; then
2769     STRIP=":"
2770   else
2771     case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777     STRIP=$ac_ct_STRIP
2778   fi
2779 else
2780   STRIP="$ac_cv_prog_STRIP"
2781 fi
2782
2783 fi
2784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2787 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2788 if test -z "$MKDIR_P"; then
2789   if ${ac_cv_path_mkdir+:} false; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_prog in mkdir gmkdir; do
2798          for ac_exec_ext in '' $ac_executable_extensions; do
2799            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2800            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2801              'mkdir (GNU coreutils) '* | \
2802              'mkdir (coreutils) '* | \
2803              'mkdir (fileutils) '4.1*)
2804                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2805                break 3;;
2806            esac
2807          done
2808        done
2809   done
2810 IFS=$as_save_IFS
2811
2812 fi
2813
2814   test -d ./--version && rmdir ./--version
2815   if test "${ac_cv_path_mkdir+set}" = set; then
2816     MKDIR_P="$ac_cv_path_mkdir -p"
2817   else
2818     # As a last resort, use the slow shell script.  Don't cache a
2819     # value for MKDIR_P within a source directory, because that will
2820     # break other packages using the cache if that directory is
2821     # removed, or if the value is a relative name.
2822     MKDIR_P="$ac_install_sh -d"
2823   fi
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2826 $as_echo "$MKDIR_P" >&6; }
2827
2828 mkdir_p="$MKDIR_P"
2829 case $mkdir_p in
2830   [\\/$]* | ?:[\\/]*) ;;
2831   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2832 esac
2833
2834 for ac_prog in gawk mawk nawk awk
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_AWK+:} false; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   if test -n "$AWK"; then
2844   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     for ac_exec_ext in '' $ac_executable_extensions; do
2852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853     ac_cv_prog_AWK="$ac_prog"
2854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858   done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 AWK=$ac_cv_prog_AWK
2864 if test -n "$AWK"; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2866 $as_echo "$AWK" >&6; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873   test -n "$AWK" && break
2874 done
2875
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2877 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2878 set x ${MAKE-make}
2879 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2880 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   cat >conftest.make <<\_ACEOF
2884 SHELL = /bin/sh
2885 all:
2886         @echo '@@@%%%=$(MAKE)=@@@%%%'
2887 _ACEOF
2888 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2889 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2890   *@@@%%%=?*=@@@%%%*)
2891     eval ac_cv_prog_make_${ac_make}_set=yes;;
2892   *)
2893     eval ac_cv_prog_make_${ac_make}_set=no;;
2894 esac
2895 rm -f conftest.make
2896 fi
2897 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900   SET_MAKE=
2901 else
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904   SET_MAKE="MAKE=${MAKE-make}"
2905 fi
2906
2907 rm -rf .tst 2>/dev/null
2908 mkdir .tst 2>/dev/null
2909 if test -d .tst; then
2910   am__leading_dot=.
2911 else
2912   am__leading_dot=_
2913 fi
2914 rmdir .tst 2>/dev/null
2915
2916 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2917   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2918   # is not polluted with repeated "-I."
2919   am__isrc=' -I$(srcdir)'
2920   # test to see if srcdir already configured
2921   if test -f $srcdir/config.status; then
2922     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2923   fi
2924 fi
2925
2926 # test whether we have cygpath
2927 if test -z "$CYGPATH_W"; then
2928   if (cygpath --version) >/dev/null 2>/dev/null; then
2929     CYGPATH_W='cygpath -w'
2930   else
2931     CYGPATH_W=echo
2932   fi
2933 fi
2934
2935
2936 # Define the identity of the package.
2937  PACKAGE='iptables'
2938  VERSION='1.4.21'
2939
2940
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE "$PACKAGE"
2943 _ACEOF
2944
2945
2946 cat >>confdefs.h <<_ACEOF
2947 #define VERSION "$VERSION"
2948 _ACEOF
2949
2950 # Some tools Automake needs.
2951
2952 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2953
2954
2955 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2956
2957
2958 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2959
2960
2961 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2962
2963
2964 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2965
2966 # We need awk for the "check" target.  The system "awk" is bad on
2967 # some platforms.
2968 # Always define AMTAR for backward compatibility.  Yes, it's still used
2969 # in the wild :-(  We should find a proper way to deprecate it ...
2970 AMTAR='$${TAR-tar}'
2971
2972 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2973
2974
2975
2976
2977
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989   $as_echo_n "(cached) " >&6
2990 else
2991   if test -n "$CC"; then
2992   ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999     for ac_exec_ext in '' $ac_executable_extensions; do
3000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006   done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 fi
3022 if test -z "$ac_cv_prog_CC"; then
3023   ac_ct_CC=$CC
3024   # Extract the first word of "gcc", so it can be a program name with args.
3025 set dummy gcc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3029   $as_echo_n "(cached) " >&6
3030 else
3031   if test -n "$ac_ct_CC"; then
3032   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037   IFS=$as_save_IFS
3038   test -z "$as_dir" && as_dir=.
3039     for ac_exec_ext in '' $ac_executable_extensions; do
3040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041     ac_cv_prog_ac_ct_CC="gcc"
3042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043     break 2
3044   fi
3045 done
3046   done
3047 IFS=$as_save_IFS
3048
3049 fi
3050 fi
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 fi
3059
3060   if test "x$ac_ct_CC" = x; then
3061     CC=""
3062   else
3063     case $cross_compiling:$ac_tool_warned in
3064 yes:)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3068 esac
3069     CC=$ac_ct_CC
3070   fi
3071 else
3072   CC="$ac_cv_prog_CC"
3073 fi
3074
3075 if test -z "$CC"; then
3076           if test -n "$ac_tool_prefix"; then
3077     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3078 set dummy ${ac_tool_prefix}cc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_CC+:} false; then :
3082   $as_echo_n "(cached) " >&6
3083 else
3084   if test -n "$CC"; then
3085   ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090   IFS=$as_save_IFS
3091   test -z "$as_dir" && as_dir=.
3092     for ac_exec_ext in '' $ac_executable_extensions; do
3093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094     ac_cv_prog_CC="${ac_tool_prefix}cc"
3095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099   done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114   fi
3115 fi
3116 if test -z "$CC"; then
3117   # Extract the first word of "cc", so it can be a program name with args.
3118 set dummy cc; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_CC+:} false; then :
3122   $as_echo_n "(cached) " >&6
3123 else
3124   if test -n "$CC"; then
3125   ac_cv_prog_CC="$CC" # Let the user override the test.
3126 else
3127   ac_prog_rejected=no
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133     for ac_exec_ext in '' $ac_executable_extensions; do
3134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3136        ac_prog_rejected=yes
3137        continue
3138      fi
3139     ac_cv_prog_CC="cc"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 if test $ac_prog_rejected = yes; then
3148   # We found a bogon in the path, so make sure we never use it.
3149   set dummy $ac_cv_prog_CC
3150   shift
3151   if test $# != 0; then
3152     # We chose a different compiler from the bogus one.
3153     # However, it has the same basename, so the bogon will be chosen
3154     # first if we set CC to just the basename; use the full file name.
3155     shift
3156     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3157   fi
3158 fi
3159 fi
3160 fi
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 fi
3172 if test -z "$CC"; then
3173   if test -n "$ac_tool_prefix"; then
3174   for ac_prog in cl.exe
3175   do
3176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_CC+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   if test -n "$CC"; then
3184   ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191     for ac_exec_ext in '' $ac_executable_extensions; do
3192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198   done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213     test -n "$CC" && break
3214   done
3215 fi
3216 if test -z "$CC"; then
3217   ac_ct_CC=$CC
3218   for ac_prog in cl.exe
3219 do
3220   # Extract the first word of "$ac_prog", so it can be a program name with args.
3221 set dummy $ac_prog; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3225   $as_echo_n "(cached) " >&6
3226 else
3227   if test -n "$ac_ct_CC"; then
3228   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235     for ac_exec_ext in '' $ac_executable_extensions; do
3236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_prog_ac_ct_CC="$ac_prog"
3238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242   done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3251 else
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257   test -n "$ac_ct_CC" && break
3258 done
3259
3260   if test "x$ac_ct_CC" = x; then
3261     CC=""
3262   else
3263     case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3268 esac
3269     CC=$ac_ct_CC
3270   fi
3271 fi
3272
3273 fi
3274
3275
3276 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $? "no acceptable C compiler found in \$PATH
3279 See \`config.log' for more details" "$LINENO" 5; }
3280
3281 # Provide some information about the compiler.
3282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3283 set X $ac_compile
3284 ac_compiler=$2
3285 for ac_option in --version -v -V -qversion; do
3286   { { ac_try="$ac_compiler $ac_option >&5"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3294   ac_status=$?
3295   if test -s conftest.err; then
3296     sed '10a\
3297 ... rest of stderr output deleted ...
3298          10q' conftest.err >conftest.er1
3299     cat conftest.er1 >&5
3300   fi
3301   rm -f conftest.er1 conftest.err
3302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303   test $ac_status = 0; }
3304 done
3305
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files_save=$ac_clean_files
3318 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3319 # Try to create an executable without -o first, disregard a.out.
3320 # It will help us diagnose broken compilers, and finding out an intuition
3321 # of exeext.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3323 $as_echo_n "checking whether the C compiler works... " >&6; }
3324 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325
3326 # The possible output files:
3327 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328
3329 ac_rmfiles=
3330 for ac_file in $ac_files
3331 do
3332   case $ac_file in
3333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335   esac
3336 done
3337 rm -f $ac_rmfiles
3338
3339 if { { ac_try="$ac_link_default"
3340 case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346   (eval "$ac_link_default") 2>&5
3347   ac_status=$?
3348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349   test $ac_status = 0; }; then :
3350   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3354 # Autoconf.
3355 for ac_file in $ac_files ''
3356 do
3357   test -f "$ac_file" || continue
3358   case $ac_file in
3359     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360         ;;
3361     [ab].out )
3362         # We found the default executable, but exeext='' is most
3363         # certainly right.
3364         break;;
3365     *.* )
3366         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367         then :; else
3368            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369         fi
3370         # We set ac_cv_exeext here because the later test for it is not
3371         # safe: cross compilers may not add the suffix if given an `-o'
3372         # argument, so we may need to know it at that point already.
3373         # Even if this section looks crufty: it has the advantage of
3374         # actually working.
3375         break;;
3376     * )
3377         break;;
3378   esac
3379 done
3380 test "$ac_cv_exeext" = no && ac_cv_exeext=
3381
3382 else
3383   ac_file=''
3384 fi
3385 if test -z "$ac_file"; then :
3386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error 77 "C compiler cannot create executables
3394 See \`config.log' for more details" "$LINENO" 5; }
3395 else
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3397 $as_echo "yes" >&6; }
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3400 $as_echo_n "checking for C compiler default output file name... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3402 $as_echo "$ac_file" >&6; }
3403 ac_exeext=$ac_cv_exeext
3404
3405 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3408 $as_echo_n "checking for suffix of executables... " >&6; }
3409 if { { ac_try="$ac_link"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416   (eval "$ac_link") 2>&5
3417   ac_status=$?
3418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419   test $ac_status = 0; }; then :
3420   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3421 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3422 # work properly (i.e., refer to `conftest.exe'), while it won't with
3423 # `rm'.
3424 for ac_file in conftest.exe conftest conftest.*; do
3425   test -f "$ac_file" || continue
3426   case $ac_file in
3427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429           break;;
3430     * ) break;;
3431   esac
3432 done
3433 else
3434   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3437 See \`config.log' for more details" "$LINENO" 5; }
3438 fi
3439 rm -f conftest conftest$ac_cv_exeext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3441 $as_echo "$ac_cv_exeext" >&6; }
3442
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448 #include <stdio.h>
3449 int
3450 main ()
3451 {
3452 FILE *f = fopen ("conftest.out", "w");
3453  return ferror (f) || fclose (f) != 0;
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 ac_clean_files="$ac_clean_files conftest.out"
3460 # Check that the compiler produces executables we can run.  If not, either
3461 # the compiler is broken, or we cross compile.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3463 $as_echo_n "checking whether we are cross compiling... " >&6; }
3464 if test "$cross_compiling" != yes; then
3465   { { ac_try="$ac_link"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472   (eval "$ac_link") 2>&5
3473   ac_status=$?
3474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475   test $ac_status = 0; }
3476   if { ac_try='./conftest$ac_cv_exeext'
3477   { { case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486   test $ac_status = 0; }; }; then
3487     cross_compiling=no
3488   else
3489     if test "$cross_compiling" = maybe; then
3490         cross_compiling=yes
3491     else
3492         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details" "$LINENO" 5; }
3497     fi
3498   fi
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3501 $as_echo "$cross_compiling" >&6; }
3502
3503 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3506 $as_echo_n "checking for suffix of object files... " >&6; }
3507 if ${ac_cv_objext+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512
3513 int
3514 main ()
3515 {
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 rm -f conftest.o conftest.obj
3522 if { { ac_try="$ac_compile"
3523 case "(($ac_try" in
3524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525   *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529   (eval "$ac_compile") 2>&5
3530   ac_status=$?
3531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532   test $ac_status = 0; }; then :
3533   for ac_file in conftest.o conftest.obj conftest.*; do
3534   test -f "$ac_file" || continue;
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3537     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3538        break;;
3539   esac
3540 done
3541 else
3542   $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error $? "cannot compute suffix of object files: cannot compile
3548 See \`config.log' for more details" "$LINENO" 5; }
3549 fi
3550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3553 $as_echo "$ac_cv_objext" >&6; }
3554 OBJEXT=$ac_cv_objext
3555 ac_objext=$OBJEXT
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3558 if ${ac_cv_c_compiler_gnu+:} false; then :
3559   $as_echo_n "(cached) " >&6
3560 else
3561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567 #ifndef __GNUC__
3568        choke me
3569 #endif
3570
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3576   ac_compiler_gnu=yes
3577 else
3578   ac_compiler_gnu=no
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3587   GCC=yes
3588 else
3589   GCC=
3590 fi
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if ${ac_cv_prog_cc_g+:} false; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   ac_save_c_werror_flag=$ac_c_werror_flag
3599    ac_c_werror_flag=yes
3600    ac_cv_prog_cc_g=no
3601    CFLAGS="-g"
3602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614   ac_cv_prog_cc_g=yes
3615 else
3616   CFLAGS=""
3617       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629
3630 else
3631   ac_c_werror_flag=$ac_save_c_werror_flag
3632          CFLAGS="-g"
3633          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645   ac_cv_prog_cc_g=yes
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 fi
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652    ac_c_werror_flag=$ac_save_c_werror_flag
3653 fi
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3655 $as_echo "$ac_cv_prog_cc_g" >&6; }
3656 if test "$ac_test_CFLAGS" = set; then
3657   CFLAGS=$ac_save_CFLAGS
3658 elif test $ac_cv_prog_cc_g = yes; then
3659   if test "$GCC" = yes; then
3660     CFLAGS="-g -O2"
3661   else
3662     CFLAGS="-g"
3663   fi
3664 else
3665   if test "$GCC" = yes; then
3666     CFLAGS="-O2"
3667   else
3668     CFLAGS=
3669   fi
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3673 if ${ac_cv_prog_cc_c89+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   ac_cv_prog_cc_c89=no
3677 ac_save_CC=$CC
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680 #include <stdarg.h>
3681 #include <stdio.h>
3682 struct stat;
3683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3684 struct buf { int x; };
3685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3686 static char *e (p, i)
3687      char **p;
3688      int i;
3689 {
3690   return p[i];
3691 }
3692 static char *f (char * (*g) (char **, int), char **p, ...)
3693 {
3694   char *s;
3695   va_list v;
3696   va_start (v,p);
3697   s = g (p, va_arg (v,int));
3698   va_end (v);
3699   return s;
3700 }
3701
3702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3703    function prototypes and stuff, but not '\xHH' hex character constants.
3704    These don't provoke an error unfortunately, instead are silently treated
3705    as 'x'.  The following induces an error, until -std is added to get
3706    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3707    array size at least.  It's necessary to write '\x00'==0 to get something
3708    that's true only with -std.  */
3709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710
3711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3712    inside strings and character constants.  */
3713 #define FOO(x) 'x'
3714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715
3716 int test (int i, double x);
3717 struct s1 {int (*f) (int a);};
3718 struct s2 {int (*f) (double a);};
3719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3720 int argc;
3721 char **argv;
3722 int
3723 main ()
3724 {
3725 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3726   ;
3727   return 0;
3728 }
3729 _ACEOF
3730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3731         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 do
3733   CC="$ac_save_CC $ac_arg"
3734   if ac_fn_c_try_compile "$LINENO"; then :
3735   ac_cv_prog_cc_c89=$ac_arg
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext
3738   test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 done
3740 rm -f conftest.$ac_ext
3741 CC=$ac_save_CC
3742
3743 fi
3744 # AC_CACHE_VAL
3745 case "x$ac_cv_prog_cc_c89" in
3746   x)
3747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748 $as_echo "none needed" >&6; } ;;
3749   xno)
3750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3751 $as_echo "unsupported" >&6; } ;;
3752   *)
3753     CC="$CC $ac_cv_prog_cc_c89"
3754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756 esac
3757 if test "x$ac_cv_prog_cc_c89" != xno; then :
3758
3759 fi
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 DEPDIR="${am__leading_dot}deps"
3767
3768 ac_config_commands="$ac_config_commands depfiles"
3769
3770
3771 am_make=${MAKE-make}
3772 cat > confinc << 'END'
3773 am__doit:
3774         @echo this is the am__doit target
3775 .PHONY: am__doit
3776 END
3777 # If we don't find an include directive, just comment out the code.
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3780 am__include="#"
3781 am__quote=
3782 _am_result=none
3783 # First try GNU make style include.
3784 echo "include confinc" > confmf
3785 # Ignore all kinds of additional output from `make'.
3786 case `$am_make -s -f confmf 2> /dev/null` in #(
3787 *the\ am__doit\ target*)
3788   am__include=include
3789   am__quote=
3790   _am_result=GNU
3791   ;;
3792 esac
3793 # Now try BSD make style include.
3794 if test "$am__include" = "#"; then
3795    echo '.include "confinc"' > confmf
3796    case `$am_make -s -f confmf 2> /dev/null` in #(
3797    *the\ am__doit\ target*)
3798      am__include=.include
3799      am__quote="\""
3800      _am_result=BSD
3801      ;;
3802    esac
3803 fi
3804
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3807 $as_echo "$_am_result" >&6; }
3808 rm -f confinc confmf
3809
3810 # Check whether --enable-dependency-tracking was given.
3811 if test "${enable_dependency_tracking+set}" = set; then :
3812   enableval=$enable_dependency_tracking;
3813 fi
3814
3815 if test "x$enable_dependency_tracking" != xno; then
3816   am_depcomp="$ac_aux_dir/depcomp"
3817   AMDEPBACKSLASH='\'
3818   am__nodep='_no'
3819 fi
3820  if test "x$enable_dependency_tracking" != xno; then
3821   AMDEP_TRUE=
3822   AMDEP_FALSE='#'
3823 else
3824   AMDEP_TRUE='#'
3825   AMDEP_FALSE=
3826 fi
3827
3828
3829
3830 depcc="$CC"   am_compiler_list=
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3833 $as_echo_n "checking dependency style of $depcc... " >&6; }
3834 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3838   # We make a subdir and do the tests there.  Otherwise we can end up
3839   # making bogus files that we don't know about and never remove.  For
3840   # instance it was reported that on HP-UX the gcc test will end up
3841   # making a dummy file named `D' -- because `-MD' means `put the output
3842   # in D'.
3843   rm -rf conftest.dir
3844   mkdir conftest.dir
3845   # Copy depcomp to subdir because otherwise we won't find it if we're
3846   # using a relative directory.
3847   cp "$am_depcomp" conftest.dir
3848   cd conftest.dir
3849   # We will build objects and dependencies in a subdirectory because
3850   # it helps to detect inapplicable dependency modes.  For instance
3851   # both Tru64's cc and ICC support -MD to output dependencies as a
3852   # side effect of compilation, but ICC will put the dependencies in
3853   # the current directory while Tru64 will put them in the object
3854   # directory.
3855   mkdir sub
3856
3857   am_cv_CC_dependencies_compiler_type=none
3858   if test "$am_compiler_list" = ""; then
3859      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3860   fi
3861   am__universal=false
3862   case " $depcc " in #(
3863      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3864      esac
3865
3866   for depmode in $am_compiler_list; do
3867     # Setup a source with many dependencies, because some compilers
3868     # like to wrap large dependency lists on column 80 (with \), and
3869     # we should not choose a depcomp mode which is confused by this.
3870     #
3871     # We need to recreate these files for each test, as the compiler may
3872     # overwrite some of them when testing with obscure command lines.
3873     # This happens at least with the AIX C compiler.
3874     : > sub/conftest.c
3875     for i in 1 2 3 4 5 6; do
3876       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3877       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3878       # Solaris 8's {/usr,}/bin/sh.
3879       touch sub/conftst$i.h
3880     done
3881     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3882
3883     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3884     # mode.  It turns out that the SunPro C++ compiler does not properly
3885     # handle `-M -o', and we need to detect this.  Also, some Intel
3886     # versions had trouble with output in subdirs
3887     am__obj=sub/conftest.${OBJEXT-o}
3888     am__minus_obj="-o $am__obj"
3889     case $depmode in
3890     gcc)
3891       # This depmode causes a compiler race in universal mode.
3892       test "$am__universal" = false || continue
3893       ;;
3894     nosideeffect)
3895       # after this tag, mechanisms are not by side-effect, so they'll
3896       # only be used when explicitly requested
3897       if test "x$enable_dependency_tracking" = xyes; then
3898         continue
3899       else
3900         break
3901       fi
3902       ;;
3903     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3904       # This compiler won't grok `-c -o', but also, the minuso test has
3905       # not run yet.  These depmodes are late enough in the game, and
3906       # so weak that their functioning should not be impacted.
3907       am__obj=conftest.${OBJEXT-o}
3908       am__minus_obj=
3909       ;;
3910     none) break ;;
3911     esac
3912     if depmode=$depmode \
3913        source=sub/conftest.c object=$am__obj \
3914        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3915        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3916          >/dev/null 2>conftest.err &&
3917        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3918        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3919        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3920        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3921       # icc doesn't choke on unknown options, it will just issue warnings
3922       # or remarks (even with -Werror).  So we grep stderr for any message
3923       # that says an option was ignored or not supported.
3924       # When given -MP, icc 7.0 and 7.1 complain thusly:
3925       #   icc: Command line warning: ignoring option '-M'; no argument required
3926       # The diagnosis changed in icc 8.0:
3927       #   icc: Command line remark: option '-MP' not supported
3928       if (grep 'ignoring option' conftest.err ||
3929           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3930         am_cv_CC_dependencies_compiler_type=$depmode
3931         break
3932       fi
3933     fi
3934   done
3935
3936   cd ..
3937   rm -rf conftest.dir
3938 else
3939   am_cv_CC_dependencies_compiler_type=none
3940 fi
3941
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3944 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3945 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3946
3947  if
3948   test "x$enable_dependency_tracking" != xno \
3949   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3950   am__fastdepCC_TRUE=
3951   am__fastdepCC_FALSE='#'
3952 else
3953   am__fastdepCC_TRUE='#'
3954   am__fastdepCC_FALSE=
3955 fi
3956
3957
3958 if test "x$CC" != xcc; then
3959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3960 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3961 else
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3963 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3964 fi
3965 set dummy $CC; ac_cc=`$as_echo "$2" |
3966                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3967 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3968   $as_echo_n "(cached) " >&6
3969 else
3970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
3973 int
3974 main ()
3975 {
3976
3977   ;
3978   return 0;
3979 }
3980 _ACEOF
3981 # Make sure it works both with $CC and with simple cc.
3982 # We do the test twice because some compilers refuse to overwrite an
3983 # existing .o file with -o, though they will create one.
3984 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3985 rm -f conftest2.*
3986 if { { case "(($ac_try" in
3987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988   *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 $as_echo "$ac_try_echo"; } >&5
3992   (eval "$ac_try") 2>&5
3993   ac_status=$?
3994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995   test $ac_status = 0; } &&
3996    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002   (eval "$ac_try") 2>&5
4003   ac_status=$?
4004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005   test $ac_status = 0; };
4006 then
4007   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4008   if test "x$CC" != xcc; then
4009     # Test first that cc exists at all.
4010     if { ac_try='cc -c conftest.$ac_ext >&5'
4011   { { case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017   (eval "$ac_try") 2>&5
4018   ac_status=$?
4019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020   test $ac_status = 0; }; }; then
4021       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4022       rm -f conftest2.*
4023       if { { case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029   (eval "$ac_try") 2>&5
4030   ac_status=$?
4031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032   test $ac_status = 0; } &&
4033          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039   (eval "$ac_try") 2>&5
4040   ac_status=$?
4041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042   test $ac_status = 0; };
4043       then
4044         # cc works too.
4045         :
4046       else
4047         # cc exists but doesn't like -o.
4048         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4049       fi
4050     fi
4051   fi
4052 else
4053   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4054 fi
4055 rm -f core conftest*
4056
4057 fi
4058 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4060 $as_echo "yes" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064
4065 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4066
4067 fi
4068
4069 # FIXME: we rely on the cache variable name because
4070 # there is no other way.
4071 set dummy $CC
4072 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4073 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4074 if test "$am_t" != yes; then
4075    # Losing compiler, so override with the script.
4076    # FIXME: It is wrong to rewrite CC.
4077    # But if we don't then we get into trouble of one sort or another.
4078    # A longer-term fix would be to have automake use am__CC in this case,
4079    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4080    CC="$am_aux_dir/compile $CC"
4081 fi
4082
4083
4084 # Check whether --enable-static was given.
4085 if test "${enable_static+set}" = set; then :
4086   enableval=$enable_static; p=${PACKAGE-default}
4087     case $enableval in
4088     yes) enable_static=yes ;;
4089     no) enable_static=no ;;
4090     *)
4091      enable_static=no
4092       # Look at the argument we got.  We use all the common list separators.
4093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094       for pkg in $enableval; do
4095         IFS="$lt_save_ifs"
4096         if test "X$pkg" = "X$p"; then
4097           enable_static=yes
4098         fi
4099       done
4100       IFS="$lt_save_ifs"
4101       ;;
4102     esac
4103 else
4104   enable_static=no
4105 fi
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 if test -n "$ac_tool_prefix"; then
4117   for ac_prog in ar lib "link -lib"
4118   do
4119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_AR+:} false; then :
4124   $as_echo_n "(cached) " >&6
4125 else
4126   if test -n "$AR"; then
4127   ac_cv_prog_AR="$AR" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134     for ac_exec_ext in '' $ac_executable_extensions; do
4135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138     break 2
4139   fi
4140 done
4141   done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 AR=$ac_cv_prog_AR
4147 if test -n "$AR"; then
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4149 $as_echo "$AR" >&6; }
4150 else
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156     test -n "$AR" && break
4157   done
4158 fi
4159 if test -z "$AR"; then
4160   ac_ct_AR=$AR
4161   for ac_prog in ar lib "link -lib"
4162 do
4163   # Extract the first word of "$ac_prog", so it can be a program name with args.
4164 set dummy $ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4168   $as_echo_n "(cached) " >&6
4169 else
4170   if test -n "$ac_ct_AR"; then
4171   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178     for ac_exec_ext in '' $ac_executable_extensions; do
4179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_prog_ac_ct_AR="$ac_prog"
4181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185   done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4191 if test -n "$ac_ct_AR"; then
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4193 $as_echo "$ac_ct_AR" >&6; }
4194 else
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200   test -n "$ac_ct_AR" && break
4201 done
4202
4203   if test "x$ac_ct_AR" = x; then
4204     AR="false"
4205   else
4206     case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212     AR=$ac_ct_AR
4213   fi
4214 fi
4215
4216 : ${AR=ar}
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4219 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4220 if ${am_cv_ar_interface+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   am_cv_ar_interface=ar
4224    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226 int some_variable = 0;
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4230       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4231   (eval $am_ar_try) 2>&5
4232   ac_status=$?
4233   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234   test $ac_status = 0; }
4235       if test "$ac_status" -eq 0; then
4236         am_cv_ar_interface=ar
4237       else
4238         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4239         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4240   (eval $am_ar_try) 2>&5
4241   ac_status=$?
4242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243   test $ac_status = 0; }
4244         if test "$ac_status" -eq 0; then
4245           am_cv_ar_interface=lib
4246         else
4247           am_cv_ar_interface=unknown
4248         fi
4249       fi
4250       rm -f conftest.lib libconftest.a
4251
4252 fi
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4257 $as_echo "$am_cv_ar_interface" >&6; }
4258
4259 case $am_cv_ar_interface in
4260 ar)
4261   ;;
4262 lib)
4263   # Microsoft lib, so override with the ar-lib wrapper script.
4264   # FIXME: It is wrong to rewrite AR.
4265   # But if we don't then we get into trouble of one sort or another.
4266   # A longer-term fix would be to have automake use am__AR in this case,
4267   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4268   # similar.
4269   AR="$am_aux_dir/ar-lib $AR"
4270   ;;
4271 unknown)
4272   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4273   ;;
4274 esac
4275
4276 case `pwd` in
4277   *\ * | *\     *)
4278     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4279 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4280 esac
4281
4282
4283
4284 macro_version='2.4.2'
4285 macro_revision='1.3337'
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299 ltmain="$ac_aux_dir/ltmain.sh"
4300
4301 # Make sure we can run config.sub.
4302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4303   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4306 $as_echo_n "checking build system type... " >&6; }
4307 if ${ac_cv_build+:} false; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   ac_build_alias=$build_alias
4311 test "x$ac_build_alias" = x &&
4312   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4313 test "x$ac_build_alias" = x &&
4314   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4316   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4317
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4320 $as_echo "$ac_cv_build" >&6; }
4321 case $ac_cv_build in
4322 *-*-*) ;;
4323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4324 esac
4325 build=$ac_cv_build
4326 ac_save_IFS=$IFS; IFS='-'
4327 set x $ac_cv_build
4328 shift
4329 build_cpu=$1
4330 build_vendor=$2
4331 shift; shift
4332 # Remember, the first character of IFS is used to create $*,
4333 # except with old shells:
4334 build_os=$*
4335 IFS=$ac_save_IFS
4336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4340 $as_echo_n "checking host system type... " >&6; }
4341 if ${ac_cv_host+:} false; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   if test "x$host_alias" = x; then
4345   ac_cv_host=$ac_cv_build
4346 else
4347   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4348     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4349 fi
4350
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4353 $as_echo "$ac_cv_host" >&6; }
4354 case $ac_cv_host in
4355 *-*-*) ;;
4356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4357 esac
4358 host=$ac_cv_host
4359 ac_save_IFS=$IFS; IFS='-'
4360 set x $ac_cv_host
4361 shift
4362 host_cpu=$1
4363 host_vendor=$2
4364 shift; shift
4365 # Remember, the first character of IFS is used to create $*,
4366 # except with old shells:
4367 host_os=$*
4368 IFS=$ac_save_IFS
4369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4370
4371
4372 # Backslashify metacharacters that are still active within
4373 # double-quoted strings.
4374 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4375
4376 # Same as above, but do not quote variable references.
4377 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4378
4379 # Sed substitution to delay expansion of an escaped shell variable in a
4380 # double_quote_subst'ed string.
4381 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4382
4383 # Sed substitution to delay expansion of an escaped single quote.
4384 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4385
4386 # Sed substitution to avoid accidental globbing in evaled expressions
4387 no_glob_subst='s/\*/\\\*/g'
4388
4389 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4390 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4391 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4394 $as_echo_n "checking how to print strings... " >&6; }
4395 # Test print first, because it will be a builtin if present.
4396 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4397    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4398   ECHO='print -r --'
4399 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4400   ECHO='printf %s\n'
4401 else
4402   # Use this function as a fallback that always works.
4403   func_fallback_echo ()
4404   {
4405     eval 'cat <<_LTECHO_EOF
4406 $1
4407 _LTECHO_EOF'
4408   }
4409   ECHO='func_fallback_echo'
4410 fi
4411
4412 # func_echo_all arg...
4413 # Invoke $ECHO with all args, space-separated.
4414 func_echo_all ()
4415 {
4416     $ECHO ""
4417 }
4418
4419 case "$ECHO" in
4420   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4421 $as_echo "printf" >&6; } ;;
4422   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4423 $as_echo "print -r" >&6; } ;;
4424   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4425 $as_echo "cat" >&6; } ;;
4426 esac
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4442 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4443 if ${ac_cv_path_SED+:} false; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4447      for ac_i in 1 2 3 4 5 6 7; do
4448        ac_script="$ac_script$as_nl$ac_script"
4449      done
4450      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4451      { ac_script=; unset ac_script;}
4452      if test -z "$SED"; then
4453   ac_path_SED_found=false
4454   # Loop through the user's path and test for each of PROGNAME-LIST
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_prog in sed gsed; do
4461     for ac_exec_ext in '' $ac_executable_extensions; do
4462       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4463       as_fn_executable_p "$ac_path_SED" || continue
4464 # Check for GNU ac_path_SED and select it if it is found.
4465   # Check for GNU $ac_path_SED
4466 case `"$ac_path_SED" --version 2>&1` in
4467 *GNU*)
4468   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4469 *)
4470   ac_count=0
4471   $as_echo_n 0123456789 >"conftest.in"
4472   while :
4473   do
4474     cat "conftest.in" "conftest.in" >"conftest.tmp"
4475     mv "conftest.tmp" "conftest.in"
4476     cp "conftest.in" "conftest.nl"
4477     $as_echo '' >> "conftest.nl"
4478     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480     as_fn_arith $ac_count + 1 && ac_count=$as_val
4481     if test $ac_count -gt ${ac_path_SED_max-0}; then
4482       # Best one so far, save it but keep looking for a better one
4483       ac_cv_path_SED="$ac_path_SED"
4484       ac_path_SED_max=$ac_count
4485     fi
4486     # 10*(2^10) chars as input seems more than enough
4487     test $ac_count -gt 10 && break
4488   done
4489   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 esac
4491
4492       $ac_path_SED_found && break 3
4493     done
4494   done
4495   done
4496 IFS=$as_save_IFS
4497   if test -z "$ac_cv_path_SED"; then
4498     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4499   fi
4500 else
4501   ac_cv_path_SED=$SED
4502 fi
4503
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4506 $as_echo "$ac_cv_path_SED" >&6; }
4507  SED="$ac_cv_path_SED"
4508   rm -f conftest.sed
4509
4510 test -z "$SED" && SED=sed
4511 Xsed="$SED -e 1s/^X//"
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4524 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4525 if ${ac_cv_path_GREP+:} false; then :
4526   $as_echo_n "(cached) " >&6
4527 else
4528   if test -z "$GREP"; then
4529   ac_path_GREP_found=false
4530   # Loop through the user's path and test for each of PROGNAME-LIST
4531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536     for ac_prog in grep ggrep; do
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4539       as_fn_executable_p "$ac_path_GREP" || continue
4540 # Check for GNU ac_path_GREP and select it if it is found.
4541   # Check for GNU $ac_path_GREP
4542 case `"$ac_path_GREP" --version 2>&1` in
4543 *GNU*)
4544   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4545 *)
4546   ac_count=0
4547   $as_echo_n 0123456789 >"conftest.in"
4548   while :
4549   do
4550     cat "conftest.in" "conftest.in" >"conftest.tmp"
4551     mv "conftest.tmp" "conftest.in"
4552     cp "conftest.in" "conftest.nl"
4553     $as_echo 'GREP' >> "conftest.nl"
4554     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556     as_fn_arith $ac_count + 1 && ac_count=$as_val
4557     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4558       # Best one so far, save it but keep looking for a better one
4559       ac_cv_path_GREP="$ac_path_GREP"
4560       ac_path_GREP_max=$ac_count
4561     fi
4562     # 10*(2^10) chars as input seems more than enough
4563     test $ac_count -gt 10 && break
4564   done
4565   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568       $ac_path_GREP_found && break 3
4569     done
4570   done
4571   done
4572 IFS=$as_save_IFS
4573   if test -z "$ac_cv_path_GREP"; then
4574     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4575   fi
4576 else
4577   ac_cv_path_GREP=$GREP
4578 fi
4579
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4582 $as_echo "$ac_cv_path_GREP" >&6; }
4583  GREP="$ac_cv_path_GREP"
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4587 $as_echo_n "checking for egrep... " >&6; }
4588 if ${ac_cv_path_EGREP+:} false; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4592    then ac_cv_path_EGREP="$GREP -E"
4593    else
4594      if test -z "$EGREP"; then
4595   ac_path_EGREP_found=false
4596   # Loop through the user's path and test for each of PROGNAME-LIST
4597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602     for ac_prog in egrep; do
4603     for ac_exec_ext in '' $ac_executable_extensions; do
4604       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4605       as_fn_executable_p "$ac_path_EGREP" || continue
4606 # Check for GNU ac_path_EGREP and select it if it is found.
4607   # Check for GNU $ac_path_EGREP
4608 case `"$ac_path_EGREP" --version 2>&1` in
4609 *GNU*)
4610   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4611 *)
4612   ac_count=0
4613   $as_echo_n 0123456789 >"conftest.in"
4614   while :
4615   do
4616     cat "conftest.in" "conftest.in" >"conftest.tmp"
4617     mv "conftest.tmp" "conftest.in"
4618     cp "conftest.in" "conftest.nl"
4619     $as_echo 'EGREP' >> "conftest.nl"
4620     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622     as_fn_arith $ac_count + 1 && ac_count=$as_val
4623     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4624       # Best one so far, save it but keep looking for a better one
4625       ac_cv_path_EGREP="$ac_path_EGREP"
4626       ac_path_EGREP_max=$ac_count
4627     fi
4628     # 10*(2^10) chars as input seems more than enough
4629     test $ac_count -gt 10 && break
4630   done
4631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4633
4634       $ac_path_EGREP_found && break 3
4635     done
4636   done
4637   done
4638 IFS=$as_save_IFS
4639   if test -z "$ac_cv_path_EGREP"; then
4640     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641   fi
4642 else
4643   ac_cv_path_EGREP=$EGREP
4644 fi
4645
4646    fi
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4649 $as_echo "$ac_cv_path_EGREP" >&6; }
4650  EGREP="$ac_cv_path_EGREP"
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4654 $as_echo_n "checking for fgrep... " >&6; }
4655 if ${ac_cv_path_FGREP+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4659    then ac_cv_path_FGREP="$GREP -F"
4660    else
4661      if test -z "$FGREP"; then
4662   ac_path_FGREP_found=false
4663   # Loop through the user's path and test for each of PROGNAME-LIST
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669     for ac_prog in fgrep; do
4670     for ac_exec_ext in '' $ac_executable_extensions; do
4671       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4672       as_fn_executable_p "$ac_path_FGREP" || continue
4673 # Check for GNU ac_path_FGREP and select it if it is found.
4674   # Check for GNU $ac_path_FGREP
4675 case `"$ac_path_FGREP" --version 2>&1` in
4676 *GNU*)
4677   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4678 *)
4679   ac_count=0
4680   $as_echo_n 0123456789 >"conftest.in"
4681   while :
4682   do
4683     cat "conftest.in" "conftest.in" >"conftest.tmp"
4684     mv "conftest.tmp" "conftest.in"
4685     cp "conftest.in" "conftest.nl"
4686     $as_echo 'FGREP' >> "conftest.nl"
4687     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689     as_fn_arith $ac_count + 1 && ac_count=$as_val
4690     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4691       # Best one so far, save it but keep looking for a better one
4692       ac_cv_path_FGREP="$ac_path_FGREP"
4693       ac_path_FGREP_max=$ac_count
4694     fi
4695     # 10*(2^10) chars as input seems more than enough
4696     test $ac_count -gt 10 && break
4697   done
4698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 esac
4700
4701       $ac_path_FGREP_found && break 3
4702     done
4703   done
4704   done
4705 IFS=$as_save_IFS
4706   if test -z "$ac_cv_path_FGREP"; then
4707     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708   fi
4709 else
4710   ac_cv_path_FGREP=$FGREP
4711 fi
4712
4713    fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4716 $as_echo "$ac_cv_path_FGREP" >&6; }
4717  FGREP="$ac_cv_path_FGREP"
4718
4719
4720 test -z "$GREP" && GREP=grep
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 # Check whether --with-gnu-ld was given.
4741 if test "${with_gnu_ld+set}" = set; then :
4742   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4743 else
4744   with_gnu_ld=no
4745 fi
4746
4747 ac_prog=ld
4748 if test "$GCC" = yes; then
4749   # Check if gcc -print-prog-name=ld gives a path.
4750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4751 $as_echo_n "checking for ld used by $CC... " >&6; }
4752   case $host in
4753   *-*-mingw*)
4754     # gcc leaves a trailing carriage return which upsets mingw
4755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4756   *)
4757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4758   esac
4759   case $ac_prog in
4760     # Accept absolute paths.
4761     [\\/]* | ?:[\\/]*)
4762       re_direlt='/[^/][^/]*/\.\./'
4763       # Canonicalize the pathname of ld
4764       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4765       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4766         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4767       done
4768       test -z "$LD" && LD="$ac_prog"
4769       ;;
4770   "")
4771     # If it fails, then pretend we aren't using GCC.
4772     ac_prog=ld
4773     ;;
4774   *)
4775     # If it is relative, then search for the first ld in PATH.
4776     with_gnu_ld=unknown
4777     ;;
4778   esac
4779 elif test "$with_gnu_ld" = yes; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4781 $as_echo_n "checking for GNU ld... " >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4784 $as_echo_n "checking for non-GNU ld... " >&6; }
4785 fi
4786 if ${lt_cv_path_LD+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test -z "$LD"; then
4790   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4791   for ac_dir in $PATH; do
4792     IFS="$lt_save_ifs"
4793     test -z "$ac_dir" && ac_dir=.
4794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4795       lt_cv_path_LD="$ac_dir/$ac_prog"
4796       # Check to see if the program is GNU ld.  I'd rather use --version,
4797       # but apparently some variants of GNU ld only accept -v.
4798       # Break only if it was the GNU/non-GNU ld that we prefer.
4799       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4800       *GNU* | *'with BFD'*)
4801         test "$with_gnu_ld" != no && break
4802         ;;
4803       *)
4804         test "$with_gnu_ld" != yes && break
4805         ;;
4806       esac
4807     fi
4808   done
4809   IFS="$lt_save_ifs"
4810 else
4811   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4812 fi
4813 fi
4814
4815 LD="$lt_cv_path_LD"
4816 if test -n "$LD"; then
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4818 $as_echo "$LD" >&6; }
4819 else
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4825 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4826 if ${lt_cv_prog_gnu_ld+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4830 case `$LD -v 2>&1 </dev/null` in
4831 *GNU* | *'with BFD'*)
4832   lt_cv_prog_gnu_ld=yes
4833   ;;
4834 *)
4835   lt_cv_prog_gnu_ld=no
4836   ;;
4837 esac
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4840 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4841 with_gnu_ld=$lt_cv_prog_gnu_ld
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4852 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4853 if ${lt_cv_path_NM+:} false; then :
4854   $as_echo_n "(cached) " >&6
4855 else
4856   if test -n "$NM"; then
4857   # Let the user override the test.
4858   lt_cv_path_NM="$NM"
4859 else
4860   lt_nm_to_check="${ac_tool_prefix}nm"
4861   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4862     lt_nm_to_check="$lt_nm_to_check nm"
4863   fi
4864   for lt_tmp_nm in $lt_nm_to_check; do
4865     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4866     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4867       IFS="$lt_save_ifs"
4868       test -z "$ac_dir" && ac_dir=.
4869       tmp_nm="$ac_dir/$lt_tmp_nm"
4870       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4871         # Check to see if the nm accepts a BSD-compat flag.
4872         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4873         #   nm: unknown option "B" ignored
4874         # Tru64's nm complains that /dev/null is an invalid object file
4875         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4876         */dev/null* | *'Invalid file or object type'*)
4877           lt_cv_path_NM="$tmp_nm -B"
4878           break
4879           ;;
4880         *)
4881           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4882           */dev/null*)
4883             lt_cv_path_NM="$tmp_nm -p"
4884             break
4885             ;;
4886           *)
4887             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4888             continue # so that we can try to find one that supports BSD flags
4889             ;;
4890           esac
4891           ;;
4892         esac
4893       fi
4894     done
4895     IFS="$lt_save_ifs"
4896   done
4897   : ${lt_cv_path_NM=no}
4898 fi
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4901 $as_echo "$lt_cv_path_NM" >&6; }
4902 if test "$lt_cv_path_NM" != "no"; then
4903   NM="$lt_cv_path_NM"
4904 else
4905   # Didn't find any BSD compatible name lister, look for dumpbin.
4906   if test -n "$DUMPBIN"; then :
4907     # Let the user override the test.
4908   else
4909     if test -n "$ac_tool_prefix"; then
4910   for ac_prog in dumpbin "link -dump"
4911   do
4912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_DUMPBIN+:} false; then :
4917   $as_echo_n "(cached) " >&6
4918 else
4919   if test -n "$DUMPBIN"; then
4920   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927     for ac_exec_ext in '' $ac_executable_extensions; do
4928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934   done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 DUMPBIN=$ac_cv_prog_DUMPBIN
4940 if test -n "$DUMPBIN"; then
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4942 $as_echo "$DUMPBIN" >&6; }
4943 else
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949     test -n "$DUMPBIN" && break
4950   done
4951 fi
4952 if test -z "$DUMPBIN"; then
4953   ac_ct_DUMPBIN=$DUMPBIN
4954   for ac_prog in dumpbin "link -dump"
4955 do
4956   # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$ac_ct_DUMPBIN"; then
4964   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4984 if test -n "$ac_ct_DUMPBIN"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4986 $as_echo "$ac_ct_DUMPBIN" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993   test -n "$ac_ct_DUMPBIN" && break
4994 done
4995
4996   if test "x$ac_ct_DUMPBIN" = x; then
4997     DUMPBIN=":"
4998   else
4999     case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005     DUMPBIN=$ac_ct_DUMPBIN
5006   fi
5007 fi
5008
5009     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5010     *COFF*)
5011       DUMPBIN="$DUMPBIN -symbols"
5012       ;;
5013     *)
5014       DUMPBIN=:
5015       ;;
5016     esac
5017   fi
5018
5019   if test "$DUMPBIN" != ":"; then
5020     NM="$DUMPBIN"
5021   fi
5022 fi
5023 test -z "$NM" && NM=nm
5024
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5031 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5032 if ${lt_cv_nm_interface+:} false; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   lt_cv_nm_interface="BSD nm"
5036   echo "int some_variable = 0;" > conftest.$ac_ext
5037   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5038   (eval "$ac_compile" 2>conftest.err)
5039   cat conftest.err >&5
5040   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5041   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5042   cat conftest.err >&5
5043   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5044   cat conftest.out >&5
5045   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5046     lt_cv_nm_interface="MS dumpbin"
5047   fi
5048   rm -f conftest*
5049 fi
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5051 $as_echo "$lt_cv_nm_interface" >&6; }
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5054 $as_echo_n "checking whether ln -s works... " >&6; }
5055 LN_S=$as_ln_s
5056 if test "$LN_S" = "ln -s"; then
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058 $as_echo "yes" >&6; }
5059 else
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5061 $as_echo "no, using $LN_S" >&6; }
5062 fi
5063
5064 # find the maximum length of command line arguments
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5066 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5067 if ${lt_cv_sys_max_cmd_len+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070     i=0
5071   teststring="ABCD"
5072
5073   case $build_os in
5074   msdosdjgpp*)
5075     # On DJGPP, this test can blow up pretty badly due to problems in libc
5076     # (any single argument exceeding 2000 bytes causes a buffer overrun
5077     # during glob expansion).  Even if it were fixed, the result of this
5078     # check would be larger than it should be.
5079     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5080     ;;
5081
5082   gnu*)
5083     # Under GNU Hurd, this test is not required because there is
5084     # no limit to the length of command line arguments.
5085     # Libtool will interpret -1 as no limit whatsoever
5086     lt_cv_sys_max_cmd_len=-1;
5087     ;;
5088
5089   cygwin* | mingw* | cegcc*)
5090     # On Win9x/ME, this test blows up -- it succeeds, but takes
5091     # about 5 minutes as the teststring grows exponentially.
5092     # Worse, since 9x/ME are not pre-emptively multitasking,
5093     # you end up with a "frozen" computer, even though with patience
5094     # the test eventually succeeds (with a max line length of 256k).
5095     # Instead, let's just punt: use the minimum linelength reported by
5096     # all of the supported platforms: 8192 (on NT/2K/XP).
5097     lt_cv_sys_max_cmd_len=8192;
5098     ;;
5099
5100   mint*)
5101     # On MiNT this can take a long time and run out of memory.
5102     lt_cv_sys_max_cmd_len=8192;
5103     ;;
5104
5105   amigaos*)
5106     # On AmigaOS with pdksh, this test takes hours, literally.
5107     # So we just punt and use a minimum line length of 8192.
5108     lt_cv_sys_max_cmd_len=8192;
5109     ;;
5110
5111   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5112     # This has been around since 386BSD, at least.  Likely further.
5113     if test -x /sbin/sysctl; then
5114       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5115     elif test -x /usr/sbin/sysctl; then
5116       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5117     else
5118       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5119     fi
5120     # And add a safety zone
5121     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5122     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123     ;;
5124
5125   interix*)
5126     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5127     lt_cv_sys_max_cmd_len=196608
5128     ;;
5129
5130   os2*)
5131     # The test takes a long time on OS/2.
5132     lt_cv_sys_max_cmd_len=8192
5133     ;;
5134
5135   osf*)
5136     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5137     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5138     # nice to cause kernel panics so lets avoid the loop below.
5139     # First set a reasonable default.
5140     lt_cv_sys_max_cmd_len=16384
5141     #
5142     if test -x /sbin/sysconfig; then
5143       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5144         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5145       esac
5146     fi
5147     ;;
5148   sco3.2v5*)
5149     lt_cv_sys_max_cmd_len=102400
5150     ;;
5151   sysv5* | sco5v6* | sysv4.2uw2*)
5152     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5153     if test -n "$kargmax"; then
5154       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5155     else
5156       lt_cv_sys_max_cmd_len=32768
5157     fi
5158     ;;
5159   *)
5160     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5161     if test -n "$lt_cv_sys_max_cmd_len" && \
5162         test undefined != "$lt_cv_sys_max_cmd_len"; then
5163       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165     else
5166       # Make teststring a little bigger before we do anything with it.
5167       # a 1K string should be a reasonable start.
5168       for i in 1 2 3 4 5 6 7 8 ; do
5169         teststring=$teststring$teststring
5170       done
5171       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5172       # If test is not a shell built-in, we'll probably end up computing a
5173       # maximum length that is only half of the actual maximum length, but
5174       # we can't tell.
5175       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5176                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5177               test $i != 17 # 1/2 MB should be enough
5178       do
5179         i=`expr $i + 1`
5180         teststring=$teststring$teststring
5181       done
5182       # Only check the string length outside the loop.
5183       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5184       teststring=
5185       # Add a significant safety factor because C++ compilers can tack on
5186       # massive amounts of additional arguments before passing them to the
5187       # linker.  It appears as though 1/2 is a usable value.
5188       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5189     fi
5190     ;;
5191   esac
5192
5193 fi
5194
5195 if test -n $lt_cv_sys_max_cmd_len ; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5197 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5200 $as_echo "none" >&6; }
5201 fi
5202 max_cmd_len=$lt_cv_sys_max_cmd_len
5203
5204
5205
5206
5207
5208
5209 : ${CP="cp -f"}
5210 : ${MV="mv -f"}
5211 : ${RM="rm -f"}
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5214 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5215 # Try some XSI features
5216 xsi_shell=no
5217 ( _lt_dummy="a/b/c"
5218   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5219       = c,a/b,b/c, \
5220     && eval 'test $(( 1 + 1 )) -eq 2 \
5221     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5222   && xsi_shell=yes
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5224 $as_echo "$xsi_shell" >&6; }
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5228 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5229 lt_shell_append=no
5230 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5231     >/dev/null 2>&1 \
5232   && lt_shell_append=yes
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5234 $as_echo "$lt_shell_append" >&6; }
5235
5236
5237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5238   lt_unset=unset
5239 else
5240   lt_unset=false
5241 fi
5242
5243
5244
5245
5246
5247 # test EBCDIC or ASCII
5248 case `echo X|tr X '\101'` in
5249  A) # ASCII based system
5250     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5251   lt_SP2NL='tr \040 \012'
5252   lt_NL2SP='tr \015\012 \040\040'
5253   ;;
5254  *) # EBCDIC based system
5255   lt_SP2NL='tr \100 \n'
5256   lt_NL2SP='tr \r\n \100\100'
5257   ;;
5258 esac
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5269 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5270 if ${lt_cv_to_host_file_cmd+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   case $host in
5274   *-*-mingw* )
5275     case $build in
5276       *-*-mingw* ) # actually msys
5277         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5278         ;;
5279       *-*-cygwin* )
5280         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5281         ;;
5282       * ) # otherwise, assume *nix
5283         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5284         ;;
5285     esac
5286     ;;
5287   *-*-cygwin* )
5288     case $build in
5289       *-*-mingw* ) # actually msys
5290         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5291         ;;
5292       *-*-cygwin* )
5293         lt_cv_to_host_file_cmd=func_convert_file_noop
5294         ;;
5295       * ) # otherwise, assume *nix
5296         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5297         ;;
5298     esac
5299     ;;
5300   * ) # unhandled hosts (and "normal" native builds)
5301     lt_cv_to_host_file_cmd=func_convert_file_noop
5302     ;;
5303 esac
5304
5305 fi
5306
5307 to_host_file_cmd=$lt_cv_to_host_file_cmd
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5309 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5316 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5317 if ${lt_cv_to_tool_file_cmd+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   #assume ordinary cross tools, or native build.
5321 lt_cv_to_tool_file_cmd=func_convert_file_noop
5322 case $host in
5323   *-*-mingw* )
5324     case $build in
5325       *-*-mingw* ) # actually msys
5326         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5327         ;;
5328     esac
5329     ;;
5330 esac
5331
5332 fi
5333
5334 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5336 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5337
5338
5339
5340
5341
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5343 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5344 if ${lt_cv_ld_reload_flag+:} false; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   lt_cv_ld_reload_flag='-r'
5348 fi
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5350 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5351 reload_flag=$lt_cv_ld_reload_flag
5352 case $reload_flag in
5353 "" | " "*) ;;
5354 *) reload_flag=" $reload_flag" ;;
5355 esac
5356 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5357 case $host_os in
5358   cygwin* | mingw* | pw32* | cegcc*)
5359     if test "$GCC" != yes; then
5360       reload_cmds=false
5361     fi
5362     ;;
5363   darwin*)
5364     if test "$GCC" = yes; then
5365       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5366     else
5367       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5368     fi
5369     ;;
5370 esac
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 if test -n "$ac_tool_prefix"; then
5381   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_OBJDUMP+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   if test -n "$OBJDUMP"; then
5389   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394   IFS=$as_save_IFS
5395   test -z "$as_dir" && as_dir=.
5396     for ac_exec_ext in '' $ac_executable_extensions; do
5397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400     break 2
5401   fi
5402 done
5403   done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 OBJDUMP=$ac_cv_prog_OBJDUMP
5409 if test -n "$OBJDUMP"; then
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5411 $as_echo "$OBJDUMP" >&6; }
5412 else
5413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417
5418 fi
5419 if test -z "$ac_cv_prog_OBJDUMP"; then
5420   ac_ct_OBJDUMP=$OBJDUMP
5421   # Extract the first word of "objdump", so it can be a program name with args.
5422 set dummy objdump; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   if test -n "$ac_ct_OBJDUMP"; then
5429   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436     for ac_exec_ext in '' $ac_executable_extensions; do
5437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443   done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5449 if test -n "$ac_ct_OBJDUMP"; then
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5451 $as_echo "$ac_ct_OBJDUMP" >&6; }
5452 else
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457   if test "x$ac_ct_OBJDUMP" = x; then
5458     OBJDUMP="false"
5459   else
5460     case $cross_compiling:$ac_tool_warned in
5461 yes:)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466     OBJDUMP=$ac_ct_OBJDUMP
5467   fi
5468 else
5469   OBJDUMP="$ac_cv_prog_OBJDUMP"
5470 fi
5471
5472 test -z "$OBJDUMP" && OBJDUMP=objdump
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5483 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5484 if ${lt_cv_deplibs_check_method+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   lt_cv_file_magic_cmd='$MAGIC_CMD'
5488 lt_cv_file_magic_test_file=
5489 lt_cv_deplibs_check_method='unknown'
5490 # Need to set the preceding variable on all platforms that support
5491 # interlibrary dependencies.
5492 # 'none' -- dependencies not supported.
5493 # `unknown' -- same as none, but documents that we really don't know.
5494 # 'pass_all' -- all dependencies passed with no checks.
5495 # 'test_compile' -- check by making test program.
5496 # 'file_magic [[regex]]' -- check by looking for files in library path
5497 # which responds to the $file_magic_cmd with a given extended regex.
5498 # If you have `file' or equivalent on your system and you're not sure
5499 # whether `pass_all' will *always* work, you probably want this one.
5500
5501 case $host_os in
5502 aix[4-9]*)
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 beos*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 bsdi[45]*)
5511   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5512   lt_cv_file_magic_cmd='/usr/bin/file -L'
5513   lt_cv_file_magic_test_file=/shlib/libc.so
5514   ;;
5515
5516 cygwin*)
5517   # func_win32_libid is a shell function defined in ltmain.sh
5518   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5519   lt_cv_file_magic_cmd='func_win32_libid'
5520   ;;
5521
5522 mingw* | pw32*)
5523   # Base MSYS/MinGW do not provide the 'file' command needed by
5524   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5525   # unless we find 'file', for example because we are cross-compiling.
5526   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5527   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5528     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529     lt_cv_file_magic_cmd='func_win32_libid'
5530   else
5531     # Keep this pattern in sync with the one in func_win32_libid.
5532     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5533     lt_cv_file_magic_cmd='$OBJDUMP -f'
5534   fi
5535   ;;
5536
5537 cegcc*)
5538   # use the weaker test based on 'objdump'. See mingw*.
5539   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5540   lt_cv_file_magic_cmd='$OBJDUMP -f'
5541   ;;
5542
5543 darwin* | rhapsody*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 freebsd* | dragonfly*)
5548   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5549     case $host_cpu in
5550     i*86 )
5551       # Not sure whether the presence of OpenBSD here was a mistake.
5552       # Let's accept both of them until this is cleared up.
5553       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5554       lt_cv_file_magic_cmd=/usr/bin/file
5555       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5556       ;;
5557     esac
5558   else
5559     lt_cv_deplibs_check_method=pass_all
5560   fi
5561   ;;
5562
5563 haiku*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 hpux10.20* | hpux11*)
5568   lt_cv_file_magic_cmd=/usr/bin/file
5569   case $host_cpu in
5570   ia64*)
5571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5572     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5573     ;;
5574   hppa*64*)
5575     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5576     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5577     ;;
5578   *)
5579     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5580     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5581     ;;
5582   esac
5583   ;;
5584
5585 interix[3-9]*)
5586   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5587   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5588   ;;
5589
5590 irix5* | irix6* | nonstopux*)
5591   case $LD in
5592   *-32|*"-32 ") libmagic=32-bit;;
5593   *-n32|*"-n32 ") libmagic=N32;;
5594   *-64|*"-64 ") libmagic=64-bit;;
5595   *) libmagic=never-match;;
5596   esac
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 # This must be glibc/ELF.
5601 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 netbsd* | netbsdelf*-gnu)
5606   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5607     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5608   else
5609     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610   fi
5611   ;;
5612
5613 newos6*)
5614   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5615   lt_cv_file_magic_cmd=/usr/bin/file
5616   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5617   ;;
5618
5619 *nto* | *qnx*)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 openbsd*)
5624   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5626   else
5627     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5628   fi
5629   ;;
5630
5631 osf3* | osf4* | osf5*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 rdos*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 solaris*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 sysv4 | sysv4.3*)
5648   case $host_vendor in
5649   motorola)
5650     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]'
5651     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5652     ;;
5653   ncr)
5654     lt_cv_deplibs_check_method=pass_all
5655     ;;
5656   sequent)
5657     lt_cv_file_magic_cmd='/bin/file'
5658     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5659     ;;
5660   sni)
5661     lt_cv_file_magic_cmd='/bin/file'
5662     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5663     lt_cv_file_magic_test_file=/lib/libc.so
5664     ;;
5665   siemens)
5666     lt_cv_deplibs_check_method=pass_all
5667     ;;
5668   pc)
5669     lt_cv_deplibs_check_method=pass_all
5670     ;;
5671   esac
5672   ;;
5673
5674 tpf*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677 esac
5678
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5681 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5682
5683 file_magic_glob=
5684 want_nocaseglob=no
5685 if test "$build" = "$host"; then
5686   case $host_os in
5687   mingw* | pw32*)
5688     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5689       want_nocaseglob=yes
5690     else
5691       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5692     fi
5693     ;;
5694   esac
5695 fi
5696
5697 file_magic_cmd=$lt_cv_file_magic_cmd
5698 deplibs_check_method=$lt_cv_deplibs_check_method
5699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 if test -n "$ac_tool_prefix"; then
5723   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_DLLTOOL+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if test -n "$DLLTOOL"; then
5731   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 DLLTOOL=$ac_cv_prog_DLLTOOL
5751 if test -n "$DLLTOOL"; then
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5753 $as_echo "$DLLTOOL" >&6; }
5754 else
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 fi
5761 if test -z "$ac_cv_prog_DLLTOOL"; then
5762   ac_ct_DLLTOOL=$DLLTOOL
5763   # Extract the first word of "dlltool", so it can be a program name with args.
5764 set dummy dlltool; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   if test -n "$ac_ct_DLLTOOL"; then
5771   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785   done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5791 if test -n "$ac_ct_DLLTOOL"; then
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5793 $as_echo "$ac_ct_DLLTOOL" >&6; }
5794 else
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799   if test "x$ac_ct_DLLTOOL" = x; then
5800     DLLTOOL="false"
5801   else
5802     case $cross_compiling:$ac_tool_warned in
5803 yes:)
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808     DLLTOOL=$ac_ct_DLLTOOL
5809   fi
5810 else
5811   DLLTOOL="$ac_cv_prog_DLLTOOL"
5812 fi
5813
5814 test -z "$DLLTOOL" && DLLTOOL=dlltool
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5826 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5827 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5828   $as_echo_n "(cached) " >&6
5829 else
5830   lt_cv_sharedlib_from_linklib_cmd='unknown'
5831
5832 case $host_os in
5833 cygwin* | mingw* | pw32* | cegcc*)
5834   # two different shell functions defined in ltmain.sh
5835   # decide which to use based on capabilities of $DLLTOOL
5836   case `$DLLTOOL --help 2>&1` in
5837   *--identify-strict*)
5838     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5839     ;;
5840   *)
5841     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5842     ;;
5843   esac
5844   ;;
5845 *)
5846   # fallback: assume linklib IS sharedlib
5847   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5848   ;;
5849 esac
5850
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5853 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5854 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5855 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5856
5857
5858
5859
5860
5861
5862
5863 if test -n "$ac_tool_prefix"; then
5864   for ac_prog in ar
5865   do
5866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if ${ac_cv_prog_AR+:} false; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if test -n "$AR"; then
5874   ac_cv_prog_AR="$AR" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 AR=$ac_cv_prog_AR
5894 if test -n "$AR"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5896 $as_echo "$AR" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902
5903     test -n "$AR" && break
5904   done
5905 fi
5906 if test -z "$AR"; then
5907   ac_ct_AR=$AR
5908   for ac_prog in ar
5909 do
5910   # Extract the first word of "$ac_prog", so it can be a program name with args.
5911 set dummy $ac_prog; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if test -n "$ac_ct_AR"; then
5918   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927     ac_cv_prog_ac_ct_AR="$ac_prog"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5938 if test -n "$ac_ct_AR"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5940 $as_echo "$ac_ct_AR" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946
5947   test -n "$ac_ct_AR" && break
5948 done
5949
5950   if test "x$ac_ct_AR" = x; then
5951     AR="false"
5952   else
5953     case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957 ac_tool_warned=yes ;;
5958 esac
5959     AR=$ac_ct_AR
5960   fi
5961 fi
5962
5963 : ${AR=ar}
5964 : ${AR_FLAGS=cru}
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5977 $as_echo_n "checking for archiver @FILE support... " >&6; }
5978 if ${lt_cv_ar_at_file+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   lt_cv_ar_at_file=no
5982    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h.  */
5984
5985 int
5986 main ()
5987 {
5988
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"; then :
5994   echo conftest.$ac_objext > conftest.lst
5995       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5996       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5997   (eval $lt_ar_try) 2>&5
5998   ac_status=$?
5999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000   test $ac_status = 0; }
6001       if test "$ac_status" -eq 0; then
6002         # Ensure the archiver fails upon bogus file names.
6003         rm -f conftest.$ac_objext libconftest.a
6004         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6005   (eval $lt_ar_try) 2>&5
6006   ac_status=$?
6007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008   test $ac_status = 0; }
6009         if test "$ac_status" -ne 0; then
6010           lt_cv_ar_at_file=@
6011         fi
6012       fi
6013       rm -f conftest.* libconftest.a
6014
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6020 $as_echo "$lt_cv_ar_at_file" >&6; }
6021
6022 if test "x$lt_cv_ar_at_file" = xno; then
6023   archiver_list_spec=
6024 else
6025   archiver_list_spec=$lt_cv_ar_at_file
6026 fi
6027
6028
6029
6030
6031
6032
6033
6034 if test -n "$ac_tool_prefix"; then
6035   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}strip; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_STRIP+:} false; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   if test -n "$STRIP"; then
6043   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057   done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 STRIP=$ac_cv_prog_STRIP
6063 if test -n "$STRIP"; then
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6065 $as_echo "$STRIP" >&6; }
6066 else
6067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071
6072 fi
6073 if test -z "$ac_cv_prog_STRIP"; then
6074   ac_ct_STRIP=$STRIP
6075   # Extract the first word of "strip", so it can be a program name with args.
6076 set dummy strip; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6080   $as_echo_n "(cached) " >&6
6081 else
6082   if test -n "$ac_ct_STRIP"; then
6083   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090     for ac_exec_ext in '' $ac_executable_extensions; do
6091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092     ac_cv_prog_ac_ct_STRIP="strip"
6093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097   done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6103 if test -n "$ac_ct_STRIP"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6105 $as_echo "$ac_ct_STRIP" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111   if test "x$ac_ct_STRIP" = x; then
6112     STRIP=":"
6113   else
6114     case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120     STRIP=$ac_ct_STRIP
6121   fi
6122 else
6123   STRIP="$ac_cv_prog_STRIP"
6124 fi
6125
6126 test -z "$STRIP" && STRIP=:
6127
6128
6129
6130
6131
6132
6133 if test -n "$ac_tool_prefix"; then
6134   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_RANLIB+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if test -n "$RANLIB"; then
6142   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149     for ac_exec_ext in '' $ac_executable_extensions; do
6150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156   done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 RANLIB=$ac_cv_prog_RANLIB
6162 if test -n "$RANLIB"; then
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6164 $as_echo "$RANLIB" >&6; }
6165 else
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 fi
6169
6170
6171 fi
6172 if test -z "$ac_cv_prog_RANLIB"; then
6173   ac_ct_RANLIB=$RANLIB
6174   # Extract the first word of "ranlib", so it can be a program name with args.
6175 set dummy ranlib; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181   if test -n "$ac_ct_RANLIB"; then
6182   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189     for ac_exec_ext in '' $ac_executable_extensions; do
6190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191     ac_cv_prog_ac_ct_RANLIB="ranlib"
6192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196   done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6202 if test -n "$ac_ct_RANLIB"; then
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6204 $as_echo "$ac_ct_RANLIB" >&6; }
6205 else
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6208 fi
6209
6210   if test "x$ac_ct_RANLIB" = x; then
6211     RANLIB=":"
6212   else
6213     case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217 ac_tool_warned=yes ;;
6218 esac
6219     RANLIB=$ac_ct_RANLIB
6220   fi
6221 else
6222   RANLIB="$ac_cv_prog_RANLIB"
6223 fi
6224
6225 test -z "$RANLIB" && RANLIB=:
6226
6227
6228
6229
6230
6231
6232 # Determine commands to create old-style static archives.
6233 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6234 old_postinstall_cmds='chmod 644 $oldlib'
6235 old_postuninstall_cmds=
6236
6237 if test -n "$RANLIB"; then
6238   case $host_os in
6239   openbsd*)
6240     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6241     ;;
6242   *)
6243     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6244     ;;
6245   esac
6246   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6247 fi
6248
6249 case $host_os in
6250   darwin*)
6251     lock_old_archive_extraction=yes ;;
6252   *)
6253     lock_old_archive_extraction=no ;;
6254 esac
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294 # If no C compiler was specified, use CC.
6295 LTCC=${LTCC-"$CC"}
6296
6297 # If no C compiler flags were specified, use CFLAGS.
6298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6299
6300 # Allow CC to be a program name with arguments.
6301 compiler=$CC
6302
6303
6304 # Check for command to grab the raw symbol name followed by C symbol from nm.
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6306 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6307 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6308   $as_echo_n "(cached) " >&6
6309 else
6310
6311 # These are sane defaults that work on at least a few old systems.
6312 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6313
6314 # Character class describing NM global symbol codes.
6315 symcode='[BCDEGRST]'
6316
6317 # Regexp to match symbols that can be accessed directly from C.
6318 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6319
6320 # Define system-specific variables.
6321 case $host_os in
6322 aix*)
6323   symcode='[BCDT]'
6324   ;;
6325 cygwin* | mingw* | pw32* | cegcc*)
6326   symcode='[ABCDGISTW]'
6327   ;;
6328 hpux*)
6329   if test "$host_cpu" = ia64; then
6330     symcode='[ABCDEGRST]'
6331   fi
6332   ;;
6333 irix* | nonstopux*)
6334   symcode='[BCDEGRST]'
6335   ;;
6336 osf*)
6337   symcode='[BCDEGQRST]'
6338   ;;
6339 solaris*)
6340   symcode='[BDRT]'
6341   ;;
6342 sco3.2v5*)
6343   symcode='[DT]'
6344   ;;
6345 sysv4.2uw2*)
6346   symcode='[DT]'
6347   ;;
6348 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6349   symcode='[ABDT]'
6350   ;;
6351 sysv4)
6352   symcode='[DFNSTU]'
6353   ;;
6354 esac
6355
6356 # If we're using GNU nm, then use its standard symbol codes.
6357 case `$NM -V 2>&1` in
6358 *GNU* | *'with BFD'*)
6359   symcode='[ABCDGIRSTW]' ;;
6360 esac
6361
6362 # Transform an extracted symbol line into a proper C declaration.
6363 # Some systems (esp. on ia64) link data and code symbols differently,
6364 # so use this general approach.
6365 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6366
6367 # Transform an extracted symbol line into symbol name and symbol address
6368 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6369 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'"
6370
6371 # Handle CRLF in mingw tool chain
6372 opt_cr=
6373 case $build_os in
6374 mingw*)
6375   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6376   ;;
6377 esac
6378
6379 # Try without a prefix underscore, then with it.
6380 for ac_symprfx in "" "_"; do
6381
6382   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6383   symxfrm="\\1 $ac_symprfx\\2 \\2"
6384
6385   # Write the raw and C identifiers.
6386   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6387     # Fake it for dumpbin and say T for any non-static function
6388     # and D for any global variable.
6389     # Also find C++ and __fastcall symbols from MSVC++,
6390     # which start with @ or ?.
6391     lt_cv_sys_global_symbol_pipe="$AWK '"\
6392 "     {last_section=section; section=\$ 3};"\
6393 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6394 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6395 "     \$ 0!~/External *\|/{next};"\
6396 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6397 "     {if(hide[section]) next};"\
6398 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6399 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6400 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6401 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6402 "     ' prfx=^$ac_symprfx"
6403   else
6404     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6405   fi
6406   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6407
6408   # Check to see that the pipe works correctly.
6409   pipe_works=no
6410
6411   rm -f conftest*
6412   cat > conftest.$ac_ext <<_LT_EOF
6413 #ifdef __cplusplus
6414 extern "C" {
6415 #endif
6416 char nm_test_var;
6417 void nm_test_func(void);
6418 void nm_test_func(void){}
6419 #ifdef __cplusplus
6420 }
6421 #endif
6422 int main(){nm_test_var='a';nm_test_func();return(0);}
6423 _LT_EOF
6424
6425   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6426   (eval $ac_compile) 2>&5
6427   ac_status=$?
6428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429   test $ac_status = 0; }; then
6430     # Now try to grab the symbols.
6431     nlist=conftest.nm
6432     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6433   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6434   ac_status=$?
6435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436   test $ac_status = 0; } && test -s "$nlist"; then
6437       # Try sorting and uniquifying the output.
6438       if sort "$nlist" | uniq > "$nlist"T; then
6439         mv -f "$nlist"T "$nlist"
6440       else
6441         rm -f "$nlist"T
6442       fi
6443
6444       # Make sure that we snagged all the symbols we need.
6445       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6446         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6447           cat <<_LT_EOF > conftest.$ac_ext
6448 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6449 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6450 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6451    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6452 # define LT_DLSYM_CONST
6453 #elif defined(__osf__)
6454 /* This system does not cope well with relocations in const data.  */
6455 # define LT_DLSYM_CONST
6456 #else
6457 # define LT_DLSYM_CONST const
6458 #endif
6459
6460 #ifdef __cplusplus
6461 extern "C" {
6462 #endif
6463
6464 _LT_EOF
6465           # Now generate the symbol file.
6466           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6467
6468           cat <<_LT_EOF >> conftest.$ac_ext
6469
6470 /* The mapping between symbol names and symbols.  */
6471 LT_DLSYM_CONST struct {
6472   const char *name;
6473   void       *address;
6474 }
6475 lt__PROGRAM__LTX_preloaded_symbols[] =
6476 {
6477   { "@PROGRAM@", (void *) 0 },
6478 _LT_EOF
6479           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6480           cat <<\_LT_EOF >> conftest.$ac_ext
6481   {0, (void *) 0}
6482 };
6483
6484 /* This works around a problem in FreeBSD linker */
6485 #ifdef FREEBSD_WORKAROUND
6486 static const void *lt_preloaded_setup() {
6487   return lt__PROGRAM__LTX_preloaded_symbols;
6488 }
6489 #endif
6490
6491 #ifdef __cplusplus
6492 }
6493 #endif
6494 _LT_EOF
6495           # Now try linking the two files.
6496           mv conftest.$ac_objext conftstm.$ac_objext
6497           lt_globsym_save_LIBS=$LIBS
6498           lt_globsym_save_CFLAGS=$CFLAGS
6499           LIBS="conftstm.$ac_objext"
6500           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6501           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6502   (eval $ac_link) 2>&5
6503   ac_status=$?
6504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6506             pipe_works=yes
6507           fi
6508           LIBS=$lt_globsym_save_LIBS
6509           CFLAGS=$lt_globsym_save_CFLAGS
6510         else
6511           echo "cannot find nm_test_func in $nlist" >&5
6512         fi
6513       else
6514         echo "cannot find nm_test_var in $nlist" >&5
6515       fi
6516     else
6517       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6518     fi
6519   else
6520     echo "$progname: failed program was:" >&5
6521     cat conftest.$ac_ext >&5
6522   fi
6523   rm -rf conftest* conftst*
6524
6525   # Do not use the global_symbol_pipe unless it works.
6526   if test "$pipe_works" = yes; then
6527     break
6528   else
6529     lt_cv_sys_global_symbol_pipe=
6530   fi
6531 done
6532
6533 fi
6534
6535 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6536   lt_cv_sys_global_symbol_to_cdecl=
6537 fi
6538 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6540 $as_echo "failed" >&6; }
6541 else
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6543 $as_echo "ok" >&6; }
6544 fi
6545
6546 # Response file support.
6547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6548   nm_file_list_spec='@'
6549 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6550   nm_file_list_spec='@'
6551 fi
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6580 $as_echo_n "checking for sysroot... " >&6; }
6581
6582 # Check whether --with-sysroot was given.
6583 if test "${with_sysroot+set}" = set; then :
6584   withval=$with_sysroot;
6585 else
6586   with_sysroot=no
6587 fi
6588
6589
6590 lt_sysroot=
6591 case ${with_sysroot} in #(
6592  yes)
6593    if test "$GCC" = yes; then
6594      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6595    fi
6596    ;; #(
6597  /*)
6598    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6599    ;; #(
6600  no|'')
6601    ;; #(
6602  *)
6603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6604 $as_echo "${with_sysroot}" >&6; }
6605    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6606    ;;
6607 esac
6608
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6610 $as_echo "${lt_sysroot:-no}" >&6; }
6611
6612
6613
6614
6615
6616 # Check whether --enable-libtool-lock was given.
6617 if test "${enable_libtool_lock+set}" = set; then :
6618   enableval=$enable_libtool_lock;
6619 fi
6620
6621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6622
6623 # Some flags need to be propagated to the compiler or linker for good
6624 # libtool support.
6625 case $host in
6626 ia64-*-hpux*)
6627   # Find out which ABI we are using.
6628   echo 'int i;' > conftest.$ac_ext
6629   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6630   (eval $ac_compile) 2>&5
6631   ac_status=$?
6632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633   test $ac_status = 0; }; then
6634     case `/usr/bin/file conftest.$ac_objext` in
6635       *ELF-32*)
6636         HPUX_IA64_MODE="32"
6637         ;;
6638       *ELF-64*)
6639         HPUX_IA64_MODE="64"
6640         ;;
6641     esac
6642   fi
6643   rm -rf conftest*
6644   ;;
6645 *-*-irix6*)
6646   # Find out which ABI we are using.
6647   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6648   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649   (eval $ac_compile) 2>&5
6650   ac_status=$?
6651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652   test $ac_status = 0; }; then
6653     if test "$lt_cv_prog_gnu_ld" = yes; then
6654       case `/usr/bin/file conftest.$ac_objext` in
6655         *32-bit*)
6656           LD="${LD-ld} -melf32bsmip"
6657           ;;
6658         *N32*)
6659           LD="${LD-ld} -melf32bmipn32"
6660           ;;
6661         *64-bit*)
6662           LD="${LD-ld} -melf64bmip"
6663         ;;
6664       esac
6665     else
6666       case `/usr/bin/file conftest.$ac_objext` in
6667         *32-bit*)
6668           LD="${LD-ld} -32"
6669           ;;
6670         *N32*)
6671           LD="${LD-ld} -n32"
6672           ;;
6673         *64-bit*)
6674           LD="${LD-ld} -64"
6675           ;;
6676       esac
6677     fi
6678   fi
6679   rm -rf conftest*
6680   ;;
6681
6682 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6683 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6684   # Find out which ABI we are using.
6685   echo 'int i;' > conftest.$ac_ext
6686   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687   (eval $ac_compile) 2>&5
6688   ac_status=$?
6689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690   test $ac_status = 0; }; then
6691     case `/usr/bin/file conftest.o` in
6692       *32-bit*)
6693         case $host in
6694           x86_64-*kfreebsd*-gnu)
6695             LD="${LD-ld} -m elf_i386_fbsd"
6696             ;;
6697           x86_64-*linux*)
6698             case `/usr/bin/file conftest.o` in
6699               *x86-64*)
6700                 LD="${LD-ld} -m elf32_x86_64"
6701                 ;;
6702               *)
6703                 LD="${LD-ld} -m elf_i386"
6704                 ;;
6705             esac
6706             ;;
6707           ppc64-*linux*|powerpc64-*linux*)
6708             LD="${LD-ld} -m elf32ppclinux"
6709             ;;
6710           s390x-*linux*)
6711             LD="${LD-ld} -m elf_s390"
6712             ;;
6713           sparc64-*linux*)
6714             LD="${LD-ld} -m elf32_sparc"
6715             ;;
6716         esac
6717         ;;
6718       *64-bit*)
6719         case $host in
6720           x86_64-*kfreebsd*-gnu)
6721             LD="${LD-ld} -m elf_x86_64_fbsd"
6722             ;;
6723           x86_64-*linux*)
6724             LD="${LD-ld} -m elf_x86_64"
6725             ;;
6726           ppc*-*linux*|powerpc*-*linux*)
6727             LD="${LD-ld} -m elf64ppc"
6728             ;;
6729           s390*-*linux*|s390*-*tpf*)
6730             LD="${LD-ld} -m elf64_s390"
6731             ;;
6732           sparc*-*linux*)
6733             LD="${LD-ld} -m elf64_sparc"
6734             ;;
6735         esac
6736         ;;
6737     esac
6738   fi
6739   rm -rf conftest*
6740   ;;
6741
6742 *-*-sco3.2v5*)
6743   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6744   SAVE_CFLAGS="$CFLAGS"
6745   CFLAGS="$CFLAGS -belf"
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6747 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6748 if ${lt_cv_cc_needs_belf+:} false; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   ac_ext=c
6752 ac_cpp='$CPP $CPPFLAGS'
6753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6756
6757      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759
6760 int
6761 main ()
6762 {
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_link "$LINENO"; then :
6769   lt_cv_cc_needs_belf=yes
6770 else
6771   lt_cv_cc_needs_belf=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext \
6774     conftest$ac_exeext conftest.$ac_ext
6775      ac_ext=c
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780
6781 fi
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6783 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6784   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6785     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6786     CFLAGS="$SAVE_CFLAGS"
6787   fi
6788   ;;
6789 *-*solaris*)
6790   # Find out which ABI we are using.
6791   echo 'int i;' > conftest.$ac_ext
6792   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6793   (eval $ac_compile) 2>&5
6794   ac_status=$?
6795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796   test $ac_status = 0; }; then
6797     case `/usr/bin/file conftest.o` in
6798     *64-bit*)
6799       case $lt_cv_prog_gnu_ld in
6800       yes*)
6801         case $host in
6802         i?86-*-solaris*)
6803           LD="${LD-ld} -m elf_x86_64"
6804           ;;
6805         sparc*-*-solaris*)
6806           LD="${LD-ld} -m elf64_sparc"
6807           ;;
6808         esac
6809         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6810         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6811           LD="${LD-ld}_sol2"
6812         fi
6813         ;;
6814       *)
6815         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6816           LD="${LD-ld} -64"
6817         fi
6818         ;;
6819       esac
6820       ;;
6821     esac
6822   fi
6823   rm -rf conftest*
6824   ;;
6825 esac
6826
6827 need_locks="$enable_libtool_lock"
6828
6829 if test -n "$ac_tool_prefix"; then
6830   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6831 set dummy ${ac_tool_prefix}mt; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   if test -n "$MANIFEST_TOOL"; then
6838   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845     for ac_exec_ext in '' $ac_executable_extensions; do
6846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852   done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6858 if test -n "$MANIFEST_TOOL"; then
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6860 $as_echo "$MANIFEST_TOOL" >&6; }
6861 else
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866
6867 fi
6868 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6869   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6870   # Extract the first word of "mt", so it can be a program name with args.
6871 set dummy mt; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6875   $as_echo_n "(cached) " >&6
6876 else
6877   if test -n "$ac_ct_MANIFEST_TOOL"; then
6878   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885     for ac_exec_ext in '' $ac_executable_extensions; do
6886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892   done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6898 if test -n "$ac_ct_MANIFEST_TOOL"; then
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6900 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6901 else
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6907     MANIFEST_TOOL=":"
6908   else
6909     case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6916   fi
6917 else
6918   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6919 fi
6920
6921 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6923 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6924 if ${lt_cv_path_mainfest_tool+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   lt_cv_path_mainfest_tool=no
6928   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6929   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6930   cat conftest.err >&5
6931   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6932     lt_cv_path_mainfest_tool=yes
6933   fi
6934   rm -f conftest*
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6937 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6938 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6939   MANIFEST_TOOL=:
6940 fi
6941
6942
6943
6944
6945
6946
6947   case $host_os in
6948     rhapsody* | darwin*)
6949     if test -n "$ac_tool_prefix"; then
6950   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   if test -n "$DSYMUTIL"; then
6958   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965     for ac_exec_ext in '' $ac_executable_extensions; do
6966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972   done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6978 if test -n "$DSYMUTIL"; then
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6980 $as_echo "$DSYMUTIL" >&6; }
6981 else
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986
6987 fi
6988 if test -z "$ac_cv_prog_DSYMUTIL"; then
6989   ac_ct_DSYMUTIL=$DSYMUTIL
6990   # Extract the first word of "dsymutil", so it can be a program name with args.
6991 set dummy dsymutil; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$ac_ct_DSYMUTIL"; then
6998   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7018 if test -n "$ac_ct_DSYMUTIL"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026   if test "x$ac_ct_DSYMUTIL" = x; then
7027     DSYMUTIL=":"
7028   else
7029     case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7034 esac
7035     DSYMUTIL=$ac_ct_DSYMUTIL
7036   fi
7037 else
7038   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7039 fi
7040
7041     if test -n "$ac_tool_prefix"; then
7042   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_NMEDIT+:} false; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test -n "$NMEDIT"; then
7050   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064   done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 NMEDIT=$ac_cv_prog_NMEDIT
7070 if test -n "$NMEDIT"; then
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7072 $as_echo "$NMEDIT" >&6; }
7073 else
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078
7079 fi
7080 if test -z "$ac_cv_prog_NMEDIT"; then
7081   ac_ct_NMEDIT=$NMEDIT
7082   # Extract the first word of "nmedit", so it can be a program name with args.
7083 set dummy nmedit; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if test -n "$ac_ct_NMEDIT"; then
7090   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7110 if test -n "$ac_ct_NMEDIT"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7112 $as_echo "$ac_ct_NMEDIT" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118   if test "x$ac_ct_NMEDIT" = x; then
7119     NMEDIT=":"
7120   else
7121     case $cross_compiling:$ac_tool_warned in
7122 yes:)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125 ac_tool_warned=yes ;;
7126 esac
7127     NMEDIT=$ac_ct_NMEDIT
7128   fi
7129 else
7130   NMEDIT="$ac_cv_prog_NMEDIT"
7131 fi
7132
7133     if test -n "$ac_tool_prefix"; then
7134   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_LIPO+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   if test -n "$LIPO"; then
7142   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 LIPO=$ac_cv_prog_LIPO
7162 if test -n "$LIPO"; then
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7164 $as_echo "$LIPO" >&6; }
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170
7171 fi
7172 if test -z "$ac_cv_prog_LIPO"; then
7173   ac_ct_LIPO=$LIPO
7174   # Extract the first word of "lipo", so it can be a program name with args.
7175 set dummy lipo; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   if test -n "$ac_ct_LIPO"; then
7182   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189     for ac_exec_ext in '' $ac_executable_extensions; do
7190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191     ac_cv_prog_ac_ct_LIPO="lipo"
7192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196   done
7197 IFS=$as_save_IFS
7198
7199 fi
7200 fi
7201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7202 if test -n "$ac_ct_LIPO"; then
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7204 $as_echo "$ac_ct_LIPO" >&6; }
7205 else
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210   if test "x$ac_ct_LIPO" = x; then
7211     LIPO=":"
7212   else
7213     case $cross_compiling:$ac_tool_warned in
7214 yes:)
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219     LIPO=$ac_ct_LIPO
7220   fi
7221 else
7222   LIPO="$ac_cv_prog_LIPO"
7223 fi
7224
7225     if test -n "$ac_tool_prefix"; then
7226   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}otool; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_OTOOL+:} false; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$OTOOL"; then
7234   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 OTOOL=$ac_cv_prog_OTOOL
7254 if test -n "$OTOOL"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7256 $as_echo "$OTOOL" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263 fi
7264 if test -z "$ac_cv_prog_OTOOL"; then
7265   ac_ct_OTOOL=$OTOOL
7266   # Extract the first word of "otool", so it can be a program name with args.
7267 set dummy otool; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   if test -n "$ac_ct_OTOOL"; then
7274   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281     for ac_exec_ext in '' $ac_executable_extensions; do
7282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283     ac_cv_prog_ac_ct_OTOOL="otool"
7284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288   done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7294 if test -n "$ac_ct_OTOOL"; then
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7296 $as_echo "$ac_ct_OTOOL" >&6; }
7297 else
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302   if test "x$ac_ct_OTOOL" = x; then
7303     OTOOL=":"
7304   else
7305     case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311     OTOOL=$ac_ct_OTOOL
7312   fi
7313 else
7314   OTOOL="$ac_cv_prog_OTOOL"
7315 fi
7316
7317     if test -n "$ac_tool_prefix"; then
7318   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_OTOOL64+:} false; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$OTOOL64"; then
7326   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 OTOOL64=$ac_cv_prog_OTOOL64
7346 if test -n "$OTOOL64"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7348 $as_echo "$OTOOL64" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_OTOOL64"; then
7357   ac_ct_OTOOL64=$OTOOL64
7358   # Extract the first word of "otool64", so it can be a program name with args.
7359 set dummy otool64; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   if test -n "$ac_ct_OTOOL64"; then
7366   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375     ac_cv_prog_ac_ct_OTOOL64="otool64"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7386 if test -n "$ac_ct_OTOOL64"; then
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7388 $as_echo "$ac_ct_OTOOL64" >&6; }
7389 else
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394   if test "x$ac_ct_OTOOL64" = x; then
7395     OTOOL64=":"
7396   else
7397     case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403     OTOOL64=$ac_ct_OTOOL64
7404   fi
7405 else
7406   OTOOL64="$ac_cv_prog_OTOOL64"
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7436 $as_echo_n "checking for -single_module linker flag... " >&6; }
7437 if ${lt_cv_apple_cc_single_mod+:} false; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   lt_cv_apple_cc_single_mod=no
7441       if test -z "${LT_MULTI_MODULE}"; then
7442         # By default we will add the -single_module flag. You can override
7443         # by either setting the environment variable LT_MULTI_MODULE
7444         # non-empty at configure time, or by adding -multi_module to the
7445         # link flags.
7446         rm -rf libconftest.dylib*
7447         echo "int foo(void){return 1;}" > conftest.c
7448         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7449 -dynamiclib -Wl,-single_module conftest.c" >&5
7450         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7451           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7452         _lt_result=$?
7453         # If there is a non-empty error log, and "single_module"
7454         # appears in it, assume the flag caused a linker warning
7455         if test -s conftest.err && $GREP single_module conftest.err; then
7456           cat conftest.err >&5
7457         # Otherwise, if the output was created with a 0 exit code from
7458         # the compiler, it worked.
7459         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7460           lt_cv_apple_cc_single_mod=yes
7461         else
7462           cat conftest.err >&5
7463         fi
7464         rm -rf libconftest.dylib*
7465         rm -f conftest.*
7466       fi
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7469 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7470
7471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7472 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7473 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   lt_cv_ld_exported_symbols_list=no
7477       save_LDFLAGS=$LDFLAGS
7478       echo "_main" > conftest.sym
7479       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7480       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482
7483 int
7484 main ()
7485 {
7486
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 if ac_fn_c_try_link "$LINENO"; then :
7492   lt_cv_ld_exported_symbols_list=yes
7493 else
7494   lt_cv_ld_exported_symbols_list=no
7495 fi
7496 rm -f core conftest.err conftest.$ac_objext \
7497     conftest$ac_exeext conftest.$ac_ext
7498         LDFLAGS="$save_LDFLAGS"
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7502 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7503
7504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7505 $as_echo_n "checking for -force_load linker flag... " >&6; }
7506 if ${lt_cv_ld_force_load+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   lt_cv_ld_force_load=no
7510       cat > conftest.c << _LT_EOF
7511 int forced_loaded() { return 2;}
7512 _LT_EOF
7513       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7514       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7515       echo "$AR cru libconftest.a conftest.o" >&5
7516       $AR cru libconftest.a conftest.o 2>&5
7517       echo "$RANLIB libconftest.a" >&5
7518       $RANLIB libconftest.a 2>&5
7519       cat > conftest.c << _LT_EOF
7520 int main() { return 0;}
7521 _LT_EOF
7522       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7523       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7524       _lt_result=$?
7525       if test -s conftest.err && $GREP force_load conftest.err; then
7526         cat conftest.err >&5
7527       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7528         lt_cv_ld_force_load=yes
7529       else
7530         cat conftest.err >&5
7531       fi
7532         rm -f conftest.err libconftest.a conftest conftest.c
7533         rm -rf conftest.dSYM
7534
7535 fi
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7537 $as_echo "$lt_cv_ld_force_load" >&6; }
7538     case $host_os in
7539     rhapsody* | darwin1.[012])
7540       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7541     darwin1.*)
7542       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7543     darwin*) # darwin 5.x on
7544       # if running on 10.5 or later, the deployment target defaults
7545       # to the OS version, if on x86, and 10.4, the deployment
7546       # target defaults to 10.4. Don't you love it?
7547       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7548         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7549           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7550         10.[012]*)
7551           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7552         10.*)
7553           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7554       esac
7555     ;;
7556   esac
7557     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7558       _lt_dar_single_mod='$single_module'
7559     fi
7560     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7561       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7562     else
7563       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7564     fi
7565     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7566       _lt_dsymutil='~$DSYMUTIL $lib || :'
7567     else
7568       _lt_dsymutil=
7569     fi
7570     ;;
7571   esac
7572
7573 ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7579 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7580 # On Suns, sometimes $CPP names a directory.
7581 if test -n "$CPP" && test -d "$CPP"; then
7582   CPP=
7583 fi
7584 if test -z "$CPP"; then
7585   if ${ac_cv_prog_CPP+:} false; then :
7586   $as_echo_n "(cached) " >&6
7587 else
7588       # Double quotes because CPP needs to be expanded
7589     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7590     do
7591       ac_preproc_ok=false
7592 for ac_c_preproc_warn_flag in '' yes
7593 do
7594   # Use a header file that comes with gcc, so configuring glibc
7595   # with a fresh cross-compiler works.
7596   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7597   # <limits.h> exists even on freestanding compilers.
7598   # On the NeXT, cc -E runs the code through the compiler's parser,
7599   # not just through cpp. "Syntax error" is here to catch this case.
7600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h.  */
7602 #ifdef __STDC__
7603 # include <limits.h>
7604 #else
7605 # include <assert.h>
7606 #endif
7607                      Syntax error
7608 _ACEOF
7609 if ac_fn_c_try_cpp "$LINENO"; then :
7610
7611 else
7612   # Broken: fails on valid input.
7613 continue
7614 fi
7615 rm -f conftest.err conftest.i conftest.$ac_ext
7616
7617   # OK, works on sane cases.  Now check whether nonexistent headers
7618   # can be detected and how.
7619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h.  */
7621 #include <ac_nonexistent.h>
7622 _ACEOF
7623 if ac_fn_c_try_cpp "$LINENO"; then :
7624   # Broken: success on invalid input.
7625 continue
7626 else
7627   # Passes both tests.
7628 ac_preproc_ok=:
7629 break
7630 fi
7631 rm -f conftest.err conftest.i conftest.$ac_ext
7632
7633 done
7634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7635 rm -f conftest.i conftest.err conftest.$ac_ext
7636 if $ac_preproc_ok; then :
7637   break
7638 fi
7639
7640     done
7641     ac_cv_prog_CPP=$CPP
7642
7643 fi
7644   CPP=$ac_cv_prog_CPP
7645 else
7646   ac_cv_prog_CPP=$CPP
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7649 $as_echo "$CPP" >&6; }
7650 ac_preproc_ok=false
7651 for ac_c_preproc_warn_flag in '' yes
7652 do
7653   # Use a header file that comes with gcc, so configuring glibc
7654   # with a fresh cross-compiler works.
7655   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7656   # <limits.h> exists even on freestanding compilers.
7657   # On the NeXT, cc -E runs the code through the compiler's parser,
7658   # not just through cpp. "Syntax error" is here to catch this case.
7659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h.  */
7661 #ifdef __STDC__
7662 # include <limits.h>
7663 #else
7664 # include <assert.h>
7665 #endif
7666                      Syntax error
7667 _ACEOF
7668 if ac_fn_c_try_cpp "$LINENO"; then :
7669
7670 else
7671   # Broken: fails on valid input.
7672 continue
7673 fi
7674 rm -f conftest.err conftest.i conftest.$ac_ext
7675
7676   # OK, works on sane cases.  Now check whether nonexistent headers
7677   # can be detected and how.
7678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h.  */
7680 #include <ac_nonexistent.h>
7681 _ACEOF
7682 if ac_fn_c_try_cpp "$LINENO"; then :
7683   # Broken: success on invalid input.
7684 continue
7685 else
7686   # Passes both tests.
7687 ac_preproc_ok=:
7688 break
7689 fi
7690 rm -f conftest.err conftest.i conftest.$ac_ext
7691
7692 done
7693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7694 rm -f conftest.i conftest.err conftest.$ac_ext
7695 if $ac_preproc_ok; then :
7696
7697 else
7698   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7700 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7701 See \`config.log' for more details" "$LINENO" 5; }
7702 fi
7703
7704 ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7712 $as_echo_n "checking for ANSI C header files... " >&6; }
7713 if ${ac_cv_header_stdc+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718 #include <stdlib.h>
7719 #include <stdarg.h>
7720 #include <string.h>
7721 #include <float.h>
7722
7723 int
7724 main ()
7725 {
7726
7727   ;
7728   return 0;
7729 }
7730 _ACEOF
7731 if ac_fn_c_try_compile "$LINENO"; then :
7732   ac_cv_header_stdc=yes
7733 else
7734   ac_cv_header_stdc=no
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737
7738 if test $ac_cv_header_stdc = yes; then
7739   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h.  */
7742 #include <string.h>
7743
7744 _ACEOF
7745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7746   $EGREP "memchr" >/dev/null 2>&1; then :
7747
7748 else
7749   ac_cv_header_stdc=no
7750 fi
7751 rm -f conftest*
7752
7753 fi
7754
7755 if test $ac_cv_header_stdc = yes; then
7756   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h.  */
7759 #include <stdlib.h>
7760
7761 _ACEOF
7762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7763   $EGREP "free" >/dev/null 2>&1; then :
7764
7765 else
7766   ac_cv_header_stdc=no
7767 fi
7768 rm -f conftest*
7769
7770 fi
7771
7772 if test $ac_cv_header_stdc = yes; then
7773   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7774   if test "$cross_compiling" = yes; then :
7775   :
7776 else
7777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779 #include <ctype.h>
7780 #include <stdlib.h>
7781 #if ((' ' & 0x0FF) == 0x020)
7782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7784 #else
7785 # define ISLOWER(c) \
7786                    (('a' <= (c) && (c) <= 'i') \
7787                      || ('j' <= (c) && (c) <= 'r') \
7788                      || ('s' <= (c) && (c) <= 'z'))
7789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7790 #endif
7791
7792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7793 int
7794 main ()
7795 {
7796   int i;
7797   for (i = 0; i < 256; i++)
7798     if (XOR (islower (i), ISLOWER (i))
7799         || toupper (i) != TOUPPER (i))
7800       return 2;
7801   return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_run "$LINENO"; then :
7805
7806 else
7807   ac_cv_header_stdc=no
7808 fi
7809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7810   conftest.$ac_objext conftest.beam conftest.$ac_ext
7811 fi
7812
7813 fi
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7816 $as_echo "$ac_cv_header_stdc" >&6; }
7817 if test $ac_cv_header_stdc = yes; then
7818
7819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7820
7821 fi
7822
7823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7824 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7825                   inttypes.h stdint.h unistd.h
7826 do :
7827   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7829 "
7830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7831   cat >>confdefs.h <<_ACEOF
7832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7833 _ACEOF
7834
7835 fi
7836
7837 done
7838
7839
7840 for ac_header in dlfcn.h
7841 do :
7842   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7843 "
7844 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7845   cat >>confdefs.h <<_ACEOF
7846 #define HAVE_DLFCN_H 1
7847 _ACEOF
7848
7849 fi
7850
7851 done
7852
7853
7854
7855
7856
7857 # Set options
7858
7859
7860
7861         enable_dlopen=no
7862
7863
7864   enable_win32_dll=no
7865
7866
7867             # Check whether --enable-shared was given.
7868 if test "${enable_shared+set}" = set; then :
7869   enableval=$enable_shared; p=${PACKAGE-default}
7870     case $enableval in
7871     yes) enable_shared=yes ;;
7872     no) enable_shared=no ;;
7873     *)
7874       enable_shared=no
7875       # Look at the argument we got.  We use all the common list separators.
7876       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7877       for pkg in $enableval; do
7878         IFS="$lt_save_ifs"
7879         if test "X$pkg" = "X$p"; then
7880           enable_shared=yes
7881         fi
7882       done
7883       IFS="$lt_save_ifs"
7884       ;;
7885     esac
7886 else
7887   enable_shared=yes
7888 fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900 # Check whether --with-pic was given.
7901 if test "${with_pic+set}" = set; then :
7902   withval=$with_pic; lt_p=${PACKAGE-default}
7903     case $withval in
7904     yes|no) pic_mode=$withval ;;
7905     *)
7906       pic_mode=default
7907       # Look at the argument we got.  We use all the common list separators.
7908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7909       for lt_pkg in $withval; do
7910         IFS="$lt_save_ifs"
7911         if test "X$lt_pkg" = "X$lt_p"; then
7912           pic_mode=yes
7913         fi
7914       done
7915       IFS="$lt_save_ifs"
7916       ;;
7917     esac
7918 else
7919   pic_mode=default
7920 fi
7921
7922
7923 test -z "$pic_mode" && pic_mode=default
7924
7925
7926
7927
7928
7929
7930
7931   # Check whether --enable-fast-install was given.
7932 if test "${enable_fast_install+set}" = set; then :
7933   enableval=$enable_fast_install; p=${PACKAGE-default}
7934     case $enableval in
7935     yes) enable_fast_install=yes ;;
7936     no) enable_fast_install=no ;;
7937     *)
7938       enable_fast_install=no
7939       # Look at the argument we got.  We use all the common list separators.
7940       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7941       for pkg in $enableval; do
7942         IFS="$lt_save_ifs"
7943         if test "X$pkg" = "X$p"; then
7944           enable_fast_install=yes
7945         fi
7946       done
7947       IFS="$lt_save_ifs"
7948       ;;
7949     esac
7950 else
7951   enable_fast_install=yes
7952 fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 # This can be used to rebuild libtool when needed
7965 LIBTOOL_DEPS="$ltmain"
7966
7967 # Always use our own libtool.
7968 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999 test -z "$LN_S" && LN_S="ln -s"
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 if test -n "${ZSH_VERSION+set}" ; then
8015    setopt NO_GLOB_SUBST
8016 fi
8017
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8019 $as_echo_n "checking for objdir... " >&6; }
8020 if ${lt_cv_objdir+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   rm -f .libs 2>/dev/null
8024 mkdir .libs 2>/dev/null
8025 if test -d .libs; then
8026   lt_cv_objdir=.libs
8027 else
8028   # MS-DOS does not allow filenames that begin with a dot.
8029   lt_cv_objdir=_libs
8030 fi
8031 rmdir .libs 2>/dev/null
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8034 $as_echo "$lt_cv_objdir" >&6; }
8035 objdir=$lt_cv_objdir
8036
8037
8038
8039
8040
8041 cat >>confdefs.h <<_ACEOF
8042 #define LT_OBJDIR "$lt_cv_objdir/"
8043 _ACEOF
8044
8045
8046
8047
8048 case $host_os in
8049 aix3*)
8050   # AIX sometimes has problems with the GCC collect2 program.  For some
8051   # reason, if we set the COLLECT_NAMES environment variable, the problems
8052   # vanish in a puff of smoke.
8053   if test "X${COLLECT_NAMES+set}" != Xset; then
8054     COLLECT_NAMES=
8055     export COLLECT_NAMES
8056   fi
8057   ;;
8058 esac
8059
8060 # Global variables:
8061 ofile=libtool
8062 can_build_shared=yes
8063
8064 # All known linkers require a `.a' archive for static linking (except MSVC,
8065 # which needs '.lib').
8066 libext=a
8067
8068 with_gnu_ld="$lt_cv_prog_gnu_ld"
8069
8070 old_CC="$CC"
8071 old_CFLAGS="$CFLAGS"
8072
8073 # Set sane defaults for various variables
8074 test -z "$CC" && CC=cc
8075 test -z "$LTCC" && LTCC=$CC
8076 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8077 test -z "$LD" && LD=ld
8078 test -z "$ac_objext" && ac_objext=o
8079
8080 for cc_temp in $compiler""; do
8081   case $cc_temp in
8082     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8083     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8084     \-*) ;;
8085     *) break;;
8086   esac
8087 done
8088 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8089
8090
8091 # Only perform the check for file, if the check method requires it
8092 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8093 case $deplibs_check_method in
8094 file_magic*)
8095   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8097 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8098 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8099   $as_echo_n "(cached) " >&6
8100 else
8101   case $MAGIC_CMD in
8102 [\\/*] |  ?:[\\/]*)
8103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8104   ;;
8105 *)
8106   lt_save_MAGIC_CMD="$MAGIC_CMD"
8107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8108   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8109   for ac_dir in $ac_dummy; do
8110     IFS="$lt_save_ifs"
8111     test -z "$ac_dir" && ac_dir=.
8112     if test -f $ac_dir/${ac_tool_prefix}file; then
8113       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8114       if test -n "$file_magic_test_file"; then
8115         case $deplibs_check_method in
8116         "file_magic "*)
8117           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8118           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8119           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8120             $EGREP "$file_magic_regex" > /dev/null; then
8121             :
8122           else
8123             cat <<_LT_EOF 1>&2
8124
8125 *** Warning: the command libtool uses to detect shared libraries,
8126 *** $file_magic_cmd, produces output that libtool cannot recognize.
8127 *** The result is that libtool may fail to recognize shared libraries
8128 *** as such.  This will affect the creation of libtool libraries that
8129 *** depend on shared libraries, but programs linked with such libtool
8130 *** libraries will work regardless of this problem.  Nevertheless, you
8131 *** may want to report the problem to your system manager and/or to
8132 *** bug-libtool@gnu.org
8133
8134 _LT_EOF
8135           fi ;;
8136         esac
8137       fi
8138       break
8139     fi
8140   done
8141   IFS="$lt_save_ifs"
8142   MAGIC_CMD="$lt_save_MAGIC_CMD"
8143   ;;
8144 esac
8145 fi
8146
8147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8148 if test -n "$MAGIC_CMD"; then
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8150 $as_echo "$MAGIC_CMD" >&6; }
8151 else
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8154 fi
8155
8156
8157
8158
8159
8160 if test -z "$lt_cv_path_MAGIC_CMD"; then
8161   if test -n "$ac_tool_prefix"; then
8162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8163 $as_echo_n "checking for file... " >&6; }
8164 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   case $MAGIC_CMD in
8168 [\\/*] |  ?:[\\/]*)
8169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8170   ;;
8171 *)
8172   lt_save_MAGIC_CMD="$MAGIC_CMD"
8173   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8174   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8175   for ac_dir in $ac_dummy; do
8176     IFS="$lt_save_ifs"
8177     test -z "$ac_dir" && ac_dir=.
8178     if test -f $ac_dir/file; then
8179       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8180       if test -n "$file_magic_test_file"; then
8181         case $deplibs_check_method in
8182         "file_magic "*)
8183           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8184           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8185           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8186             $EGREP "$file_magic_regex" > /dev/null; then
8187             :
8188           else
8189             cat <<_LT_EOF 1>&2
8190
8191 *** Warning: the command libtool uses to detect shared libraries,
8192 *** $file_magic_cmd, produces output that libtool cannot recognize.
8193 *** The result is that libtool may fail to recognize shared libraries
8194 *** as such.  This will affect the creation of libtool libraries that
8195 *** depend on shared libraries, but programs linked with such libtool
8196 *** libraries will work regardless of this problem.  Nevertheless, you
8197 *** may want to report the problem to your system manager and/or to
8198 *** bug-libtool@gnu.org
8199
8200 _LT_EOF
8201           fi ;;
8202         esac
8203       fi
8204       break
8205     fi
8206   done
8207   IFS="$lt_save_ifs"
8208   MAGIC_CMD="$lt_save_MAGIC_CMD"
8209   ;;
8210 esac
8211 fi
8212
8213 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8214 if test -n "$MAGIC_CMD"; then
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8216 $as_echo "$MAGIC_CMD" >&6; }
8217 else
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221
8222
8223   else
8224     MAGIC_CMD=:
8225   fi
8226 fi
8227
8228   fi
8229   ;;
8230 esac
8231
8232 # Use C for the default configuration in the libtool script
8233
8234 lt_save_CC="$CC"
8235 ac_ext=c
8236 ac_cpp='$CPP $CPPFLAGS'
8237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8240
8241
8242 # Source file extension for C test sources.
8243 ac_ext=c
8244
8245 # Object file extension for compiled C test sources.
8246 objext=o
8247 objext=$objext
8248
8249 # Code to be used in simple compile tests
8250 lt_simple_compile_test_code="int some_variable = 0;"
8251
8252 # Code to be used in simple link tests
8253 lt_simple_link_test_code='int main(){return(0);}'
8254
8255
8256
8257
8258
8259
8260
8261 # If no C compiler was specified, use CC.
8262 LTCC=${LTCC-"$CC"}
8263
8264 # If no C compiler flags were specified, use CFLAGS.
8265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8266
8267 # Allow CC to be a program name with arguments.
8268 compiler=$CC
8269
8270 # Save the default compiler, since it gets overwritten when the other
8271 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8272 compiler_DEFAULT=$CC
8273
8274 # save warnings/boilerplate of simple test code
8275 ac_outfile=conftest.$ac_objext
8276 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8278 _lt_compiler_boilerplate=`cat conftest.err`
8279 $RM conftest*
8280
8281 ac_outfile=conftest.$ac_objext
8282 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284 _lt_linker_boilerplate=`cat conftest.err`
8285 $RM -r conftest*
8286
8287
8288 ## CAVEAT EMPTOR:
8289 ## There is no encapsulation within the following macros, do not change
8290 ## the running order or otherwise move them around unless you know exactly
8291 ## what you are doing...
8292 if test -n "$compiler"; then
8293
8294 lt_prog_compiler_no_builtin_flag=
8295
8296 if test "$GCC" = yes; then
8297   case $cc_basename in
8298   nvcc*)
8299     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8300   *)
8301     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8302   esac
8303
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8305 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8306 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8307   $as_echo_n "(cached) " >&6
8308 else
8309   lt_cv_prog_compiler_rtti_exceptions=no
8310    ac_outfile=conftest.$ac_objext
8311    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8312    lt_compiler_flag="-fno-rtti -fno-exceptions"
8313    # Insert the option either (1) after the last *FLAGS variable, or
8314    # (2) before a word containing "conftest.", or (3) at the end.
8315    # Note that $ac_compile itself does not contain backslashes and begins
8316    # with a dollar sign (not a hyphen), so the echo should work correctly.
8317    # The option is referenced via a variable to avoid confusing sed.
8318    lt_compile=`echo "$ac_compile" | $SED \
8319    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8320    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8321    -e 's:$: $lt_compiler_flag:'`
8322    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8323    (eval "$lt_compile" 2>conftest.err)
8324    ac_status=$?
8325    cat conftest.err >&5
8326    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327    if (exit $ac_status) && test -s "$ac_outfile"; then
8328      # The compiler can only warn and ignore the option if not recognized
8329      # So say no if there are warnings other than the usual output.
8330      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8331      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8333        lt_cv_prog_compiler_rtti_exceptions=yes
8334      fi
8335    fi
8336    $RM conftest*
8337
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8340 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8341
8342 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8343     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8344 else
8345     :
8346 fi
8347
8348 fi
8349
8350
8351
8352
8353
8354
8355   lt_prog_compiler_wl=
8356 lt_prog_compiler_pic=
8357 lt_prog_compiler_static=
8358
8359
8360   if test "$GCC" = yes; then
8361     lt_prog_compiler_wl='-Wl,'
8362     lt_prog_compiler_static='-static'
8363
8364     case $host_os in
8365       aix*)
8366       # All AIX code is PIC.
8367       if test "$host_cpu" = ia64; then
8368         # AIX 5 now supports IA64 processor
8369         lt_prog_compiler_static='-Bstatic'
8370       fi
8371       ;;
8372
8373     amigaos*)
8374       case $host_cpu in
8375       powerpc)
8376             # see comment about AmigaOS4 .so support
8377             lt_prog_compiler_pic='-fPIC'
8378         ;;
8379       m68k)
8380             # FIXME: we need at least 68020 code to build shared libraries, but
8381             # adding the `-m68020' flag to GCC prevents building anything better,
8382             # like `-m68040'.
8383             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8384         ;;
8385       esac
8386       ;;
8387
8388     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8389       # PIC is the default for these OSes.
8390       ;;
8391
8392     mingw* | cygwin* | pw32* | os2* | cegcc*)
8393       # This hack is so that the source file can tell whether it is being
8394       # built for inclusion in a dll (and should export symbols for example).
8395       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8396       # (--disable-auto-import) libraries
8397       lt_prog_compiler_pic='-DDLL_EXPORT'
8398       ;;
8399
8400     darwin* | rhapsody*)
8401       # PIC is the default on this platform
8402       # Common symbols not allowed in MH_DYLIB files
8403       lt_prog_compiler_pic='-fno-common'
8404       ;;
8405
8406     haiku*)
8407       # PIC is the default for Haiku.
8408       # The "-static" flag exists, but is broken.
8409       lt_prog_compiler_static=
8410       ;;
8411
8412     hpux*)
8413       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8414       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8415       # sets the default TLS model and affects inlining.
8416       case $host_cpu in
8417       hppa*64*)
8418         # +Z the default
8419         ;;
8420       *)
8421         lt_prog_compiler_pic='-fPIC'
8422         ;;
8423       esac
8424       ;;
8425
8426     interix[3-9]*)
8427       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8428       # Instead, we relocate shared libraries at runtime.
8429       ;;
8430
8431     msdosdjgpp*)
8432       # Just because we use GCC doesn't mean we suddenly get shared libraries
8433       # on systems that don't support them.
8434       lt_prog_compiler_can_build_shared=no
8435       enable_shared=no
8436       ;;
8437
8438     *nto* | *qnx*)
8439       # QNX uses GNU C++, but need to define -shared option too, otherwise
8440       # it will coredump.
8441       lt_prog_compiler_pic='-fPIC -shared'
8442       ;;
8443
8444     sysv4*MP*)
8445       if test -d /usr/nec; then
8446         lt_prog_compiler_pic=-Kconform_pic
8447       fi
8448       ;;
8449
8450     *)
8451       lt_prog_compiler_pic='-fPIC'
8452       ;;
8453     esac
8454
8455     case $cc_basename in
8456     nvcc*) # Cuda Compiler Driver 2.2
8457       lt_prog_compiler_wl='-Xlinker '
8458       if test -n "$lt_prog_compiler_pic"; then
8459         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8460       fi
8461       ;;
8462     esac
8463   else
8464     # PORTME Check for flag to pass linker flags through the system compiler.
8465     case $host_os in
8466     aix*)
8467       lt_prog_compiler_wl='-Wl,'
8468       if test "$host_cpu" = ia64; then
8469         # AIX 5 now supports IA64 processor
8470         lt_prog_compiler_static='-Bstatic'
8471       else
8472         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8473       fi
8474       ;;
8475
8476     mingw* | cygwin* | pw32* | os2* | cegcc*)
8477       # This hack is so that the source file can tell whether it is being
8478       # built for inclusion in a dll (and should export symbols for example).
8479       lt_prog_compiler_pic='-DDLL_EXPORT'
8480       ;;
8481
8482     hpux9* | hpux10* | hpux11*)
8483       lt_prog_compiler_wl='-Wl,'
8484       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8485       # not for PA HP-UX.
8486       case $host_cpu in
8487       hppa*64*|ia64*)
8488         # +Z the default
8489         ;;
8490       *)
8491         lt_prog_compiler_pic='+Z'
8492         ;;
8493       esac
8494       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8495       lt_prog_compiler_static='${wl}-a ${wl}archive'
8496       ;;
8497
8498     irix5* | irix6* | nonstopux*)
8499       lt_prog_compiler_wl='-Wl,'
8500       # PIC (with -KPIC) is the default.
8501       lt_prog_compiler_static='-non_shared'
8502       ;;
8503
8504     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8505       case $cc_basename in
8506       # old Intel for x86_64 which still supported -KPIC.
8507       ecc*)
8508         lt_prog_compiler_wl='-Wl,'
8509         lt_prog_compiler_pic='-KPIC'
8510         lt_prog_compiler_static='-static'
8511         ;;
8512       # icc used to be incompatible with GCC.
8513       # ICC 10 doesn't accept -KPIC any more.
8514       icc* | ifort*)
8515         lt_prog_compiler_wl='-Wl,'
8516         lt_prog_compiler_pic='-fPIC'
8517         lt_prog_compiler_static='-static'
8518         ;;
8519       # Lahey Fortran 8.1.
8520       lf95*)
8521         lt_prog_compiler_wl='-Wl,'
8522         lt_prog_compiler_pic='--shared'
8523         lt_prog_compiler_static='--static'
8524         ;;
8525       nagfor*)
8526         # NAG Fortran compiler
8527         lt_prog_compiler_wl='-Wl,-Wl,,'
8528         lt_prog_compiler_pic='-PIC'
8529         lt_prog_compiler_static='-Bstatic'
8530         ;;
8531       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8532         # Portland Group compilers (*not* the Pentium gcc compiler,
8533         # which looks to be a dead project)
8534         lt_prog_compiler_wl='-Wl,'
8535         lt_prog_compiler_pic='-fpic'
8536         lt_prog_compiler_static='-Bstatic'
8537         ;;
8538       ccc*)
8539         lt_prog_compiler_wl='-Wl,'
8540         # All Alpha code is PIC.
8541         lt_prog_compiler_static='-non_shared'
8542         ;;
8543       xl* | bgxl* | bgf* | mpixl*)
8544         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='-qpic'
8547         lt_prog_compiler_static='-qstaticlink'
8548         ;;
8549       *)
8550         case `$CC -V 2>&1 | sed 5q` in
8551         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8552           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8553           lt_prog_compiler_pic='-KPIC'
8554           lt_prog_compiler_static='-Bstatic'
8555           lt_prog_compiler_wl=''
8556           ;;
8557         *Sun\ F* | *Sun*Fortran*)
8558           lt_prog_compiler_pic='-KPIC'
8559           lt_prog_compiler_static='-Bstatic'
8560           lt_prog_compiler_wl='-Qoption ld '
8561           ;;
8562         *Sun\ C*)
8563           # Sun C 5.9
8564           lt_prog_compiler_pic='-KPIC'
8565           lt_prog_compiler_static='-Bstatic'
8566           lt_prog_compiler_wl='-Wl,'
8567           ;;
8568         *Intel*\ [CF]*Compiler*)
8569           lt_prog_compiler_wl='-Wl,'
8570           lt_prog_compiler_pic='-fPIC'
8571           lt_prog_compiler_static='-static'
8572           ;;
8573         *Portland\ Group*)
8574           lt_prog_compiler_wl='-Wl,'
8575           lt_prog_compiler_pic='-fpic'
8576           lt_prog_compiler_static='-Bstatic'
8577           ;;
8578         esac
8579         ;;
8580       esac
8581       ;;
8582
8583     newsos6)
8584       lt_prog_compiler_pic='-KPIC'
8585       lt_prog_compiler_static='-Bstatic'
8586       ;;
8587
8588     *nto* | *qnx*)
8589       # QNX uses GNU C++, but need to define -shared option too, otherwise
8590       # it will coredump.
8591       lt_prog_compiler_pic='-fPIC -shared'
8592       ;;
8593
8594     osf3* | osf4* | osf5*)
8595       lt_prog_compiler_wl='-Wl,'
8596       # All OSF/1 code is PIC.
8597       lt_prog_compiler_static='-non_shared'
8598       ;;
8599
8600     rdos*)
8601       lt_prog_compiler_static='-non_shared'
8602       ;;
8603
8604     solaris*)
8605       lt_prog_compiler_pic='-KPIC'
8606       lt_prog_compiler_static='-Bstatic'
8607       case $cc_basename in
8608       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8609         lt_prog_compiler_wl='-Qoption ld ';;
8610       *)
8611         lt_prog_compiler_wl='-Wl,';;
8612       esac
8613       ;;
8614
8615     sunos4*)
8616       lt_prog_compiler_wl='-Qoption ld '
8617       lt_prog_compiler_pic='-PIC'
8618       lt_prog_compiler_static='-Bstatic'
8619       ;;
8620
8621     sysv4 | sysv4.2uw2* | sysv4.3*)
8622       lt_prog_compiler_wl='-Wl,'
8623       lt_prog_compiler_pic='-KPIC'
8624       lt_prog_compiler_static='-Bstatic'
8625       ;;
8626
8627     sysv4*MP*)
8628       if test -d /usr/nec ;then
8629         lt_prog_compiler_pic='-Kconform_pic'
8630         lt_prog_compiler_static='-Bstatic'
8631       fi
8632       ;;
8633
8634     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8635       lt_prog_compiler_wl='-Wl,'
8636       lt_prog_compiler_pic='-KPIC'
8637       lt_prog_compiler_static='-Bstatic'
8638       ;;
8639
8640     unicos*)
8641       lt_prog_compiler_wl='-Wl,'
8642       lt_prog_compiler_can_build_shared=no
8643       ;;
8644
8645     uts4*)
8646       lt_prog_compiler_pic='-pic'
8647       lt_prog_compiler_static='-Bstatic'
8648       ;;
8649
8650     *)
8651       lt_prog_compiler_can_build_shared=no
8652       ;;
8653     esac
8654   fi
8655
8656 case $host_os in
8657   # For platforms which do not support PIC, -DPIC is meaningless:
8658   *djgpp*)
8659     lt_prog_compiler_pic=
8660     ;;
8661   *)
8662     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8663     ;;
8664 esac
8665
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8667 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8668 if ${lt_cv_prog_compiler_pic+:} false; then :
8669   $as_echo_n "(cached) " >&6
8670 else
8671   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8674 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8675 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8676
8677 #
8678 # Check to make sure the PIC flag actually works.
8679 #
8680 if test -n "$lt_prog_compiler_pic"; then
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8683 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   lt_cv_prog_compiler_pic_works=no
8687    ac_outfile=conftest.$ac_objext
8688    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690    # Insert the option either (1) after the last *FLAGS variable, or
8691    # (2) before a word containing "conftest.", or (3) at the end.
8692    # Note that $ac_compile itself does not contain backslashes and begins
8693    # with a dollar sign (not a hyphen), so the echo should work correctly.
8694    # The option is referenced via a variable to avoid confusing sed.
8695    lt_compile=`echo "$ac_compile" | $SED \
8696    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698    -e 's:$: $lt_compiler_flag:'`
8699    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8700    (eval "$lt_compile" 2>conftest.err)
8701    ac_status=$?
8702    cat conftest.err >&5
8703    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704    if (exit $ac_status) && test -s "$ac_outfile"; then
8705      # The compiler can only warn and ignore the option if not recognized
8706      # So say no if there are warnings other than the usual output.
8707      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8708      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710        lt_cv_prog_compiler_pic_works=yes
8711      fi
8712    fi
8713    $RM conftest*
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8718
8719 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8720     case $lt_prog_compiler_pic in
8721      "" | " "*) ;;
8722      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723      esac
8724 else
8725     lt_prog_compiler_pic=
8726      lt_prog_compiler_can_build_shared=no
8727 fi
8728
8729 fi
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 #
8742 # Check to make sure the static flag actually works.
8743 #
8744 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8746 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8747 if ${lt_cv_prog_compiler_static_works+:} false; then :
8748   $as_echo_n "(cached) " >&6
8749 else
8750   lt_cv_prog_compiler_static_works=no
8751    save_LDFLAGS="$LDFLAGS"
8752    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8753    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8754    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8755      # The linker can only warn and ignore the option if not recognized
8756      # So say no if there are warnings
8757      if test -s conftest.err; then
8758        # Append any errors to the config.log.
8759        cat conftest.err 1>&5
8760        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8761        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762        if diff conftest.exp conftest.er2 >/dev/null; then
8763          lt_cv_prog_compiler_static_works=yes
8764        fi
8765      else
8766        lt_cv_prog_compiler_static_works=yes
8767      fi
8768    fi
8769    $RM -r conftest*
8770    LDFLAGS="$save_LDFLAGS"
8771
8772 fi
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8774 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8775
8776 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8777     :
8778 else
8779     lt_prog_compiler_static=
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8790 if ${lt_cv_prog_compiler_c_o+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   lt_cv_prog_compiler_c_o=no
8794    $RM -r conftest 2>/dev/null
8795    mkdir conftest
8796    cd conftest
8797    mkdir out
8798    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8799
8800    lt_compiler_flag="-o out/conftest2.$ac_objext"
8801    # Insert the option either (1) after the last *FLAGS variable, or
8802    # (2) before a word containing "conftest.", or (3) at the end.
8803    # Note that $ac_compile itself does not contain backslashes and begins
8804    # with a dollar sign (not a hyphen), so the echo should work correctly.
8805    lt_compile=`echo "$ac_compile" | $SED \
8806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808    -e 's:$: $lt_compiler_flag:'`
8809    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8810    (eval "$lt_compile" 2>out/conftest.err)
8811    ac_status=$?
8812    cat out/conftest.err >&5
8813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8815    then
8816      # The compiler can only warn and ignore the option if not recognized
8817      # So say no if there are warnings
8818      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8819      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8820      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8821        lt_cv_prog_compiler_c_o=yes
8822      fi
8823    fi
8824    chmod u+w . 2>&5
8825    $RM conftest*
8826    # SGI C++ compiler will create directory out/ii_files/ for
8827    # template instantiation
8828    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8829    $RM out/* && rmdir out
8830    cd ..
8831    $RM -r conftest
8832    $RM conftest*
8833
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8836 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8837
8838
8839
8840
8841
8842
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8845 if ${lt_cv_prog_compiler_c_o+:} false; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   lt_cv_prog_compiler_c_o=no
8849    $RM -r conftest 2>/dev/null
8850    mkdir conftest
8851    cd conftest
8852    mkdir out
8853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854
8855    lt_compiler_flag="-o out/conftest2.$ac_objext"
8856    # Insert the option either (1) after the last *FLAGS variable, or
8857    # (2) before a word containing "conftest.", or (3) at the end.
8858    # Note that $ac_compile itself does not contain backslashes and begins
8859    # with a dollar sign (not a hyphen), so the echo should work correctly.
8860    lt_compile=`echo "$ac_compile" | $SED \
8861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863    -e 's:$: $lt_compiler_flag:'`
8864    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865    (eval "$lt_compile" 2>out/conftest.err)
8866    ac_status=$?
8867    cat out/conftest.err >&5
8868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8870    then
8871      # The compiler can only warn and ignore the option if not recognized
8872      # So say no if there are warnings
8873      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8874      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8875      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8876        lt_cv_prog_compiler_c_o=yes
8877      fi
8878    fi
8879    chmod u+w . 2>&5
8880    $RM conftest*
8881    # SGI C++ compiler will create directory out/ii_files/ for
8882    # template instantiation
8883    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8884    $RM out/* && rmdir out
8885    cd ..
8886    $RM -r conftest
8887    $RM conftest*
8888
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8891 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8892
8893
8894
8895
8896 hard_links="nottested"
8897 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8898   # do not overwrite the value of need_locks provided by the user
8899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8900 $as_echo_n "checking if we can lock with hard links... " >&6; }
8901   hard_links=yes
8902   $RM conftest*
8903   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8904   touch conftest.a
8905   ln conftest.a conftest.b 2>&5 || hard_links=no
8906   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8908 $as_echo "$hard_links" >&6; }
8909   if test "$hard_links" = no; then
8910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8911 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8912     need_locks=warn
8913   fi
8914 else
8915   need_locks=no
8916 fi
8917
8918
8919
8920
8921
8922
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8924 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8925
8926   runpath_var=
8927   allow_undefined_flag=
8928   always_export_symbols=no
8929   archive_cmds=
8930   archive_expsym_cmds=
8931   compiler_needs_object=no
8932   enable_shared_with_static_runtimes=no
8933   export_dynamic_flag_spec=
8934   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8935   hardcode_automatic=no
8936   hardcode_direct=no
8937   hardcode_direct_absolute=no
8938   hardcode_libdir_flag_spec=
8939   hardcode_libdir_separator=
8940   hardcode_minus_L=no
8941   hardcode_shlibpath_var=unsupported
8942   inherit_rpath=no
8943   link_all_deplibs=unknown
8944   module_cmds=
8945   module_expsym_cmds=
8946   old_archive_from_new_cmds=
8947   old_archive_from_expsyms_cmds=
8948   thread_safe_flag_spec=
8949   whole_archive_flag_spec=
8950   # include_expsyms should be a list of space-separated symbols to be *always*
8951   # included in the symbol list
8952   include_expsyms=
8953   # exclude_expsyms can be an extended regexp of symbols to exclude
8954   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8955   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8956   # as well as any symbol that contains `d'.
8957   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8958   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8959   # platforms (ab)use it in PIC code, but their linkers get confused if
8960   # the symbol is explicitly referenced.  Since portable code cannot
8961   # rely on this symbol name, it's probably fine to never include it in
8962   # preloaded symbol tables.
8963   # Exclude shared library initialization/finalization symbols.
8964   extract_expsyms_cmds=
8965
8966   case $host_os in
8967   cygwin* | mingw* | pw32* | cegcc*)
8968     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8969     # When not using gcc, we currently assume that we are using
8970     # Microsoft Visual C++.
8971     if test "$GCC" != yes; then
8972       with_gnu_ld=no
8973     fi
8974     ;;
8975   interix*)
8976     # we just hope/assume this is gcc and not c89 (= MSVC++)
8977     with_gnu_ld=yes
8978     ;;
8979   openbsd*)
8980     with_gnu_ld=no
8981     ;;
8982   linux* | k*bsd*-gnu | gnu*)
8983     link_all_deplibs=no
8984     ;;
8985   esac
8986
8987   ld_shlibs=yes
8988
8989   # On some targets, GNU ld is compatible enough with the native linker
8990   # that we're better off using the native interface for both.
8991   lt_use_gnu_ld_interface=no
8992   if test "$with_gnu_ld" = yes; then
8993     case $host_os in
8994       aix*)
8995         # The AIX port of GNU ld has always aspired to compatibility
8996         # with the native linker.  However, as the warning in the GNU ld
8997         # block says, versions before 2.19.5* couldn't really create working
8998         # shared libraries, regardless of the interface used.
8999         case `$LD -v 2>&1` in
9000           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9001           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9002           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9003           *)
9004             lt_use_gnu_ld_interface=yes
9005             ;;
9006         esac
9007         ;;
9008       *)
9009         lt_use_gnu_ld_interface=yes
9010         ;;
9011     esac
9012   fi
9013
9014   if test "$lt_use_gnu_ld_interface" = yes; then
9015     # If archive_cmds runs LD, not CC, wlarc should be empty
9016     wlarc='${wl}'
9017
9018     # Set some defaults for GNU ld with shared library support. These
9019     # are reset later if shared libraries are not supported. Putting them
9020     # here allows them to be overridden if necessary.
9021     runpath_var=LD_RUN_PATH
9022     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9023     export_dynamic_flag_spec='${wl}--export-dynamic'
9024     # ancient GNU ld didn't support --whole-archive et. al.
9025     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9026       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9027     else
9028       whole_archive_flag_spec=
9029     fi
9030     supports_anon_versioning=no
9031     case `$LD -v 2>&1` in
9032       *GNU\ gold*) supports_anon_versioning=yes ;;
9033       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9034       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9035       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9036       *\ 2.11.*) ;; # other 2.11 versions
9037       *) supports_anon_versioning=yes ;;
9038     esac
9039
9040     # See if GNU ld supports shared libraries.
9041     case $host_os in
9042     aix[3-9]*)
9043       # On AIX/PPC, the GNU linker is very broken
9044       if test "$host_cpu" != ia64; then
9045         ld_shlibs=no
9046         cat <<_LT_EOF 1>&2
9047
9048 *** Warning: the GNU linker, at least up to release 2.19, is reported
9049 *** to be unable to reliably create shared libraries on AIX.
9050 *** Therefore, libtool is disabling shared libraries support.  If you
9051 *** really care for shared libraries, you may want to install binutils
9052 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9053 *** You will then need to restart the configuration process.
9054
9055 _LT_EOF
9056       fi
9057       ;;
9058
9059     amigaos*)
9060       case $host_cpu in
9061       powerpc)
9062             # see comment about AmigaOS4 .so support
9063             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064             archive_expsym_cmds=''
9065         ;;
9066       m68k)
9067             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)'
9068             hardcode_libdir_flag_spec='-L$libdir'
9069             hardcode_minus_L=yes
9070         ;;
9071       esac
9072       ;;
9073
9074     beos*)
9075       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9076         allow_undefined_flag=unsupported
9077         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9078         # support --undefined.  This deserves some investigation.  FIXME
9079         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080       else
9081         ld_shlibs=no
9082       fi
9083       ;;
9084
9085     cygwin* | mingw* | pw32* | cegcc*)
9086       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9087       # as there is no search path for DLLs.
9088       hardcode_libdir_flag_spec='-L$libdir'
9089       export_dynamic_flag_spec='${wl}--export-all-symbols'
9090       allow_undefined_flag=unsupported
9091       always_export_symbols=no
9092       enable_shared_with_static_runtimes=yes
9093       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9094       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9095
9096       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9097         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9098         # If the export-symbols file already is a .def file (1st line
9099         # is EXPORTS), use it as is; otherwise, prepend...
9100         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9101           cp $export_symbols $output_objdir/$soname.def;
9102         else
9103           echo EXPORTS > $output_objdir/$soname.def;
9104           cat $export_symbols >> $output_objdir/$soname.def;
9105         fi~
9106         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9107       else
9108         ld_shlibs=no
9109       fi
9110       ;;
9111
9112     haiku*)
9113       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114       link_all_deplibs=yes
9115       ;;
9116
9117     interix[3-9]*)
9118       hardcode_direct=no
9119       hardcode_shlibpath_var=no
9120       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9121       export_dynamic_flag_spec='${wl}-E'
9122       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9123       # Instead, shared libraries are loaded at an image base (0x10000000 by
9124       # default) and relocated if they conflict, which is a slow very memory
9125       # consuming and fragmenting process.  To avoid this, we pick a random,
9126       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9127       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9128       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9129       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'
9130       ;;
9131
9132     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9133       tmp_diet=no
9134       if test "$host_os" = linux-dietlibc; then
9135         case $cc_basename in
9136           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9137         esac
9138       fi
9139       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9140          && test "$tmp_diet" = no
9141       then
9142         tmp_addflag=' $pic_flag'
9143         tmp_sharedflag='-shared'
9144         case $cc_basename,$host_cpu in
9145         pgcc*)                          # Portland Group C compiler
9146           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9147           tmp_addflag=' $pic_flag'
9148           ;;
9149         pgf77* | pgf90* | pgf95* | pgfortran*)
9150                                         # Portland Group f77 and f90 compilers
9151           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9152           tmp_addflag=' $pic_flag -Mnomain' ;;
9153         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9154           tmp_addflag=' -i_dynamic' ;;
9155         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9156           tmp_addflag=' -i_dynamic -nofor_main' ;;
9157         ifc* | ifort*)                  # Intel Fortran compiler
9158           tmp_addflag=' -nofor_main' ;;
9159         lf95*)                          # Lahey Fortran 8.1
9160           whole_archive_flag_spec=
9161           tmp_sharedflag='--shared' ;;
9162         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9163           tmp_sharedflag='-qmkshrobj'
9164           tmp_addflag= ;;
9165         nvcc*)  # Cuda Compiler Driver 2.2
9166           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9167           compiler_needs_object=yes
9168           ;;
9169         esac
9170         case `$CC -V 2>&1 | sed 5q` in
9171         *Sun\ C*)                       # Sun C 5.9
9172           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9173           compiler_needs_object=yes
9174           tmp_sharedflag='-G' ;;
9175         *Sun\ F*)                       # Sun Fortran 8.3
9176           tmp_sharedflag='-G' ;;
9177         esac
9178         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9179
9180         if test "x$supports_anon_versioning" = xyes; then
9181           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9182             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9183             echo "local: *; };" >> $output_objdir/$libname.ver~
9184             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9185         fi
9186
9187         case $cc_basename in
9188         xlf* | bgf* | bgxlf* | mpixlf*)
9189           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9190           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9191           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9192           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9193           if test "x$supports_anon_versioning" = xyes; then
9194             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9195               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9196               echo "local: *; };" >> $output_objdir/$libname.ver~
9197               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9198           fi
9199           ;;
9200         esac
9201       else
9202         ld_shlibs=no
9203       fi
9204       ;;
9205
9206     netbsd* | netbsdelf*-gnu)
9207       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9208         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9209         wlarc=
9210       else
9211         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9213       fi
9214       ;;
9215
9216     solaris*)
9217       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9218         ld_shlibs=no
9219         cat <<_LT_EOF 1>&2
9220
9221 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9222 *** create shared libraries on Solaris systems.  Therefore, libtool
9223 *** is disabling shared libraries support.  We urge you to upgrade GNU
9224 *** binutils to release 2.9.1 or newer.  Another option is to modify
9225 *** your PATH or compiler configuration so that the native linker is
9226 *** used, and then restart.
9227
9228 _LT_EOF
9229       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9230         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9232       else
9233         ld_shlibs=no
9234       fi
9235       ;;
9236
9237     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9238       case `$LD -v 2>&1` in
9239         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9240         ld_shlibs=no
9241         cat <<_LT_EOF 1>&2
9242
9243 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9244 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9245 *** is disabling shared libraries support.  We urge you to upgrade GNU
9246 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9247 *** your PATH or compiler configuration so that the native linker is
9248 *** used, and then restart.
9249
9250 _LT_EOF
9251         ;;
9252         *)
9253           # For security reasons, it is highly recommended that you always
9254           # use absolute paths for naming shared libraries, and exclude the
9255           # DT_RUNPATH tag from executables and libraries.  But doing so
9256           # requires that you compile everything twice, which is a pain.
9257           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9258             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9261           else
9262             ld_shlibs=no
9263           fi
9264         ;;
9265       esac
9266       ;;
9267
9268     sunos4*)
9269       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270       wlarc=
9271       hardcode_direct=yes
9272       hardcode_shlibpath_var=no
9273       ;;
9274
9275     *)
9276       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9277         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9279       else
9280         ld_shlibs=no
9281       fi
9282       ;;
9283     esac
9284
9285     if test "$ld_shlibs" = no; then
9286       runpath_var=
9287       hardcode_libdir_flag_spec=
9288       export_dynamic_flag_spec=
9289       whole_archive_flag_spec=
9290     fi
9291   else
9292     # PORTME fill in a description of your system's linker (not GNU ld)
9293     case $host_os in
9294     aix3*)
9295       allow_undefined_flag=unsupported
9296       always_export_symbols=yes
9297       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'
9298       # Note: this linker hardcodes the directories in LIBPATH if there
9299       # are no directories specified by -L.
9300       hardcode_minus_L=yes
9301       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9302         # Neither direct hardcoding nor static linking is supported with a
9303         # broken collect2.
9304         hardcode_direct=unsupported
9305       fi
9306       ;;
9307
9308     aix[4-9]*)
9309       if test "$host_cpu" = ia64; then
9310         # On IA64, the linker does run time linking by default, so we don't
9311         # have to do anything special.
9312         aix_use_runtimelinking=no
9313         exp_sym_flag='-Bexport'
9314         no_entry_flag=""
9315       else
9316         # If we're using GNU nm, then we don't want the "-C" option.
9317         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9318         # Also, AIX nm treats weak defined symbols like other global
9319         # defined symbols, whereas GNU nm marks them as "W".
9320         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9321           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9322         else
9323           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'
9324         fi
9325         aix_use_runtimelinking=no
9326
9327         # Test if we are trying to use run time linking or normal
9328         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9329         # need to do runtime linking.
9330         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9331           for ld_flag in $LDFLAGS; do
9332           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9333             aix_use_runtimelinking=yes
9334             break
9335           fi
9336           done
9337           ;;
9338         esac
9339
9340         exp_sym_flag='-bexport'
9341         no_entry_flag='-bnoentry'
9342       fi
9343
9344       # When large executables or shared objects are built, AIX ld can
9345       # have problems creating the table of contents.  If linking a library
9346       # or program results in "error TOC overflow" add -mminimal-toc to
9347       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9348       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9349
9350       archive_cmds=''
9351       hardcode_direct=yes
9352       hardcode_direct_absolute=yes
9353       hardcode_libdir_separator=':'
9354       link_all_deplibs=yes
9355       file_list_spec='${wl}-f,'
9356
9357       if test "$GCC" = yes; then
9358         case $host_os in aix4.[012]|aix4.[012].*)
9359         # We only want to do this on AIX 4.2 and lower, the check
9360         # below for broken collect2 doesn't work under 4.3+
9361           collect2name=`${CC} -print-prog-name=collect2`
9362           if test -f "$collect2name" &&
9363            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9364           then
9365           # We have reworked collect2
9366           :
9367           else
9368           # We have old collect2
9369           hardcode_direct=unsupported
9370           # It fails to find uninstalled libraries when the uninstalled
9371           # path is not listed in the libpath.  Setting hardcode_minus_L
9372           # to unsupported forces relinking
9373           hardcode_minus_L=yes
9374           hardcode_libdir_flag_spec='-L$libdir'
9375           hardcode_libdir_separator=
9376           fi
9377           ;;
9378         esac
9379         shared_flag='-shared'
9380         if test "$aix_use_runtimelinking" = yes; then
9381           shared_flag="$shared_flag "'${wl}-G'
9382         fi
9383         link_all_deplibs=no
9384       else
9385         # not using gcc
9386         if test "$host_cpu" = ia64; then
9387         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9388         # chokes on -Wl,-G. The following line is correct:
9389           shared_flag='-G'
9390         else
9391           if test "$aix_use_runtimelinking" = yes; then
9392             shared_flag='${wl}-G'
9393           else
9394             shared_flag='${wl}-bM:SRE'
9395           fi
9396         fi
9397       fi
9398
9399       export_dynamic_flag_spec='${wl}-bexpall'
9400       # It seems that -bexpall does not export symbols beginning with
9401       # underscore (_), so it is better to generate a list of symbols to export.
9402       always_export_symbols=yes
9403       if test "$aix_use_runtimelinking" = yes; then
9404         # Warning - without using the other runtime loading flags (-brtl),
9405         # -berok will link without error, but may produce a broken library.
9406         allow_undefined_flag='-berok'
9407         # Determine the default libpath from the value encoded in an
9408         # empty executable.
9409         if test "${lt_cv_aix_libpath+set}" = set; then
9410   aix_libpath=$lt_cv_aix_libpath
9411 else
9412   if ${lt_cv_aix_libpath_+:} false; then :
9413   $as_echo_n "(cached) " >&6
9414 else
9415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h.  */
9417
9418 int
9419 main ()
9420 {
9421
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 if ac_fn_c_try_link "$LINENO"; then :
9427
9428   lt_aix_libpath_sed='
9429       /Import File Strings/,/^$/ {
9430           /^0/ {
9431               s/^0  *\([^ ]*\) *$/\1/
9432               p
9433           }
9434       }'
9435   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9436   # Check for a 64-bit object if we didn't find anything.
9437   if test -z "$lt_cv_aix_libpath_"; then
9438     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9439   fi
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext \
9442     conftest$ac_exeext conftest.$ac_ext
9443   if test -z "$lt_cv_aix_libpath_"; then
9444     lt_cv_aix_libpath_="/usr/lib:/lib"
9445   fi
9446
9447 fi
9448
9449   aix_libpath=$lt_cv_aix_libpath_
9450 fi
9451
9452         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9453         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9454       else
9455         if test "$host_cpu" = ia64; then
9456           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9457           allow_undefined_flag="-z nodefs"
9458           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"
9459         else
9460          # Determine the default libpath from the value encoded in an
9461          # empty executable.
9462          if test "${lt_cv_aix_libpath+set}" = set; then
9463   aix_libpath=$lt_cv_aix_libpath
9464 else
9465   if ${lt_cv_aix_libpath_+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h.  */
9470
9471 int
9472 main ()
9473 {
9474
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_link "$LINENO"; then :
9480
9481   lt_aix_libpath_sed='
9482       /Import File Strings/,/^$/ {
9483           /^0/ {
9484               s/^0  *\([^ ]*\) *$/\1/
9485               p
9486           }
9487       }'
9488   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9489   # Check for a 64-bit object if we didn't find anything.
9490   if test -z "$lt_cv_aix_libpath_"; then
9491     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9492   fi
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext \
9495     conftest$ac_exeext conftest.$ac_ext
9496   if test -z "$lt_cv_aix_libpath_"; then
9497     lt_cv_aix_libpath_="/usr/lib:/lib"
9498   fi
9499
9500 fi
9501
9502   aix_libpath=$lt_cv_aix_libpath_
9503 fi
9504
9505          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9506           # Warning - without using the other run time loading flags,
9507           # -berok will link without error, but may produce a broken library.
9508           no_undefined_flag=' ${wl}-bernotok'
9509           allow_undefined_flag=' ${wl}-berok'
9510           if test "$with_gnu_ld" = yes; then
9511             # We only use this code for GNU lds that support --whole-archive.
9512             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9513           else
9514             # Exported symbols can be pulled into shared objects from archives
9515             whole_archive_flag_spec='$convenience'
9516           fi
9517           archive_cmds_need_lc=yes
9518           # This is similar to how AIX traditionally builds its shared libraries.
9519           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'
9520         fi
9521       fi
9522       ;;
9523
9524     amigaos*)
9525       case $host_cpu in
9526       powerpc)
9527             # see comment about AmigaOS4 .so support
9528             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529             archive_expsym_cmds=''
9530         ;;
9531       m68k)
9532             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)'
9533             hardcode_libdir_flag_spec='-L$libdir'
9534             hardcode_minus_L=yes
9535         ;;
9536       esac
9537       ;;
9538
9539     bsdi[45]*)
9540       export_dynamic_flag_spec=-rdynamic
9541       ;;
9542
9543     cygwin* | mingw* | pw32* | cegcc*)
9544       # When not using gcc, we currently assume that we are using
9545       # Microsoft Visual C++.
9546       # hardcode_libdir_flag_spec is actually meaningless, as there is
9547       # no search path for DLLs.
9548       case $cc_basename in
9549       cl*)
9550         # Native MSVC
9551         hardcode_libdir_flag_spec=' '
9552         allow_undefined_flag=unsupported
9553         always_export_symbols=yes
9554         file_list_spec='@'
9555         # Tell ltmain to make .lib files, not .a files.
9556         libext=lib
9557         # Tell ltmain to make .dll files, not .so files.
9558         shrext_cmds=".dll"
9559         # FIXME: Setting linknames here is a bad hack.
9560         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9561         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9562             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9563           else
9564             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9565           fi~
9566           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9567           linknames='
9568         # The linker will not automatically build a static lib if we build a DLL.
9569         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9570         enable_shared_with_static_runtimes=yes
9571         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9572         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9573         # Don't use ranlib
9574         old_postinstall_cmds='chmod 644 $oldlib'
9575         postlink_cmds='lt_outputfile="@OUTPUT@"~
9576           lt_tool_outputfile="@TOOL_OUTPUT@"~
9577           case $lt_outputfile in
9578             *.exe|*.EXE) ;;
9579             *)
9580               lt_outputfile="$lt_outputfile.exe"
9581               lt_tool_outputfile="$lt_tool_outputfile.exe"
9582               ;;
9583           esac~
9584           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9585             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9586             $RM "$lt_outputfile.manifest";
9587           fi'
9588         ;;
9589       *)
9590         # Assume MSVC wrapper
9591         hardcode_libdir_flag_spec=' '
9592         allow_undefined_flag=unsupported
9593         # Tell ltmain to make .lib files, not .a files.
9594         libext=lib
9595         # Tell ltmain to make .dll files, not .so files.
9596         shrext_cmds=".dll"
9597         # FIXME: Setting linknames here is a bad hack.
9598         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9599         # The linker will automatically build a .lib file if we build a DLL.
9600         old_archive_from_new_cmds='true'
9601         # FIXME: Should let the user specify the lib program.
9602         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9603         enable_shared_with_static_runtimes=yes
9604         ;;
9605       esac
9606       ;;
9607
9608     darwin* | rhapsody*)
9609
9610
9611   archive_cmds_need_lc=no
9612   hardcode_direct=no
9613   hardcode_automatic=yes
9614   hardcode_shlibpath_var=unsupported
9615   if test "$lt_cv_ld_force_load" = "yes"; then
9616     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9617
9618   else
9619     whole_archive_flag_spec=''
9620   fi
9621   link_all_deplibs=yes
9622   allow_undefined_flag="$_lt_dar_allow_undefined"
9623   case $cc_basename in
9624      ifort*) _lt_dar_can_shared=yes ;;
9625      *) _lt_dar_can_shared=$GCC ;;
9626   esac
9627   if test "$_lt_dar_can_shared" = "yes"; then
9628     output_verbose_link_cmd=func_echo_all
9629     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9630     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9631     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}"
9632     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}"
9633
9634   else
9635   ld_shlibs=no
9636   fi
9637
9638       ;;
9639
9640     dgux*)
9641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642       hardcode_libdir_flag_spec='-L$libdir'
9643       hardcode_shlibpath_var=no
9644       ;;
9645
9646     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9647     # support.  Future versions do this automatically, but an explicit c++rt0.o
9648     # does not break anything, and helps significantly (at the cost of a little
9649     # extra space).
9650     freebsd2.2*)
9651       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9652       hardcode_libdir_flag_spec='-R$libdir'
9653       hardcode_direct=yes
9654       hardcode_shlibpath_var=no
9655       ;;
9656
9657     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9658     freebsd2.*)
9659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9660       hardcode_direct=yes
9661       hardcode_minus_L=yes
9662       hardcode_shlibpath_var=no
9663       ;;
9664
9665     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9666     freebsd* | dragonfly*)
9667       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9668       hardcode_libdir_flag_spec='-R$libdir'
9669       hardcode_direct=yes
9670       hardcode_shlibpath_var=no
9671       ;;
9672
9673     hpux9*)
9674       if test "$GCC" = yes; then
9675         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9676       else
9677         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'
9678       fi
9679       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9680       hardcode_libdir_separator=:
9681       hardcode_direct=yes
9682
9683       # hardcode_minus_L: Not really in the search PATH,
9684       # but as the default location of the library.
9685       hardcode_minus_L=yes
9686       export_dynamic_flag_spec='${wl}-E'
9687       ;;
9688
9689     hpux10*)
9690       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9691         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9692       else
9693         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9694       fi
9695       if test "$with_gnu_ld" = no; then
9696         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9697         hardcode_libdir_separator=:
9698         hardcode_direct=yes
9699         hardcode_direct_absolute=yes
9700         export_dynamic_flag_spec='${wl}-E'
9701         # hardcode_minus_L: Not really in the search PATH,
9702         # but as the default location of the library.
9703         hardcode_minus_L=yes
9704       fi
9705       ;;
9706
9707     hpux11*)
9708       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9709         case $host_cpu in
9710         hppa*64*)
9711           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9712           ;;
9713         ia64*)
9714           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9715           ;;
9716         *)
9717           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9718           ;;
9719         esac
9720       else
9721         case $host_cpu in
9722         hppa*64*)
9723           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9724           ;;
9725         ia64*)
9726           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9727           ;;
9728         *)
9729
9730           # Older versions of the 11.00 compiler do not understand -b yet
9731           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9732           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9733 $as_echo_n "checking if $CC understands -b... " >&6; }
9734 if ${lt_cv_prog_compiler__b+:} false; then :
9735   $as_echo_n "(cached) " >&6
9736 else
9737   lt_cv_prog_compiler__b=no
9738    save_LDFLAGS="$LDFLAGS"
9739    LDFLAGS="$LDFLAGS -b"
9740    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9741    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9742      # The linker can only warn and ignore the option if not recognized
9743      # So say no if there are warnings
9744      if test -s conftest.err; then
9745        # Append any errors to the config.log.
9746        cat conftest.err 1>&5
9747        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9748        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9749        if diff conftest.exp conftest.er2 >/dev/null; then
9750          lt_cv_prog_compiler__b=yes
9751        fi
9752      else
9753        lt_cv_prog_compiler__b=yes
9754      fi
9755    fi
9756    $RM -r conftest*
9757    LDFLAGS="$save_LDFLAGS"
9758
9759 fi
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9761 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9762
9763 if test x"$lt_cv_prog_compiler__b" = xyes; then
9764     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 fi
9768
9769           ;;
9770         esac
9771       fi
9772       if test "$with_gnu_ld" = no; then
9773         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9774         hardcode_libdir_separator=:
9775
9776         case $host_cpu in
9777         hppa*64*|ia64*)
9778           hardcode_direct=no
9779           hardcode_shlibpath_var=no
9780           ;;
9781         *)
9782           hardcode_direct=yes
9783           hardcode_direct_absolute=yes
9784           export_dynamic_flag_spec='${wl}-E'
9785
9786           # hardcode_minus_L: Not really in the search PATH,
9787           # but as the default location of the library.
9788           hardcode_minus_L=yes
9789           ;;
9790         esac
9791       fi
9792       ;;
9793
9794     irix5* | irix6* | nonstopux*)
9795       if test "$GCC" = yes; then
9796         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9797         # Try to use the -exported_symbol ld option, if it does not
9798         # work, assume that -exports_file does not work either and
9799         # implicitly export all symbols.
9800         # This should be the same for all languages, so no per-tag cache variable.
9801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9802 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9803 if ${lt_cv_irix_exported_symbol+:} false; then :
9804   $as_echo_n "(cached) " >&6
9805 else
9806   save_LDFLAGS="$LDFLAGS"
9807            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9808            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h.  */
9810 int foo (void) { return 0; }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813   lt_cv_irix_exported_symbol=yes
9814 else
9815   lt_cv_irix_exported_symbol=no
9816 fi
9817 rm -f core conftest.err conftest.$ac_objext \
9818     conftest$ac_exeext conftest.$ac_ext
9819            LDFLAGS="$save_LDFLAGS"
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9822 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9823         if test "$lt_cv_irix_exported_symbol" = yes; then
9824           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9825         fi
9826       else
9827         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9828         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9829       fi
9830       archive_cmds_need_lc='no'
9831       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832       hardcode_libdir_separator=:
9833       inherit_rpath=yes
9834       link_all_deplibs=yes
9835       ;;
9836
9837     netbsd* | netbsdelf*-gnu)
9838       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9839         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9840       else
9841         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9842       fi
9843       hardcode_libdir_flag_spec='-R$libdir'
9844       hardcode_direct=yes
9845       hardcode_shlibpath_var=no
9846       ;;
9847
9848     newsos6)
9849       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850       hardcode_direct=yes
9851       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9852       hardcode_libdir_separator=:
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     *nto* | *qnx*)
9857       ;;
9858
9859     openbsd*)
9860       if test -f /usr/libexec/ld.so; then
9861         hardcode_direct=yes
9862         hardcode_shlibpath_var=no
9863         hardcode_direct_absolute=yes
9864         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9865           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9866           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9867           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9868           export_dynamic_flag_spec='${wl}-E'
9869         else
9870           case $host_os in
9871            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9872              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9873              hardcode_libdir_flag_spec='-R$libdir'
9874              ;;
9875            *)
9876              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9877              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9878              ;;
9879           esac
9880         fi
9881       else
9882         ld_shlibs=no
9883       fi
9884       ;;
9885
9886     os2*)
9887       hardcode_libdir_flag_spec='-L$libdir'
9888       hardcode_minus_L=yes
9889       allow_undefined_flag=unsupported
9890       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'
9891       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9892       ;;
9893
9894     osf3*)
9895       if test "$GCC" = yes; then
9896         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9897         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9898       else
9899         allow_undefined_flag=' -expect_unresolved \*'
9900         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9901       fi
9902       archive_cmds_need_lc='no'
9903       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9904       hardcode_libdir_separator=:
9905       ;;
9906
9907     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9908       if test "$GCC" = yes; then
9909         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9910         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9911         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912       else
9913         allow_undefined_flag=' -expect_unresolved \*'
9914         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9915         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~
9916         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9917
9918         # Both c and cxx compiler support -rpath directly
9919         hardcode_libdir_flag_spec='-rpath $libdir'
9920       fi
9921       archive_cmds_need_lc='no'
9922       hardcode_libdir_separator=:
9923       ;;
9924
9925     solaris*)
9926       no_undefined_flag=' -z defs'
9927       if test "$GCC" = yes; then
9928         wlarc='${wl}'
9929         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9932       else
9933         case `$CC -V 2>&1` in
9934         *"Compilers 5.0"*)
9935           wlarc=''
9936           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9939           ;;
9940         *)
9941           wlarc='${wl}'
9942           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9943           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9944           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9945           ;;
9946         esac
9947       fi
9948       hardcode_libdir_flag_spec='-R$libdir'
9949       hardcode_shlibpath_var=no
9950       case $host_os in
9951       solaris2.[0-5] | solaris2.[0-5].*) ;;
9952       *)
9953         # The compiler driver will combine and reorder linker options,
9954         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9955         # but is careful enough not to reorder.
9956         # Supported since Solaris 2.6 (maybe 2.5.1?)
9957         if test "$GCC" = yes; then
9958           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9959         else
9960           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9961         fi
9962         ;;
9963       esac
9964       link_all_deplibs=yes
9965       ;;
9966
9967     sunos4*)
9968       if test "x$host_vendor" = xsequent; then
9969         # Use $CC to link under sequent, because it throws in some extra .o
9970         # files that make .init and .fini sections work.
9971         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9972       else
9973         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9974       fi
9975       hardcode_libdir_flag_spec='-L$libdir'
9976       hardcode_direct=yes
9977       hardcode_minus_L=yes
9978       hardcode_shlibpath_var=no
9979       ;;
9980
9981     sysv4)
9982       case $host_vendor in
9983         sni)
9984           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985           hardcode_direct=yes # is this really true???
9986         ;;
9987         siemens)
9988           ## LD is ld it makes a PLAMLIB
9989           ## CC just makes a GrossModule.
9990           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9991           reload_cmds='$CC -r -o $output$reload_objs'
9992           hardcode_direct=no
9993         ;;
9994         motorola)
9995           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9996           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9997         ;;
9998       esac
9999       runpath_var='LD_RUN_PATH'
10000       hardcode_shlibpath_var=no
10001       ;;
10002
10003     sysv4.3*)
10004       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005       hardcode_shlibpath_var=no
10006       export_dynamic_flag_spec='-Bexport'
10007       ;;
10008
10009     sysv4*MP*)
10010       if test -d /usr/nec; then
10011         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012         hardcode_shlibpath_var=no
10013         runpath_var=LD_RUN_PATH
10014         hardcode_runpath_var=yes
10015         ld_shlibs=yes
10016       fi
10017       ;;
10018
10019     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10020       no_undefined_flag='${wl}-z,text'
10021       archive_cmds_need_lc=no
10022       hardcode_shlibpath_var=no
10023       runpath_var='LD_RUN_PATH'
10024
10025       if test "$GCC" = yes; then
10026         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028       else
10029         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031       fi
10032       ;;
10033
10034     sysv5* | sco3.2v5* | sco5v6*)
10035       # Note: We can NOT use -z defs as we might desire, because we do not
10036       # link with -lc, and that would cause any symbols used from libc to
10037       # always be unresolved, which means just about no library would
10038       # ever link correctly.  If we're not using GNU ld we use -z text
10039       # though, which does catch some bad symbols but isn't as heavy-handed
10040       # as -z defs.
10041       no_undefined_flag='${wl}-z,text'
10042       allow_undefined_flag='${wl}-z,nodefs'
10043       archive_cmds_need_lc=no
10044       hardcode_shlibpath_var=no
10045       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10046       hardcode_libdir_separator=':'
10047       link_all_deplibs=yes
10048       export_dynamic_flag_spec='${wl}-Bexport'
10049       runpath_var='LD_RUN_PATH'
10050
10051       if test "$GCC" = yes; then
10052         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054       else
10055         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057       fi
10058       ;;
10059
10060     uts4*)
10061       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062       hardcode_libdir_flag_spec='-L$libdir'
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     *)
10067       ld_shlibs=no
10068       ;;
10069     esac
10070
10071     if test x$host_vendor = xsni; then
10072       case $host in
10073       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10074         export_dynamic_flag_spec='${wl}-Blargedynsym'
10075         ;;
10076       esac
10077     fi
10078   fi
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10081 $as_echo "$ld_shlibs" >&6; }
10082 test "$ld_shlibs" = no && can_build_shared=no
10083
10084 with_gnu_ld=$with_gnu_ld
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100 #
10101 # Do we need to explicitly link libc?
10102 #
10103 case "x$archive_cmds_need_lc" in
10104 x|xyes)
10105   # Assume -lc should be added
10106   archive_cmds_need_lc=yes
10107
10108   if test "$enable_shared" = yes && test "$GCC" = yes; then
10109     case $archive_cmds in
10110     *'~'*)
10111       # FIXME: we may have to deal with multi-command sequences.
10112       ;;
10113     '$CC '*)
10114       # Test whether the compiler implicitly links with -lc since on some
10115       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10116       # to ld, don't add -lc before -lgcc.
10117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10118 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10119 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   $RM conftest*
10123         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10124
10125         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10126   (eval $ac_compile) 2>&5
10127   ac_status=$?
10128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10129   test $ac_status = 0; } 2>conftest.err; then
10130           soname=conftest
10131           lib=conftest
10132           libobjs=conftest.$ac_objext
10133           deplibs=
10134           wl=$lt_prog_compiler_wl
10135           pic_flag=$lt_prog_compiler_pic
10136           compiler_flags=-v
10137           linker_flags=-v
10138           verstring=
10139           output_objdir=.
10140           libname=conftest
10141           lt_save_allow_undefined_flag=$allow_undefined_flag
10142           allow_undefined_flag=
10143           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10144   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10145   ac_status=$?
10146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10147   test $ac_status = 0; }
10148           then
10149             lt_cv_archive_cmds_need_lc=no
10150           else
10151             lt_cv_archive_cmds_need_lc=yes
10152           fi
10153           allow_undefined_flag=$lt_save_allow_undefined_flag
10154         else
10155           cat conftest.err 1>&5
10156         fi
10157         $RM conftest*
10158
10159 fi
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10161 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10162       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10163       ;;
10164     esac
10165   fi
10166   ;;
10167 esac
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10322
10323 if test "$GCC" = yes; then
10324   case $host_os in
10325     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10326     *) lt_awk_arg="/^libraries:/" ;;
10327   esac
10328   case $host_os in
10329     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10330     *) lt_sed_strip_eq="s,=/,/,g" ;;
10331   esac
10332   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10333   case $lt_search_path_spec in
10334   *\;*)
10335     # if the path contains ";" then we assume it to be the separator
10336     # otherwise default to the standard path separator (i.e. ":") - it is
10337     # assumed that no part of a normal pathname contains ";" but that should
10338     # okay in the real world where ";" in dirpaths is itself problematic.
10339     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10340     ;;
10341   *)
10342     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10343     ;;
10344   esac
10345   # Ok, now we have the path, separated by spaces, we can step through it
10346   # and add multilib dir if necessary.
10347   lt_tmp_lt_search_path_spec=
10348   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10349   for lt_sys_path in $lt_search_path_spec; do
10350     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10351       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10352     else
10353       test -d "$lt_sys_path" && \
10354         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10355     fi
10356   done
10357   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10358 BEGIN {RS=" "; FS="/|\n";} {
10359   lt_foo="";
10360   lt_count=0;
10361   for (lt_i = NF; lt_i > 0; lt_i--) {
10362     if ($lt_i != "" && $lt_i != ".") {
10363       if ($lt_i == "..") {
10364         lt_count++;
10365       } else {
10366         if (lt_count == 0) {
10367           lt_foo="/" $lt_i lt_foo;
10368         } else {
10369           lt_count--;
10370         }
10371       }
10372     }
10373   }
10374   if (lt_foo != "") { lt_freq[lt_foo]++; }
10375   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10376 }'`
10377   # AWK program above erroneously prepends '/' to C:/dos/paths
10378   # for these hosts.
10379   case $host_os in
10380     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10381       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10382   esac
10383   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10384 else
10385   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10386 fi
10387 library_names_spec=
10388 libname_spec='lib$name'
10389 soname_spec=
10390 shrext_cmds=".so"
10391 postinstall_cmds=
10392 postuninstall_cmds=
10393 finish_cmds=
10394 finish_eval=
10395 shlibpath_var=
10396 shlibpath_overrides_runpath=unknown
10397 version_type=none
10398 dynamic_linker="$host_os ld.so"
10399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10400 need_lib_prefix=unknown
10401 hardcode_into_libs=no
10402
10403 # when you set need_version to no, make sure it does not cause -set_version
10404 # flags to be left without arguments
10405 need_version=unknown
10406
10407 case $host_os in
10408 aix3*)
10409   version_type=linux # correct to gnu/linux during the next big refactor
10410   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10411   shlibpath_var=LIBPATH
10412
10413   # AIX 3 has no versioning support, so we append a major version to the name.
10414   soname_spec='${libname}${release}${shared_ext}$major'
10415   ;;
10416
10417 aix[4-9]*)
10418   version_type=linux # correct to gnu/linux during the next big refactor
10419   need_lib_prefix=no
10420   need_version=no
10421   hardcode_into_libs=yes
10422   if test "$host_cpu" = ia64; then
10423     # AIX 5 supports IA64
10424     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10425     shlibpath_var=LD_LIBRARY_PATH
10426   else
10427     # With GCC up to 2.95.x, collect2 would create an import file
10428     # for dependence libraries.  The import file would start with
10429     # the line `#! .'.  This would cause the generated library to
10430     # depend on `.', always an invalid library.  This was fixed in
10431     # development snapshots of GCC prior to 3.0.
10432     case $host_os in
10433       aix4 | aix4.[01] | aix4.[01].*)
10434       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10435            echo ' yes '
10436            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10437         :
10438       else
10439         can_build_shared=no
10440       fi
10441       ;;
10442     esac
10443     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10444     # soname into executable. Probably we can add versioning support to
10445     # collect2, so additional links can be useful in future.
10446     if test "$aix_use_runtimelinking" = yes; then
10447       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10448       # instead of lib<name>.a to let people know that these are not
10449       # typical AIX shared libraries.
10450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451     else
10452       # We preserve .a as extension for shared libraries through AIX4.2
10453       # and later when we are not doing run time linking.
10454       library_names_spec='${libname}${release}.a $libname.a'
10455       soname_spec='${libname}${release}${shared_ext}$major'
10456     fi
10457     shlibpath_var=LIBPATH
10458   fi
10459   ;;
10460
10461 amigaos*)
10462   case $host_cpu in
10463   powerpc)
10464     # Since July 2007 AmigaOS4 officially supports .so libraries.
10465     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467     ;;
10468   m68k)
10469     library_names_spec='$libname.ixlibrary $libname.a'
10470     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10471     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10472     ;;
10473   esac
10474   ;;
10475
10476 beos*)
10477   library_names_spec='${libname}${shared_ext}'
10478   dynamic_linker="$host_os ld.so"
10479   shlibpath_var=LIBRARY_PATH
10480   ;;
10481
10482 bsdi[45]*)
10483   version_type=linux # correct to gnu/linux during the next big refactor
10484   need_version=no
10485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486   soname_spec='${libname}${release}${shared_ext}$major'
10487   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10488   shlibpath_var=LD_LIBRARY_PATH
10489   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10490   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10491   # the default ld.so.conf also contains /usr/contrib/lib and
10492   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10493   # libtool to hard-code these into programs
10494   ;;
10495
10496 cygwin* | mingw* | pw32* | cegcc*)
10497   version_type=windows
10498   shrext_cmds=".dll"
10499   need_version=no
10500   need_lib_prefix=no
10501
10502   case $GCC,$cc_basename in
10503   yes,*)
10504     # gcc
10505     library_names_spec='$libname.dll.a'
10506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10507     postinstall_cmds='base_file=`basename \${file}`~
10508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10509       dldir=$destdir/`dirname \$dlpath`~
10510       test -d \$dldir || mkdir -p \$dldir~
10511       $install_prog $dir/$dlname \$dldir/$dlname~
10512       chmod a+x \$dldir/$dlname~
10513       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10514         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10515       fi'
10516     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10517       dlpath=$dir/\$dldll~
10518        $RM \$dlpath'
10519     shlibpath_overrides_runpath=yes
10520
10521     case $host_os in
10522     cygwin*)
10523       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10524       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10525
10526       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10527       ;;
10528     mingw* | cegcc*)
10529       # MinGW DLLs use traditional 'lib' prefix
10530       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531       ;;
10532     pw32*)
10533       # pw32 DLLs use 'pw' prefix rather than 'lib'
10534       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535       ;;
10536     esac
10537     dynamic_linker='Win32 ld.exe'
10538     ;;
10539
10540   *,cl*)
10541     # Native MSVC
10542     libname_spec='$name'
10543     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544     library_names_spec='${libname}.dll.lib'
10545
10546     case $build_os in
10547     mingw*)
10548       sys_lib_search_path_spec=
10549       lt_save_ifs=$IFS
10550       IFS=';'
10551       for lt_path in $LIB
10552       do
10553         IFS=$lt_save_ifs
10554         # Let DOS variable expansion print the short 8.3 style file name.
10555         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10556         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10557       done
10558       IFS=$lt_save_ifs
10559       # Convert to MSYS style.
10560       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10561       ;;
10562     cygwin*)
10563       # Convert to unix form, then to dos form, then back to unix form
10564       # but this time dos style (no spaces!) so that the unix form looks
10565       # like /cygdrive/c/PROGRA~1:/cygdr...
10566       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10567       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10568       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10569       ;;
10570     *)
10571       sys_lib_search_path_spec="$LIB"
10572       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10573         # It is most probably a Windows format PATH.
10574         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10575       else
10576         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10577       fi
10578       # FIXME: find the short name or the path components, as spaces are
10579       # common. (e.g. "Program Files" -> "PROGRA~1")
10580       ;;
10581     esac
10582
10583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10584     postinstall_cmds='base_file=`basename \${file}`~
10585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10586       dldir=$destdir/`dirname \$dlpath`~
10587       test -d \$dldir || mkdir -p \$dldir~
10588       $install_prog $dir/$dlname \$dldir/$dlname'
10589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10590       dlpath=$dir/\$dldll~
10591        $RM \$dlpath'
10592     shlibpath_overrides_runpath=yes
10593     dynamic_linker='Win32 link.exe'
10594     ;;
10595
10596   *)
10597     # Assume MSVC wrapper
10598     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10599     dynamic_linker='Win32 ld.exe'
10600     ;;
10601   esac
10602   # FIXME: first we should search . and the directory the executable is in
10603   shlibpath_var=PATH
10604   ;;
10605
10606 darwin* | rhapsody*)
10607   dynamic_linker="$host_os dyld"
10608   version_type=darwin
10609   need_lib_prefix=no
10610   need_version=no
10611   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612   soname_spec='${libname}${release}${major}$shared_ext'
10613   shlibpath_overrides_runpath=yes
10614   shlibpath_var=DYLD_LIBRARY_PATH
10615   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10616
10617   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10618   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10619   ;;
10620
10621 dgux*)
10622   version_type=linux # correct to gnu/linux during the next big refactor
10623   need_lib_prefix=no
10624   need_version=no
10625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626   soname_spec='${libname}${release}${shared_ext}$major'
10627   shlibpath_var=LD_LIBRARY_PATH
10628   ;;
10629
10630 freebsd* | dragonfly*)
10631   # DragonFly does not have aout.  When/if they implement a new
10632   # versioning mechanism, adjust this.
10633   if test -x /usr/bin/objformat; then
10634     objformat=`/usr/bin/objformat`
10635   else
10636     case $host_os in
10637     freebsd[23].*) objformat=aout ;;
10638     *) objformat=elf ;;
10639     esac
10640   fi
10641   version_type=freebsd-$objformat
10642   case $version_type in
10643     freebsd-elf*)
10644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645       need_version=no
10646       need_lib_prefix=no
10647       ;;
10648     freebsd-*)
10649       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10650       need_version=yes
10651       ;;
10652   esac
10653   shlibpath_var=LD_LIBRARY_PATH
10654   case $host_os in
10655   freebsd2.*)
10656     shlibpath_overrides_runpath=yes
10657     ;;
10658   freebsd3.[01]* | freebsdelf3.[01]*)
10659     shlibpath_overrides_runpath=yes
10660     hardcode_into_libs=yes
10661     ;;
10662   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10663   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10664     shlibpath_overrides_runpath=no
10665     hardcode_into_libs=yes
10666     ;;
10667   *) # from 4.6 on, and DragonFly
10668     shlibpath_overrides_runpath=yes
10669     hardcode_into_libs=yes
10670     ;;
10671   esac
10672   ;;
10673
10674 haiku*)
10675   version_type=linux # correct to gnu/linux during the next big refactor
10676   need_lib_prefix=no
10677   need_version=no
10678   dynamic_linker="$host_os runtime_loader"
10679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10680   soname_spec='${libname}${release}${shared_ext}$major'
10681   shlibpath_var=LIBRARY_PATH
10682   shlibpath_overrides_runpath=yes
10683   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10684   hardcode_into_libs=yes
10685   ;;
10686
10687 hpux9* | hpux10* | hpux11*)
10688   # Give a soname corresponding to the major version so that dld.sl refuses to
10689   # link against other versions.
10690   version_type=sunos
10691   need_lib_prefix=no
10692   need_version=no
10693   case $host_cpu in
10694   ia64*)
10695     shrext_cmds='.so'
10696     hardcode_into_libs=yes
10697     dynamic_linker="$host_os dld.so"
10698     shlibpath_var=LD_LIBRARY_PATH
10699     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701     soname_spec='${libname}${release}${shared_ext}$major'
10702     if test "X$HPUX_IA64_MODE" = X32; then
10703       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10704     else
10705       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10706     fi
10707     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10708     ;;
10709   hppa*64*)
10710     shrext_cmds='.sl'
10711     hardcode_into_libs=yes
10712     dynamic_linker="$host_os dld.sl"
10713     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10714     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716     soname_spec='${libname}${release}${shared_ext}$major'
10717     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10718     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10719     ;;
10720   *)
10721     shrext_cmds='.sl'
10722     dynamic_linker="$host_os dld.sl"
10723     shlibpath_var=SHLIB_PATH
10724     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726     soname_spec='${libname}${release}${shared_ext}$major'
10727     ;;
10728   esac
10729   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10730   postinstall_cmds='chmod 555 $lib'
10731   # or fails outright, so override atomically:
10732   install_override_mode=555
10733   ;;
10734
10735 interix[3-9]*)
10736   version_type=linux # correct to gnu/linux during the next big refactor
10737   need_lib_prefix=no
10738   need_version=no
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10742   shlibpath_var=LD_LIBRARY_PATH
10743   shlibpath_overrides_runpath=no
10744   hardcode_into_libs=yes
10745   ;;
10746
10747 irix5* | irix6* | nonstopux*)
10748   case $host_os in
10749     nonstopux*) version_type=nonstopux ;;
10750     *)
10751         if test "$lt_cv_prog_gnu_ld" = yes; then
10752                 version_type=linux # correct to gnu/linux during the next big refactor
10753         else
10754                 version_type=irix
10755         fi ;;
10756   esac
10757   need_lib_prefix=no
10758   need_version=no
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10761   case $host_os in
10762   irix5* | nonstopux*)
10763     libsuff= shlibsuff=
10764     ;;
10765   *)
10766     case $LD in # libtool.m4 will add one of these switches to LD
10767     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10768       libsuff= shlibsuff= libmagic=32-bit;;
10769     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10770       libsuff=32 shlibsuff=N32 libmagic=N32;;
10771     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10772       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10773     *) libsuff= shlibsuff= libmagic=never-match;;
10774     esac
10775     ;;
10776   esac
10777   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10778   shlibpath_overrides_runpath=no
10779   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10780   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10781   hardcode_into_libs=yes
10782   ;;
10783
10784 # No shared lib support for Linux oldld, aout, or coff.
10785 linux*oldld* | linux*aout* | linux*coff*)
10786   dynamic_linker=no
10787   ;;
10788
10789 # This must be glibc/ELF.
10790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10791   version_type=linux # correct to gnu/linux during the next big refactor
10792   need_lib_prefix=no
10793   need_version=no
10794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795   soname_spec='${libname}${release}${shared_ext}$major'
10796   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10797   shlibpath_var=LD_LIBRARY_PATH
10798   shlibpath_overrides_runpath=no
10799
10800   # Some binutils ld are patched to set DT_RUNPATH
10801   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10802   $as_echo_n "(cached) " >&6
10803 else
10804   lt_cv_shlibpath_overrides_runpath=no
10805     save_LDFLAGS=$LDFLAGS
10806     save_libdir=$libdir
10807     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10808          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10809     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811
10812 int
10813 main ()
10814 {
10815
10816   ;
10817   return 0;
10818 }
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10822   lt_cv_shlibpath_overrides_runpath=yes
10823 fi
10824 fi
10825 rm -f core conftest.err conftest.$ac_objext \
10826     conftest$ac_exeext conftest.$ac_ext
10827     LDFLAGS=$save_LDFLAGS
10828     libdir=$save_libdir
10829
10830 fi
10831
10832   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10833
10834   # This implies no fast_install, which is unacceptable.
10835   # Some rework will be needed to allow for fast_install
10836   # before this can be enabled.
10837   hardcode_into_libs=yes
10838
10839   # Append ld.so.conf contents to the search path
10840   if test -f /etc/ld.so.conf; then
10841     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;s/"//g;/^$/d' | tr '\n' ' '`
10842     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10843   fi
10844
10845   # We used to test for /lib/ld.so.1 and disable shared libraries on
10846   # powerpc, because MkLinux only supported shared libraries with the
10847   # GNU dynamic linker.  Since this was broken with cross compilers,
10848   # most powerpc-linux boxes support dynamic linking these days and
10849   # people can always --disable-shared, the test was removed, and we
10850   # assume the GNU/Linux dynamic linker is in use.
10851   dynamic_linker='GNU/Linux ld.so'
10852   ;;
10853
10854 netbsdelf*-gnu)
10855   version_type=linux
10856   need_lib_prefix=no
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   shlibpath_overrides_runpath=no
10862   hardcode_into_libs=yes
10863   dynamic_linker='NetBSD ld.elf_so'
10864   ;;
10865
10866 netbsd*)
10867   version_type=sunos
10868   need_lib_prefix=no
10869   need_version=no
10870   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10872     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10873     dynamic_linker='NetBSD (a.out) ld.so'
10874   else
10875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10876     soname_spec='${libname}${release}${shared_ext}$major'
10877     dynamic_linker='NetBSD ld.elf_so'
10878   fi
10879   shlibpath_var=LD_LIBRARY_PATH
10880   shlibpath_overrides_runpath=yes
10881   hardcode_into_libs=yes
10882   ;;
10883
10884 newsos6)
10885   version_type=linux # correct to gnu/linux during the next big refactor
10886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887   shlibpath_var=LD_LIBRARY_PATH
10888   shlibpath_overrides_runpath=yes
10889   ;;
10890
10891 *nto* | *qnx*)
10892   version_type=qnx
10893   need_lib_prefix=no
10894   need_version=no
10895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896   soname_spec='${libname}${release}${shared_ext}$major'
10897   shlibpath_var=LD_LIBRARY_PATH
10898   shlibpath_overrides_runpath=no
10899   hardcode_into_libs=yes
10900   dynamic_linker='ldqnx.so'
10901   ;;
10902
10903 openbsd*)
10904   version_type=sunos
10905   sys_lib_dlsearch_path_spec="/usr/lib"
10906   need_lib_prefix=no
10907   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10908   case $host_os in
10909     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10910     *)                          need_version=no  ;;
10911   esac
10912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10913   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10916     case $host_os in
10917       openbsd2.[89] | openbsd2.[89].*)
10918         shlibpath_overrides_runpath=no
10919         ;;
10920       *)
10921         shlibpath_overrides_runpath=yes
10922         ;;
10923       esac
10924   else
10925     shlibpath_overrides_runpath=yes
10926   fi
10927   ;;
10928
10929 os2*)
10930   libname_spec='$name'
10931   shrext_cmds=".dll"
10932   need_lib_prefix=no
10933   library_names_spec='$libname${shared_ext} $libname.a'
10934   dynamic_linker='OS/2 ld.exe'
10935   shlibpath_var=LIBPATH
10936   ;;
10937
10938 osf3* | osf4* | osf5*)
10939   version_type=osf
10940   need_lib_prefix=no
10941   need_version=no
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944   shlibpath_var=LD_LIBRARY_PATH
10945   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10946   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10947   ;;
10948
10949 rdos*)
10950   dynamic_linker=no
10951   ;;
10952
10953 solaris*)
10954   version_type=linux # correct to gnu/linux during the next big refactor
10955   need_lib_prefix=no
10956   need_version=no
10957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958   soname_spec='${libname}${release}${shared_ext}$major'
10959   shlibpath_var=LD_LIBRARY_PATH
10960   shlibpath_overrides_runpath=yes
10961   hardcode_into_libs=yes
10962   # ldd complains unless libraries are executable
10963   postinstall_cmds='chmod +x $lib'
10964   ;;
10965
10966 sunos4*)
10967   version_type=sunos
10968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10969   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10970   shlibpath_var=LD_LIBRARY_PATH
10971   shlibpath_overrides_runpath=yes
10972   if test "$with_gnu_ld" = yes; then
10973     need_lib_prefix=no
10974   fi
10975   need_version=yes
10976   ;;
10977
10978 sysv4 | sysv4.3*)
10979   version_type=linux # correct to gnu/linux during the next big refactor
10980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981   soname_spec='${libname}${release}${shared_ext}$major'
10982   shlibpath_var=LD_LIBRARY_PATH
10983   case $host_vendor in
10984     sni)
10985       shlibpath_overrides_runpath=no
10986       need_lib_prefix=no
10987       runpath_var=LD_RUN_PATH
10988       ;;
10989     siemens)
10990       need_lib_prefix=no
10991       ;;
10992     motorola)
10993       need_lib_prefix=no
10994       need_version=no
10995       shlibpath_overrides_runpath=no
10996       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10997       ;;
10998   esac
10999   ;;
11000
11001 sysv4*MP*)
11002   if test -d /usr/nec ;then
11003     version_type=linux # correct to gnu/linux during the next big refactor
11004     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11005     soname_spec='$libname${shared_ext}.$major'
11006     shlibpath_var=LD_LIBRARY_PATH
11007   fi
11008   ;;
11009
11010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11011   version_type=freebsd-elf
11012   need_lib_prefix=no
11013   need_version=no
11014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11015   soname_spec='${libname}${release}${shared_ext}$major'
11016   shlibpath_var=LD_LIBRARY_PATH
11017   shlibpath_overrides_runpath=yes
11018   hardcode_into_libs=yes
11019   if test "$with_gnu_ld" = yes; then
11020     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11021   else
11022     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11023     case $host_os in
11024       sco3.2v5*)
11025         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11026         ;;
11027     esac
11028   fi
11029   sys_lib_dlsearch_path_spec='/usr/lib'
11030   ;;
11031
11032 tpf*)
11033   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11034   version_type=linux # correct to gnu/linux during the next big refactor
11035   need_lib_prefix=no
11036   need_version=no
11037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   shlibpath_overrides_runpath=no
11040   hardcode_into_libs=yes
11041   ;;
11042
11043 uts4*)
11044   version_type=linux # correct to gnu/linux during the next big refactor
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   shlibpath_var=LD_LIBRARY_PATH
11048   ;;
11049
11050 *)
11051   dynamic_linker=no
11052   ;;
11053 esac
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11055 $as_echo "$dynamic_linker" >&6; }
11056 test "$dynamic_linker" = no && can_build_shared=no
11057
11058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11059 if test "$GCC" = yes; then
11060   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11061 fi
11062
11063 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11064   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11065 fi
11066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11067   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11068 fi
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11162 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11163 hardcode_action=
11164 if test -n "$hardcode_libdir_flag_spec" ||
11165    test -n "$runpath_var" ||
11166    test "X$hardcode_automatic" = "Xyes" ; then
11167
11168   # We can hardcode non-existent directories.
11169   if test "$hardcode_direct" != no &&
11170      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11171      # have to relink, otherwise we might link with an installed library
11172      # when we should be linking with a yet-to-be-installed one
11173      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11174      test "$hardcode_minus_L" != no; then
11175     # Linking always hardcodes the temporary library directory.
11176     hardcode_action=relink
11177   else
11178     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11179     hardcode_action=immediate
11180   fi
11181 else
11182   # We cannot hardcode anything, or else we can only hardcode existing
11183   # directories.
11184   hardcode_action=unsupported
11185 fi
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11187 $as_echo "$hardcode_action" >&6; }
11188
11189 if test "$hardcode_action" = relink ||
11190    test "$inherit_rpath" = yes; then
11191   # Fast installation is not supported
11192   enable_fast_install=no
11193 elif test "$shlibpath_overrides_runpath" = yes ||
11194      test "$enable_shared" = no; then
11195   # Fast installation is not necessary
11196   enable_fast_install=needless
11197 fi
11198
11199
11200
11201
11202
11203
11204   if test "x$enable_dlopen" != xyes; then
11205   enable_dlopen=unknown
11206   enable_dlopen_self=unknown
11207   enable_dlopen_self_static=unknown
11208 else
11209   lt_cv_dlopen=no
11210   lt_cv_dlopen_libs=
11211
11212   case $host_os in
11213   beos*)
11214     lt_cv_dlopen="load_add_on"
11215     lt_cv_dlopen_libs=
11216     lt_cv_dlopen_self=yes
11217     ;;
11218
11219   mingw* | pw32* | cegcc*)
11220     lt_cv_dlopen="LoadLibrary"
11221     lt_cv_dlopen_libs=
11222     ;;
11223
11224   cygwin*)
11225     lt_cv_dlopen="dlopen"
11226     lt_cv_dlopen_libs=
11227     ;;
11228
11229   darwin*)
11230   # if libdl is installed we need to link against it
11231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11233 if ${ac_cv_lib_dl_dlopen+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-ldl  $LIBS"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h.  */
11240
11241 /* Override any GCC internal prototype to avoid an error.
11242    Use char because int might match the return type of a GCC
11243    builtin and then its argument prototype would still apply.  */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char dlopen ();
11248 int
11249 main ()
11250 {
11251 return dlopen ();
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257   ac_cv_lib_dl_dlopen=yes
11258 else
11259   ac_cv_lib_dl_dlopen=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262     conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11267 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11268   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11269 else
11270
11271     lt_cv_dlopen="dyld"
11272     lt_cv_dlopen_libs=
11273     lt_cv_dlopen_self=yes
11274
11275 fi
11276
11277     ;;
11278
11279   *)
11280     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11281 if test "x$ac_cv_func_shl_load" = xyes; then :
11282   lt_cv_dlopen="shl_load"
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11285 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11286 if ${ac_cv_lib_dld_shl_load+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-ldld  $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295    Use char because int might match the return type of a GCC
11296    builtin and then its argument prototype would still apply.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char shl_load ();
11301 int
11302 main ()
11303 {
11304 return shl_load ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310   ac_cv_lib_dld_shl_load=yes
11311 else
11312   ac_cv_lib_dld_shl_load=no
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext \
11315     conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11319 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11320 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11321   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11322 else
11323   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11324 if test "x$ac_cv_func_dlopen" = xyes; then :
11325   lt_cv_dlopen="dlopen"
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11329 if ${ac_cv_lib_dl_dlopen+:} false; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   ac_check_lib_save_LIBS=$LIBS
11333 LIBS="-ldl  $LIBS"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h.  */
11336
11337 /* Override any GCC internal prototype to avoid an error.
11338    Use char because int might match the return type of a GCC
11339    builtin and then its argument prototype would still apply.  */
11340 #ifdef __cplusplus
11341 extern "C"
11342 #endif
11343 char dlopen ();
11344 int
11345 main ()
11346 {
11347 return dlopen ();
11348   ;
11349   return 0;
11350 }
11351 _ACEOF
11352 if ac_fn_c_try_link "$LINENO"; then :
11353   ac_cv_lib_dl_dlopen=yes
11354 else
11355   ac_cv_lib_dl_dlopen=no
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext \
11358     conftest$ac_exeext conftest.$ac_ext
11359 LIBS=$ac_check_lib_save_LIBS
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11362 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11363 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11365 else
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11367 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11368 if ${ac_cv_lib_svld_dlopen+:} false; then :
11369   $as_echo_n "(cached) " >&6
11370 else
11371   ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-lsvld  $LIBS"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h.  */
11375
11376 /* Override any GCC internal prototype to avoid an error.
11377    Use char because int might match the return type of a GCC
11378    builtin and then its argument prototype would still apply.  */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char dlopen ();
11383 int
11384 main ()
11385 {
11386 return dlopen ();
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392   ac_cv_lib_svld_dlopen=yes
11393 else
11394   ac_cv_lib_svld_dlopen=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397     conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11401 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11402 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11403   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11404 else
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11406 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11407 if ${ac_cv_lib_dld_dld_link+:} false; then :
11408   $as_echo_n "(cached) " >&6
11409 else
11410   ac_check_lib_save_LIBS=$LIBS
11411 LIBS="-ldld  $LIBS"
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h.  */
11414
11415 /* Override any GCC internal prototype to avoid an error.
11416    Use char because int might match the return type of a GCC
11417    builtin and then its argument prototype would still apply.  */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 char dld_link ();
11422 int
11423 main ()
11424 {
11425 return dld_link ();
11426   ;
11427   return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_c_try_link "$LINENO"; then :
11431   ac_cv_lib_dld_dld_link=yes
11432 else
11433   ac_cv_lib_dld_dld_link=no
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext \
11436     conftest$ac_exeext conftest.$ac_ext
11437 LIBS=$ac_check_lib_save_LIBS
11438 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11440 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11441 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11442   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11443 fi
11444
11445
11446 fi
11447
11448
11449 fi
11450
11451
11452 fi
11453
11454
11455 fi
11456
11457
11458 fi
11459
11460     ;;
11461   esac
11462
11463   if test "x$lt_cv_dlopen" != xno; then
11464     enable_dlopen=yes
11465   else
11466     enable_dlopen=no
11467   fi
11468
11469   case $lt_cv_dlopen in
11470   dlopen)
11471     save_CPPFLAGS="$CPPFLAGS"
11472     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11473
11474     save_LDFLAGS="$LDFLAGS"
11475     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11476
11477     save_LIBS="$LIBS"
11478     LIBS="$lt_cv_dlopen_libs $LIBS"
11479
11480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11481 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11482 if ${lt_cv_dlopen_self+:} false; then :
11483   $as_echo_n "(cached) " >&6
11484 else
11485           if test "$cross_compiling" = yes; then :
11486   lt_cv_dlopen_self=cross
11487 else
11488   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11489   lt_status=$lt_dlunknown
11490   cat > conftest.$ac_ext <<_LT_EOF
11491 #line $LINENO "configure"
11492 #include "confdefs.h"
11493
11494 #if HAVE_DLFCN_H
11495 #include <dlfcn.h>
11496 #endif
11497
11498 #include <stdio.h>
11499
11500 #ifdef RTLD_GLOBAL
11501 #  define LT_DLGLOBAL           RTLD_GLOBAL
11502 #else
11503 #  ifdef DL_GLOBAL
11504 #    define LT_DLGLOBAL         DL_GLOBAL
11505 #  else
11506 #    define LT_DLGLOBAL         0
11507 #  endif
11508 #endif
11509
11510 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11511    find out it does not work in some platform. */
11512 #ifndef LT_DLLAZY_OR_NOW
11513 #  ifdef RTLD_LAZY
11514 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11515 #  else
11516 #    ifdef DL_LAZY
11517 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11518 #    else
11519 #      ifdef RTLD_NOW
11520 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11521 #      else
11522 #        ifdef DL_NOW
11523 #          define LT_DLLAZY_OR_NOW      DL_NOW
11524 #        else
11525 #          define LT_DLLAZY_OR_NOW      0
11526 #        endif
11527 #      endif
11528 #    endif
11529 #  endif
11530 #endif
11531
11532 /* When -fvisbility=hidden is used, assume the code has been annotated
11533    correspondingly for the symbols needed.  */
11534 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11535 int fnord () __attribute__((visibility("default")));
11536 #endif
11537
11538 int fnord () { return 42; }
11539 int main ()
11540 {
11541   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11542   int status = $lt_dlunknown;
11543
11544   if (self)
11545     {
11546       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11547       else
11548         {
11549           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11550           else puts (dlerror ());
11551         }
11552       /* dlclose (self); */
11553     }
11554   else
11555     puts (dlerror ());
11556
11557   return status;
11558 }
11559 _LT_EOF
11560   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11561   (eval $ac_link) 2>&5
11562   ac_status=$?
11563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11564   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11565     (./conftest; exit; ) >&5 2>/dev/null
11566     lt_status=$?
11567     case x$lt_status in
11568       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11569       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11570       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11571     esac
11572   else :
11573     # compilation failed
11574     lt_cv_dlopen_self=no
11575   fi
11576 fi
11577 rm -fr conftest*
11578
11579
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11582 $as_echo "$lt_cv_dlopen_self" >&6; }
11583
11584     if test "x$lt_cv_dlopen_self" = xyes; then
11585       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11586       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11587 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11588 if ${lt_cv_dlopen_self_static+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591           if test "$cross_compiling" = yes; then :
11592   lt_cv_dlopen_self_static=cross
11593 else
11594   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11595   lt_status=$lt_dlunknown
11596   cat > conftest.$ac_ext <<_LT_EOF
11597 #line $LINENO "configure"
11598 #include "confdefs.h"
11599
11600 #if HAVE_DLFCN_H
11601 #include <dlfcn.h>
11602 #endif
11603
11604 #include <stdio.h>
11605
11606 #ifdef RTLD_GLOBAL
11607 #  define LT_DLGLOBAL           RTLD_GLOBAL
11608 #else
11609 #  ifdef DL_GLOBAL
11610 #    define LT_DLGLOBAL         DL_GLOBAL
11611 #  else
11612 #    define LT_DLGLOBAL         0
11613 #  endif
11614 #endif
11615
11616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11617    find out it does not work in some platform. */
11618 #ifndef LT_DLLAZY_OR_NOW
11619 #  ifdef RTLD_LAZY
11620 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11621 #  else
11622 #    ifdef DL_LAZY
11623 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11624 #    else
11625 #      ifdef RTLD_NOW
11626 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11627 #      else
11628 #        ifdef DL_NOW
11629 #          define LT_DLLAZY_OR_NOW      DL_NOW
11630 #        else
11631 #          define LT_DLLAZY_OR_NOW      0
11632 #        endif
11633 #      endif
11634 #    endif
11635 #  endif
11636 #endif
11637
11638 /* When -fvisbility=hidden is used, assume the code has been annotated
11639    correspondingly for the symbols needed.  */
11640 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11641 int fnord () __attribute__((visibility("default")));
11642 #endif
11643
11644 int fnord () { return 42; }
11645 int main ()
11646 {
11647   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11648   int status = $lt_dlunknown;
11649
11650   if (self)
11651     {
11652       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11653       else
11654         {
11655           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11656           else puts (dlerror ());
11657         }
11658       /* dlclose (self); */
11659     }
11660   else
11661     puts (dlerror ());
11662
11663   return status;
11664 }
11665 _LT_EOF
11666   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11667   (eval $ac_link) 2>&5
11668   ac_status=$?
11669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11671     (./conftest; exit; ) >&5 2>/dev/null
11672     lt_status=$?
11673     case x$lt_status in
11674       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11675       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11676       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11677     esac
11678   else :
11679     # compilation failed
11680     lt_cv_dlopen_self_static=no
11681   fi
11682 fi
11683 rm -fr conftest*
11684
11685
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11688 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11689     fi
11690
11691     CPPFLAGS="$save_CPPFLAGS"
11692     LDFLAGS="$save_LDFLAGS"
11693     LIBS="$save_LIBS"
11694     ;;
11695   esac
11696
11697   case $lt_cv_dlopen_self in
11698   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11699   *) enable_dlopen_self=unknown ;;
11700   esac
11701
11702   case $lt_cv_dlopen_self_static in
11703   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11704   *) enable_dlopen_self_static=unknown ;;
11705   esac
11706 fi
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724 striplib=
11725 old_striplib=
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11727 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11728 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11729   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11730   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11732 $as_echo "yes" >&6; }
11733 else
11734 # FIXME - insert some real tests, host_os isn't really good enough
11735   case $host_os in
11736   darwin*)
11737     if test -n "$STRIP" ; then
11738       striplib="$STRIP -x"
11739       old_striplib="$STRIP -S"
11740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 $as_echo "yes" >&6; }
11742     else
11743       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745     fi
11746     ;;
11747   *)
11748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750     ;;
11751   esac
11752 fi
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765   # Report which library types will actually be built
11766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11767 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11769 $as_echo "$can_build_shared" >&6; }
11770
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11772 $as_echo_n "checking whether to build shared libraries... " >&6; }
11773   test "$can_build_shared" = "no" && enable_shared=no
11774
11775   # On AIX, shared libraries and static libraries use the same namespace, and
11776   # are all built from PIC.
11777   case $host_os in
11778   aix3*)
11779     test "$enable_shared" = yes && enable_static=no
11780     if test -n "$RANLIB"; then
11781       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11782       postinstall_cmds='$RANLIB $lib'
11783     fi
11784     ;;
11785
11786   aix[4-9]*)
11787     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11788       test "$enable_shared" = yes && enable_static=no
11789     fi
11790     ;;
11791   esac
11792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11793 $as_echo "$enable_shared" >&6; }
11794
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11796 $as_echo_n "checking whether to build static libraries... " >&6; }
11797   # Make sure either enable_shared or enable_static is yes.
11798   test "$enable_shared" = yes || enable_static=yes
11799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11800 $as_echo "$enable_static" >&6; }
11801
11802
11803
11804
11805 fi
11806 ac_ext=c
11807 ac_cpp='$CPP $CPPFLAGS'
11808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811
11812 CC="$lt_save_CC"
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828         ac_config_commands="$ac_config_commands libtool"
11829
11830
11831
11832
11833 # Only expand once:
11834
11835
11836
11837
11838 # Check whether --with-kernel was given.
11839 if test "${with_kernel+set}" = set; then :
11840   withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
11841 fi
11842
11843
11844 # Check whether --with-kbuild was given.
11845 if test "${with_kbuild+set}" = set; then :
11846   withval=$with_kbuild; kbuilddir="$withval"
11847 fi
11848
11849
11850 # Check whether --with-ksource was given.
11851 if test "${with_ksource+set}" = set; then :
11852   withval=$with_ksource; ksourcedir="$withval"
11853 fi
11854
11855
11856 # Check whether --with-xtlibdir was given.
11857 if test "${with_xtlibdir+set}" = set; then :
11858   withval=$with_xtlibdir; xtlibdir="$withval"
11859 else
11860   xtlibdir="${libdir}/xtables"
11861 fi
11862
11863 # Check whether --enable-ipv4 was given.
11864 if test "${enable_ipv4+set}" = set; then :
11865   enableval=$enable_ipv4; enable_ipv4="$enableval"
11866 else
11867   enable_ipv4="yes"
11868 fi
11869
11870 # Check whether --enable-ipv6 was given.
11871 if test "${enable_ipv6+set}" = set; then :
11872   enableval=$enable_ipv6; enable_ipv6="$enableval"
11873 else
11874   enable_ipv6="yes"
11875 fi
11876
11877 # Check whether --enable-largefile was given.
11878 if test "${enable_largefile+set}" = set; then :
11879   enableval=$enable_largefile; enable_largefile="$enableval"
11880 else
11881   enable_largefile="yes";
11882         largefile_cppflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'
11883 fi
11884
11885 # Check whether --enable-devel was given.
11886 if test "${enable_devel+set}" = set; then :
11887   enableval=$enable_devel; enable_devel="$enableval"
11888 else
11889   enable_devel="yes"
11890 fi
11891
11892 # Check whether --enable-libipq was given.
11893 if test "${enable_libipq+set}" = set; then :
11894   enableval=$enable_libipq; enable_libipq="$enableval"
11895 else
11896   enable_libipq="no"
11897 fi
11898
11899 # Check whether --enable-bpf-compiler was given.
11900 if test "${enable_bpf_compiler+set}" = set; then :
11901   enableval=$enable_bpf_compiler; enable_bpfc="yes"
11902 else
11903   enable_bpfc="no"
11904 fi
11905
11906 # Check whether --enable-nfsynproxy was given.
11907 if test "${enable_nfsynproxy+set}" = set; then :
11908   enableval=$enable_nfsynproxy; enable_nfsynproxy="yes"
11909 else
11910   enable_nfsynproxy="no"
11911 fi
11912
11913
11914 # Check whether --with-pkgconfigdir was given.
11915 if test "${with_pkgconfigdir+set}" = set; then :
11916   withval=$with_pkgconfigdir; pkgconfigdir="$withval"
11917 else
11918   pkgconfigdir='${libdir}/pkgconfig'
11919 fi
11920
11921
11922 libiptc_LDFLAGS2="";
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
11924 $as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
11925 if ${ax_cv_linker_flags__Wl___no_as_needed+:} false; then :
11926   $as_echo_n "(cached) " >&6
11927 else
11928
11929       ax_save_FLAGS=$LDFLAGS
11930       LDFLAGS="-Wl,--no-as-needed"
11931       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h.  */
11933
11934 int
11935 main ()
11936 {
11937
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943   ax_cv_linker_flags__Wl___no_as_needed=yes
11944 else
11945   ax_cv_linker_flags__Wl___no_as_needed=no
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext \
11948     conftest$ac_exeext conftest.$ac_ext
11949       LDFLAGS=$ax_save_FLAGS
11950 fi
11951
11952 eval ax_check_linker_flags=$ax_cv_linker_flags__Wl___no_as_needed
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_linker_flags" >&5
11954 $as_echo "$ax_check_linker_flags" >&6; }
11955 if test "x$ax_check_linker_flags" = xyes; then
11956         libiptc_LDFLAGS2="-Wl,--no-as-needed"
11957 else
11958         :
11959 fi
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD knows -Wl,--no-undefined" >&5
11964 $as_echo_n "checking whether $LD knows -Wl,--no-undefined... " >&6; }
11965 saved_LDFLAGS="$LDFLAGS";
11966 LDFLAGS="-Wl,--no-undefined";
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969 int main(void) {}
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972   noundef_LDFLAGS="$LDFLAGS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 else
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11977
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext \
11980     conftest$ac_exeext conftest.$ac_ext
11981 LDFLAGS="$saved_LDFLAGS";
11982
11983 blacklist_modules="";
11984
11985 for ac_header in linux/dccp.h linux/ip_vs.h linux/magic.h linux/proc_fs.h
11986 do :
11987   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11988 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11989 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11990   cat >>confdefs.h <<_ACEOF
11991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11992 _ACEOF
11993
11994 fi
11995
11996 done
11997
11998 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
11999         blacklist_modules="$blacklist_modules dccp";
12000 fi;
12001 if test "$ac_cv_header_linux_ip_vs_h" != "yes"; then
12002         blacklist_modules="$blacklist_modules ipvs";
12003 fi;
12004
12005
12006
12007
12008
12009
12010
12011
12012 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12013         if test -n "$ac_tool_prefix"; then
12014   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12015 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12019   $as_echo_n "(cached) " >&6
12020 else
12021   case $PKG_CONFIG in
12022   [\\/]* | ?:[\\/]*)
12023   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12024   ;;
12025   *)
12026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029   IFS=$as_save_IFS
12030   test -z "$as_dir" && as_dir=.
12031     for ac_exec_ext in '' $ac_executable_extensions; do
12032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035     break 2
12036   fi
12037 done
12038   done
12039 IFS=$as_save_IFS
12040
12041   ;;
12042 esac
12043 fi
12044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12045 if test -n "$PKG_CONFIG"; then
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12047 $as_echo "$PKG_CONFIG" >&6; }
12048 else
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12051 fi
12052
12053
12054 fi
12055 if test -z "$ac_cv_path_PKG_CONFIG"; then
12056   ac_pt_PKG_CONFIG=$PKG_CONFIG
12057   # Extract the first word of "pkg-config", so it can be a program name with args.
12058 set dummy pkg-config; ac_word=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12062   $as_echo_n "(cached) " >&6
12063 else
12064   case $ac_pt_PKG_CONFIG in
12065   [\\/]* | ?:[\\/]*)
12066   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12067   ;;
12068   *)
12069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072   IFS=$as_save_IFS
12073   test -z "$as_dir" && as_dir=.
12074     for ac_exec_ext in '' $ac_executable_extensions; do
12075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078     break 2
12079   fi
12080 done
12081   done
12082 IFS=$as_save_IFS
12083
12084   ;;
12085 esac
12086 fi
12087 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12088 if test -n "$ac_pt_PKG_CONFIG"; then
12089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12090 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12091 else
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093 $as_echo "no" >&6; }
12094 fi
12095
12096   if test "x$ac_pt_PKG_CONFIG" = x; then
12097     PKG_CONFIG=""
12098   else
12099     case $cross_compiling:$ac_tool_warned in
12100 yes:)
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12103 ac_tool_warned=yes ;;
12104 esac
12105     PKG_CONFIG=$ac_pt_PKG_CONFIG
12106   fi
12107 else
12108   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12109 fi
12110
12111 fi
12112 if test -n "$PKG_CONFIG"; then
12113         _pkg_min_version=0.9.0
12114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12115 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12116         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12117                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119         else
12120                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122                 PKG_CONFIG=""
12123         fi
12124 fi
12125
12126 pkg_failed=no
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnetfilter_conntrack" >&5
12128 $as_echo_n "checking for libnetfilter_conntrack... " >&6; }
12129
12130 if test -n "$libnetfilter_conntrack_CFLAGS"; then
12131     pkg_cv_libnetfilter_conntrack_CFLAGS="$libnetfilter_conntrack_CFLAGS"
12132  elif test -n "$PKG_CONFIG"; then
12133     if test -n "$PKG_CONFIG" && \
12134     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnetfilter_conntrack >= 1.0.4\""; } >&5
12135   ($PKG_CONFIG --exists --print-errors "libnetfilter_conntrack >= 1.0.4") 2>&5
12136   ac_status=$?
12137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138   test $ac_status = 0; }; then
12139   pkg_cv_libnetfilter_conntrack_CFLAGS=`$PKG_CONFIG --cflags "libnetfilter_conntrack >= 1.0.4" 2>/dev/null`
12140                       test "x$?" != "x0" && pkg_failed=yes
12141 else
12142   pkg_failed=yes
12143 fi
12144  else
12145     pkg_failed=untried
12146 fi
12147 if test -n "$libnetfilter_conntrack_LIBS"; then
12148     pkg_cv_libnetfilter_conntrack_LIBS="$libnetfilter_conntrack_LIBS"
12149  elif test -n "$PKG_CONFIG"; then
12150     if test -n "$PKG_CONFIG" && \
12151     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnetfilter_conntrack >= 1.0.4\""; } >&5
12152   ($PKG_CONFIG --exists --print-errors "libnetfilter_conntrack >= 1.0.4") 2>&5
12153   ac_status=$?
12154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12155   test $ac_status = 0; }; then
12156   pkg_cv_libnetfilter_conntrack_LIBS=`$PKG_CONFIG --libs "libnetfilter_conntrack >= 1.0.4" 2>/dev/null`
12157                       test "x$?" != "x0" && pkg_failed=yes
12158 else
12159   pkg_failed=yes
12160 fi
12161  else
12162     pkg_failed=untried
12163 fi
12164
12165
12166
12167 if test $pkg_failed = yes; then
12168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12170
12171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12172         _pkg_short_errors_supported=yes
12173 else
12174         _pkg_short_errors_supported=no
12175 fi
12176         if test $_pkg_short_errors_supported = yes; then
12177                 libnetfilter_conntrack_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnetfilter_conntrack >= 1.0.4" 2>&1`
12178         else
12179                 libnetfilter_conntrack_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnetfilter_conntrack >= 1.0.4" 2>&1`
12180         fi
12181         # Put the nasty error message in config.log where it belongs
12182         echo "$libnetfilter_conntrack_PKG_ERRORS" >&5
12183
12184         nfconntrack=0
12185 elif test $pkg_failed = untried; then
12186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12188         nfconntrack=0
12189 else
12190         libnetfilter_conntrack_CFLAGS=$pkg_cv_libnetfilter_conntrack_CFLAGS
12191         libnetfilter_conntrack_LIBS=$pkg_cv_libnetfilter_conntrack_LIBS
12192         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12193 $as_echo "yes" >&6; }
12194         nfconntrack=1
12195 fi
12196  if test "$nfconntrack" = 1; then
12197   HAVE_LIBNETFILTER_CONNTRACK_TRUE=
12198   HAVE_LIBNETFILTER_CONNTRACK_FALSE='#'
12199 else
12200   HAVE_LIBNETFILTER_CONNTRACK_TRUE='#'
12201   HAVE_LIBNETFILTER_CONNTRACK_FALSE=
12202 fi
12203
12204
12205 if test "$nfconntrack" -ne 1; then
12206         blacklist_modules="$blacklist_modules connlabel";
12207         echo "WARNING: libnetfilter_conntrack not found, connlabel match will not be built";
12208 fi;
12209
12210
12211 # The cast to long int works around a bug in the HP C Compiler
12212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12214 # This bug is HP SR number 8606223364.
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct ip6_hdr" >&5
12216 $as_echo_n "checking size of struct ip6_hdr... " >&6; }
12217 if ${ac_cv_sizeof_struct_ip6_hdr+:} false; then :
12218   $as_echo_n "(cached) " >&6
12219 else
12220   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct ip6_hdr))" "ac_cv_sizeof_struct_ip6_hdr"        "#include <netinet/ip6.h>
12221 "; then :
12222
12223 else
12224   if test "$ac_cv_type_struct_ip6_hdr" = yes; then
12225      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12227 as_fn_error 77 "cannot compute sizeof (struct ip6_hdr)
12228 See \`config.log' for more details" "$LINENO" 5; }
12229    else
12230      ac_cv_sizeof_struct_ip6_hdr=0
12231    fi
12232 fi
12233
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_ip6_hdr" >&5
12236 $as_echo "$ac_cv_sizeof_struct_ip6_hdr" >&6; }
12237
12238
12239
12240 cat >>confdefs.h <<_ACEOF
12241 #define SIZEOF_STRUCT_IP6_HDR $ac_cv_sizeof_struct_ip6_hdr
12242 _ACEOF
12243
12244
12245
12246  if test "$enable_static" = "yes"; then
12247   ENABLE_STATIC_TRUE=
12248   ENABLE_STATIC_FALSE='#'
12249 else
12250   ENABLE_STATIC_TRUE='#'
12251   ENABLE_STATIC_FALSE=
12252 fi
12253
12254  if test "$enable_shared" = "yes"; then
12255   ENABLE_SHARED_TRUE=
12256   ENABLE_SHARED_FALSE='#'
12257 else
12258   ENABLE_SHARED_TRUE='#'
12259   ENABLE_SHARED_FALSE=
12260 fi
12261
12262  if test "$enable_ipv4" = "yes"; then
12263   ENABLE_IPV4_TRUE=
12264   ENABLE_IPV4_FALSE='#'
12265 else
12266   ENABLE_IPV4_TRUE='#'
12267   ENABLE_IPV4_FALSE=
12268 fi
12269
12270  if test "$enable_ipv6" = "yes"; then
12271   ENABLE_IPV6_TRUE=
12272   ENABLE_IPV6_FALSE='#'
12273 else
12274   ENABLE_IPV6_TRUE='#'
12275   ENABLE_IPV6_FALSE=
12276 fi
12277
12278  if test "$enable_largefile" = "yes"; then
12279   ENABLE_LARGEFILE_TRUE=
12280   ENABLE_LARGEFILE_FALSE='#'
12281 else
12282   ENABLE_LARGEFILE_TRUE='#'
12283   ENABLE_LARGEFILE_FALSE=
12284 fi
12285
12286  if test "$enable_devel" = "yes"; then
12287   ENABLE_DEVEL_TRUE=
12288   ENABLE_DEVEL_FALSE='#'
12289 else
12290   ENABLE_DEVEL_TRUE='#'
12291   ENABLE_DEVEL_FALSE=
12292 fi
12293
12294  if test "$enable_libipq" = "yes"; then
12295   ENABLE_LIBIPQ_TRUE=
12296   ENABLE_LIBIPQ_FALSE='#'
12297 else
12298   ENABLE_LIBIPQ_TRUE='#'
12299   ENABLE_LIBIPQ_FALSE=
12300 fi
12301
12302  if test "$enable_bpfc" = "yes"; then
12303   ENABLE_BPFC_TRUE=
12304   ENABLE_BPFC_FALSE='#'
12305 else
12306   ENABLE_BPFC_TRUE='#'
12307   ENABLE_BPFC_FALSE=
12308 fi
12309
12310  if test "$enable_nfsynproxy" = "yes"; then
12311   ENABLE_SYNCONF_TRUE=
12312   ENABLE_SYNCONF_FALSE='#'
12313 else
12314   ENABLE_SYNCONF_TRUE='#'
12315   ENABLE_SYNCONF_FALSE=
12316 fi
12317
12318
12319 if test "x$enable_bpfc" = "xyes" || test "x$enable_nfsynproxy" = "xyes"; then
12320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_compile in -lpcap" >&5
12321 $as_echo_n "checking for pcap_compile in -lpcap... " >&6; }
12322 if ${ac_cv_lib_pcap_pcap_compile+:} false; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lpcap  $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h.  */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331    Use char because int might match the return type of a GCC
12332    builtin and then its argument prototype would still apply.  */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char pcap_compile ();
12337 int
12338 main ()
12339 {
12340 return pcap_compile ();
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"; then :
12346   ac_cv_lib_pcap_pcap_compile=yes
12347 else
12348   ac_cv_lib_pcap_pcap_compile=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext \
12351     conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_compile" >&5
12355 $as_echo "$ac_cv_lib_pcap_pcap_compile" >&6; }
12356 if test "x$ac_cv_lib_pcap_pcap_compile" = xyes; then :
12357   cat >>confdefs.h <<_ACEOF
12358 #define HAVE_LIBPCAP 1
12359 _ACEOF
12360
12361   LIBS="-lpcap $LIBS"
12362
12363 else
12364   as_fn_error $? "missing libpcap library required by bpf compiler or nfsynproxy tool" "$LINENO" 5
12365 fi
12366
12367 fi
12368
12369
12370 pkg_failed=no
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnfnetlink" >&5
12372 $as_echo_n "checking for libnfnetlink... " >&6; }
12373
12374 if test -n "$libnfnetlink_CFLAGS"; then
12375     pkg_cv_libnfnetlink_CFLAGS="$libnfnetlink_CFLAGS"
12376  elif test -n "$PKG_CONFIG"; then
12377     if test -n "$PKG_CONFIG" && \
12378     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0\""; } >&5
12379   ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0") 2>&5
12380   ac_status=$?
12381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12382   test $ac_status = 0; }; then
12383   pkg_cv_libnfnetlink_CFLAGS=`$PKG_CONFIG --cflags "libnfnetlink >= 1.0" 2>/dev/null`
12384                       test "x$?" != "x0" && pkg_failed=yes
12385 else
12386   pkg_failed=yes
12387 fi
12388  else
12389     pkg_failed=untried
12390 fi
12391 if test -n "$libnfnetlink_LIBS"; then
12392     pkg_cv_libnfnetlink_LIBS="$libnfnetlink_LIBS"
12393  elif test -n "$PKG_CONFIG"; then
12394     if test -n "$PKG_CONFIG" && \
12395     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0\""; } >&5
12396   ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0") 2>&5
12397   ac_status=$?
12398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12399   test $ac_status = 0; }; then
12400   pkg_cv_libnfnetlink_LIBS=`$PKG_CONFIG --libs "libnfnetlink >= 1.0" 2>/dev/null`
12401                       test "x$?" != "x0" && pkg_failed=yes
12402 else
12403   pkg_failed=yes
12404 fi
12405  else
12406     pkg_failed=untried
12407 fi
12408
12409
12410
12411 if test $pkg_failed = yes; then
12412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414
12415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12416         _pkg_short_errors_supported=yes
12417 else
12418         _pkg_short_errors_supported=no
12419 fi
12420         if test $_pkg_short_errors_supported = yes; then
12421                 libnfnetlink_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnfnetlink >= 1.0" 2>&1`
12422         else
12423                 libnfnetlink_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnfnetlink >= 1.0" 2>&1`
12424         fi
12425         # Put the nasty error message in config.log where it belongs
12426         echo "$libnfnetlink_PKG_ERRORS" >&5
12427
12428         nfnetlink=0
12429 elif test $pkg_failed = untried; then
12430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432         nfnetlink=0
12433 else
12434         libnfnetlink_CFLAGS=$pkg_cv_libnfnetlink_CFLAGS
12435         libnfnetlink_LIBS=$pkg_cv_libnfnetlink_LIBS
12436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12437 $as_echo "yes" >&6; }
12438         nfnetlink=1
12439 fi
12440  if test "$nfnetlink" = 1; then
12441   HAVE_LIBNFNETLINK_TRUE=
12442   HAVE_LIBNFNETLINK_FALSE='#'
12443 else
12444   HAVE_LIBNFNETLINK_TRUE='#'
12445   HAVE_LIBNFNETLINK_FALSE=
12446 fi
12447
12448
12449 regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
12450         -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
12451         -Winline -pipe";
12452 regular_CPPFLAGS="${largefile_cppflags} -D_REENTRANT \
12453         -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
12454 kinclude_CPPFLAGS="";
12455 if [ -n "$kbuilddir" ]; then
12456         kinclude_CPPFLAGS="$kinclude_CPPFLAGS -I$kbuilddir/include/uapi -I$kbuilddir/include";
12457 fi;
12458 if [ -n "$ksourcedir" ]; then
12459         kinclude_CPPFLAGS="$kinclude_CPPFLAGS -I$ksourcedir/include/uapi -I$ksourcedir/include";
12460 fi;
12461 pkgdatadir='${datadir}/xtables';
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
12476
12477
12478 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile iptables/Makefile iptables/xtables.pc iptables/iptables.8 iptables/iptables-extensions.8.tmpl iptables/iptables-save.8 iptables/iptables-restore.8 iptables/iptables-apply.8 iptables/iptables-xml.1 libipq/Makefile libipq/libipq.pc libiptc/Makefile libiptc/libiptc.pc libiptc/libip4tc.pc libiptc/libip6tc.pc libxtables/Makefile utils/Makefile include/xtables-version.h include/iptables/internal.h"
12479
12480 cat >confcache <<\_ACEOF
12481 # This file is a shell script that caches the results of configure
12482 # tests run on this system so they can be shared between configure
12483 # scripts and configure runs, see configure's option --config-cache.
12484 # It is not useful on other systems.  If it contains results you don't
12485 # want to keep, you may remove or edit it.
12486 #
12487 # config.status only pays attention to the cache file if you give it
12488 # the --recheck option to rerun configure.
12489 #
12490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12492 # following values.
12493
12494 _ACEOF
12495
12496 # The following way of writing the cache mishandles newlines in values,
12497 # but we know of no workaround that is simple, portable, and efficient.
12498 # So, we kill variables containing newlines.
12499 # Ultrix sh set writes to stderr and can't be redirected directly,
12500 # and sets the high bit in the cache file unless we assign to the vars.
12501 (
12502   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12503     eval ac_val=\$$ac_var
12504     case $ac_val in #(
12505     *${as_nl}*)
12506       case $ac_var in #(
12507       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12508 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12509       esac
12510       case $ac_var in #(
12511       _ | IFS | as_nl) ;; #(
12512       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12513       *) { eval $ac_var=; unset $ac_var;} ;;
12514       esac ;;
12515     esac
12516   done
12517
12518   (set) 2>&1 |
12519     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12520     *${as_nl}ac_space=\ *)
12521       # `set' does not quote correctly, so add quotes: double-quote
12522       # substitution turns \\\\ into \\, and sed turns \\ into \.
12523       sed -n \
12524         "s/'/'\\\\''/g;
12525           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12526       ;; #(
12527     *)
12528       # `set' quotes correctly as required by POSIX, so do not add quotes.
12529       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12530       ;;
12531     esac |
12532     sort
12533 ) |
12534   sed '
12535      /^ac_cv_env_/b end
12536      t clear
12537      :clear
12538      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12539      t end
12540      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12541      :end' >>confcache
12542 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12543   if test -w "$cache_file"; then
12544     if test "x$cache_file" != "x/dev/null"; then
12545       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12546 $as_echo "$as_me: updating cache $cache_file" >&6;}
12547       if test ! -f "$cache_file" || test -h "$cache_file"; then
12548         cat confcache >"$cache_file"
12549       else
12550         case $cache_file in #(
12551         */* | ?:*)
12552           mv -f confcache "$cache_file"$$ &&
12553           mv -f "$cache_file"$$ "$cache_file" ;; #(
12554         *)
12555           mv -f confcache "$cache_file" ;;
12556         esac
12557       fi
12558     fi
12559   else
12560     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12561 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12562   fi
12563 fi
12564 rm -f confcache
12565
12566 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12567 # Let make expand exec_prefix.
12568 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12569
12570 DEFS=-DHAVE_CONFIG_H
12571
12572 ac_libobjs=
12573 ac_ltlibobjs=
12574 U=
12575 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12576   # 1. Remove the extension, and $U if already installed.
12577   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12578   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12579   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12580   #    will be set to the directory where LIBOBJS objects are built.
12581   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12582   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12583 done
12584 LIBOBJS=$ac_libobjs
12585
12586 LTLIBOBJS=$ac_ltlibobjs
12587
12588
12589  if test -n "$EXEEXT"; then
12590   am__EXEEXT_TRUE=
12591   am__EXEEXT_FALSE='#'
12592 else
12593   am__EXEEXT_TRUE='#'
12594   am__EXEEXT_FALSE=
12595 fi
12596
12597 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12598   as_fn_error $? "conditional \"AMDEP\" was never defined.
12599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12600 fi
12601 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12602   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12604 fi
12605 if test -z "${HAVE_LIBNETFILTER_CONNTRACK_TRUE}" && test -z "${HAVE_LIBNETFILTER_CONNTRACK_FALSE}"; then
12606   as_fn_error $? "conditional \"HAVE_LIBNETFILTER_CONNTRACK\" was never defined.
12607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12608 fi
12609 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
12610   as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
12611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12612 fi
12613 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
12614   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
12615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12616 fi
12617 if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
12618   as_fn_error $? "conditional \"ENABLE_IPV4\" was never defined.
12619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12620 fi
12621 if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
12622   as_fn_error $? "conditional \"ENABLE_IPV6\" was never defined.
12623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12624 fi
12625 if test -z "${ENABLE_LARGEFILE_TRUE}" && test -z "${ENABLE_LARGEFILE_FALSE}"; then
12626   as_fn_error $? "conditional \"ENABLE_LARGEFILE\" was never defined.
12627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12628 fi
12629 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
12630   as_fn_error $? "conditional \"ENABLE_DEVEL\" was never defined.
12631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12632 fi
12633 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
12634   as_fn_error $? "conditional \"ENABLE_LIBIPQ\" was never defined.
12635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12636 fi
12637 if test -z "${ENABLE_BPFC_TRUE}" && test -z "${ENABLE_BPFC_FALSE}"; then
12638   as_fn_error $? "conditional \"ENABLE_BPFC\" was never defined.
12639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12640 fi
12641 if test -z "${ENABLE_SYNCONF_TRUE}" && test -z "${ENABLE_SYNCONF_FALSE}"; then
12642   as_fn_error $? "conditional \"ENABLE_SYNCONF\" was never defined.
12643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644 fi
12645 if test -z "${HAVE_LIBNFNETLINK_TRUE}" && test -z "${HAVE_LIBNFNETLINK_FALSE}"; then
12646   as_fn_error $? "conditional \"HAVE_LIBNFNETLINK\" was never defined.
12647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 fi
12649
12650 : "${CONFIG_STATUS=./config.status}"
12651 ac_write_fail=0
12652 ac_clean_files_save=$ac_clean_files
12653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12655 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12656 as_write_fail=0
12657 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12658 #! $SHELL
12659 # Generated by $as_me.
12660 # Run this file to recreate the current configuration.
12661 # Compiler output produced by configure, useful for debugging
12662 # configure, is in config.log if it exists.
12663
12664 debug=false
12665 ac_cs_recheck=false
12666 ac_cs_silent=false
12667
12668 SHELL=\${CONFIG_SHELL-$SHELL}
12669 export SHELL
12670 _ASEOF
12671 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12672 ## -------------------- ##
12673 ## M4sh Initialization. ##
12674 ## -------------------- ##
12675
12676 # Be more Bourne compatible
12677 DUALCASE=1; export DUALCASE # for MKS sh
12678 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12679   emulate sh
12680   NULLCMD=:
12681   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12682   # is contrary to our usage.  Disable this feature.
12683   alias -g '${1+"$@"}'='"$@"'
12684   setopt NO_GLOB_SUBST
12685 else
12686   case `(set -o) 2>/dev/null` in #(
12687   *posix*) :
12688     set -o posix ;; #(
12689   *) :
12690      ;;
12691 esac
12692 fi
12693
12694
12695 as_nl='
12696 '
12697 export as_nl
12698 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12699 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12700 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12701 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12702 # Prefer a ksh shell builtin over an external printf program on Solaris,
12703 # but without wasting forks for bash or zsh.
12704 if test -z "$BASH_VERSION$ZSH_VERSION" \
12705     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12706   as_echo='print -r --'
12707   as_echo_n='print -rn --'
12708 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12709   as_echo='printf %s\n'
12710   as_echo_n='printf %s'
12711 else
12712   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12713     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12714     as_echo_n='/usr/ucb/echo -n'
12715   else
12716     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12717     as_echo_n_body='eval
12718       arg=$1;
12719       case $arg in #(
12720       *"$as_nl"*)
12721         expr "X$arg" : "X\\(.*\\)$as_nl";
12722         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12723       esac;
12724       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12725     '
12726     export as_echo_n_body
12727     as_echo_n='sh -c $as_echo_n_body as_echo'
12728   fi
12729   export as_echo_body
12730   as_echo='sh -c $as_echo_body as_echo'
12731 fi
12732
12733 # The user is always right.
12734 if test "${PATH_SEPARATOR+set}" != set; then
12735   PATH_SEPARATOR=:
12736   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12737     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12738       PATH_SEPARATOR=';'
12739   }
12740 fi
12741
12742
12743 # IFS
12744 # We need space, tab and new line, in precisely that order.  Quoting is
12745 # there to prevent editors from complaining about space-tab.
12746 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12747 # splitting by setting IFS to empty value.)
12748 IFS=" ""        $as_nl"
12749
12750 # Find who we are.  Look in the path if we contain no directory separator.
12751 as_myself=
12752 case $0 in #((
12753   *[\\/]* ) as_myself=$0 ;;
12754   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757   IFS=$as_save_IFS
12758   test -z "$as_dir" && as_dir=.
12759     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12760   done
12761 IFS=$as_save_IFS
12762
12763      ;;
12764 esac
12765 # We did not find ourselves, most probably we were run as `sh COMMAND'
12766 # in which case we are not to be found in the path.
12767 if test "x$as_myself" = x; then
12768   as_myself=$0
12769 fi
12770 if test ! -f "$as_myself"; then
12771   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12772   exit 1
12773 fi
12774
12775 # Unset variables that we do not need and which cause bugs (e.g. in
12776 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12777 # suppresses any "Segmentation fault" message there.  '((' could
12778 # trigger a bug in pdksh 5.2.14.
12779 for as_var in BASH_ENV ENV MAIL MAILPATH
12780 do eval test x\${$as_var+set} = xset \
12781   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12782 done
12783 PS1='$ '
12784 PS2='> '
12785 PS4='+ '
12786
12787 # NLS nuisances.
12788 LC_ALL=C
12789 export LC_ALL
12790 LANGUAGE=C
12791 export LANGUAGE
12792
12793 # CDPATH.
12794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12795
12796
12797 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12798 # ----------------------------------------
12799 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12800 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12801 # script with STATUS, using 1 if that was 0.
12802 as_fn_error ()
12803 {
12804   as_status=$1; test $as_status -eq 0 && as_status=1
12805   if test "$4"; then
12806     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12807     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12808   fi
12809   $as_echo "$as_me: error: $2" >&2
12810   as_fn_exit $as_status
12811 } # as_fn_error
12812
12813
12814 # as_fn_set_status STATUS
12815 # -----------------------
12816 # Set $? to STATUS, without forking.
12817 as_fn_set_status ()
12818 {
12819   return $1
12820 } # as_fn_set_status
12821
12822 # as_fn_exit STATUS
12823 # -----------------
12824 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12825 as_fn_exit ()
12826 {
12827   set +e
12828   as_fn_set_status $1
12829   exit $1
12830 } # as_fn_exit
12831
12832 # as_fn_unset VAR
12833 # ---------------
12834 # Portably unset VAR.
12835 as_fn_unset ()
12836 {
12837   { eval $1=; unset $1;}
12838 }
12839 as_unset=as_fn_unset
12840 # as_fn_append VAR VALUE
12841 # ----------------------
12842 # Append the text in VALUE to the end of the definition contained in VAR. Take
12843 # advantage of any shell optimizations that allow amortized linear growth over
12844 # repeated appends, instead of the typical quadratic growth present in naive
12845 # implementations.
12846 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12847   eval 'as_fn_append ()
12848   {
12849     eval $1+=\$2
12850   }'
12851 else
12852   as_fn_append ()
12853   {
12854     eval $1=\$$1\$2
12855   }
12856 fi # as_fn_append
12857
12858 # as_fn_arith ARG...
12859 # ------------------
12860 # Perform arithmetic evaluation on the ARGs, and store the result in the
12861 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12862 # must be portable across $(()) and expr.
12863 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12864   eval 'as_fn_arith ()
12865   {
12866     as_val=$(( $* ))
12867   }'
12868 else
12869   as_fn_arith ()
12870   {
12871     as_val=`expr "$@" || test $? -eq 1`
12872   }
12873 fi # as_fn_arith
12874
12875
12876 if expr a : '\(a\)' >/dev/null 2>&1 &&
12877    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12878   as_expr=expr
12879 else
12880   as_expr=false
12881 fi
12882
12883 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12884   as_basename=basename
12885 else
12886   as_basename=false
12887 fi
12888
12889 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12890   as_dirname=dirname
12891 else
12892   as_dirname=false
12893 fi
12894
12895 as_me=`$as_basename -- "$0" ||
12896 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12897          X"$0" : 'X\(//\)$' \| \
12898          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12899 $as_echo X/"$0" |
12900     sed '/^.*\/\([^/][^/]*\)\/*$/{
12901             s//\1/
12902             q
12903           }
12904           /^X\/\(\/\/\)$/{
12905             s//\1/
12906             q
12907           }
12908           /^X\/\(\/\).*/{
12909             s//\1/
12910             q
12911           }
12912           s/.*/./; q'`
12913
12914 # Avoid depending upon Character Ranges.
12915 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12916 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12917 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12918 as_cr_digits='0123456789'
12919 as_cr_alnum=$as_cr_Letters$as_cr_digits
12920
12921 ECHO_C= ECHO_N= ECHO_T=
12922 case `echo -n x` in #(((((
12923 -n*)
12924   case `echo 'xy\c'` in
12925   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12926   xy)  ECHO_C='\c';;
12927   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12928        ECHO_T=' ';;
12929   esac;;
12930 *)
12931   ECHO_N='-n';;
12932 esac
12933
12934 rm -f conf$$ conf$$.exe conf$$.file
12935 if test -d conf$$.dir; then
12936   rm -f conf$$.dir/conf$$.file
12937 else
12938   rm -f conf$$.dir
12939   mkdir conf$$.dir 2>/dev/null
12940 fi
12941 if (echo >conf$$.file) 2>/dev/null; then
12942   if ln -s conf$$.file conf$$ 2>/dev/null; then
12943     as_ln_s='ln -s'
12944     # ... but there are two gotchas:
12945     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12946     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12947     # In both cases, we have to default to `cp -pR'.
12948     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12949       as_ln_s='cp -pR'
12950   elif ln conf$$.file conf$$ 2>/dev/null; then
12951     as_ln_s=ln
12952   else
12953     as_ln_s='cp -pR'
12954   fi
12955 else
12956   as_ln_s='cp -pR'
12957 fi
12958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12959 rmdir conf$$.dir 2>/dev/null
12960
12961
12962 # as_fn_mkdir_p
12963 # -------------
12964 # Create "$as_dir" as a directory, including parents if necessary.
12965 as_fn_mkdir_p ()
12966 {
12967
12968   case $as_dir in #(
12969   -*) as_dir=./$as_dir;;
12970   esac
12971   test -d "$as_dir" || eval $as_mkdir_p || {
12972     as_dirs=
12973     while :; do
12974       case $as_dir in #(
12975       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12976       *) as_qdir=$as_dir;;
12977       esac
12978       as_dirs="'$as_qdir' $as_dirs"
12979       as_dir=`$as_dirname -- "$as_dir" ||
12980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12981          X"$as_dir" : 'X\(//\)[^/]' \| \
12982          X"$as_dir" : 'X\(//\)$' \| \
12983          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12984 $as_echo X"$as_dir" |
12985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12986             s//\1/
12987             q
12988           }
12989           /^X\(\/\/\)[^/].*/{
12990             s//\1/
12991             q
12992           }
12993           /^X\(\/\/\)$/{
12994             s//\1/
12995             q
12996           }
12997           /^X\(\/\).*/{
12998             s//\1/
12999             q
13000           }
13001           s/.*/./; q'`
13002       test -d "$as_dir" && break
13003     done
13004     test -z "$as_dirs" || eval "mkdir $as_dirs"
13005   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13006
13007
13008 } # as_fn_mkdir_p
13009 if mkdir -p . 2>/dev/null; then
13010   as_mkdir_p='mkdir -p "$as_dir"'
13011 else
13012   test -d ./-p && rmdir ./-p
13013   as_mkdir_p=false
13014 fi
13015
13016
13017 # as_fn_executable_p FILE
13018 # -----------------------
13019 # Test if FILE is an executable regular file.
13020 as_fn_executable_p ()
13021 {
13022   test -f "$1" && test -x "$1"
13023 } # as_fn_executable_p
13024 as_test_x='test -x'
13025 as_executable_p=as_fn_executable_p
13026
13027 # Sed expression to map a string onto a valid CPP name.
13028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13029
13030 # Sed expression to map a string onto a valid variable name.
13031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13032
13033
13034 exec 6>&1
13035 ## ----------------------------------- ##
13036 ## Main body of $CONFIG_STATUS script. ##
13037 ## ----------------------------------- ##
13038 _ASEOF
13039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13040
13041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13042 # Save the log message, to keep $0 and so on meaningful, and to
13043 # report actual input values of CONFIG_FILES etc. instead of their
13044 # values after options handling.
13045 ac_log="
13046 This file was extended by iptables $as_me 1.4.21, which was
13047 generated by GNU Autoconf 2.69.  Invocation command line was
13048
13049   CONFIG_FILES    = $CONFIG_FILES
13050   CONFIG_HEADERS  = $CONFIG_HEADERS
13051   CONFIG_LINKS    = $CONFIG_LINKS
13052   CONFIG_COMMANDS = $CONFIG_COMMANDS
13053   $ $0 $@
13054
13055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13056 "
13057
13058 _ACEOF
13059
13060 case $ac_config_files in *"
13061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13062 esac
13063
13064 case $ac_config_headers in *"
13065 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13066 esac
13067
13068
13069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13070 # Files that config.status was made for.
13071 config_files="$ac_config_files"
13072 config_headers="$ac_config_headers"
13073 config_commands="$ac_config_commands"
13074
13075 _ACEOF
13076
13077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13078 ac_cs_usage="\
13079 \`$as_me' instantiates files and other configuration actions
13080 from templates according to the current configuration.  Unless the files
13081 and actions are specified as TAGs, all are instantiated by default.
13082
13083 Usage: $0 [OPTION]... [TAG]...
13084
13085   -h, --help       print this help, then exit
13086   -V, --version    print version number and configuration settings, then exit
13087       --config     print configuration, then exit
13088   -q, --quiet, --silent
13089                    do not print progress messages
13090   -d, --debug      don't remove temporary files
13091       --recheck    update $as_me by reconfiguring in the same conditions
13092       --file=FILE[:TEMPLATE]
13093                    instantiate the configuration file FILE
13094       --header=FILE[:TEMPLATE]
13095                    instantiate the configuration header FILE
13096
13097 Configuration files:
13098 $config_files
13099
13100 Configuration headers:
13101 $config_headers
13102
13103 Configuration commands:
13104 $config_commands
13105
13106 Report bugs to the package provider."
13107
13108 _ACEOF
13109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13110 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13111 ac_cs_version="\\
13112 iptables config.status 1.4.21
13113 configured by $0, generated by GNU Autoconf 2.69,
13114   with options \\"\$ac_cs_config\\"
13115
13116 Copyright (C) 2012 Free Software Foundation, Inc.
13117 This config.status script is free software; the Free Software Foundation
13118 gives unlimited permission to copy, distribute and modify it."
13119
13120 ac_pwd='$ac_pwd'
13121 srcdir='$srcdir'
13122 INSTALL='$INSTALL'
13123 MKDIR_P='$MKDIR_P'
13124 AWK='$AWK'
13125 test -n "\$AWK" || AWK=awk
13126 _ACEOF
13127
13128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13129 # The default lists apply if the user does not specify any file.
13130 ac_need_defaults=:
13131 while test $# != 0
13132 do
13133   case $1 in
13134   --*=?*)
13135     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13136     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13137     ac_shift=:
13138     ;;
13139   --*=)
13140     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13141     ac_optarg=
13142     ac_shift=:
13143     ;;
13144   *)
13145     ac_option=$1
13146     ac_optarg=$2
13147     ac_shift=shift
13148     ;;
13149   esac
13150
13151   case $ac_option in
13152   # Handling of the options.
13153   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13154     ac_cs_recheck=: ;;
13155   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13156     $as_echo "$ac_cs_version"; exit ;;
13157   --config | --confi | --conf | --con | --co | --c )
13158     $as_echo "$ac_cs_config"; exit ;;
13159   --debug | --debu | --deb | --de | --d | -d )
13160     debug=: ;;
13161   --file | --fil | --fi | --f )
13162     $ac_shift
13163     case $ac_optarg in
13164     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13165     '') as_fn_error $? "missing file argument" ;;
13166     esac
13167     as_fn_append CONFIG_FILES " '$ac_optarg'"
13168     ac_need_defaults=false;;
13169   --header | --heade | --head | --hea )
13170     $ac_shift
13171     case $ac_optarg in
13172     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13173     esac
13174     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13175     ac_need_defaults=false;;
13176   --he | --h)
13177     # Conflict between --help and --header
13178     as_fn_error $? "ambiguous option: \`$1'
13179 Try \`$0 --help' for more information.";;
13180   --help | --hel | -h )
13181     $as_echo "$ac_cs_usage"; exit ;;
13182   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13183   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13184     ac_cs_silent=: ;;
13185
13186   # This is an error.
13187   -*) as_fn_error $? "unrecognized option: \`$1'
13188 Try \`$0 --help' for more information." ;;
13189
13190   *) as_fn_append ac_config_targets " $1"
13191      ac_need_defaults=false ;;
13192
13193   esac
13194   shift
13195 done
13196
13197 ac_configure_extra_args=
13198
13199 if $ac_cs_silent; then
13200   exec 6>/dev/null
13201   ac_configure_extra_args="$ac_configure_extra_args --silent"
13202 fi
13203
13204 _ACEOF
13205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13206 if \$ac_cs_recheck; then
13207   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13208   shift
13209   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13210   CONFIG_SHELL='$SHELL'
13211   export CONFIG_SHELL
13212   exec "\$@"
13213 fi
13214
13215 _ACEOF
13216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217 exec 5>>config.log
13218 {
13219   echo
13220   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13221 ## Running $as_me. ##
13222 _ASBOX
13223   $as_echo "$ac_log"
13224 } >&5
13225
13226 _ACEOF
13227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13228 #
13229 # INIT-COMMANDS
13230 #
13231 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13232
13233
13234 # The HP-UX ksh and POSIX shell print the target directory to stdout
13235 # if CDPATH is set.
13236 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13237
13238 sed_quote_subst='$sed_quote_subst'
13239 double_quote_subst='$double_quote_subst'
13240 delay_variable_subst='$delay_variable_subst'
13241 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13242 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13243 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13244 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13245 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13246 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13247 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13248 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13249 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13250 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13251 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13252 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13253 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13254 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13255 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13256 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13257 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13258 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13259 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13260 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13261 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13262 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13263 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13264 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13265 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13266 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13267 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13268 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13269 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13270 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13271 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13272 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13273 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13274 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13275 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13276 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13277 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13278 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13279 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13280 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13281 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13282 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13283 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13284 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13285 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13286 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13287 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13288 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13289 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13290 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13291 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13292 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13293 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13294 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13295 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13296 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13297 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13298 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13299 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13300 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13301 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13302 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13303 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13304 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13305 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13306 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13307 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13308 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13309 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13310 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13311 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13312 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13313 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13314 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13315 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13316 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13317 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13318 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13319 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13320 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13321 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13322 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13323 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13324 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13325 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13326 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13327 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13328 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13329 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13330 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13331 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13332 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13333 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13334 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13335 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13336 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13337 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13338 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13339 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13340 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13341 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13342 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13343 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13344 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13345 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13346 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13347 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13348 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13349 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13350 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13351 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13352 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13353 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13354 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13355 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13356 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13357 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13358 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13359 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13360 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13361 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13362 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13363 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13364 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13365 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13366 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13367 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13368 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13369 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13370 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13371
13372 LTCC='$LTCC'
13373 LTCFLAGS='$LTCFLAGS'
13374 compiler='$compiler_DEFAULT'
13375
13376 # A function that is used when there is no print builtin or printf.
13377 func_fallback_echo ()
13378 {
13379   eval 'cat <<_LTECHO_EOF
13380 \$1
13381 _LTECHO_EOF'
13382 }
13383
13384 # Quote evaled strings.
13385 for var in SHELL \
13386 ECHO \
13387 PATH_SEPARATOR \
13388 SED \
13389 GREP \
13390 EGREP \
13391 FGREP \
13392 LD \
13393 NM \
13394 LN_S \
13395 lt_SP2NL \
13396 lt_NL2SP \
13397 reload_flag \
13398 OBJDUMP \
13399 deplibs_check_method \
13400 file_magic_cmd \
13401 file_magic_glob \
13402 want_nocaseglob \
13403 DLLTOOL \
13404 sharedlib_from_linklib_cmd \
13405 AR \
13406 AR_FLAGS \
13407 archiver_list_spec \
13408 STRIP \
13409 RANLIB \
13410 CC \
13411 CFLAGS \
13412 compiler \
13413 lt_cv_sys_global_symbol_pipe \
13414 lt_cv_sys_global_symbol_to_cdecl \
13415 lt_cv_sys_global_symbol_to_c_name_address \
13416 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13417 nm_file_list_spec \
13418 lt_prog_compiler_no_builtin_flag \
13419 lt_prog_compiler_pic \
13420 lt_prog_compiler_wl \
13421 lt_prog_compiler_static \
13422 lt_cv_prog_compiler_c_o \
13423 need_locks \
13424 MANIFEST_TOOL \
13425 DSYMUTIL \
13426 NMEDIT \
13427 LIPO \
13428 OTOOL \
13429 OTOOL64 \
13430 shrext_cmds \
13431 export_dynamic_flag_spec \
13432 whole_archive_flag_spec \
13433 compiler_needs_object \
13434 with_gnu_ld \
13435 allow_undefined_flag \
13436 no_undefined_flag \
13437 hardcode_libdir_flag_spec \
13438 hardcode_libdir_separator \
13439 exclude_expsyms \
13440 include_expsyms \
13441 file_list_spec \
13442 variables_saved_for_relink \
13443 libname_spec \
13444 library_names_spec \
13445 soname_spec \
13446 install_override_mode \
13447 finish_eval \
13448 old_striplib \
13449 striplib; do
13450     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13451     *[\\\\\\\`\\"\\\$]*)
13452       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13453       ;;
13454     *)
13455       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13456       ;;
13457     esac
13458 done
13459
13460 # Double-quote double-evaled strings.
13461 for var in reload_cmds \
13462 old_postinstall_cmds \
13463 old_postuninstall_cmds \
13464 old_archive_cmds \
13465 extract_expsyms_cmds \
13466 old_archive_from_new_cmds \
13467 old_archive_from_expsyms_cmds \
13468 archive_cmds \
13469 archive_expsym_cmds \
13470 module_cmds \
13471 module_expsym_cmds \
13472 export_symbols_cmds \
13473 prelink_cmds \
13474 postlink_cmds \
13475 postinstall_cmds \
13476 postuninstall_cmds \
13477 finish_cmds \
13478 sys_lib_search_path_spec \
13479 sys_lib_dlsearch_path_spec; do
13480     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13481     *[\\\\\\\`\\"\\\$]*)
13482       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13483       ;;
13484     *)
13485       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13486       ;;
13487     esac
13488 done
13489
13490 ac_aux_dir='$ac_aux_dir'
13491 xsi_shell='$xsi_shell'
13492 lt_shell_append='$lt_shell_append'
13493
13494 # See if we are running on zsh, and set the options which allow our
13495 # commands through without removal of \ escapes INIT.
13496 if test -n "\${ZSH_VERSION+set}" ; then
13497    setopt NO_GLOB_SUBST
13498 fi
13499
13500
13501     PACKAGE='$PACKAGE'
13502     VERSION='$VERSION'
13503     TIMESTAMP='$TIMESTAMP'
13504     RM='$RM'
13505     ofile='$ofile'
13506
13507
13508
13509
13510 _ACEOF
13511
13512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13513
13514 # Handling of arguments.
13515 for ac_config_target in $ac_config_targets
13516 do
13517   case $ac_config_target in
13518     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13519     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13520     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13521     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13522     "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
13523     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13524     "iptables/Makefile") CONFIG_FILES="$CONFIG_FILES iptables/Makefile" ;;
13525     "iptables/xtables.pc") CONFIG_FILES="$CONFIG_FILES iptables/xtables.pc" ;;
13526     "iptables/iptables.8") CONFIG_FILES="$CONFIG_FILES iptables/iptables.8" ;;
13527     "iptables/iptables-extensions.8.tmpl") CONFIG_FILES="$CONFIG_FILES iptables/iptables-extensions.8.tmpl" ;;
13528     "iptables/iptables-save.8") CONFIG_FILES="$CONFIG_FILES iptables/iptables-save.8" ;;
13529     "iptables/iptables-restore.8") CONFIG_FILES="$CONFIG_FILES iptables/iptables-restore.8" ;;
13530     "iptables/iptables-apply.8") CONFIG_FILES="$CONFIG_FILES iptables/iptables-apply.8" ;;
13531     "iptables/iptables-xml.1") CONFIG_FILES="$CONFIG_FILES iptables/iptables-xml.1" ;;
13532     "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
13533     "libipq/libipq.pc") CONFIG_FILES="$CONFIG_FILES libipq/libipq.pc" ;;
13534     "libiptc/Makefile") CONFIG_FILES="$CONFIG_FILES libiptc/Makefile" ;;
13535     "libiptc/libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc/libiptc.pc" ;;
13536     "libiptc/libip4tc.pc") CONFIG_FILES="$CONFIG_FILES libiptc/libip4tc.pc" ;;
13537     "libiptc/libip6tc.pc") CONFIG_FILES="$CONFIG_FILES libiptc/libip6tc.pc" ;;
13538     "libxtables/Makefile") CONFIG_FILES="$CONFIG_FILES libxtables/Makefile" ;;
13539     "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
13540     "include/xtables-version.h") CONFIG_FILES="$CONFIG_FILES include/xtables-version.h" ;;
13541     "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
13542
13543   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13544   esac
13545 done
13546
13547
13548 # If the user did not use the arguments to specify the items to instantiate,
13549 # then the envvar interface is used.  Set only those that are not.
13550 # We use the long form for the default assignment because of an extremely
13551 # bizarre bug on SunOS 4.1.3.
13552 if $ac_need_defaults; then
13553   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13554   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13555   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13556 fi
13557
13558 # Have a temporary directory for convenience.  Make it in the build tree
13559 # simply because there is no reason against having it here, and in addition,
13560 # creating and moving files from /tmp can sometimes cause problems.
13561 # Hook for its removal unless debugging.
13562 # Note that there is a small window in which the directory will not be cleaned:
13563 # after its creation but before its name has been assigned to `$tmp'.
13564 $debug ||
13565 {
13566   tmp= ac_tmp=
13567   trap 'exit_status=$?
13568   : "${ac_tmp:=$tmp}"
13569   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13570 ' 0
13571   trap 'as_fn_exit 1' 1 2 13 15
13572 }
13573 # Create a (secure) tmp directory for tmp files.
13574
13575 {
13576   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13577   test -d "$tmp"
13578 }  ||
13579 {
13580   tmp=./conf$$-$RANDOM
13581   (umask 077 && mkdir "$tmp")
13582 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13583 ac_tmp=$tmp
13584
13585 # Set up the scripts for CONFIG_FILES section.
13586 # No need to generate them if there are no CONFIG_FILES.
13587 # This happens for instance with `./config.status config.h'.
13588 if test -n "$CONFIG_FILES"; then
13589
13590
13591 ac_cr=`echo X | tr X '\015'`
13592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13593 # But we know of no other shell where ac_cr would be empty at this
13594 # point, so we can use a bashism as a fallback.
13595 if test "x$ac_cr" = x; then
13596   eval ac_cr=\$\'\\r\'
13597 fi
13598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13600   ac_cs_awk_cr='\\r'
13601 else
13602   ac_cs_awk_cr=$ac_cr
13603 fi
13604
13605 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13606 _ACEOF
13607
13608
13609 {
13610   echo "cat >conf$$subs.awk <<_ACEOF" &&
13611   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13612   echo "_ACEOF"
13613 } >conf$$subs.sh ||
13614   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13616 ac_delim='%!_!# '
13617 for ac_last_try in false false false false false :; do
13618   . ./conf$$subs.sh ||
13619     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13620
13621   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13622   if test $ac_delim_n = $ac_delim_num; then
13623     break
13624   elif $ac_last_try; then
13625     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13626   else
13627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13628   fi
13629 done
13630 rm -f conf$$subs.sh
13631
13632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13634 _ACEOF
13635 sed -n '
13636 h
13637 s/^/S["/; s/!.*/"]=/
13638 p
13639 g
13640 s/^[^!]*!//
13641 :repl
13642 t repl
13643 s/'"$ac_delim"'$//
13644 t delim
13645 :nl
13646 h
13647 s/\(.\{148\}\)..*/\1/
13648 t more1
13649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13650 p
13651 n
13652 b repl
13653 :more1
13654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13655 p
13656 g
13657 s/.\{148\}//
13658 t nl
13659 :delim
13660 h
13661 s/\(.\{148\}\)..*/\1/
13662 t more2
13663 s/["\\]/\\&/g; s/^/"/; s/$/"/
13664 p
13665 b
13666 :more2
13667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13668 p
13669 g
13670 s/.\{148\}//
13671 t delim
13672 ' <conf$$subs.awk | sed '
13673 /^[^""]/{
13674   N
13675   s/\n//
13676 }
13677 ' >>$CONFIG_STATUS || ac_write_fail=1
13678 rm -f conf$$subs.awk
13679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13680 _ACAWK
13681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13682   for (key in S) S_is_set[key] = 1
13683   FS = "\a"
13684
13685 }
13686 {
13687   line = $ 0
13688   nfields = split(line, field, "@")
13689   substed = 0
13690   len = length(field[1])
13691   for (i = 2; i < nfields; i++) {
13692     key = field[i]
13693     keylen = length(key)
13694     if (S_is_set[key]) {
13695       value = S[key]
13696       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13697       len += length(value) + length(field[++i])
13698       substed = 1
13699     } else
13700       len += 1 + keylen
13701   }
13702
13703   print line
13704 }
13705
13706 _ACAWK
13707 _ACEOF
13708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13710   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13711 else
13712   cat
13713 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13714   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13715 _ACEOF
13716
13717 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13718 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13719 # trailing colons and then remove the whole line if VPATH becomes empty
13720 # (actually we leave an empty line to preserve line numbers).
13721 if test "x$srcdir" = x.; then
13722   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13723 h
13724 s///
13725 s/^/:/
13726 s/[      ]*$/:/
13727 s/:\$(srcdir):/:/g
13728 s/:\${srcdir}:/:/g
13729 s/:@srcdir@:/:/g
13730 s/^:*//
13731 s/:*$//
13732 x
13733 s/\(=[   ]*\).*/\1/
13734 G
13735 s/\n//
13736 s/^[^=]*=[       ]*$//
13737 }'
13738 fi
13739
13740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13741 fi # test -n "$CONFIG_FILES"
13742
13743 # Set up the scripts for CONFIG_HEADERS section.
13744 # No need to generate them if there are no CONFIG_HEADERS.
13745 # This happens for instance with `./config.status Makefile'.
13746 if test -n "$CONFIG_HEADERS"; then
13747 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13748 BEGIN {
13749 _ACEOF
13750
13751 # Transform confdefs.h into an awk script `defines.awk', embedded as
13752 # here-document in config.status, that substitutes the proper values into
13753 # config.h.in to produce config.h.
13754
13755 # Create a delimiter string that does not exist in confdefs.h, to ease
13756 # handling of long lines.
13757 ac_delim='%!_!# '
13758 for ac_last_try in false false :; do
13759   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13760   if test -z "$ac_tt"; then
13761     break
13762   elif $ac_last_try; then
13763     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13764   else
13765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13766   fi
13767 done
13768
13769 # For the awk script, D is an array of macro values keyed by name,
13770 # likewise P contains macro parameters if any.  Preserve backslash
13771 # newline sequences.
13772
13773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13774 sed -n '
13775 s/.\{148\}/&'"$ac_delim"'/g
13776 t rset
13777 :rset
13778 s/^[     ]*#[    ]*define[       ][      ]*/ /
13779 t def
13780 d
13781 :def
13782 s/\\$//
13783 t bsnl
13784 s/["\\]/\\&/g
13785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13786 D["\1"]=" \3"/p
13787 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13788 d
13789 :bsnl
13790 s/["\\]/\\&/g
13791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13792 D["\1"]=" \3\\\\\\n"\\/p
13793 t cont
13794 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13795 t cont
13796 d
13797 :cont
13798 n
13799 s/.\{148\}/&'"$ac_delim"'/g
13800 t clear
13801 :clear
13802 s/\\$//
13803 t bsnlc
13804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13805 d
13806 :bsnlc
13807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13808 b cont
13809 ' <confdefs.h | sed '
13810 s/'"$ac_delim"'/"\\\
13811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13812
13813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13814   for (key in D) D_is_set[key] = 1
13815   FS = "\a"
13816 }
13817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13818   line = \$ 0
13819   split(line, arg, " ")
13820   if (arg[1] == "#") {
13821     defundef = arg[2]
13822     mac1 = arg[3]
13823   } else {
13824     defundef = substr(arg[1], 2)
13825     mac1 = arg[2]
13826   }
13827   split(mac1, mac2, "(") #)
13828   macro = mac2[1]
13829   prefix = substr(line, 1, index(line, defundef) - 1)
13830   if (D_is_set[macro]) {
13831     # Preserve the white space surrounding the "#".
13832     print prefix "define", macro P[macro] D[macro]
13833     next
13834   } else {
13835     # Replace #undef with comments.  This is necessary, for example,
13836     # in the case of _POSIX_SOURCE, which is predefined and required
13837     # on some systems where configure will not decide to define it.
13838     if (defundef == "undef") {
13839       print "/*", prefix defundef, macro, "*/"
13840       next
13841     }
13842   }
13843 }
13844 { print }
13845 _ACAWK
13846 _ACEOF
13847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13848   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13849 fi # test -n "$CONFIG_HEADERS"
13850
13851
13852 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13853 shift
13854 for ac_tag
13855 do
13856   case $ac_tag in
13857   :[FHLC]) ac_mode=$ac_tag; continue;;
13858   esac
13859   case $ac_mode$ac_tag in
13860   :[FHL]*:*);;
13861   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13862   :[FH]-) ac_tag=-:-;;
13863   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13864   esac
13865   ac_save_IFS=$IFS
13866   IFS=:
13867   set x $ac_tag
13868   IFS=$ac_save_IFS
13869   shift
13870   ac_file=$1
13871   shift
13872
13873   case $ac_mode in
13874   :L) ac_source=$1;;
13875   :[FH])
13876     ac_file_inputs=
13877     for ac_f
13878     do
13879       case $ac_f in
13880       -) ac_f="$ac_tmp/stdin";;
13881       *) # Look for the file first in the build tree, then in the source tree
13882          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13883          # because $ac_f cannot contain `:'.
13884          test -f "$ac_f" ||
13885            case $ac_f in
13886            [\\/$]*) false;;
13887            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13888            esac ||
13889            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13890       esac
13891       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13892       as_fn_append ac_file_inputs " '$ac_f'"
13893     done
13894
13895     # Let's still pretend it is `configure' which instantiates (i.e., don't
13896     # use $as_me), people would be surprised to read:
13897     #    /* config.h.  Generated by config.status.  */
13898     configure_input='Generated from '`
13899           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13900         `' by configure.'
13901     if test x"$ac_file" != x-; then
13902       configure_input="$ac_file.  $configure_input"
13903       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13904 $as_echo "$as_me: creating $ac_file" >&6;}
13905     fi
13906     # Neutralize special characters interpreted by sed in replacement strings.
13907     case $configure_input in #(
13908     *\&* | *\|* | *\\* )
13909        ac_sed_conf_input=`$as_echo "$configure_input" |
13910        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13911     *) ac_sed_conf_input=$configure_input;;
13912     esac
13913
13914     case $ac_tag in
13915     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13916       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13917     esac
13918     ;;
13919   esac
13920
13921   ac_dir=`$as_dirname -- "$ac_file" ||
13922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13923          X"$ac_file" : 'X\(//\)[^/]' \| \
13924          X"$ac_file" : 'X\(//\)$' \| \
13925          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13926 $as_echo X"$ac_file" |
13927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13928             s//\1/
13929             q
13930           }
13931           /^X\(\/\/\)[^/].*/{
13932             s//\1/
13933             q
13934           }
13935           /^X\(\/\/\)$/{
13936             s//\1/
13937             q
13938           }
13939           /^X\(\/\).*/{
13940             s//\1/
13941             q
13942           }
13943           s/.*/./; q'`
13944   as_dir="$ac_dir"; as_fn_mkdir_p
13945   ac_builddir=.
13946
13947 case "$ac_dir" in
13948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13949 *)
13950   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13951   # A ".." for each directory in $ac_dir_suffix.
13952   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13953   case $ac_top_builddir_sub in
13954   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13955   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13956   esac ;;
13957 esac
13958 ac_abs_top_builddir=$ac_pwd
13959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13960 # for backward compatibility:
13961 ac_top_builddir=$ac_top_build_prefix
13962
13963 case $srcdir in
13964   .)  # We are building in place.
13965     ac_srcdir=.
13966     ac_top_srcdir=$ac_top_builddir_sub
13967     ac_abs_top_srcdir=$ac_pwd ;;
13968   [\\/]* | ?:[\\/]* )  # Absolute name.
13969     ac_srcdir=$srcdir$ac_dir_suffix;
13970     ac_top_srcdir=$srcdir
13971     ac_abs_top_srcdir=$srcdir ;;
13972   *) # Relative name.
13973     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13974     ac_top_srcdir=$ac_top_build_prefix$srcdir
13975     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13976 esac
13977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13978
13979
13980   case $ac_mode in
13981   :F)
13982   #
13983   # CONFIG_FILE
13984   #
13985
13986   case $INSTALL in
13987   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13988   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13989   esac
13990   ac_MKDIR_P=$MKDIR_P
13991   case $MKDIR_P in
13992   [\\/$]* | ?:[\\/]* ) ;;
13993   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13994   esac
13995 _ACEOF
13996
13997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13998 # If the template does not know about datarootdir, expand it.
13999 # FIXME: This hack should be removed a few years after 2.60.
14000 ac_datarootdir_hack=; ac_datarootdir_seen=
14001 ac_sed_dataroot='
14002 /datarootdir/ {
14003   p
14004   q
14005 }
14006 /@datadir@/p
14007 /@docdir@/p
14008 /@infodir@/p
14009 /@localedir@/p
14010 /@mandir@/p'
14011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14012 *datarootdir*) ac_datarootdir_seen=yes;;
14013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14014   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14016 _ACEOF
14017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14018   ac_datarootdir_hack='
14019   s&@datadir@&$datadir&g
14020   s&@docdir@&$docdir&g
14021   s&@infodir@&$infodir&g
14022   s&@localedir@&$localedir&g
14023   s&@mandir@&$mandir&g
14024   s&\\\${datarootdir}&$datarootdir&g' ;;
14025 esac
14026 _ACEOF
14027
14028 # Neutralize VPATH when `$srcdir' = `.'.
14029 # Shell code in configure.ac might set extrasub.
14030 # FIXME: do we really want to maintain this feature?
14031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14032 ac_sed_extra="$ac_vpsub
14033 $extrasub
14034 _ACEOF
14035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14036 :t
14037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14038 s|@configure_input@|$ac_sed_conf_input|;t t
14039 s&@top_builddir@&$ac_top_builddir_sub&;t t
14040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14041 s&@srcdir@&$ac_srcdir&;t t
14042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14043 s&@top_srcdir@&$ac_top_srcdir&;t t
14044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14045 s&@builddir@&$ac_builddir&;t t
14046 s&@abs_builddir@&$ac_abs_builddir&;t t
14047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14048 s&@INSTALL@&$ac_INSTALL&;t t
14049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14050 $ac_datarootdir_hack
14051 "
14052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14053   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14054
14055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14056   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14057   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14058       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14059   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14060 which seems to be undefined.  Please make sure it is defined" >&5
14061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14062 which seems to be undefined.  Please make sure it is defined" >&2;}
14063
14064   rm -f "$ac_tmp/stdin"
14065   case $ac_file in
14066   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14067   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14068   esac \
14069   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14070  ;;
14071   :H)
14072   #
14073   # CONFIG_HEADER
14074   #
14075   if test x"$ac_file" != x-; then
14076     {
14077       $as_echo "/* $configure_input  */" \
14078       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14079     } >"$ac_tmp/config.h" \
14080       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14081     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14082       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14083 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14084     else
14085       rm -f "$ac_file"
14086       mv "$ac_tmp/config.h" "$ac_file" \
14087         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14088     fi
14089   else
14090     $as_echo "/* $configure_input  */" \
14091       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14092       || as_fn_error $? "could not create -" "$LINENO" 5
14093   fi
14094 # Compute "$ac_file"'s index in $config_headers.
14095 _am_arg="$ac_file"
14096 _am_stamp_count=1
14097 for _am_header in $config_headers :; do
14098   case $_am_header in
14099     $_am_arg | $_am_arg:* )
14100       break ;;
14101     * )
14102       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14103   esac
14104 done
14105 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14106 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107          X"$_am_arg" : 'X\(//\)[^/]' \| \
14108          X"$_am_arg" : 'X\(//\)$' \| \
14109          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14110 $as_echo X"$_am_arg" |
14111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112             s//\1/
14113             q
14114           }
14115           /^X\(\/\/\)[^/].*/{
14116             s//\1/
14117             q
14118           }
14119           /^X\(\/\/\)$/{
14120             s//\1/
14121             q
14122           }
14123           /^X\(\/\).*/{
14124             s//\1/
14125             q
14126           }
14127           s/.*/./; q'`/stamp-h$_am_stamp_count
14128  ;;
14129
14130   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14131 $as_echo "$as_me: executing $ac_file commands" >&6;}
14132  ;;
14133   esac
14134
14135
14136   case $ac_file$ac_mode in
14137     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14138   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14139   # are listed without --file.  Let's play safe and only enable the eval
14140   # if we detect the quoting.
14141   case $CONFIG_FILES in
14142   *\'*) eval set x "$CONFIG_FILES" ;;
14143   *)   set x $CONFIG_FILES ;;
14144   esac
14145   shift
14146   for mf
14147   do
14148     # Strip MF so we end up with the name of the file.
14149     mf=`echo "$mf" | sed -e 's/:.*$//'`
14150     # Check whether this is an Automake generated Makefile or not.
14151     # We used to match only the files named `Makefile.in', but
14152     # some people rename them; so instead we look at the file content.
14153     # Grep'ing the first line is not enough: some people post-process
14154     # each Makefile.in and add a new line on top of each file to say so.
14155     # Grep'ing the whole file is not good either: AIX grep has a line
14156     # limit of 2048, but all sed's we know have understand at least 4000.
14157     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14158       dirpart=`$as_dirname -- "$mf" ||
14159 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14160          X"$mf" : 'X\(//\)[^/]' \| \
14161          X"$mf" : 'X\(//\)$' \| \
14162          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14163 $as_echo X"$mf" |
14164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14165             s//\1/
14166             q
14167           }
14168           /^X\(\/\/\)[^/].*/{
14169             s//\1/
14170             q
14171           }
14172           /^X\(\/\/\)$/{
14173             s//\1/
14174             q
14175           }
14176           /^X\(\/\).*/{
14177             s//\1/
14178             q
14179           }
14180           s/.*/./; q'`
14181     else
14182       continue
14183     fi
14184     # Extract the definition of DEPDIR, am__include, and am__quote
14185     # from the Makefile without running `make'.
14186     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14187     test -z "$DEPDIR" && continue
14188     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14189     test -z "am__include" && continue
14190     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14191     # When using ansi2knr, U may be empty or an underscore; expand it
14192     U=`sed -n 's/^U = //p' < "$mf"`
14193     # Find all dependency output files, they are included files with
14194     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14195     # simplest approach to changing $(DEPDIR) to its actual value in the
14196     # expansion.
14197     for file in `sed -n "
14198       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14199          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14200       # Make sure the directory exists.
14201       test -f "$dirpart/$file" && continue
14202       fdir=`$as_dirname -- "$file" ||
14203 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14204          X"$file" : 'X\(//\)[^/]' \| \
14205          X"$file" : 'X\(//\)$' \| \
14206          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14207 $as_echo X"$file" |
14208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14209             s//\1/
14210             q
14211           }
14212           /^X\(\/\/\)[^/].*/{
14213             s//\1/
14214             q
14215           }
14216           /^X\(\/\/\)$/{
14217             s//\1/
14218             q
14219           }
14220           /^X\(\/\).*/{
14221             s//\1/
14222             q
14223           }
14224           s/.*/./; q'`
14225       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14226       # echo "creating $dirpart/$file"
14227       echo '# dummy' > "$dirpart/$file"
14228     done
14229   done
14230 }
14231  ;;
14232     "libtool":C)
14233
14234     # See if we are running on zsh, and set the options which allow our
14235     # commands through without removal of \ escapes.
14236     if test -n "${ZSH_VERSION+set}" ; then
14237       setopt NO_GLOB_SUBST
14238     fi
14239
14240     cfgfile="${ofile}T"
14241     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14242     $RM "$cfgfile"
14243
14244     cat <<_LT_EOF >> "$cfgfile"
14245 #! $SHELL
14246
14247 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14248 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14250 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14251 #
14252 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14253 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14254 #                 Foundation, Inc.
14255 #   Written by Gordon Matzigkeit, 1996
14256 #
14257 #   This file is part of GNU Libtool.
14258 #
14259 # GNU Libtool is free software; you can redistribute it and/or
14260 # modify it under the terms of the GNU General Public License as
14261 # published by the Free Software Foundation; either version 2 of
14262 # the License, or (at your option) any later version.
14263 #
14264 # As a special exception to the GNU General Public License,
14265 # if you distribute this file as part of a program or library that
14266 # is built using GNU Libtool, you may include this file under the
14267 # same distribution terms that you use for the rest of that program.
14268 #
14269 # GNU Libtool is distributed in the hope that it will be useful,
14270 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14271 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14272 # GNU General Public License for more details.
14273 #
14274 # You should have received a copy of the GNU General Public License
14275 # along with GNU Libtool; see the file COPYING.  If not, a copy
14276 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14277 # obtained by writing to the Free Software Foundation, Inc.,
14278 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14279
14280
14281 # The names of the tagged configurations supported by this script.
14282 available_tags=""
14283
14284 # ### BEGIN LIBTOOL CONFIG
14285
14286 # Whether or not to build static libraries.
14287 build_old_libs=$enable_static
14288
14289 # Which release of libtool.m4 was used?
14290 macro_version=$macro_version
14291 macro_revision=$macro_revision
14292
14293 # Whether or not to build shared libraries.
14294 build_libtool_libs=$enable_shared
14295
14296 # What type of objects to build.
14297 pic_mode=$pic_mode
14298
14299 # Whether or not to optimize for fast installation.
14300 fast_install=$enable_fast_install
14301
14302 # Shell to use when invoking shell scripts.
14303 SHELL=$lt_SHELL
14304
14305 # An echo program that protects backslashes.
14306 ECHO=$lt_ECHO
14307
14308 # The PATH separator for the build system.
14309 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14310
14311 # The host system.
14312 host_alias=$host_alias
14313 host=$host
14314 host_os=$host_os
14315
14316 # The build system.
14317 build_alias=$build_alias
14318 build=$build
14319 build_os=$build_os
14320
14321 # A sed program that does not truncate output.
14322 SED=$lt_SED
14323
14324 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14325 Xsed="\$SED -e 1s/^X//"
14326
14327 # A grep program that handles long lines.
14328 GREP=$lt_GREP
14329
14330 # An ERE matcher.
14331 EGREP=$lt_EGREP
14332
14333 # A literal string matcher.
14334 FGREP=$lt_FGREP
14335
14336 # A BSD- or MS-compatible name lister.
14337 NM=$lt_NM
14338
14339 # Whether we need soft or hard links.
14340 LN_S=$lt_LN_S
14341
14342 # What is the maximum length of a command?
14343 max_cmd_len=$max_cmd_len
14344
14345 # Object file suffix (normally "o").
14346 objext=$ac_objext
14347
14348 # Executable file suffix (normally "").
14349 exeext=$exeext
14350
14351 # whether the shell understands "unset".
14352 lt_unset=$lt_unset
14353
14354 # turn spaces into newlines.
14355 SP2NL=$lt_lt_SP2NL
14356
14357 # turn newlines into spaces.
14358 NL2SP=$lt_lt_NL2SP
14359
14360 # convert \$build file names to \$host format.
14361 to_host_file_cmd=$lt_cv_to_host_file_cmd
14362
14363 # convert \$build files to toolchain format.
14364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14365
14366 # An object symbol dumper.
14367 OBJDUMP=$lt_OBJDUMP
14368
14369 # Method to check whether dependent libraries are shared objects.
14370 deplibs_check_method=$lt_deplibs_check_method
14371
14372 # Command to use when deplibs_check_method = "file_magic".
14373 file_magic_cmd=$lt_file_magic_cmd
14374
14375 # How to find potential files when deplibs_check_method = "file_magic".
14376 file_magic_glob=$lt_file_magic_glob
14377
14378 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14379 want_nocaseglob=$lt_want_nocaseglob
14380
14381 # DLL creation program.
14382 DLLTOOL=$lt_DLLTOOL
14383
14384 # Command to associate shared and link libraries.
14385 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14386
14387 # The archiver.
14388 AR=$lt_AR
14389
14390 # Flags to create an archive.
14391 AR_FLAGS=$lt_AR_FLAGS
14392
14393 # How to feed a file listing to the archiver.
14394 archiver_list_spec=$lt_archiver_list_spec
14395
14396 # A symbol stripping program.
14397 STRIP=$lt_STRIP
14398
14399 # Commands used to install an old-style archive.
14400 RANLIB=$lt_RANLIB
14401 old_postinstall_cmds=$lt_old_postinstall_cmds
14402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14403
14404 # Whether to use a lock for old archive extraction.
14405 lock_old_archive_extraction=$lock_old_archive_extraction
14406
14407 # A C compiler.
14408 LTCC=$lt_CC
14409
14410 # LTCC compiler flags.
14411 LTCFLAGS=$lt_CFLAGS
14412
14413 # Take the output of nm and produce a listing of raw symbols and C names.
14414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14415
14416 # Transform the output of nm in a proper C declaration.
14417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14418
14419 # Transform the output of nm in a C name address pair.
14420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14421
14422 # Transform the output of nm in a C name address pair when lib prefix is needed.
14423 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14424
14425 # Specify filename containing input files for \$NM.
14426 nm_file_list_spec=$lt_nm_file_list_spec
14427
14428 # The root where to search for dependent libraries,and in which our libraries should be installed.
14429 lt_sysroot=$lt_sysroot
14430
14431 # The name of the directory that contains temporary libtool files.
14432 objdir=$objdir
14433
14434 # Used to examine libraries when file_magic_cmd begins with "file".
14435 MAGIC_CMD=$MAGIC_CMD
14436
14437 # Must we lock files when doing compilation?
14438 need_locks=$lt_need_locks
14439
14440 # Manifest tool.
14441 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14442
14443 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14444 DSYMUTIL=$lt_DSYMUTIL
14445
14446 # Tool to change global to local symbols on Mac OS X.
14447 NMEDIT=$lt_NMEDIT
14448
14449 # Tool to manipulate fat objects and archives on Mac OS X.
14450 LIPO=$lt_LIPO
14451
14452 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14453 OTOOL=$lt_OTOOL
14454
14455 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14456 OTOOL64=$lt_OTOOL64
14457
14458 # Old archive suffix (normally "a").
14459 libext=$libext
14460
14461 # Shared library suffix (normally ".so").
14462 shrext_cmds=$lt_shrext_cmds
14463
14464 # The commands to extract the exported symbol list from a shared archive.
14465 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14466
14467 # Variables whose values should be saved in libtool wrapper scripts and
14468 # restored at link time.
14469 variables_saved_for_relink=$lt_variables_saved_for_relink
14470
14471 # Do we need the "lib" prefix for modules?
14472 need_lib_prefix=$need_lib_prefix
14473
14474 # Do we need a version for libraries?
14475 need_version=$need_version
14476
14477 # Library versioning type.
14478 version_type=$version_type
14479
14480 # Shared library runtime path variable.
14481 runpath_var=$runpath_var
14482
14483 # Shared library path variable.
14484 shlibpath_var=$shlibpath_var
14485
14486 # Is shlibpath searched before the hard-coded library search path?
14487 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14488
14489 # Format of library name prefix.
14490 libname_spec=$lt_libname_spec
14491
14492 # List of archive names.  First name is the real one, the rest are links.
14493 # The last name is the one that the linker finds with -lNAME
14494 library_names_spec=$lt_library_names_spec
14495
14496 # The coded name of the library, if different from the real name.
14497 soname_spec=$lt_soname_spec
14498
14499 # Permission mode override for installation of shared libraries.
14500 install_override_mode=$lt_install_override_mode
14501
14502 # Command to use after installation of a shared archive.
14503 postinstall_cmds=$lt_postinstall_cmds
14504
14505 # Command to use after uninstallation of a shared archive.
14506 postuninstall_cmds=$lt_postuninstall_cmds
14507
14508 # Commands used to finish a libtool library installation in a directory.
14509 finish_cmds=$lt_finish_cmds
14510
14511 # As "finish_cmds", except a single script fragment to be evaled but
14512 # not shown.
14513 finish_eval=$lt_finish_eval
14514
14515 # Whether we should hardcode library paths into libraries.
14516 hardcode_into_libs=$hardcode_into_libs
14517
14518 # Compile-time system search path for libraries.
14519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14520
14521 # Run-time system search path for libraries.
14522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14523
14524 # Whether dlopen is supported.
14525 dlopen_support=$enable_dlopen
14526
14527 # Whether dlopen of programs is supported.
14528 dlopen_self=$enable_dlopen_self
14529
14530 # Whether dlopen of statically linked programs is supported.
14531 dlopen_self_static=$enable_dlopen_self_static
14532
14533 # Commands to strip libraries.
14534 old_striplib=$lt_old_striplib
14535 striplib=$lt_striplib
14536
14537
14538 # The linker used to build libraries.
14539 LD=$lt_LD
14540
14541 # How to create reloadable object files.
14542 reload_flag=$lt_reload_flag
14543 reload_cmds=$lt_reload_cmds
14544
14545 # Commands used to build an old-style archive.
14546 old_archive_cmds=$lt_old_archive_cmds
14547
14548 # A language specific compiler.
14549 CC=$lt_compiler
14550
14551 # Is the compiler the GNU compiler?
14552 with_gcc=$GCC
14553
14554 # Compiler flag to turn off builtin functions.
14555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14556
14557 # Additional compiler flags for building library objects.
14558 pic_flag=$lt_lt_prog_compiler_pic
14559
14560 # How to pass a linker flag through the compiler.
14561 wl=$lt_lt_prog_compiler_wl
14562
14563 # Compiler flag to prevent dynamic linking.
14564 link_static_flag=$lt_lt_prog_compiler_static
14565
14566 # Does compiler simultaneously support -c and -o options?
14567 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14568
14569 # Whether or not to add -lc for building shared libraries.
14570 build_libtool_need_lc=$archive_cmds_need_lc
14571
14572 # Whether or not to disallow shared libs when runtime libs are static.
14573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14574
14575 # Compiler flag to allow reflexive dlopens.
14576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14577
14578 # Compiler flag to generate shared objects directly from archives.
14579 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14580
14581 # Whether the compiler copes with passing no objects directly.
14582 compiler_needs_object=$lt_compiler_needs_object
14583
14584 # Create an old-style archive from a shared archive.
14585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14586
14587 # Create a temporary old-style archive to link instead of a shared archive.
14588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14589
14590 # Commands used to build a shared archive.
14591 archive_cmds=$lt_archive_cmds
14592 archive_expsym_cmds=$lt_archive_expsym_cmds
14593
14594 # Commands used to build a loadable module if different from building
14595 # a shared archive.
14596 module_cmds=$lt_module_cmds
14597 module_expsym_cmds=$lt_module_expsym_cmds
14598
14599 # Whether we are building with GNU ld or not.
14600 with_gnu_ld=$lt_with_gnu_ld
14601
14602 # Flag that allows shared libraries with undefined symbols to be built.
14603 allow_undefined_flag=$lt_allow_undefined_flag
14604
14605 # Flag that enforces no undefined symbols.
14606 no_undefined_flag=$lt_no_undefined_flag
14607
14608 # Flag to hardcode \$libdir into a binary during linking.
14609 # This must work even if \$libdir does not exist
14610 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14611
14612 # Whether we need a single "-rpath" flag with a separated argument.
14613 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14614
14615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14616 # DIR into the resulting binary.
14617 hardcode_direct=$hardcode_direct
14618
14619 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14620 # DIR into the resulting binary and the resulting library dependency is
14621 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14622 # library is relocated.
14623 hardcode_direct_absolute=$hardcode_direct_absolute
14624
14625 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14626 # into the resulting binary.
14627 hardcode_minus_L=$hardcode_minus_L
14628
14629 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14630 # into the resulting binary.
14631 hardcode_shlibpath_var=$hardcode_shlibpath_var
14632
14633 # Set to "yes" if building a shared library automatically hardcodes DIR
14634 # into the library and all subsequent libraries and executables linked
14635 # against it.
14636 hardcode_automatic=$hardcode_automatic
14637
14638 # Set to yes if linker adds runtime paths of dependent libraries
14639 # to runtime path list.
14640 inherit_rpath=$inherit_rpath
14641
14642 # Whether libtool must link a program against all its dependency libraries.
14643 link_all_deplibs=$link_all_deplibs
14644
14645 # Set to "yes" if exported symbols are required.
14646 always_export_symbols=$always_export_symbols
14647
14648 # The commands to list exported symbols.
14649 export_symbols_cmds=$lt_export_symbols_cmds
14650
14651 # Symbols that should not be listed in the preloaded symbols.
14652 exclude_expsyms=$lt_exclude_expsyms
14653
14654 # Symbols that must always be exported.
14655 include_expsyms=$lt_include_expsyms
14656
14657 # Commands necessary for linking programs (against libraries) with templates.
14658 prelink_cmds=$lt_prelink_cmds
14659
14660 # Commands necessary for finishing linking programs.
14661 postlink_cmds=$lt_postlink_cmds
14662
14663 # Specify filename containing input files.
14664 file_list_spec=$lt_file_list_spec
14665
14666 # How to hardcode a shared library path into an executable.
14667 hardcode_action=$hardcode_action
14668
14669 # ### END LIBTOOL CONFIG
14670
14671 _LT_EOF
14672
14673   case $host_os in
14674   aix3*)
14675     cat <<\_LT_EOF >> "$cfgfile"
14676 # AIX sometimes has problems with the GCC collect2 program.  For some
14677 # reason, if we set the COLLECT_NAMES environment variable, the problems
14678 # vanish in a puff of smoke.
14679 if test "X${COLLECT_NAMES+set}" != Xset; then
14680   COLLECT_NAMES=
14681   export COLLECT_NAMES
14682 fi
14683 _LT_EOF
14684     ;;
14685   esac
14686
14687
14688 ltmain="$ac_aux_dir/ltmain.sh"
14689
14690
14691   # We use sed instead of cat because bash on DJGPP gets confused if
14692   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14693   # text mode, it properly converts lines to CR/LF.  This bash problem
14694   # is reportedly fixed, but why not run on old versions too?
14695   sed '$q' "$ltmain" >> "$cfgfile" \
14696      || (rm -f "$cfgfile"; exit 1)
14697
14698   if test x"$xsi_shell" = xyes; then
14699   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14700 func_dirname ()\
14701 {\
14702 \    case ${1} in\
14703 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14704 \      *  ) func_dirname_result="${3}" ;;\
14705 \    esac\
14706 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14707   && mv -f "$cfgfile.tmp" "$cfgfile" \
14708     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14709 test 0 -eq $? || _lt_function_replace_fail=:
14710
14711
14712   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14713 func_basename ()\
14714 {\
14715 \    func_basename_result="${1##*/}"\
14716 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14717   && mv -f "$cfgfile.tmp" "$cfgfile" \
14718     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14719 test 0 -eq $? || _lt_function_replace_fail=:
14720
14721
14722   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14723 func_dirname_and_basename ()\
14724 {\
14725 \    case ${1} in\
14726 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14727 \      *  ) func_dirname_result="${3}" ;;\
14728 \    esac\
14729 \    func_basename_result="${1##*/}"\
14730 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14731   && mv -f "$cfgfile.tmp" "$cfgfile" \
14732     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14733 test 0 -eq $? || _lt_function_replace_fail=:
14734
14735
14736   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14737 func_stripname ()\
14738 {\
14739 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14740 \    # positional parameters, so assign one to ordinary parameter first.\
14741 \    func_stripname_result=${3}\
14742 \    func_stripname_result=${func_stripname_result#"${1}"}\
14743 \    func_stripname_result=${func_stripname_result%"${2}"}\
14744 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14745   && mv -f "$cfgfile.tmp" "$cfgfile" \
14746     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14747 test 0 -eq $? || _lt_function_replace_fail=:
14748
14749
14750   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14751 func_split_long_opt ()\
14752 {\
14753 \    func_split_long_opt_name=${1%%=*}\
14754 \    func_split_long_opt_arg=${1#*=}\
14755 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14756   && mv -f "$cfgfile.tmp" "$cfgfile" \
14757     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14758 test 0 -eq $? || _lt_function_replace_fail=:
14759
14760
14761   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14762 func_split_short_opt ()\
14763 {\
14764 \    func_split_short_opt_arg=${1#??}\
14765 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14766 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14767   && mv -f "$cfgfile.tmp" "$cfgfile" \
14768     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14769 test 0 -eq $? || _lt_function_replace_fail=:
14770
14771
14772   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14773 func_lo2o ()\
14774 {\
14775 \    case ${1} in\
14776 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14777 \      *)    func_lo2o_result=${1} ;;\
14778 \    esac\
14779 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14780   && mv -f "$cfgfile.tmp" "$cfgfile" \
14781     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782 test 0 -eq $? || _lt_function_replace_fail=:
14783
14784
14785   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14786 func_xform ()\
14787 {\
14788     func_xform_result=${1%.*}.lo\
14789 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14790   && mv -f "$cfgfile.tmp" "$cfgfile" \
14791     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14792 test 0 -eq $? || _lt_function_replace_fail=:
14793
14794
14795   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14796 func_arith ()\
14797 {\
14798     func_arith_result=$(( $* ))\
14799 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14800   && mv -f "$cfgfile.tmp" "$cfgfile" \
14801     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14802 test 0 -eq $? || _lt_function_replace_fail=:
14803
14804
14805   sed -e '/^func_len ()$/,/^} # func_len /c\
14806 func_len ()\
14807 {\
14808     func_len_result=${#1}\
14809 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14810   && mv -f "$cfgfile.tmp" "$cfgfile" \
14811     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14812 test 0 -eq $? || _lt_function_replace_fail=:
14813
14814 fi
14815
14816 if test x"$lt_shell_append" = xyes; then
14817   sed -e '/^func_append ()$/,/^} # func_append /c\
14818 func_append ()\
14819 {\
14820     eval "${1}+=\\${2}"\
14821 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14822   && mv -f "$cfgfile.tmp" "$cfgfile" \
14823     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14824 test 0 -eq $? || _lt_function_replace_fail=:
14825
14826
14827   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14828 func_append_quoted ()\
14829 {\
14830 \    func_quote_for_eval "${2}"\
14831 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14832 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14833   && mv -f "$cfgfile.tmp" "$cfgfile" \
14834     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14835 test 0 -eq $? || _lt_function_replace_fail=:
14836
14837
14838   # Save a `func_append' function call where possible by direct use of '+='
14839   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14840     && mv -f "$cfgfile.tmp" "$cfgfile" \
14841       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14842   test 0 -eq $? || _lt_function_replace_fail=:
14843 else
14844   # Save a `func_append' function call even when '+=' is not available
14845   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14846     && mv -f "$cfgfile.tmp" "$cfgfile" \
14847       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14848   test 0 -eq $? || _lt_function_replace_fail=:
14849 fi
14850
14851 if test x"$_lt_function_replace_fail" = x":"; then
14852   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14853 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14854 fi
14855
14856
14857    mv -f "$cfgfile" "$ofile" ||
14858     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14859   chmod +x "$ofile"
14860
14861  ;;
14862
14863   esac
14864 done # for ac_tag
14865
14866
14867 as_fn_exit 0
14868 _ACEOF
14869 ac_clean_files=$ac_clean_files_save
14870
14871 test $ac_write_fail = 0 ||
14872   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14873
14874
14875 # configure is writing to config.log, and then calls config.status.
14876 # config.status does its own redirection, appending to config.log.
14877 # Unfortunately, on DOS this fails, as config.log is still kept open
14878 # by configure, so config.status won't be able to write to it; its
14879 # output is simply discarded.  So we exec the FD to /dev/null,
14880 # effectively closing config.log, so it can be properly (re)opened and
14881 # appended to by config.status.  When coming back to configure, we
14882 # need to make the FD available again.
14883 if test "$no_create" != yes; then
14884   ac_cs_success=:
14885   ac_config_status_args=
14886   test "$silent" = yes &&
14887     ac_config_status_args="$ac_config_status_args --quiet"
14888   exec 5>/dev/null
14889   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14890   exec 5>>config.log
14891   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14892   # would make configure fail if this is the last instruction.
14893   $ac_cs_success || as_fn_exit 1
14894 fi
14895 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14896   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14897 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14898 fi
14899
14900
14901
14902 e_xtlibdir=$xtlibdir
14903 if test $prefix = 'NONE'; then
14904         prefix="/usr/local"
14905 fi
14906 while true; do
14907   case "$e_xtlibdir" in
14908     *\$* ) eval "e_xtlibdir=$e_xtlibdir" ;;
14909     *) break ;;
14910   esac
14911 done
14912 eval "e_xtlibdir=$e_xtlibdir"
14913
14914 e_pkgconfigdir=$pkgconfigdir
14915 if test $prefix = 'NONE'; then
14916         prefix="/usr/local"
14917 fi
14918 while true; do
14919   case "$e_pkgconfigdir" in
14920     *\$* ) eval "e_pkgconfigdir=$e_pkgconfigdir" ;;
14921     *) break ;;
14922   esac
14923 done
14924 eval "e_pkgconfigdir=$e_pkgconfigdir"
14925
14926
14927 echo "
14928 Iptables Configuration:
14929   IPv4 support:                         ${enable_ipv4}
14930   IPv6 support:                         ${enable_ipv6}
14931   Devel support:                        ${enable_devel}
14932   IPQ support:                          ${enable_libipq}
14933   Large file support:                   ${enable_largefile}
14934   BPF utils support:                    ${enable_bpfc}
14935   nfsynproxy util support:              ${enable_nfsynproxy}
14936
14937 Build parameters:
14938   Put plugins into executable (static): ${enable_static}
14939   Support plugins via dlopen (shared):  ${enable_shared}
14940   Installation prefix (--prefix):       ${prefix}
14941   Xtables extension directory:          ${e_xtlibdir}
14942   Pkg-config directory:                 ${e_pkgconfigdir}"
14943
14944 if [ -n "$ksourcedir" ]; then
14945         echo "  Kernel source directory:                ${ksourcedir}"
14946 fi;
14947 if [ -n "$kbuilddir" ]; then
14948         echo "  Kernel build directory:         ${kbuilddir}"
14949 fi;
14950
14951 echo "  Host:                                   ${host}
14952   GCC binary:                           ${CC}"
14953
14954 test x"$blacklist_modules" = "x" || echo "
14955 Iptables modules that will not be built: $blacklist_modules"