OSDN Git Service

* updated ChangeLog
[modchxj/mod_chxj.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mod_chxj 0.14.1.
4 #
5 # Report bugs to <konn@users.sourceforge.jp>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: konn@users.sourceforge.jp about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='mod_chxj'
572 PACKAGE_TARNAME='mod_chxj'
573 PACKAGE_VERSION='0.14.1'
574 PACKAGE_STRING='mod_chxj 0.14.1'
575 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
576 PACKAGE_URL=''
577
578 ac_unique_file="src/mod_chxj.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 OPENSSL_PATH
619 DDEFS
620 QDEFS
621 with_apache_header
622 PCRE_1_CONFIG
623 PCRE_CONFIG
624 LIBOBJS
625 APU_1_CONFIG
626 APU_CONFIG
627 APR_1_CONFIG
628 APR_CONFIG
629 WAND_CONFIG
630 APXS
631 APXS2
632 LIBTOOL_DEPS
633 CPP
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 MANIFEST_TOOL
640 RANLIB
641 ac_ct_AR
642 AR
643 DLLTOOL
644 OBJDUMP
645 LN_S
646 NM
647 ac_ct_DUMPBIN
648 DUMPBIN
649 LD
650 FGREP
651 EGREP
652 GREP
653 SED
654 LIBTOOL
655 am__fastdepCC_FALSE
656 am__fastdepCC_TRUE
657 CCDEPMODE
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
676 AWK
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_os
695 target_vendor
696 target_cpu
697 target
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_dependency_tracking
748 enable_shared
749 enable_static
750 with_pic
751 enable_fast_install
752 with_gnu_ld
753 with_sysroot
754 enable_libtool_lock
755 with_apache_header
756 with_apxs
757 with_apr_config
758 with_apu_config
759 with_pcre_config
760 enable_img_conv_f
761 enable_memcache_cookie
762 enable_memcached_static
763 with_memcached_header
764 with_memcached_lib_dir
765 enable_mysql_cookie
766 with_mysql_header
767 with_mysql_lib_dir
768 with_openssl
769 enable_dump_log
770 '
771       ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP
780 CPPFLAGS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *=)   ac_optarg= ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=\$ac_optarg ;;
1131
1132   -without-* | --without-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=no ;;
1147
1148   --x)
1149     # Obsolete; use --with-x.
1150     with_x=yes ;;
1151
1152   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153   | --x-incl | --x-inc | --x-in | --x-i)
1154     ac_prev=x_includes ;;
1155   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157     x_includes=$ac_optarg ;;
1158
1159   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161     ac_prev=x_libraries ;;
1162   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164     x_libraries=$ac_optarg ;;
1165
1166   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     case $ac_envvar in #(
1174       '' | [0-9]* | *[!_$as_cr_alnum]* )
1175       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176     esac
1177     eval $ac_envvar=\$ac_optarg
1178     export $ac_envvar ;;
1179
1180   *)
1181     # FIXME: should be removed in autoconf 3.0.
1182     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186     ;;
1187
1188   esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193   as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197   case $enable_option_checking in
1198     no) ;;
1199     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201   esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   # Remove trailing slashes.
1212   case $ac_val in
1213     */ )
1214       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215       eval $ac_var=\$ac_val;;
1216   esac
1217   # Be sure to have absolute directory names.
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237     If a cross compiler is detected then cross compile mode will be used" >&2
1238   elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240   fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252   as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254   as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$as_myself" : 'X\(//\)[^/]' \| \
1264          X"$as_myself" : 'X\(//\)$' \| \
1265          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures mod_chxj 0.14.1 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking ...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR            user executables [EPREFIX/bin]
1358   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR        program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR            object code libraries [EPREFIX/lib]
1364   --includedir=DIR        C header files [PREFIX/include]
1365   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR           info documentation [DATAROOTDIR/info]
1369   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR            man documentation [DATAROOTDIR/man]
1371   --docdir=DIR            documentation root [DATAROOTDIR/doc/mod_chxj]
1372   --htmldir=DIR           html documentation [DOCDIR]
1373   --dvidir=DIR            dvi documentation [DOCDIR]
1374   --pdfdir=DIR            pdf documentation [DOCDIR]
1375   --psdir=DIR             ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 Program names:
1381   --program-prefix=PREFIX            prepend PREFIX to installed program names
1382   --program-suffix=SUFFIX            append SUFFIX to installed program names
1383   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1384
1385 System types:
1386   --build=BUILD     configure for building on BUILD [guessed]
1387   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388   --target=TARGET   configure for building compilers for TARGET [HOST]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393   case $ac_init_help in
1394      short | recursive ) echo "Configuration of mod_chxj 0.14.1:";;
1395    esac
1396   cat <<\_ACEOF
1397
1398 Optional Features:
1399   --disable-option-checking  ignore unrecognized --enable/--with options
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --disable-dependency-tracking  speeds up one-time build
1403   --enable-dependency-tracking   do not reject slow dependency extractors
1404   --enable-shared[=PKGS]  build shared libraries [default=yes]
1405   --enable-static[=PKGS]  build static libraries [default=yes]
1406   --enable-fast-install[=PKGS]
1407                           optimize for fast installation [default=yes]
1408   --disable-libtool-lock  avoid locking (might break parallel builds)
1409   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1410 source by the automatic operation.
1411   --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1412   --enable-memcached-static use static link.
1413   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1414   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1415
1416 Optional Packages:
1417   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1418   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1419   --with-pic              try to use only PIC/non-PIC objects [default=use
1420                           both]
1421   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1422   --with-sysroot=DIR Search for dependent libraries within DIR
1423                         (or the compiler's sysroot if not specified).
1424   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1425   --with-apxs=ARG Path of apxs program file.
1426   --with-apr-config=ARG  Path of apr-config program file.
1427   --with-apu-config=ARG  Path of apu-config program file.
1428   --with-pcre-config=ARG  Path of pcre-config program file.
1429   --with-memcached-header Path of "memcached.h"
1430   --with-memcached-lib-dir Path of "libmemcached.so"
1431   --with-mysql-header=ARG  Path of "mysql.h"
1432   --with-mysql-lib-dir=ARG Path of libmysqlclient
1433 APR_HELP_STRING(--with-openssl=PATH,Path to OpenSSL (eg. /usr/local/ssl))
1434
1435 Some influential environment variables:
1436   CC          C compiler command
1437   CFLAGS      C compiler flags
1438   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1439               nonstandard directory <lib dir>
1440   LIBS        libraries to pass to the linker, e.g. -l<library>
1441   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1442               you have headers in a nonstandard directory <include dir>
1443   CPP         C preprocessor
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <konn@users.sourceforge.jp>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454   # If there are subdirs, report their specific --help.
1455   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456     test -d "$ac_dir" ||
1457       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458       continue
1459     ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465   # A ".." for each directory in $ac_dir_suffix.
1466   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467   case $ac_top_builddir_sub in
1468   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470   esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478   .)  # We are building in place.
1479     ac_srcdir=.
1480     ac_top_srcdir=$ac_top_builddir_sub
1481     ac_abs_top_srcdir=$ac_pwd ;;
1482   [\\/]* | ?:[\\/]* )  # Absolute name.
1483     ac_srcdir=$srcdir$ac_dir_suffix;
1484     ac_top_srcdir=$srcdir
1485     ac_abs_top_srcdir=$srcdir ;;
1486   *) # Relative name.
1487     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488     ac_top_srcdir=$ac_top_build_prefix$srcdir
1489     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493     cd "$ac_dir" || { ac_status=$?; continue; }
1494     # Check for guested configure.
1495     if test -f "$ac_srcdir/configure.gnu"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498     elif test -f "$ac_srcdir/configure"; then
1499       echo &&
1500       $SHELL "$ac_srcdir/configure" --help=recursive
1501     else
1502       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503     fi || ac_status=$?
1504     cd "$ac_pwd" || { ac_status=$?; break; }
1505   done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510   cat <<\_ACEOF
1511 mod_chxj configure 0.14.1
1512 generated by GNU Autoconf 2.68
1513
1514 Copyright (C) 2010 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518   exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext
1532   if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_compile") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest.$ac_objext; then :
1551   ac_retval=0
1552 else
1553   $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556         ac_retval=1
1557 fi
1558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559   as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569   rm -f conftest.$ac_objext conftest$ac_exeext
1570   if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573   *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577   (eval "$ac_link") 2>conftest.err
1578   ac_status=$?
1579   if test -s conftest.err; then
1580     grep -v '^ *+' conftest.err >conftest.er1
1581     cat conftest.er1 >&5
1582     mv -f conftest.er1 conftest.err
1583   fi
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && {
1586          test -z "$ac_c_werror_flag" ||
1587          test ! -s conftest.err
1588        } && test -s conftest$ac_exeext && {
1589          test "$cross_compiling" = yes ||
1590          $as_test_x conftest$ac_exeext
1591        }; then :
1592   ac_retval=0
1593 else
1594   $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597         ac_retval=1
1598 fi
1599   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601   # interfere with the next link command; also delete a directory that is
1602   # left behind by Apple's compiler.  We do this before executing the actions.
1603   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605   as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619   $as_echo_n "(cached) " >&6
1620 else
1621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h.  */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627   eval "$3=yes"
1628 else
1629   eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } > conftest.i && {
1662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663          test ! -s conftest.err
1664        }; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670     ac_retval=1
1671 fi
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673   as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684   if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_link") 2>&5
1692   ac_status=$?
1693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695   { { case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_try") 2>&5
1702   ac_status=$?
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; }; }; then :
1705   ac_retval=0
1706 else
1707   $as_echo "$as_me: program exited with status $ac_status" >&5
1708        $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711        ac_retval=$ac_status
1712 fi
1713   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715   as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728   $as_echo_n "(cached) " >&6
1729 else
1730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737     which can conflict with char $2 (); below.
1738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739     <limits.h> exists even on freestanding compilers.  */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750    Use char because int might match the return type of a GCC
1751    builtin and then its argument prototype would still apply.  */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757     to always fail with ENOSYS.  Some functions are actually named
1758     something starting with __ and the normal name is an alias.  */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767   ;
1768   return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772   eval "$3=yes"
1773 else
1774   eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777     conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1789 # the include files in INCLUDES and setting the cache variable VAR
1790 # accordingly.
1791 ac_fn_c_check_header_mongrel ()
1792 {
1793   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794   if eval \${$3+:} false; then :
1795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798   $as_echo_n "(cached) " >&6
1799 fi
1800 eval ac_res=\$$3
1801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 else
1804   # Is the header compilable?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1806 $as_echo_n "checking $2 usability... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   ac_header_compiler=yes
1814 else
1815   ac_header_compiler=no
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1819 $as_echo "$ac_header_compiler" >&6; }
1820
1821 # Is the header present?
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1823 $as_echo_n "checking $2 presence... " >&6; }
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h.  */
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_cpp "$LINENO"; then :
1829   ac_header_preproc=yes
1830 else
1831   ac_header_preproc=no
1832 fi
1833 rm -f conftest.err conftest.i conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1835 $as_echo "$ac_header_preproc" >&6; }
1836
1837 # So?  What about this header?
1838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839   yes:no: )
1840     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1841 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844     ;;
1845   no:yes:* )
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1847 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1849 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1851 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1853 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ( $as_echo "## ---------------------------------------- ##
1857 ## Report this to konn@users.sourceforge.jp ##
1858 ## ---------------------------------------- ##"
1859      ) | sed "s/^/$as_me: WARNING:     /" >&2
1860     ;;
1861 esac
1862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865   $as_echo_n "(cached) " >&6
1866 else
1867   eval "$3=\$ac_header_compiler"
1868 fi
1869 eval ac_res=\$$3
1870                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 fi
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_header_mongrel
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by mod_chxj $as_me 0.14.1, which was
1881 generated by GNU Autoconf 2.68.  Invocation command line was
1882
1883   $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1901
1902 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1903 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1906 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1907 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1908 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917     $as_echo "PATH: $as_dir"
1918   done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944   for ac_arg
1945   do
1946     case $ac_arg in
1947     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949     | -silent | --silent | --silen | --sile | --sil)
1950       continue ;;
1951     *\'*)
1952       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953     esac
1954     case $ac_pass in
1955     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956     2)
1957       as_fn_append ac_configure_args1 " '$ac_arg'"
1958       if test $ac_must_keep_next = true; then
1959         ac_must_keep_next=false # Got value, back to normal.
1960       else
1961         case $ac_arg in
1962           *=* | --config-cache | -C | -disable-* | --disable-* \
1963           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965           | -with-* | --with-* | -without-* | --without-* | --x)
1966             case "$ac_configure_args0 " in
1967               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968             esac
1969             ;;
1970           -* ) ac_must_keep_next=true ;;
1971         esac
1972       fi
1973       as_fn_append ac_configure_args " '$ac_arg'"
1974       ;;
1975     esac
1976   done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log.  We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987   # Save into config.log some information that might help in debugging.
1988   {
1989     echo
1990
1991     $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1994     echo
1995     # The following way of writing the cache mishandles newlines in values,
1996 (
1997   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998     eval ac_val=\$$ac_var
1999     case $ac_val in #(
2000     *${as_nl}*)
2001       case $ac_var in #(
2002       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004       esac
2005       case $ac_var in #(
2006       _ | IFS | as_nl) ;; #(
2007       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008       *) { eval $ac_var=; unset $ac_var;} ;;
2009       esac ;;
2010     esac
2011   done
2012   (set) 2>&1 |
2013     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014     *${as_nl}ac_space=\ *)
2015       sed -n \
2016         "s/'\''/'\''\\\\'\'''\''/g;
2017           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018       ;; #(
2019     *)
2020       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021       ;;
2022     esac |
2023     sort
2024 )
2025     echo
2026
2027     $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2030     echo
2031     for ac_var in $ac_subst_vars
2032     do
2033       eval ac_val=\$$ac_var
2034       case $ac_val in
2035       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036       esac
2037       $as_echo "$ac_var='\''$ac_val'\''"
2038     done | sort
2039     echo
2040
2041     if test -n "$ac_subst_files"; then
2042       $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2045       echo
2046       for ac_var in $ac_subst_files
2047       do
2048         eval ac_val=\$$ac_var
2049         case $ac_val in
2050         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051         esac
2052         $as_echo "$ac_var='\''$ac_val'\''"
2053       done | sort
2054       echo
2055     fi
2056
2057     if test -s confdefs.h; then
2058       $as_echo "## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##"
2061       echo
2062       cat confdefs.h
2063       echo
2064     fi
2065     test "$ac_signal" != 0 &&
2066       $as_echo "$as_me: caught signal $ac_signal"
2067     $as_echo "$as_me: exit $exit_status"
2068   } >&5
2069   rm -f core *.core core.conftest.* &&
2070     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071     exit $exit_status
2072 ' 0
2073 for ac_signal in 1 2 13 15; do
2074   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2075 done
2076 ac_signal=0
2077
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2080
2081 $as_echo "/* confdefs.h */" > confdefs.h
2082
2083 # Predefined preprocessor variables.
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2107 _ACEOF
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 ac_site_file1=NONE
2113 ac_site_file2=NONE
2114 if test -n "$CONFIG_SITE"; then
2115   # We do not want a PATH search for config.site.
2116   case $CONFIG_SITE in #((
2117     -*)  ac_site_file1=./$CONFIG_SITE;;
2118     */*) ac_site_file1=$CONFIG_SITE;;
2119     *)   ac_site_file1=./$CONFIG_SITE;;
2120   esac
2121 elif test "x$prefix" != xNONE; then
2122   ac_site_file1=$prefix/share/config.site
2123   ac_site_file2=$prefix/etc/config.site
2124 else
2125   ac_site_file1=$ac_default_prefix/share/config.site
2126   ac_site_file2=$ac_default_prefix/etc/config.site
2127 fi
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 do
2130   test "x$ac_site_file" = xNONE && continue
2131   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134     sed 's/^/| /' "$ac_site_file" >&5
2135     . "$ac_site_file" \
2136       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2140   fi
2141 done
2142
2143 if test -r "$cache_file"; then
2144   # Some versions of bash will fail to source /dev/null (special files
2145   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2146   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149     case $cache_file in
2150       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151       *)                      . "./$cache_file";;
2152     esac
2153   fi
2154 else
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157   >$cache_file
2158 fi
2159
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165   eval ac_new_set=\$ac_env_${ac_var}_set
2166   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167   eval ac_new_val=\$ac_env_${ac_var}_value
2168   case $ac_old_set,$ac_new_set in
2169     set,)
2170       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172       ac_cache_corrupted=: ;;
2173     ,set)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,);;
2178     *)
2179       if test "x$ac_old_val" != "x$ac_new_val"; then
2180         # differences in whitespace do not lead to failure.
2181         ac_old_val_w=`echo x $ac_old_val`
2182         ac_new_val_w=`echo x $ac_new_val`
2183         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186           ac_cache_corrupted=:
2187         else
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190           eval $ac_var=\$ac_old_val
2191         fi
2192         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2193 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2194         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2196       fi;;
2197   esac
2198   # Pass precious variables to config.status.
2199   if test "$ac_new_set" = set; then
2200     case $ac_new_val in
2201     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202     *) ac_arg=$ac_var=$ac_new_val ;;
2203     esac
2204     case " $ac_configure_args " in
2205       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2206       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207     esac
2208   fi
2209 done
2210 if $ac_cache_corrupted; then
2211   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 fi
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2220
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226
2227
2228
2229
2230 ac_aux_dir=
2231 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232   if test -f "$ac_dir/install-sh"; then
2233     ac_aux_dir=$ac_dir
2234     ac_install_sh="$ac_aux_dir/install-sh -c"
2235     break
2236   elif test -f "$ac_dir/install.sh"; then
2237     ac_aux_dir=$ac_dir
2238     ac_install_sh="$ac_aux_dir/install.sh -c"
2239     break
2240   elif test -f "$ac_dir/shtool"; then
2241     ac_aux_dir=$ac_dir
2242     ac_install_sh="$ac_aux_dir/shtool install -c"
2243     break
2244   fi
2245 done
2246 if test -z "$ac_aux_dir"; then
2247   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2248 fi
2249
2250 # These three variables are undocumented and unsupported,
2251 # and are intended to be withdrawn in a future Autoconf release.
2252 # They can cause serious problems if a builder's source tree is in a directory
2253 # whose full name contains unusual characters.
2254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2256 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2257
2258
2259 # Make sure we can run config.sub.
2260 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2261   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2262
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2264 $as_echo_n "checking build system type... " >&6; }
2265 if ${ac_cv_build+:} false; then :
2266   $as_echo_n "(cached) " >&6
2267 else
2268   ac_build_alias=$build_alias
2269 test "x$ac_build_alias" = x &&
2270   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2271 test "x$ac_build_alias" = x &&
2272   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2273 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2274   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2275
2276 fi
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2278 $as_echo "$ac_cv_build" >&6; }
2279 case $ac_cv_build in
2280 *-*-*) ;;
2281 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2282 esac
2283 build=$ac_cv_build
2284 ac_save_IFS=$IFS; IFS='-'
2285 set x $ac_cv_build
2286 shift
2287 build_cpu=$1
2288 build_vendor=$2
2289 shift; shift
2290 # Remember, the first character of IFS is used to create $*,
2291 # except with old shells:
2292 build_os=$*
2293 IFS=$ac_save_IFS
2294 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2295
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2298 $as_echo_n "checking host system type... " >&6; }
2299 if ${ac_cv_host+:} false; then :
2300   $as_echo_n "(cached) " >&6
2301 else
2302   if test "x$host_alias" = x; then
2303   ac_cv_host=$ac_cv_build
2304 else
2305   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2306     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2307 fi
2308
2309 fi
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2311 $as_echo "$ac_cv_host" >&6; }
2312 case $ac_cv_host in
2313 *-*-*) ;;
2314 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2315 esac
2316 host=$ac_cv_host
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_host
2319 shift
2320 host_cpu=$1
2321 host_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 host_os=$*
2326 IFS=$ac_save_IFS
2327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2328
2329
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2331 $as_echo_n "checking target system type... " >&6; }
2332 if ${ac_cv_target+:} false; then :
2333   $as_echo_n "(cached) " >&6
2334 else
2335   if test "x$target_alias" = x; then
2336   ac_cv_target=$ac_cv_host
2337 else
2338   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2339     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2340 fi
2341
2342 fi
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2344 $as_echo "$ac_cv_target" >&6; }
2345 case $ac_cv_target in
2346 *-*-*) ;;
2347 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2348 esac
2349 target=$ac_cv_target
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_target
2352 shift
2353 target_cpu=$1
2354 target_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 target_os=$*
2359 IFS=$ac_save_IFS
2360 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2361
2362
2363 # The aliases save the names the user supplied, while $host etc.
2364 # will get canonicalized.
2365 test -n "$target_alias" &&
2366   test "$program_prefix$program_suffix$program_transform_name" = \
2367     NONENONEs,x,x, &&
2368   program_prefix=${target_alias}-
2369 am__api_version='1.11'
2370
2371 # Find a good install program.  We prefer a C program (faster),
2372 # so one script is as good as another.  But avoid the broken or
2373 # incompatible versions:
2374 # SysV /etc/install, /usr/sbin/install
2375 # SunOS /usr/etc/install
2376 # IRIX /sbin/install
2377 # AIX /bin/install
2378 # AmigaOS /C/install, which installs bootblocks on floppy discs
2379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2382 # OS/2's system install, which has a completely different semantic
2383 # ./install, which can be erroneously created by make from ./install.sh.
2384 # Reject install programs that cannot install multiple files.
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2386 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2387 if test -z "$INSTALL"; then
2388 if ${ac_cv_path_install+:} false; then :
2389   $as_echo_n "(cached) " >&6
2390 else
2391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396     # Account for people who put trailing slashes in PATH elements.
2397 case $as_dir/ in #((
2398   ./ | .// | /[cC]/* | \
2399   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2400   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2401   /usr/ucb/* ) ;;
2402   *)
2403     # OSF1 and SCO ODT 3.0 have their own names for install.
2404     # Don't use installbsd from OSF since it installs stuff as root
2405     # by default.
2406     for ac_prog in ginstall scoinst install; do
2407       for ac_exec_ext in '' $ac_executable_extensions; do
2408         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2409           if test $ac_prog = install &&
2410             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411             # AIX install.  It has an incompatible calling convention.
2412             :
2413           elif test $ac_prog = install &&
2414             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415             # program-specific install script used by HP pwplus--don't use.
2416             :
2417           else
2418             rm -rf conftest.one conftest.two conftest.dir
2419             echo one > conftest.one
2420             echo two > conftest.two
2421             mkdir conftest.dir
2422             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2423               test -s conftest.one && test -s conftest.two &&
2424               test -s conftest.dir/conftest.one &&
2425               test -s conftest.dir/conftest.two
2426             then
2427               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2428               break 3
2429             fi
2430           fi
2431         fi
2432       done
2433     done
2434     ;;
2435 esac
2436
2437   done
2438 IFS=$as_save_IFS
2439
2440 rm -rf conftest.one conftest.two conftest.dir
2441
2442 fi
2443   if test "${ac_cv_path_install+set}" = set; then
2444     INSTALL=$ac_cv_path_install
2445   else
2446     # As a last resort, use the slow shell script.  Don't cache a
2447     # value for INSTALL within a source directory, because that will
2448     # break other packages using the cache if that directory is
2449     # removed, or if the value is a relative name.
2450     INSTALL=$ac_install_sh
2451   fi
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2454 $as_echo "$INSTALL" >&6; }
2455
2456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2457 # It thinks the first close brace ends the variable substitution.
2458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2459
2460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2461
2462 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2463
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2465 $as_echo_n "checking whether build environment is sane... " >&6; }
2466 # Just in case
2467 sleep 1
2468 echo timestamp > conftest.file
2469 # Reject unsafe characters in $srcdir or the absolute working directory
2470 # name.  Accept space and tab only in the latter.
2471 am_lf='
2472 '
2473 case `pwd` in
2474   *[\\\"\#\$\&\'\`$am_lf]*)
2475     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2476 esac
2477 case $srcdir in
2478   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2479     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2480 esac
2481
2482 # Do `set' in a subshell so we don't clobber the current shell's
2483 # arguments.  Must try -L first in case configure is actually a
2484 # symlink; some systems play weird games with the mod time of symlinks
2485 # (eg FreeBSD returns the mod time of the symlink's containing
2486 # directory).
2487 if (
2488    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2489    if test "$*" = "X"; then
2490       # -L didn't work.
2491       set X `ls -t "$srcdir/configure" conftest.file`
2492    fi
2493    rm -f conftest.file
2494    if test "$*" != "X $srcdir/configure conftest.file" \
2495       && test "$*" != "X conftest.file $srcdir/configure"; then
2496
2497       # If neither matched, then we have a broken ls.  This can happen
2498       # if, for instance, CONFIG_SHELL is bash and it inherits a
2499       # broken ls alias from the environment.  This has actually
2500       # happened.  Such a system could not be considered "sane".
2501       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2502 alias in your environment" "$LINENO" 5
2503    fi
2504
2505    test "$2" = conftest.file
2506    )
2507 then
2508    # Ok.
2509    :
2510 else
2511    as_fn_error $? "newly created file is older than distributed files!
2512 Check your system clock" "$LINENO" 5
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2515 $as_echo "yes" >&6; }
2516 test "$program_prefix" != NONE &&
2517   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2518 # Use a double $ so make ignores it.
2519 test "$program_suffix" != NONE &&
2520   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521 # Double any \ or $.
2522 # By default was `s,x,x', remove it if useless.
2523 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525
2526 # expand $ac_aux_dir to an absolute path
2527 am_aux_dir=`cd $ac_aux_dir && pwd`
2528
2529 if test x"${MISSING+set}" != xset; then
2530   case $am_aux_dir in
2531   *\ * | *\     *)
2532     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2533   *)
2534     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2535   esac
2536 fi
2537 # Use eval to expand $SHELL
2538 if eval "$MISSING --run true"; then
2539   am_missing_run="$MISSING --run "
2540 else
2541   am_missing_run=
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2543 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2544 fi
2545
2546 if test x"${install_sh}" != xset; then
2547   case $am_aux_dir in
2548   *\ * | *\     *)
2549     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2550   *)
2551     install_sh="\${SHELL} $am_aux_dir/install-sh"
2552   esac
2553 fi
2554
2555 # Installed binaries are usually stripped using `strip' when the user
2556 # run `make install-strip'.  However `strip' might not be the right
2557 # tool to use in cross-compilation environments, therefore Automake
2558 # will honor the `STRIP' environment variable to overrule this program.
2559 if test "$cross_compiling" != no; then
2560   if test -n "$ac_tool_prefix"; then
2561   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_STRIP+:} false; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   if test -n "$STRIP"; then
2569   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576     for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583   done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 STRIP=$ac_cv_prog_STRIP
2589 if test -n "$STRIP"; then
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2591 $as_echo "$STRIP" >&6; }
2592 else
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 fi
2599 if test -z "$ac_cv_prog_STRIP"; then
2600   ac_ct_STRIP=$STRIP
2601   # Extract the first word of "strip", so it can be a program name with args.
2602 set dummy strip; ac_word=$2
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2606   $as_echo_n "(cached) " >&6
2607 else
2608   if test -n "$ac_ct_STRIP"; then
2609   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616     for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_ac_ct_STRIP="strip"
2619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623   done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2629 if test -n "$ac_ct_STRIP"; then
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2631 $as_echo "$ac_ct_STRIP" >&6; }
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637   if test "x$ac_ct_STRIP" = x; then
2638     STRIP=":"
2639   else
2640     case $cross_compiling:$ac_tool_warned in
2641 yes:)
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644 ac_tool_warned=yes ;;
2645 esac
2646     STRIP=$ac_ct_STRIP
2647   fi
2648 else
2649   STRIP="$ac_cv_prog_STRIP"
2650 fi
2651
2652 fi
2653 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2656 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2657 if test -z "$MKDIR_P"; then
2658   if ${ac_cv_path_mkdir+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666     for ac_prog in mkdir gmkdir; do
2667          for ac_exec_ext in '' $ac_executable_extensions; do
2668            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2669            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2670              'mkdir (GNU coreutils) '* | \
2671              'mkdir (coreutils) '* | \
2672              'mkdir (fileutils) '4.1*)
2673                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2674                break 3;;
2675            esac
2676          done
2677        done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682
2683   test -d ./--version && rmdir ./--version
2684   if test "${ac_cv_path_mkdir+set}" = set; then
2685     MKDIR_P="$ac_cv_path_mkdir -p"
2686   else
2687     # As a last resort, use the slow shell script.  Don't cache a
2688     # value for MKDIR_P within a source directory, because that will
2689     # break other packages using the cache if that directory is
2690     # removed, or if the value is a relative name.
2691     MKDIR_P="$ac_install_sh -d"
2692   fi
2693 fi
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2695 $as_echo "$MKDIR_P" >&6; }
2696
2697 mkdir_p="$MKDIR_P"
2698 case $mkdir_p in
2699   [\\/$]* | ?:[\\/]*) ;;
2700   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2701 esac
2702
2703 for ac_prog in gawk mawk nawk awk
2704 do
2705   # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_AWK+:} false; then :
2710   $as_echo_n "(cached) " >&6
2711 else
2712   if test -n "$AWK"; then
2713   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720     for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_AWK="$ac_prog"
2723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727   done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 AWK=$ac_cv_prog_AWK
2733 if test -n "$AWK"; then
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2736 else
2737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742   test -n "$AWK" && break
2743 done
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2747 set x ${MAKE-make}
2748 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2750   $as_echo_n "(cached) " >&6
2751 else
2752   cat >conftest.make <<\_ACEOF
2753 SHELL = /bin/sh
2754 all:
2755         @echo '@@@%%%=$(MAKE)=@@@%%%'
2756 _ACEOF
2757 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2759   *@@@%%%=?*=@@@%%%*)
2760     eval ac_cv_prog_make_${ac_make}_set=yes;;
2761   *)
2762     eval ac_cv_prog_make_${ac_make}_set=no;;
2763 esac
2764 rm -f conftest.make
2765 fi
2766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769   SET_MAKE=
2770 else
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773   SET_MAKE="MAKE=${MAKE-make}"
2774 fi
2775
2776 rm -rf .tst 2>/dev/null
2777 mkdir .tst 2>/dev/null
2778 if test -d .tst; then
2779   am__leading_dot=.
2780 else
2781   am__leading_dot=_
2782 fi
2783 rmdir .tst 2>/dev/null
2784
2785 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2786   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2787   # is not polluted with repeated "-I."
2788   am__isrc=' -I$(srcdir)'
2789   # test to see if srcdir already configured
2790   if test -f $srcdir/config.status; then
2791     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2792   fi
2793 fi
2794
2795 # test whether we have cygpath
2796 if test -z "$CYGPATH_W"; then
2797   if (cygpath --version) >/dev/null 2>/dev/null; then
2798     CYGPATH_W='cygpath -w'
2799   else
2800     CYGPATH_W=echo
2801   fi
2802 fi
2803
2804
2805 # Define the identity of the package.
2806  PACKAGE=mod_chxj
2807  VERSION=0.14.1
2808
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE "$PACKAGE"
2812 _ACEOF
2813
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define VERSION "$VERSION"
2817 _ACEOF
2818
2819 # Some tools Automake needs.
2820
2821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2822
2823
2824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2825
2826
2827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2828
2829
2830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2831
2832
2833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2834
2835 # We need awk for the "check" target.  The system "awk" is bad on
2836 # some platforms.
2837 # Always define AMTAR for backward compatibility.
2838
2839 AMTAR=${AMTAR-"${am_missing_run}tar"}
2840
2841 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2842
2843
2844
2845
2846
2847 ac_config_headers="$ac_config_headers include/config.h"
2848
2849
2850
2851 # Checks for programs.
2852 ac_ext=c
2853 ac_cpp='$CPP $CPPFLAGS'
2854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857 if test -n "$ac_tool_prefix"; then
2858   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2859 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_CC+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test -n "$CC"; then
2866   ac_cv_prog_CC="$CC" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873     for ac_exec_ext in '' $ac_executable_extensions; do
2874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880   done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 CC=$ac_cv_prog_CC
2886 if test -n "$CC"; then
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 $as_echo "$CC" >&6; }
2889 else
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894
2895 fi
2896 if test -z "$ac_cv_prog_CC"; then
2897   ac_ct_CC=$CC
2898   # Extract the first word of "gcc", so it can be a program name with args.
2899 set dummy gcc; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2903   $as_echo_n "(cached) " >&6
2904 else
2905   if test -n "$ac_ct_CC"; then
2906   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911   IFS=$as_save_IFS
2912   test -z "$as_dir" && as_dir=.
2913     for ac_exec_ext in '' $ac_executable_extensions; do
2914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915     ac_cv_prog_ac_ct_CC="gcc"
2916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917     break 2
2918   fi
2919 done
2920   done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2926 if test -n "$ac_ct_CC"; then
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2928 $as_echo "$ac_ct_CC" >&6; }
2929 else
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934   if test "x$ac_ct_CC" = x; then
2935     CC=""
2936   else
2937     case $cross_compiling:$ac_tool_warned in
2938 yes:)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned=yes ;;
2942 esac
2943     CC=$ac_ct_CC
2944   fi
2945 else
2946   CC="$ac_cv_prog_CC"
2947 fi
2948
2949 if test -z "$CC"; then
2950           if test -n "$ac_tool_prefix"; then
2951     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}cc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   if test -n "$CC"; then
2959   ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966     for ac_exec_ext in '' $ac_executable_extensions; do
2967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968     ac_cv_prog_CC="${ac_tool_prefix}cc"
2969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970     break 2
2971   fi
2972 done
2973   done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988   fi
2989 fi
2990 if test -z "$CC"; then
2991   # Extract the first word of "cc", so it can be a program name with args.
2992 set dummy cc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_CC+:} false; then :
2996   $as_echo_n "(cached) " >&6
2997 else
2998   if test -n "$CC"; then
2999   ac_cv_prog_CC="$CC" # Let the user override the test.
3000 else
3001   ac_prog_rejected=no
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007     for ac_exec_ext in '' $ac_executable_extensions; do
3008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3010        ac_prog_rejected=yes
3011        continue
3012      fi
3013     ac_cv_prog_CC="cc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 if test $ac_prog_rejected = yes; then
3022   # We found a bogon in the path, so make sure we never use it.
3023   set dummy $ac_cv_prog_CC
3024   shift
3025   if test $# != 0; then
3026     # We chose a different compiler from the bogus one.
3027     # However, it has the same basename, so the bogon will be chosen
3028     # first if we set CC to just the basename; use the full file name.
3029     shift
3030     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3031   fi
3032 fi
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 $as_echo "$CC" >&6; }
3039 else
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$CC"; then
3047   if test -n "$ac_tool_prefix"; then
3048   for ac_prog in cl.exe
3049   do
3050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   if test -n "$CC"; then
3058   ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065     for ac_exec_ext in '' $ac_executable_extensions; do
3066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072   done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 $as_echo "$CC" >&6; }
3081 else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087     test -n "$CC" && break
3088   done
3089 fi
3090 if test -z "$CC"; then
3091   ac_ct_CC=$CC
3092   for ac_prog in cl.exe
3093 do
3094   # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3099   $as_echo_n "(cached) " >&6
3100 else
3101   if test -n "$ac_ct_CC"; then
3102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_ac_ct_CC="$ac_prog"
3112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116   done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122 if test -n "$ac_ct_CC"; then
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124 $as_echo "$ac_ct_CC" >&6; }
3125 else
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131   test -n "$ac_ct_CC" && break
3132 done
3133
3134   if test "x$ac_ct_CC" = x; then
3135     CC=""
3136   else
3137     case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3141 ac_tool_warned=yes ;;
3142 esac
3143     CC=$ac_ct_CC
3144   fi
3145 fi
3146
3147 fi
3148
3149
3150 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "no acceptable C compiler found in \$PATH
3153 See \`config.log' for more details" "$LINENO" 5; }
3154
3155 # Provide some information about the compiler.
3156 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3157 set X $ac_compile
3158 ac_compiler=$2
3159 for ac_option in --version -v -V -qversion; do
3160   { { ac_try="$ac_compiler $ac_option >&5"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3168   ac_status=$?
3169   if test -s conftest.err; then
3170     sed '10a\
3171 ... rest of stderr output deleted ...
3172          10q' conftest.err >conftest.er1
3173     cat conftest.er1 >&5
3174   fi
3175   rm -f conftest.er1 conftest.err
3176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177   test $ac_status = 0; }
3178 done
3179
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 ac_clean_files_save=$ac_clean_files
3192 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3193 # Try to create an executable without -o first, disregard a.out.
3194 # It will help us diagnose broken compilers, and finding out an intuition
3195 # of exeext.
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3197 $as_echo_n "checking whether the C compiler works... " >&6; }
3198 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199
3200 # The possible output files:
3201 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3202
3203 ac_rmfiles=
3204 for ac_file in $ac_files
3205 do
3206   case $ac_file in
3207     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3208     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3209   esac
3210 done
3211 rm -f $ac_rmfiles
3212
3213 if { { ac_try="$ac_link_default"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220   (eval "$ac_link_default") 2>&5
3221   ac_status=$?
3222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223   test $ac_status = 0; }; then :
3224   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3226 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3227 # so that the user can short-circuit this test for compilers unknown to
3228 # Autoconf.
3229 for ac_file in $ac_files ''
3230 do
3231   test -f "$ac_file" || continue
3232   case $ac_file in
3233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3234         ;;
3235     [ab].out )
3236         # We found the default executable, but exeext='' is most
3237         # certainly right.
3238         break;;
3239     *.* )
3240         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3241         then :; else
3242            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243         fi
3244         # We set ac_cv_exeext here because the later test for it is not
3245         # safe: cross compilers may not add the suffix if given an `-o'
3246         # argument, so we may need to know it at that point already.
3247         # Even if this section looks crufty: it has the advantage of
3248         # actually working.
3249         break;;
3250     * )
3251         break;;
3252   esac
3253 done
3254 test "$ac_cv_exeext" = no && ac_cv_exeext=
3255
3256 else
3257   ac_file=''
3258 fi
3259 if test -z "$ac_file"; then :
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error 77 "C compiler cannot create executables
3268 See \`config.log' for more details" "$LINENO" 5; }
3269 else
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3272 fi
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3274 $as_echo_n "checking for C compiler default output file name... " >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3276 $as_echo "$ac_file" >&6; }
3277 ac_exeext=$ac_cv_exeext
3278
3279 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3280 ac_clean_files=$ac_clean_files_save
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3282 $as_echo_n "checking for suffix of executables... " >&6; }
3283 if { { ac_try="$ac_link"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293   test $ac_status = 0; }; then :
3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 # `rm'.
3298 for ac_file in conftest.exe conftest conftest.*; do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303           break;;
3304     * ) break;;
3305   esac
3306 done
3307 else
3308   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 fi
3313 rm -f conftest conftest$ac_cv_exeext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3315 $as_echo "$ac_cv_exeext" >&6; }
3316
3317 rm -f conftest.$ac_ext
3318 EXEEXT=$ac_cv_exeext
3319 ac_exeext=$EXEEXT
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h.  */
3322 #include <stdio.h>
3323 int
3324 main ()
3325 {
3326 FILE *f = fopen ("conftest.out", "w");
3327  return ferror (f) || fclose (f) != 0;
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 ac_clean_files="$ac_clean_files conftest.out"
3334 # Check that the compiler produces executables we can run.  If not, either
3335 # the compiler is broken, or we cross compile.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3337 $as_echo_n "checking whether we are cross compiling... " >&6; }
3338 if test "$cross_compiling" != yes; then
3339   { { ac_try="$ac_link"
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") 2>&5
3347   ac_status=$?
3348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349   test $ac_status = 0; }
3350   if { ac_try='./conftest$ac_cv_exeext'
3351   { { case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357   (eval "$ac_try") 2>&5
3358   ac_status=$?
3359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360   test $ac_status = 0; }; }; then
3361     cross_compiling=no
3362   else
3363     if test "$cross_compiling" = maybe; then
3364         cross_compiling=yes
3365     else
3366         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "cannot run C compiled programs.
3369 If you meant to cross compile, use \`--host'.
3370 See \`config.log' for more details" "$LINENO" 5; }
3371     fi
3372   fi
3373 fi
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3375 $as_echo "$cross_compiling" >&6; }
3376
3377 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3380 $as_echo_n "checking for suffix of object files... " >&6; }
3381 if ${ac_cv_objext+:} false; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h.  */
3386
3387 int
3388 main ()
3389 {
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.o conftest.obj
3396 if { { ac_try="$ac_compile"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403   (eval "$ac_compile") 2>&5
3404   ac_status=$?
3405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406   test $ac_status = 0; }; then :
3407   for ac_file in conftest.o conftest.obj conftest.*; do
3408   test -f "$ac_file" || continue;
3409   case $ac_file in
3410     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3411     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3412        break;;
3413   esac
3414 done
3415 else
3416   $as_echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "cannot compute suffix of object files: cannot compile
3422 See \`config.log' for more details" "$LINENO" 5; }
3423 fi
3424 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3427 $as_echo "$ac_cv_objext" >&6; }
3428 OBJEXT=$ac_cv_objext
3429 ac_objext=$OBJEXT
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3431 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3432 if ${ac_cv_c_compiler_gnu+:} false; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h.  */
3437
3438 int
3439 main ()
3440 {
3441 #ifndef __GNUC__
3442        choke me
3443 #endif
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450   ac_compiler_gnu=yes
3451 else
3452   ac_compiler_gnu=no
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3456
3457 fi
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3459 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3460 if test $ac_compiler_gnu = yes; then
3461   GCC=yes
3462 else
3463   GCC=
3464 fi
3465 ac_test_CFLAGS=${CFLAGS+set}
3466 ac_save_CFLAGS=$CFLAGS
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3468 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3469 if ${ac_cv_prog_cc_g+:} false; then :
3470   $as_echo_n "(cached) " >&6
3471 else
3472   ac_save_c_werror_flag=$ac_c_werror_flag
3473    ac_c_werror_flag=yes
3474    ac_cv_prog_cc_g=no
3475    CFLAGS="-g"
3476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 if ac_fn_c_try_compile "$LINENO"; then :
3488   ac_cv_prog_cc_g=yes
3489 else
3490   CFLAGS=""
3491       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"; then :
3503
3504 else
3505   ac_c_werror_flag=$ac_save_c_werror_flag
3506          CFLAGS="-g"
3507          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519   ac_cv_prog_cc_g=yes
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526    ac_c_werror_flag=$ac_save_c_werror_flag
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3529 $as_echo "$ac_cv_prog_cc_g" >&6; }
3530 if test "$ac_test_CFLAGS" = set; then
3531   CFLAGS=$ac_save_CFLAGS
3532 elif test $ac_cv_prog_cc_g = yes; then
3533   if test "$GCC" = yes; then
3534     CFLAGS="-g -O2"
3535   else
3536     CFLAGS="-g"
3537   fi
3538 else
3539   if test "$GCC" = yes; then
3540     CFLAGS="-O2"
3541   else
3542     CFLAGS=
3543   fi
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3546 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3547 if ${ac_cv_prog_cc_c89+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   ac_cv_prog_cc_c89=no
3551 ac_save_CC=$CC
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554 #include <stdarg.h>
3555 #include <stdio.h>
3556 #include <sys/types.h>
3557 #include <sys/stat.h>
3558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3559 struct buf { int x; };
3560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3561 static char *e (p, i)
3562      char **p;
3563      int i;
3564 {
3565   return p[i];
3566 }
3567 static char *f (char * (*g) (char **, int), char **p, ...)
3568 {
3569   char *s;
3570   va_list v;
3571   va_start (v,p);
3572   s = g (p, va_arg (v,int));
3573   va_end (v);
3574   return s;
3575 }
3576
3577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3578    function prototypes and stuff, but not '\xHH' hex character constants.
3579    These don't provoke an error unfortunately, instead are silently treated
3580    as 'x'.  The following induces an error, until -std is added to get
3581    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3582    array size at least.  It's necessary to write '\x00'==0 to get something
3583    that's true only with -std.  */
3584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3585
3586 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3587    inside strings and character constants.  */
3588 #define FOO(x) 'x'
3589 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3590
3591 int test (int i, double x);
3592 struct s1 {int (*f) (int a);};
3593 struct s2 {int (*f) (double a);};
3594 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3595 int argc;
3596 char **argv;
3597 int
3598 main ()
3599 {
3600 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3606         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3607 do
3608   CC="$ac_save_CC $ac_arg"
3609   if ac_fn_c_try_compile "$LINENO"; then :
3610   ac_cv_prog_cc_c89=$ac_arg
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext
3613   test "x$ac_cv_prog_cc_c89" != "xno" && break
3614 done
3615 rm -f conftest.$ac_ext
3616 CC=$ac_save_CC
3617
3618 fi
3619 # AC_CACHE_VAL
3620 case "x$ac_cv_prog_cc_c89" in
3621   x)
3622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623 $as_echo "none needed" >&6; } ;;
3624   xno)
3625     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 $as_echo "unsupported" >&6; } ;;
3627   *)
3628     CC="$CC $ac_cv_prog_cc_c89"
3629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3630 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3631 esac
3632 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633
3634 fi
3635
3636 ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 DEPDIR="${am__leading_dot}deps"
3642
3643 ac_config_commands="$ac_config_commands depfiles"
3644
3645
3646 am_make=${MAKE-make}
3647 cat > confinc << 'END'
3648 am__doit:
3649         @echo this is the am__doit target
3650 .PHONY: am__doit
3651 END
3652 # If we don't find an include directive, just comment out the code.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3654 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3655 am__include="#"
3656 am__quote=
3657 _am_result=none
3658 # First try GNU make style include.
3659 echo "include confinc" > confmf
3660 # Ignore all kinds of additional output from `make'.
3661 case `$am_make -s -f confmf 2> /dev/null` in #(
3662 *the\ am__doit\ target*)
3663   am__include=include
3664   am__quote=
3665   _am_result=GNU
3666   ;;
3667 esac
3668 # Now try BSD make style include.
3669 if test "$am__include" = "#"; then
3670    echo '.include "confinc"' > confmf
3671    case `$am_make -s -f confmf 2> /dev/null` in #(
3672    *the\ am__doit\ target*)
3673      am__include=.include
3674      am__quote="\""
3675      _am_result=BSD
3676      ;;
3677    esac
3678 fi
3679
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3682 $as_echo "$_am_result" >&6; }
3683 rm -f confinc confmf
3684
3685 # Check whether --enable-dependency-tracking was given.
3686 if test "${enable_dependency_tracking+set}" = set; then :
3687   enableval=$enable_dependency_tracking;
3688 fi
3689
3690 if test "x$enable_dependency_tracking" != xno; then
3691   am_depcomp="$ac_aux_dir/depcomp"
3692   AMDEPBACKSLASH='\'
3693 fi
3694  if test "x$enable_dependency_tracking" != xno; then
3695   AMDEP_TRUE=
3696   AMDEP_FALSE='#'
3697 else
3698   AMDEP_TRUE='#'
3699   AMDEP_FALSE=
3700 fi
3701
3702
3703
3704 depcc="$CC"   am_compiler_list=
3705
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707 $as_echo_n "checking dependency style of $depcc... " >&6; }
3708 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712   # We make a subdir and do the tests there.  Otherwise we can end up
3713   # making bogus files that we don't know about and never remove.  For
3714   # instance it was reported that on HP-UX the gcc test will end up
3715   # making a dummy file named `D' -- because `-MD' means `put the output
3716   # in D'.
3717   mkdir conftest.dir
3718   # Copy depcomp to subdir because otherwise we won't find it if we're
3719   # using a relative directory.
3720   cp "$am_depcomp" conftest.dir
3721   cd conftest.dir
3722   # We will build objects and dependencies in a subdirectory because
3723   # it helps to detect inapplicable dependency modes.  For instance
3724   # both Tru64's cc and ICC support -MD to output dependencies as a
3725   # side effect of compilation, but ICC will put the dependencies in
3726   # the current directory while Tru64 will put them in the object
3727   # directory.
3728   mkdir sub
3729
3730   am_cv_CC_dependencies_compiler_type=none
3731   if test "$am_compiler_list" = ""; then
3732      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3733   fi
3734   am__universal=false
3735   case " $depcc " in #(
3736      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3737      esac
3738
3739   for depmode in $am_compiler_list; do
3740     # Setup a source with many dependencies, because some compilers
3741     # like to wrap large dependency lists on column 80 (with \), and
3742     # we should not choose a depcomp mode which is confused by this.
3743     #
3744     # We need to recreate these files for each test, as the compiler may
3745     # overwrite some of them when testing with obscure command lines.
3746     # This happens at least with the AIX C compiler.
3747     : > sub/conftest.c
3748     for i in 1 2 3 4 5 6; do
3749       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3750       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3751       # Solaris 8's {/usr,}/bin/sh.
3752       touch sub/conftst$i.h
3753     done
3754     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3755
3756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3757     # mode.  It turns out that the SunPro C++ compiler does not properly
3758     # handle `-M -o', and we need to detect this.  Also, some Intel
3759     # versions had trouble with output in subdirs
3760     am__obj=sub/conftest.${OBJEXT-o}
3761     am__minus_obj="-o $am__obj"
3762     case $depmode in
3763     gcc)
3764       # This depmode causes a compiler race in universal mode.
3765       test "$am__universal" = false || continue
3766       ;;
3767     nosideeffect)
3768       # after this tag, mechanisms are not by side-effect, so they'll
3769       # only be used when explicitly requested
3770       if test "x$enable_dependency_tracking" = xyes; then
3771         continue
3772       else
3773         break
3774       fi
3775       ;;
3776     msvisualcpp | msvcmsys)
3777       # This compiler won't grok `-c -o', but also, the minuso test has
3778       # not run yet.  These depmodes are late enough in the game, and
3779       # so weak that their functioning should not be impacted.
3780       am__obj=conftest.${OBJEXT-o}
3781       am__minus_obj=
3782       ;;
3783     none) break ;;
3784     esac
3785     if depmode=$depmode \
3786        source=sub/conftest.c object=$am__obj \
3787        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3788        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3789          >/dev/null 2>conftest.err &&
3790        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3791        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3792        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3793        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3794       # icc doesn't choke on unknown options, it will just issue warnings
3795       # or remarks (even with -Werror).  So we grep stderr for any message
3796       # that says an option was ignored or not supported.
3797       # When given -MP, icc 7.0 and 7.1 complain thusly:
3798       #   icc: Command line warning: ignoring option '-M'; no argument required
3799       # The diagnosis changed in icc 8.0:
3800       #   icc: Command line remark: option '-MP' not supported
3801       if (grep 'ignoring option' conftest.err ||
3802           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3803         am_cv_CC_dependencies_compiler_type=$depmode
3804         break
3805       fi
3806     fi
3807   done
3808
3809   cd ..
3810   rm -rf conftest.dir
3811 else
3812   am_cv_CC_dependencies_compiler_type=none
3813 fi
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3817 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3819
3820  if
3821   test "x$enable_dependency_tracking" != xno \
3822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3823   am__fastdepCC_TRUE=
3824   am__fastdepCC_FALSE='#'
3825 else
3826   am__fastdepCC_TRUE='#'
3827   am__fastdepCC_FALSE=
3828 fi
3829
3830
3831
3832
3833
3834 case `pwd` in
3835   *\ * | *\     *)
3836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3837 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3838 esac
3839
3840
3841
3842 macro_version='2.4'
3843 macro_revision='1.3293'
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857 ltmain="$ac_aux_dir/ltmain.sh"
3858
3859 # Backslashify metacharacters that are still active within
3860 # double-quoted strings.
3861 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3862
3863 # Same as above, but do not quote variable references.
3864 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3865
3866 # Sed substitution to delay expansion of an escaped shell variable in a
3867 # double_quote_subst'ed string.
3868 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3869
3870 # Sed substitution to delay expansion of an escaped single quote.
3871 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3872
3873 # Sed substitution to avoid accidental globbing in evaled expressions
3874 no_glob_subst='s/\*/\\\*/g'
3875
3876 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3878 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3879
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3881 $as_echo_n "checking how to print strings... " >&6; }
3882 # Test print first, because it will be a builtin if present.
3883 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3884    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3885   ECHO='print -r --'
3886 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3887   ECHO='printf %s\n'
3888 else
3889   # Use this function as a fallback that always works.
3890   func_fallback_echo ()
3891   {
3892     eval 'cat <<_LTECHO_EOF
3893 $1
3894 _LTECHO_EOF'
3895   }
3896   ECHO='func_fallback_echo'
3897 fi
3898
3899 # func_echo_all arg...
3900 # Invoke $ECHO with all args, space-separated.
3901 func_echo_all ()
3902 {
3903     $ECHO ""
3904 }
3905
3906 case "$ECHO" in
3907   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3908 $as_echo "printf" >&6; } ;;
3909   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3910 $as_echo "print -r" >&6; } ;;
3911   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3912 $as_echo "cat" >&6; } ;;
3913 esac
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3929 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3930 if ${ac_cv_path_SED+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3934      for ac_i in 1 2 3 4 5 6 7; do
3935        ac_script="$ac_script$as_nl$ac_script"
3936      done
3937      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3938      { ac_script=; unset ac_script;}
3939      if test -z "$SED"; then
3940   ac_path_SED_found=false
3941   # Loop through the user's path and test for each of PROGNAME-LIST
3942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3944 do
3945   IFS=$as_save_IFS
3946   test -z "$as_dir" && as_dir=.
3947     for ac_prog in sed gsed; do
3948     for ac_exec_ext in '' $ac_executable_extensions; do
3949       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3950       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3951 # Check for GNU ac_path_SED and select it if it is found.
3952   # Check for GNU $ac_path_SED
3953 case `"$ac_path_SED" --version 2>&1` in
3954 *GNU*)
3955   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3956 *)
3957   ac_count=0
3958   $as_echo_n 0123456789 >"conftest.in"
3959   while :
3960   do
3961     cat "conftest.in" "conftest.in" >"conftest.tmp"
3962     mv "conftest.tmp" "conftest.in"
3963     cp "conftest.in" "conftest.nl"
3964     $as_echo '' >> "conftest.nl"
3965     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967     as_fn_arith $ac_count + 1 && ac_count=$as_val
3968     if test $ac_count -gt ${ac_path_SED_max-0}; then
3969       # Best one so far, save it but keep looking for a better one
3970       ac_cv_path_SED="$ac_path_SED"
3971       ac_path_SED_max=$ac_count
3972     fi
3973     # 10*(2^10) chars as input seems more than enough
3974     test $ac_count -gt 10 && break
3975   done
3976   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977 esac
3978
3979       $ac_path_SED_found && break 3
3980     done
3981   done
3982   done
3983 IFS=$as_save_IFS
3984   if test -z "$ac_cv_path_SED"; then
3985     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3986   fi
3987 else
3988   ac_cv_path_SED=$SED
3989 fi
3990
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3993 $as_echo "$ac_cv_path_SED" >&6; }
3994  SED="$ac_cv_path_SED"
3995   rm -f conftest.sed
3996
3997 test -z "$SED" && SED=sed
3998 Xsed="$SED -e 1s/^X//"
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4011 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4012 if ${ac_cv_path_GREP+:} false; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   if test -z "$GREP"; then
4016   ac_path_GREP_found=false
4017   # Loop through the user's path and test for each of PROGNAME-LIST
4018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023     for ac_prog in grep ggrep; do
4024     for ac_exec_ext in '' $ac_executable_extensions; do
4025       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4026       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4027 # Check for GNU ac_path_GREP and select it if it is found.
4028   # Check for GNU $ac_path_GREP
4029 case `"$ac_path_GREP" --version 2>&1` in
4030 *GNU*)
4031   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4032 *)
4033   ac_count=0
4034   $as_echo_n 0123456789 >"conftest.in"
4035   while :
4036   do
4037     cat "conftest.in" "conftest.in" >"conftest.tmp"
4038     mv "conftest.tmp" "conftest.in"
4039     cp "conftest.in" "conftest.nl"
4040     $as_echo 'GREP' >> "conftest.nl"
4041     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4042     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4043     as_fn_arith $ac_count + 1 && ac_count=$as_val
4044     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4045       # Best one so far, save it but keep looking for a better one
4046       ac_cv_path_GREP="$ac_path_GREP"
4047       ac_path_GREP_max=$ac_count
4048     fi
4049     # 10*(2^10) chars as input seems more than enough
4050     test $ac_count -gt 10 && break
4051   done
4052   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4053 esac
4054
4055       $ac_path_GREP_found && break 3
4056     done
4057   done
4058   done
4059 IFS=$as_save_IFS
4060   if test -z "$ac_cv_path_GREP"; then
4061     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4062   fi
4063 else
4064   ac_cv_path_GREP=$GREP
4065 fi
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4069 $as_echo "$ac_cv_path_GREP" >&6; }
4070  GREP="$ac_cv_path_GREP"
4071
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4074 $as_echo_n "checking for egrep... " >&6; }
4075 if ${ac_cv_path_EGREP+:} false; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4079    then ac_cv_path_EGREP="$GREP -E"
4080    else
4081      if test -z "$EGREP"; then
4082   ac_path_EGREP_found=false
4083   # Loop through the user's path and test for each of PROGNAME-LIST
4084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089     for ac_prog in egrep; do
4090     for ac_exec_ext in '' $ac_executable_extensions; do
4091       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4092       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4093 # Check for GNU ac_path_EGREP and select it if it is found.
4094   # Check for GNU $ac_path_EGREP
4095 case `"$ac_path_EGREP" --version 2>&1` in
4096 *GNU*)
4097   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4098 *)
4099   ac_count=0
4100   $as_echo_n 0123456789 >"conftest.in"
4101   while :
4102   do
4103     cat "conftest.in" "conftest.in" >"conftest.tmp"
4104     mv "conftest.tmp" "conftest.in"
4105     cp "conftest.in" "conftest.nl"
4106     $as_echo 'EGREP' >> "conftest.nl"
4107     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109     as_fn_arith $ac_count + 1 && ac_count=$as_val
4110     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4111       # Best one so far, save it but keep looking for a better one
4112       ac_cv_path_EGREP="$ac_path_EGREP"
4113       ac_path_EGREP_max=$ac_count
4114     fi
4115     # 10*(2^10) chars as input seems more than enough
4116     test $ac_count -gt 10 && break
4117   done
4118   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4120
4121       $ac_path_EGREP_found && break 3
4122     done
4123   done
4124   done
4125 IFS=$as_save_IFS
4126   if test -z "$ac_cv_path_EGREP"; then
4127     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4128   fi
4129 else
4130   ac_cv_path_EGREP=$EGREP
4131 fi
4132
4133    fi
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4136 $as_echo "$ac_cv_path_EGREP" >&6; }
4137  EGREP="$ac_cv_path_EGREP"
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4141 $as_echo_n "checking for fgrep... " >&6; }
4142 if ${ac_cv_path_FGREP+:} false; then :
4143   $as_echo_n "(cached) " >&6
4144 else
4145   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4146    then ac_cv_path_FGREP="$GREP -F"
4147    else
4148      if test -z "$FGREP"; then
4149   ac_path_FGREP_found=false
4150   # Loop through the user's path and test for each of PROGNAME-LIST
4151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156     for ac_prog in fgrep; do
4157     for ac_exec_ext in '' $ac_executable_extensions; do
4158       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4159       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4160 # Check for GNU ac_path_FGREP and select it if it is found.
4161   # Check for GNU $ac_path_FGREP
4162 case `"$ac_path_FGREP" --version 2>&1` in
4163 *GNU*)
4164   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4165 *)
4166   ac_count=0
4167   $as_echo_n 0123456789 >"conftest.in"
4168   while :
4169   do
4170     cat "conftest.in" "conftest.in" >"conftest.tmp"
4171     mv "conftest.tmp" "conftest.in"
4172     cp "conftest.in" "conftest.nl"
4173     $as_echo 'FGREP' >> "conftest.nl"
4174     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176     as_fn_arith $ac_count + 1 && ac_count=$as_val
4177     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4178       # Best one so far, save it but keep looking for a better one
4179       ac_cv_path_FGREP="$ac_path_FGREP"
4180       ac_path_FGREP_max=$ac_count
4181     fi
4182     # 10*(2^10) chars as input seems more than enough
4183     test $ac_count -gt 10 && break
4184   done
4185   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4187
4188       $ac_path_FGREP_found && break 3
4189     done
4190   done
4191   done
4192 IFS=$as_save_IFS
4193   if test -z "$ac_cv_path_FGREP"; then
4194     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195   fi
4196 else
4197   ac_cv_path_FGREP=$FGREP
4198 fi
4199
4200    fi
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4203 $as_echo "$ac_cv_path_FGREP" >&6; }
4204  FGREP="$ac_cv_path_FGREP"
4205
4206
4207 test -z "$GREP" && GREP=grep
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227 # Check whether --with-gnu-ld was given.
4228 if test "${with_gnu_ld+set}" = set; then :
4229   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4230 else
4231   with_gnu_ld=no
4232 fi
4233
4234 ac_prog=ld
4235 if test "$GCC" = yes; then
4236   # Check if gcc -print-prog-name=ld gives a path.
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4238 $as_echo_n "checking for ld used by $CC... " >&6; }
4239   case $host in
4240   *-*-mingw*)
4241     # gcc leaves a trailing carriage return which upsets mingw
4242     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4243   *)
4244     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4245   esac
4246   case $ac_prog in
4247     # Accept absolute paths.
4248     [\\/]* | ?:[\\/]*)
4249       re_direlt='/[^/][^/]*/\.\./'
4250       # Canonicalize the pathname of ld
4251       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4252       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4253         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4254       done
4255       test -z "$LD" && LD="$ac_prog"
4256       ;;
4257   "")
4258     # If it fails, then pretend we aren't using GCC.
4259     ac_prog=ld
4260     ;;
4261   *)
4262     # If it is relative, then search for the first ld in PATH.
4263     with_gnu_ld=unknown
4264     ;;
4265   esac
4266 elif test "$with_gnu_ld" = yes; then
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4268 $as_echo_n "checking for GNU ld... " >&6; }
4269 else
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4271 $as_echo_n "checking for non-GNU ld... " >&6; }
4272 fi
4273 if ${lt_cv_path_LD+:} false; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   if test -z "$LD"; then
4277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4278   for ac_dir in $PATH; do
4279     IFS="$lt_save_ifs"
4280     test -z "$ac_dir" && ac_dir=.
4281     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4282       lt_cv_path_LD="$ac_dir/$ac_prog"
4283       # Check to see if the program is GNU ld.  I'd rather use --version,
4284       # but apparently some variants of GNU ld only accept -v.
4285       # Break only if it was the GNU/non-GNU ld that we prefer.
4286       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4287       *GNU* | *'with BFD'*)
4288         test "$with_gnu_ld" != no && break
4289         ;;
4290       *)
4291         test "$with_gnu_ld" != yes && break
4292         ;;
4293       esac
4294     fi
4295   done
4296   IFS="$lt_save_ifs"
4297 else
4298   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4299 fi
4300 fi
4301
4302 LD="$lt_cv_path_LD"
4303 if test -n "$LD"; then
4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4305 $as_echo "$LD" >&6; }
4306 else
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4309 fi
4310 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4312 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4313 if ${lt_cv_prog_gnu_ld+:} false; then :
4314   $as_echo_n "(cached) " >&6
4315 else
4316   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4317 case `$LD -v 2>&1 </dev/null` in
4318 *GNU* | *'with BFD'*)
4319   lt_cv_prog_gnu_ld=yes
4320   ;;
4321 *)
4322   lt_cv_prog_gnu_ld=no
4323   ;;
4324 esac
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4327 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4328 with_gnu_ld=$lt_cv_prog_gnu_ld
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4339 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4340 if ${lt_cv_path_NM+:} false; then :
4341   $as_echo_n "(cached) " >&6
4342 else
4343   if test -n "$NM"; then
4344   # Let the user override the test.
4345   lt_cv_path_NM="$NM"
4346 else
4347   lt_nm_to_check="${ac_tool_prefix}nm"
4348   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4349     lt_nm_to_check="$lt_nm_to_check nm"
4350   fi
4351   for lt_tmp_nm in $lt_nm_to_check; do
4352     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4353     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4354       IFS="$lt_save_ifs"
4355       test -z "$ac_dir" && ac_dir=.
4356       tmp_nm="$ac_dir/$lt_tmp_nm"
4357       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4358         # Check to see if the nm accepts a BSD-compat flag.
4359         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4360         #   nm: unknown option "B" ignored
4361         # Tru64's nm complains that /dev/null is an invalid object file
4362         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4363         */dev/null* | *'Invalid file or object type'*)
4364           lt_cv_path_NM="$tmp_nm -B"
4365           break
4366           ;;
4367         *)
4368           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4369           */dev/null*)
4370             lt_cv_path_NM="$tmp_nm -p"
4371             break
4372             ;;
4373           *)
4374             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4375             continue # so that we can try to find one that supports BSD flags
4376             ;;
4377           esac
4378           ;;
4379         esac
4380       fi
4381     done
4382     IFS="$lt_save_ifs"
4383   done
4384   : ${lt_cv_path_NM=no}
4385 fi
4386 fi
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4388 $as_echo "$lt_cv_path_NM" >&6; }
4389 if test "$lt_cv_path_NM" != "no"; then
4390   NM="$lt_cv_path_NM"
4391 else
4392   # Didn't find any BSD compatible name lister, look for dumpbin.
4393   if test -n "$DUMPBIN"; then :
4394     # Let the user override the test.
4395   else
4396     if test -n "$ac_tool_prefix"; then
4397   for ac_prog in dumpbin "link -dump"
4398   do
4399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_prog_DUMPBIN+:} false; then :
4404   $as_echo_n "(cached) " >&6
4405 else
4406   if test -n "$DUMPBIN"; then
4407   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412   IFS=$as_save_IFS
4413   test -z "$as_dir" && as_dir=.
4414     for ac_exec_ext in '' $ac_executable_extensions; do
4415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4418     break 2
4419   fi
4420 done
4421   done
4422 IFS=$as_save_IFS
4423
4424 fi
4425 fi
4426 DUMPBIN=$ac_cv_prog_DUMPBIN
4427 if test -n "$DUMPBIN"; then
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4429 $as_echo "$DUMPBIN" >&6; }
4430 else
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 fi
4434
4435
4436     test -n "$DUMPBIN" && break
4437   done
4438 fi
4439 if test -z "$DUMPBIN"; then
4440   ac_ct_DUMPBIN=$DUMPBIN
4441   for ac_prog in dumpbin "link -dump"
4442 do
4443   # Extract the first word of "$ac_prog", so it can be a program name with args.
4444 set dummy $ac_prog; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4448   $as_echo_n "(cached) " >&6
4449 else
4450   if test -n "$ac_ct_DUMPBIN"; then
4451   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458     for ac_exec_ext in '' $ac_executable_extensions; do
4459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462     break 2
4463   fi
4464 done
4465   done
4466 IFS=$as_save_IFS
4467
4468 fi
4469 fi
4470 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4471 if test -n "$ac_ct_DUMPBIN"; then
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4473 $as_echo "$ac_ct_DUMPBIN" >&6; }
4474 else
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478
4479
4480   test -n "$ac_ct_DUMPBIN" && break
4481 done
4482
4483   if test "x$ac_ct_DUMPBIN" = x; then
4484     DUMPBIN=":"
4485   else
4486     case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490 ac_tool_warned=yes ;;
4491 esac
4492     DUMPBIN=$ac_ct_DUMPBIN
4493   fi
4494 fi
4495
4496     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4497     *COFF*)
4498       DUMPBIN="$DUMPBIN -symbols"
4499       ;;
4500     *)
4501       DUMPBIN=:
4502       ;;
4503     esac
4504   fi
4505
4506   if test "$DUMPBIN" != ":"; then
4507     NM="$DUMPBIN"
4508   fi
4509 fi
4510 test -z "$NM" && NM=nm
4511
4512
4513
4514
4515
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4518 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4519 if ${lt_cv_nm_interface+:} false; then :
4520   $as_echo_n "(cached) " >&6
4521 else
4522   lt_cv_nm_interface="BSD nm"
4523   echo "int some_variable = 0;" > conftest.$ac_ext
4524   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4525   (eval "$ac_compile" 2>conftest.err)
4526   cat conftest.err >&5
4527   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4528   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4529   cat conftest.err >&5
4530   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4531   cat conftest.out >&5
4532   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4533     lt_cv_nm_interface="MS dumpbin"
4534   fi
4535   rm -f conftest*
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4538 $as_echo "$lt_cv_nm_interface" >&6; }
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4541 $as_echo_n "checking whether ln -s works... " >&6; }
4542 LN_S=$as_ln_s
4543 if test "$LN_S" = "ln -s"; then
4544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545 $as_echo "yes" >&6; }
4546 else
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4548 $as_echo "no, using $LN_S" >&6; }
4549 fi
4550
4551 # find the maximum length of command line arguments
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4553 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4554 if ${lt_cv_sys_max_cmd_len+:} false; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557     i=0
4558   teststring="ABCD"
4559
4560   case $build_os in
4561   msdosdjgpp*)
4562     # On DJGPP, this test can blow up pretty badly due to problems in libc
4563     # (any single argument exceeding 2000 bytes causes a buffer overrun
4564     # during glob expansion).  Even if it were fixed, the result of this
4565     # check would be larger than it should be.
4566     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4567     ;;
4568
4569   gnu*)
4570     # Under GNU Hurd, this test is not required because there is
4571     # no limit to the length of command line arguments.
4572     # Libtool will interpret -1 as no limit whatsoever
4573     lt_cv_sys_max_cmd_len=-1;
4574     ;;
4575
4576   cygwin* | mingw* | cegcc*)
4577     # On Win9x/ME, this test blows up -- it succeeds, but takes
4578     # about 5 minutes as the teststring grows exponentially.
4579     # Worse, since 9x/ME are not pre-emptively multitasking,
4580     # you end up with a "frozen" computer, even though with patience
4581     # the test eventually succeeds (with a max line length of 256k).
4582     # Instead, let's just punt: use the minimum linelength reported by
4583     # all of the supported platforms: 8192 (on NT/2K/XP).
4584     lt_cv_sys_max_cmd_len=8192;
4585     ;;
4586
4587   mint*)
4588     # On MiNT this can take a long time and run out of memory.
4589     lt_cv_sys_max_cmd_len=8192;
4590     ;;
4591
4592   amigaos*)
4593     # On AmigaOS with pdksh, this test takes hours, literally.
4594     # So we just punt and use a minimum line length of 8192.
4595     lt_cv_sys_max_cmd_len=8192;
4596     ;;
4597
4598   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4599     # This has been around since 386BSD, at least.  Likely further.
4600     if test -x /sbin/sysctl; then
4601       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4602     elif test -x /usr/sbin/sysctl; then
4603       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4604     else
4605       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4606     fi
4607     # And add a safety zone
4608     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4609     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4610     ;;
4611
4612   interix*)
4613     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4614     lt_cv_sys_max_cmd_len=196608
4615     ;;
4616
4617   osf*)
4618     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4619     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4620     # nice to cause kernel panics so lets avoid the loop below.
4621     # First set a reasonable default.
4622     lt_cv_sys_max_cmd_len=16384
4623     #
4624     if test -x /sbin/sysconfig; then
4625       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4626         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4627       esac
4628     fi
4629     ;;
4630   sco3.2v5*)
4631     lt_cv_sys_max_cmd_len=102400
4632     ;;
4633   sysv5* | sco5v6* | sysv4.2uw2*)
4634     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4635     if test -n "$kargmax"; then
4636       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4637     else
4638       lt_cv_sys_max_cmd_len=32768
4639     fi
4640     ;;
4641   *)
4642     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4643     if test -n "$lt_cv_sys_max_cmd_len"; then
4644       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4645       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4646     else
4647       # Make teststring a little bigger before we do anything with it.
4648       # a 1K string should be a reasonable start.
4649       for i in 1 2 3 4 5 6 7 8 ; do
4650         teststring=$teststring$teststring
4651       done
4652       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4653       # If test is not a shell built-in, we'll probably end up computing a
4654       # maximum length that is only half of the actual maximum length, but
4655       # we can't tell.
4656       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4657                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4658               test $i != 17 # 1/2 MB should be enough
4659       do
4660         i=`expr $i + 1`
4661         teststring=$teststring$teststring
4662       done
4663       # Only check the string length outside the loop.
4664       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4665       teststring=
4666       # Add a significant safety factor because C++ compilers can tack on
4667       # massive amounts of additional arguments before passing them to the
4668       # linker.  It appears as though 1/2 is a usable value.
4669       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4670     fi
4671     ;;
4672   esac
4673
4674 fi
4675
4676 if test -n $lt_cv_sys_max_cmd_len ; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4681 $as_echo "none" >&6; }
4682 fi
4683 max_cmd_len=$lt_cv_sys_max_cmd_len
4684
4685
4686
4687
4688
4689
4690 : ${CP="cp -f"}
4691 : ${MV="mv -f"}
4692 : ${RM="rm -f"}
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4696 # Try some XSI features
4697 xsi_shell=no
4698 ( _lt_dummy="a/b/c"
4699   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4700       = c,a/b,b/c, \
4701     && eval 'test $(( 1 + 1 )) -eq 2 \
4702     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4703   && xsi_shell=yes
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4705 $as_echo "$xsi_shell" >&6; }
4706
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4710 lt_shell_append=no
4711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4712     >/dev/null 2>&1 \
4713   && lt_shell_append=yes
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4715 $as_echo "$lt_shell_append" >&6; }
4716
4717
4718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4719   lt_unset=unset
4720 else
4721   lt_unset=false
4722 fi
4723
4724
4725
4726
4727
4728 # test EBCDIC or ASCII
4729 case `echo X|tr X '\101'` in
4730  A) # ASCII based system
4731     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4732   lt_SP2NL='tr \040 \012'
4733   lt_NL2SP='tr \015\012 \040\040'
4734   ;;
4735  *) # EBCDIC based system
4736   lt_SP2NL='tr \100 \n'
4737   lt_NL2SP='tr \r\n \100\100'
4738   ;;
4739 esac
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4750 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4751 if ${lt_cv_to_host_file_cmd+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   case $host in
4755   *-*-mingw* )
4756     case $build in
4757       *-*-mingw* ) # actually msys
4758         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4759         ;;
4760       *-*-cygwin* )
4761         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4762         ;;
4763       * ) # otherwise, assume *nix
4764         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4765         ;;
4766     esac
4767     ;;
4768   *-*-cygwin* )
4769     case $build in
4770       *-*-mingw* ) # actually msys
4771         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4772         ;;
4773       *-*-cygwin* )
4774         lt_cv_to_host_file_cmd=func_convert_file_noop
4775         ;;
4776       * ) # otherwise, assume *nix
4777         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4778         ;;
4779     esac
4780     ;;
4781   * ) # unhandled hosts (and "normal" native builds)
4782     lt_cv_to_host_file_cmd=func_convert_file_noop
4783     ;;
4784 esac
4785
4786 fi
4787
4788 to_host_file_cmd=$lt_cv_to_host_file_cmd
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4790 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4791
4792
4793
4794
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4797 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4798 if ${lt_cv_to_tool_file_cmd+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   #assume ordinary cross tools, or native build.
4802 lt_cv_to_tool_file_cmd=func_convert_file_noop
4803 case $host in
4804   *-*-mingw* )
4805     case $build in
4806       *-*-mingw* ) # actually msys
4807         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4808         ;;
4809     esac
4810     ;;
4811 esac
4812
4813 fi
4814
4815 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4817 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4818
4819
4820
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4824 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4825 if ${lt_cv_ld_reload_flag+:} false; then :
4826   $as_echo_n "(cached) " >&6
4827 else
4828   lt_cv_ld_reload_flag='-r'
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4831 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4832 reload_flag=$lt_cv_ld_reload_flag
4833 case $reload_flag in
4834 "" | " "*) ;;
4835 *) reload_flag=" $reload_flag" ;;
4836 esac
4837 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4838 case $host_os in
4839   cygwin* | mingw* | pw32* | cegcc*)
4840     if test "$GCC" != yes; then
4841       reload_cmds=false
4842     fi
4843     ;;
4844   darwin*)
4845     if test "$GCC" = yes; then
4846       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4847     else
4848       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4849     fi
4850     ;;
4851 esac
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861 if test -n "$ac_tool_prefix"; then
4862   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4863 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_OBJDUMP+:} false; then :
4867   $as_echo_n "(cached) " >&6
4868 else
4869   if test -n "$OBJDUMP"; then
4870   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884   done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 OBJDUMP=$ac_cv_prog_OBJDUMP
4890 if test -n "$OBJDUMP"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4892 $as_echo "$OBJDUMP" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899 fi
4900 if test -z "$ac_cv_prog_OBJDUMP"; then
4901   ac_ct_OBJDUMP=$OBJDUMP
4902   # Extract the first word of "objdump", so it can be a program name with args.
4903 set dummy objdump; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   if test -n "$ac_ct_OBJDUMP"; then
4910   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917     for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924   done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4930 if test -n "$ac_ct_OBJDUMP"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4932 $as_echo "$ac_ct_OBJDUMP" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937
4938   if test "x$ac_ct_OBJDUMP" = x; then
4939     OBJDUMP="false"
4940   else
4941     case $cross_compiling:$ac_tool_warned in
4942 yes:)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned=yes ;;
4946 esac
4947     OBJDUMP=$ac_ct_OBJDUMP
4948   fi
4949 else
4950   OBJDUMP="$ac_cv_prog_OBJDUMP"
4951 fi
4952
4953 test -z "$OBJDUMP" && OBJDUMP=objdump
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4964 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4965 if ${lt_cv_deplibs_check_method+:} false; then :
4966   $as_echo_n "(cached) " >&6
4967 else
4968   lt_cv_file_magic_cmd='$MAGIC_CMD'
4969 lt_cv_file_magic_test_file=
4970 lt_cv_deplibs_check_method='unknown'
4971 # Need to set the preceding variable on all platforms that support
4972 # interlibrary dependencies.
4973 # 'none' -- dependencies not supported.
4974 # `unknown' -- same as none, but documents that we really don't know.
4975 # 'pass_all' -- all dependencies passed with no checks.
4976 # 'test_compile' -- check by making test program.
4977 # 'file_magic [[regex]]' -- check by looking for files in library path
4978 # which responds to the $file_magic_cmd with a given extended regex.
4979 # If you have `file' or equivalent on your system and you're not sure
4980 # whether `pass_all' will *always* work, you probably want this one.
4981
4982 case $host_os in
4983 aix[4-9]*)
4984   lt_cv_deplibs_check_method=pass_all
4985   ;;
4986
4987 beos*)
4988   lt_cv_deplibs_check_method=pass_all
4989   ;;
4990
4991 bsdi[45]*)
4992   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4993   lt_cv_file_magic_cmd='/usr/bin/file -L'
4994   lt_cv_file_magic_test_file=/shlib/libc.so
4995   ;;
4996
4997 cygwin*)
4998   # func_win32_libid is a shell function defined in ltmain.sh
4999   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000   lt_cv_file_magic_cmd='func_win32_libid'
5001   ;;
5002
5003 mingw* | pw32*)
5004   # Base MSYS/MinGW do not provide the 'file' command needed by
5005   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5006   # unless we find 'file', for example because we are cross-compiling.
5007   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5008   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5009     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5010     lt_cv_file_magic_cmd='func_win32_libid'
5011   else
5012     # Keep this pattern in sync with the one in func_win32_libid.
5013     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5014     lt_cv_file_magic_cmd='$OBJDUMP -f'
5015   fi
5016   ;;
5017
5018 cegcc*)
5019   # use the weaker test based on 'objdump'. See mingw*.
5020   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5021   lt_cv_file_magic_cmd='$OBJDUMP -f'
5022   ;;
5023
5024 darwin* | rhapsody*)
5025   lt_cv_deplibs_check_method=pass_all
5026   ;;
5027
5028 freebsd* | dragonfly*)
5029   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5030     case $host_cpu in
5031     i*86 )
5032       # Not sure whether the presence of OpenBSD here was a mistake.
5033       # Let's accept both of them until this is cleared up.
5034       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5035       lt_cv_file_magic_cmd=/usr/bin/file
5036       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5037       ;;
5038     esac
5039   else
5040     lt_cv_deplibs_check_method=pass_all
5041   fi
5042   ;;
5043
5044 gnu*)
5045   lt_cv_deplibs_check_method=pass_all
5046   ;;
5047
5048 haiku*)
5049   lt_cv_deplibs_check_method=pass_all
5050   ;;
5051
5052 hpux10.20* | hpux11*)
5053   lt_cv_file_magic_cmd=/usr/bin/file
5054   case $host_cpu in
5055   ia64*)
5056     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5057     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5058     ;;
5059   hppa*64*)
5060     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]'
5061     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5062     ;;
5063   *)
5064     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5065     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5066     ;;
5067   esac
5068   ;;
5069
5070 interix[3-9]*)
5071   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5072   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5073   ;;
5074
5075 irix5* | irix6* | nonstopux*)
5076   case $LD in
5077   *-32|*"-32 ") libmagic=32-bit;;
5078   *-n32|*"-n32 ") libmagic=N32;;
5079   *-64|*"-64 ") libmagic=64-bit;;
5080   *) libmagic=never-match;;
5081   esac
5082   lt_cv_deplibs_check_method=pass_all
5083   ;;
5084
5085 # This must be Linux ELF.
5086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5087   lt_cv_deplibs_check_method=pass_all
5088   ;;
5089
5090 netbsd*)
5091   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5093   else
5094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5095   fi
5096   ;;
5097
5098 newos6*)
5099   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5100   lt_cv_file_magic_cmd=/usr/bin/file
5101   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5102   ;;
5103
5104 *nto* | *qnx*)
5105   lt_cv_deplibs_check_method=pass_all
5106   ;;
5107
5108 openbsd*)
5109   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5110     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5111   else
5112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5113   fi
5114   ;;
5115
5116 osf3* | osf4* | osf5*)
5117   lt_cv_deplibs_check_method=pass_all
5118   ;;
5119
5120 rdos*)
5121   lt_cv_deplibs_check_method=pass_all
5122   ;;
5123
5124 solaris*)
5125   lt_cv_deplibs_check_method=pass_all
5126   ;;
5127
5128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5129   lt_cv_deplibs_check_method=pass_all
5130   ;;
5131
5132 sysv4 | sysv4.3*)
5133   case $host_vendor in
5134   motorola)
5135     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]'
5136     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5137     ;;
5138   ncr)
5139     lt_cv_deplibs_check_method=pass_all
5140     ;;
5141   sequent)
5142     lt_cv_file_magic_cmd='/bin/file'
5143     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5144     ;;
5145   sni)
5146     lt_cv_file_magic_cmd='/bin/file'
5147     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5148     lt_cv_file_magic_test_file=/lib/libc.so
5149     ;;
5150   siemens)
5151     lt_cv_deplibs_check_method=pass_all
5152     ;;
5153   pc)
5154     lt_cv_deplibs_check_method=pass_all
5155     ;;
5156   esac
5157   ;;
5158
5159 tpf*)
5160   lt_cv_deplibs_check_method=pass_all
5161   ;;
5162 esac
5163
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5166 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5167
5168 file_magic_glob=
5169 want_nocaseglob=no
5170 if test "$build" = "$host"; then
5171   case $host_os in
5172   mingw* | pw32*)
5173     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5174       want_nocaseglob=yes
5175     else
5176       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5177     fi
5178     ;;
5179   esac
5180 fi
5181
5182 file_magic_cmd=$lt_cv_file_magic_cmd
5183 deplibs_check_method=$lt_cv_deplibs_check_method
5184 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 if test -n "$ac_tool_prefix"; then
5208   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_DLLTOOL+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$DLLTOOL"; then
5216   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 DLLTOOL=$ac_cv_prog_DLLTOOL
5236 if test -n "$DLLTOOL"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5238 $as_echo "$DLLTOOL" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245 fi
5246 if test -z "$ac_cv_prog_DLLTOOL"; then
5247   ac_ct_DLLTOOL=$DLLTOOL
5248   # Extract the first word of "dlltool", so it can be a program name with args.
5249 set dummy dlltool; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -n "$ac_ct_DLLTOOL"; then
5256   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_exec_ext in '' $ac_executable_extensions; do
5264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267     break 2
5268   fi
5269 done
5270   done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5276 if test -n "$ac_ct_DLLTOOL"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5278 $as_echo "$ac_ct_DLLTOOL" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284   if test "x$ac_ct_DLLTOOL" = x; then
5285     DLLTOOL="false"
5286   else
5287     case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293     DLLTOOL=$ac_ct_DLLTOOL
5294   fi
5295 else
5296   DLLTOOL="$ac_cv_prog_DLLTOOL"
5297 fi
5298
5299 test -z "$DLLTOOL" && DLLTOOL=dlltool
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5311 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5312 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   lt_cv_sharedlib_from_linklib_cmd='unknown'
5316
5317 case $host_os in
5318 cygwin* | mingw* | pw32* | cegcc*)
5319   # two different shell functions defined in ltmain.sh
5320   # decide which to use based on capabilities of $DLLTOOL
5321   case `$DLLTOOL --help 2>&1` in
5322   *--identify-strict*)
5323     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5324     ;;
5325   *)
5326     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5327     ;;
5328   esac
5329   ;;
5330 *)
5331   # fallback: assume linklib IS sharedlib
5332   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5333   ;;
5334 esac
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5338 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5339 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5340 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5341
5342
5343
5344
5345
5346
5347
5348
5349 if test -n "$ac_tool_prefix"; then
5350   for ac_prog in ar
5351   do
5352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_AR+:} false; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   if test -n "$AR"; then
5360   ac_cv_prog_AR="$AR" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367     for ac_exec_ext in '' $ac_executable_extensions; do
5368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374   done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 AR=$ac_cv_prog_AR
5380 if test -n "$AR"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5382 $as_echo "$AR" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389     test -n "$AR" && break
5390   done
5391 fi
5392 if test -z "$AR"; then
5393   ac_ct_AR=$AR
5394   for ac_prog in ar
5395 do
5396   # Extract the first word of "$ac_prog", so it can be a program name with args.
5397 set dummy $ac_prog; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403   if test -n "$ac_ct_AR"; then
5404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413     ac_cv_prog_ac_ct_AR="$ac_prog"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5424 if test -n "$ac_ct_AR"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5426 $as_echo "$ac_ct_AR" >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433   test -n "$ac_ct_AR" && break
5434 done
5435
5436   if test "x$ac_ct_AR" = x; then
5437     AR="false"
5438   else
5439     case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445     AR=$ac_ct_AR
5446   fi
5447 fi
5448
5449 : ${AR=ar}
5450 : ${AR_FLAGS=cru}
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5463 $as_echo_n "checking for archiver @FILE support... " >&6; }
5464 if ${lt_cv_ar_at_file+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   lt_cv_ar_at_file=no
5468    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470
5471 int
5472 main ()
5473 {
5474
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480   echo conftest.$ac_objext > conftest.lst
5481       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5482       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5483   (eval $lt_ar_try) 2>&5
5484   ac_status=$?
5485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5486   test $ac_status = 0; }
5487       if test "$ac_status" -eq 0; then
5488         # Ensure the archiver fails upon bogus file names.
5489         rm -f conftest.$ac_objext libconftest.a
5490         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5491   (eval $lt_ar_try) 2>&5
5492   ac_status=$?
5493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494   test $ac_status = 0; }
5495         if test "$ac_status" -ne 0; then
5496           lt_cv_ar_at_file=@
5497         fi
5498       fi
5499       rm -f conftest.* libconftest.a
5500
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5506 $as_echo "$lt_cv_ar_at_file" >&6; }
5507
5508 if test "x$lt_cv_ar_at_file" = xno; then
5509   archiver_list_spec=
5510 else
5511   archiver_list_spec=$lt_cv_ar_at_file
5512 fi
5513
5514
5515
5516
5517
5518
5519
5520 if test -n "$ac_tool_prefix"; then
5521   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5522 set dummy ${ac_tool_prefix}strip; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_STRIP+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   if test -n "$STRIP"; then
5529   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534   IFS=$as_save_IFS
5535   test -z "$as_dir" && as_dir=.
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541   fi
5542 done
5543   done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 STRIP=$ac_cv_prog_STRIP
5549 if test -n "$STRIP"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5551 $as_echo "$STRIP" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 fi
5559 if test -z "$ac_cv_prog_STRIP"; then
5560   ac_ct_STRIP=$STRIP
5561   # Extract the first word of "strip", so it can be a program name with args.
5562 set dummy strip; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   if test -n "$ac_ct_STRIP"; then
5569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5570 else
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576     for ac_exec_ext in '' $ac_executable_extensions; do
5577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578     ac_cv_prog_ac_ct_STRIP="strip"
5579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583   done
5584 IFS=$as_save_IFS
5585
5586 fi
5587 fi
5588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5589 if test -n "$ac_ct_STRIP"; then
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5591 $as_echo "$ac_ct_STRIP" >&6; }
5592 else
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597   if test "x$ac_ct_STRIP" = x; then
5598     STRIP=":"
5599   else
5600     case $cross_compiling:$ac_tool_warned in
5601 yes:)
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604 ac_tool_warned=yes ;;
5605 esac
5606     STRIP=$ac_ct_STRIP
5607   fi
5608 else
5609   STRIP="$ac_cv_prog_STRIP"
5610 fi
5611
5612 test -z "$STRIP" && STRIP=:
5613
5614
5615
5616
5617
5618
5619 if test -n "$ac_tool_prefix"; then
5620   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_RANLIB+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if test -n "$RANLIB"; then
5628   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635     for ac_exec_ext in '' $ac_executable_extensions; do
5636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639     break 2
5640   fi
5641 done
5642   done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 RANLIB=$ac_cv_prog_RANLIB
5648 if test -n "$RANLIB"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5650 $as_echo "$RANLIB" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656
5657 fi
5658 if test -z "$ac_cv_prog_RANLIB"; then
5659   ac_ct_RANLIB=$RANLIB
5660   # Extract the first word of "ranlib", so it can be a program name with args.
5661 set dummy ranlib; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   if test -n "$ac_ct_RANLIB"; then
5668   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675     for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_prog_ac_ct_RANLIB="ranlib"
5678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682   done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5688 if test -n "$ac_ct_RANLIB"; then
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5690 $as_echo "$ac_ct_RANLIB" >&6; }
5691 else
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696   if test "x$ac_ct_RANLIB" = x; then
5697     RANLIB=":"
5698   else
5699     case $cross_compiling:$ac_tool_warned in
5700 yes:)
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703 ac_tool_warned=yes ;;
5704 esac
5705     RANLIB=$ac_ct_RANLIB
5706   fi
5707 else
5708   RANLIB="$ac_cv_prog_RANLIB"
5709 fi
5710
5711 test -z "$RANLIB" && RANLIB=:
5712
5713
5714
5715
5716
5717
5718 # Determine commands to create old-style static archives.
5719 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5720 old_postinstall_cmds='chmod 644 $oldlib'
5721 old_postuninstall_cmds=
5722
5723 if test -n "$RANLIB"; then
5724   case $host_os in
5725   openbsd*)
5726     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5727     ;;
5728   *)
5729     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5730     ;;
5731   esac
5732   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5733 fi
5734
5735 case $host_os in
5736   darwin*)
5737     lock_old_archive_extraction=yes ;;
5738   *)
5739     lock_old_archive_extraction=no ;;
5740 esac
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780 # If no C compiler was specified, use CC.
5781 LTCC=${LTCC-"$CC"}
5782
5783 # If no C compiler flags were specified, use CFLAGS.
5784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5785
5786 # Allow CC to be a program name with arguments.
5787 compiler=$CC
5788
5789
5790 # Check for command to grab the raw symbol name followed by C symbol from nm.
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5792 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5793 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796
5797 # These are sane defaults that work on at least a few old systems.
5798 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5799
5800 # Character class describing NM global symbol codes.
5801 symcode='[BCDEGRST]'
5802
5803 # Regexp to match symbols that can be accessed directly from C.
5804 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5805
5806 # Define system-specific variables.
5807 case $host_os in
5808 aix*)
5809   symcode='[BCDT]'
5810   ;;
5811 cygwin* | mingw* | pw32* | cegcc*)
5812   symcode='[ABCDGISTW]'
5813   ;;
5814 hpux*)
5815   if test "$host_cpu" = ia64; then
5816     symcode='[ABCDEGRST]'
5817   fi
5818   ;;
5819 irix* | nonstopux*)
5820   symcode='[BCDEGRST]'
5821   ;;
5822 osf*)
5823   symcode='[BCDEGQRST]'
5824   ;;
5825 solaris*)
5826   symcode='[BDRT]'
5827   ;;
5828 sco3.2v5*)
5829   symcode='[DT]'
5830   ;;
5831 sysv4.2uw2*)
5832   symcode='[DT]'
5833   ;;
5834 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5835   symcode='[ABDT]'
5836   ;;
5837 sysv4)
5838   symcode='[DFNSTU]'
5839   ;;
5840 esac
5841
5842 # If we're using GNU nm, then use its standard symbol codes.
5843 case `$NM -V 2>&1` in
5844 *GNU* | *'with BFD'*)
5845   symcode='[ABCDGIRSTW]' ;;
5846 esac
5847
5848 # Transform an extracted symbol line into a proper C declaration.
5849 # Some systems (esp. on ia64) link data and code symbols differently,
5850 # so use this general approach.
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5852
5853 # Transform an extracted symbol line into symbol name and symbol address
5854 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5855 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'"
5856
5857 # Handle CRLF in mingw tool chain
5858 opt_cr=
5859 case $build_os in
5860 mingw*)
5861   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5862   ;;
5863 esac
5864
5865 # Try without a prefix underscore, then with it.
5866 for ac_symprfx in "" "_"; do
5867
5868   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5869   symxfrm="\\1 $ac_symprfx\\2 \\2"
5870
5871   # Write the raw and C identifiers.
5872   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5873     # Fake it for dumpbin and say T for any non-static function
5874     # and D for any global variable.
5875     # Also find C++ and __fastcall symbols from MSVC++,
5876     # which start with @ or ?.
5877     lt_cv_sys_global_symbol_pipe="$AWK '"\
5878 "     {last_section=section; section=\$ 3};"\
5879 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5880 "     \$ 0!~/External *\|/{next};"\
5881 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5882 "     {if(hide[section]) next};"\
5883 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5884 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5885 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5886 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5887 "     ' prfx=^$ac_symprfx"
5888   else
5889     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5890   fi
5891   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5892
5893   # Check to see that the pipe works correctly.
5894   pipe_works=no
5895
5896   rm -f conftest*
5897   cat > conftest.$ac_ext <<_LT_EOF
5898 #ifdef __cplusplus
5899 extern "C" {
5900 #endif
5901 char nm_test_var;
5902 void nm_test_func(void);
5903 void nm_test_func(void){}
5904 #ifdef __cplusplus
5905 }
5906 #endif
5907 int main(){nm_test_var='a';nm_test_func();return(0);}
5908 _LT_EOF
5909
5910   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5911   (eval $ac_compile) 2>&5
5912   ac_status=$?
5913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5914   test $ac_status = 0; }; then
5915     # Now try to grab the symbols.
5916     nlist=conftest.nm
5917     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5918   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5919   ac_status=$?
5920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921   test $ac_status = 0; } && test -s "$nlist"; then
5922       # Try sorting and uniquifying the output.
5923       if sort "$nlist" | uniq > "$nlist"T; then
5924         mv -f "$nlist"T "$nlist"
5925       else
5926         rm -f "$nlist"T
5927       fi
5928
5929       # Make sure that we snagged all the symbols we need.
5930       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5931         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5932           cat <<_LT_EOF > conftest.$ac_ext
5933 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5934 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5935 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5936    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5937 # define LT_DLSYM_CONST
5938 #elif defined(__osf__)
5939 /* This system does not cope well with relocations in const data.  */
5940 # define LT_DLSYM_CONST
5941 #else
5942 # define LT_DLSYM_CONST const
5943 #endif
5944
5945 #ifdef __cplusplus
5946 extern "C" {
5947 #endif
5948
5949 _LT_EOF
5950           # Now generate the symbol file.
5951           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5952
5953           cat <<_LT_EOF >> conftest.$ac_ext
5954
5955 /* The mapping between symbol names and symbols.  */
5956 LT_DLSYM_CONST struct {
5957   const char *name;
5958   void       *address;
5959 }
5960 lt__PROGRAM__LTX_preloaded_symbols[] =
5961 {
5962   { "@PROGRAM@", (void *) 0 },
5963 _LT_EOF
5964           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5965           cat <<\_LT_EOF >> conftest.$ac_ext
5966   {0, (void *) 0}
5967 };
5968
5969 /* This works around a problem in FreeBSD linker */
5970 #ifdef FREEBSD_WORKAROUND
5971 static const void *lt_preloaded_setup() {
5972   return lt__PROGRAM__LTX_preloaded_symbols;
5973 }
5974 #endif
5975
5976 #ifdef __cplusplus
5977 }
5978 #endif
5979 _LT_EOF
5980           # Now try linking the two files.
5981           mv conftest.$ac_objext conftstm.$ac_objext
5982           lt_globsym_save_LIBS=$LIBS
5983           lt_globsym_save_CFLAGS=$CFLAGS
5984           LIBS="conftstm.$ac_objext"
5985           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5986           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5987   (eval $ac_link) 2>&5
5988   ac_status=$?
5989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5991             pipe_works=yes
5992           fi
5993           LIBS=$lt_globsym_save_LIBS
5994           CFLAGS=$lt_globsym_save_CFLAGS
5995         else
5996           echo "cannot find nm_test_func in $nlist" >&5
5997         fi
5998       else
5999         echo "cannot find nm_test_var in $nlist" >&5
6000       fi
6001     else
6002       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6003     fi
6004   else
6005     echo "$progname: failed program was:" >&5
6006     cat conftest.$ac_ext >&5
6007   fi
6008   rm -rf conftest* conftst*
6009
6010   # Do not use the global_symbol_pipe unless it works.
6011   if test "$pipe_works" = yes; then
6012     break
6013   else
6014     lt_cv_sys_global_symbol_pipe=
6015   fi
6016 done
6017
6018 fi
6019
6020 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6021   lt_cv_sys_global_symbol_to_cdecl=
6022 fi
6023 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6025 $as_echo "failed" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6028 $as_echo "ok" >&6; }
6029 fi
6030
6031 # Response file support.
6032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6033   nm_file_list_spec='@'
6034 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6035   nm_file_list_spec='@'
6036 fi
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6065 $as_echo_n "checking for sysroot... " >&6; }
6066
6067 # Check whether --with-sysroot was given.
6068 if test "${with_sysroot+set}" = set; then :
6069   withval=$with_sysroot;
6070 else
6071   with_sysroot=no
6072 fi
6073
6074
6075 lt_sysroot=
6076 case ${with_sysroot} in #(
6077  yes)
6078    if test "$GCC" = yes; then
6079      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6080    fi
6081    ;; #(
6082  /*)
6083    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6084    ;; #(
6085  no|'')
6086    ;; #(
6087  *)
6088    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6089 $as_echo "${with_sysroot}" >&6; }
6090    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6091    ;;
6092 esac
6093
6094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6095 $as_echo "${lt_sysroot:-no}" >&6; }
6096
6097
6098
6099
6100
6101 # Check whether --enable-libtool-lock was given.
6102 if test "${enable_libtool_lock+set}" = set; then :
6103   enableval=$enable_libtool_lock;
6104 fi
6105
6106 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6107
6108 # Some flags need to be propagated to the compiler or linker for good
6109 # libtool support.
6110 case $host in
6111 ia64-*-hpux*)
6112   # Find out which ABI we are using.
6113   echo 'int i;' > conftest.$ac_ext
6114   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6115   (eval $ac_compile) 2>&5
6116   ac_status=$?
6117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118   test $ac_status = 0; }; then
6119     case `/usr/bin/file conftest.$ac_objext` in
6120       *ELF-32*)
6121         HPUX_IA64_MODE="32"
6122         ;;
6123       *ELF-64*)
6124         HPUX_IA64_MODE="64"
6125         ;;
6126     esac
6127   fi
6128   rm -rf conftest*
6129   ;;
6130 *-*-irix6*)
6131   # Find out which ABI we are using.
6132   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6133   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6134   (eval $ac_compile) 2>&5
6135   ac_status=$?
6136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137   test $ac_status = 0; }; then
6138     if test "$lt_cv_prog_gnu_ld" = yes; then
6139       case `/usr/bin/file conftest.$ac_objext` in
6140         *32-bit*)
6141           LD="${LD-ld} -melf32bsmip"
6142           ;;
6143         *N32*)
6144           LD="${LD-ld} -melf32bmipn32"
6145           ;;
6146         *64-bit*)
6147           LD="${LD-ld} -melf64bmip"
6148         ;;
6149       esac
6150     else
6151       case `/usr/bin/file conftest.$ac_objext` in
6152         *32-bit*)
6153           LD="${LD-ld} -32"
6154           ;;
6155         *N32*)
6156           LD="${LD-ld} -n32"
6157           ;;
6158         *64-bit*)
6159           LD="${LD-ld} -64"
6160           ;;
6161       esac
6162     fi
6163   fi
6164   rm -rf conftest*
6165   ;;
6166
6167 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6168 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6169   # Find out which ABI we are using.
6170   echo 'int i;' > conftest.$ac_ext
6171   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6172   (eval $ac_compile) 2>&5
6173   ac_status=$?
6174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175   test $ac_status = 0; }; then
6176     case `/usr/bin/file conftest.o` in
6177       *32-bit*)
6178         case $host in
6179           x86_64-*kfreebsd*-gnu)
6180             LD="${LD-ld} -m elf_i386_fbsd"
6181             ;;
6182           x86_64-*linux*)
6183             LD="${LD-ld} -m elf_i386"
6184             ;;
6185           ppc64-*linux*|powerpc64-*linux*)
6186             LD="${LD-ld} -m elf32ppclinux"
6187             ;;
6188           s390x-*linux*)
6189             LD="${LD-ld} -m elf_s390"
6190             ;;
6191           sparc64-*linux*)
6192             LD="${LD-ld} -m elf32_sparc"
6193             ;;
6194         esac
6195         ;;
6196       *64-bit*)
6197         case $host in
6198           x86_64-*kfreebsd*-gnu)
6199             LD="${LD-ld} -m elf_x86_64_fbsd"
6200             ;;
6201           x86_64-*linux*)
6202             LD="${LD-ld} -m elf_x86_64"
6203             ;;
6204           ppc*-*linux*|powerpc*-*linux*)
6205             LD="${LD-ld} -m elf64ppc"
6206             ;;
6207           s390*-*linux*|s390*-*tpf*)
6208             LD="${LD-ld} -m elf64_s390"
6209             ;;
6210           sparc*-*linux*)
6211             LD="${LD-ld} -m elf64_sparc"
6212             ;;
6213         esac
6214         ;;
6215     esac
6216   fi
6217   rm -rf conftest*
6218   ;;
6219
6220 *-*-sco3.2v5*)
6221   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6222   SAVE_CFLAGS="$CFLAGS"
6223   CFLAGS="$CFLAGS -belf"
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6225 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6226 if ${lt_cv_cc_needs_belf+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   ac_ext=c
6230 ac_cpp='$CPP $CPPFLAGS'
6231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h.  */
6237
6238 int
6239 main ()
6240 {
6241
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_link "$LINENO"; then :
6247   lt_cv_cc_needs_belf=yes
6248 else
6249   lt_cv_cc_needs_belf=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext \
6252     conftest$ac_exeext conftest.$ac_ext
6253      ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6261 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6262   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6263     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6264     CFLAGS="$SAVE_CFLAGS"
6265   fi
6266   ;;
6267 sparc*-*solaris*)
6268   # Find out which ABI we are using.
6269   echo 'int i;' > conftest.$ac_ext
6270   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6271   (eval $ac_compile) 2>&5
6272   ac_status=$?
6273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6274   test $ac_status = 0; }; then
6275     case `/usr/bin/file conftest.o` in
6276     *64-bit*)
6277       case $lt_cv_prog_gnu_ld in
6278       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6279       *)
6280         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6281           LD="${LD-ld} -64"
6282         fi
6283         ;;
6284       esac
6285       ;;
6286     esac
6287   fi
6288   rm -rf conftest*
6289   ;;
6290 esac
6291
6292 need_locks="$enable_libtool_lock"
6293
6294 if test -n "$ac_tool_prefix"; then
6295   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}mt; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$MANIFEST_TOOL"; then
6303   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310     for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317   done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6323 if test -n "$MANIFEST_TOOL"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6325 $as_echo "$MANIFEST_TOOL" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331
6332 fi
6333 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6334   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6335   # Extract the first word of "mt", so it can be a program name with args.
6336 set dummy mt; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$ac_ct_MANIFEST_TOOL"; then
6343   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6363 if test -n "$ac_ct_MANIFEST_TOOL"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6365 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6372     MANIFEST_TOOL=":"
6373   else
6374     case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6381   fi
6382 else
6383   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6384 fi
6385
6386 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6388 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6389 if ${lt_cv_path_mainfest_tool+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   lt_cv_path_mainfest_tool=no
6393   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6394   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6395   cat conftest.err >&5
6396   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6397     lt_cv_path_mainfest_tool=yes
6398   fi
6399   rm -f conftest*
6400 fi
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6402 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6403 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6404   MANIFEST_TOOL=:
6405 fi
6406
6407
6408
6409
6410
6411
6412   case $host_os in
6413     rhapsody* | darwin*)
6414     if test -n "$ac_tool_prefix"; then
6415   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   if test -n "$DSYMUTIL"; then
6423   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
6429   test -z "$as_dir" && as_dir=.
6430     for ac_exec_ext in '' $ac_executable_extensions; do
6431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434     break 2
6435   fi
6436 done
6437   done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6443 if test -n "$DSYMUTIL"; then
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6445 $as_echo "$DSYMUTIL" >&6; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_DSYMUTIL"; then
6454   ac_ct_DSYMUTIL=$DSYMUTIL
6455   # Extract the first word of "dsymutil", so it can be a program name with args.
6456 set dummy dsymutil; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6460   $as_echo_n "(cached) " >&6
6461 else
6462   if test -n "$ac_ct_DSYMUTIL"; then
6463   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470     for ac_exec_ext in '' $ac_executable_extensions; do
6471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477   done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6483 if test -n "$ac_ct_DSYMUTIL"; then
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6485 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6486 else
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491   if test "x$ac_ct_DSYMUTIL" = x; then
6492     DSYMUTIL=":"
6493   else
6494     case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500     DSYMUTIL=$ac_ct_DSYMUTIL
6501   fi
6502 else
6503   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6504 fi
6505
6506     if test -n "$ac_tool_prefix"; then
6507   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_NMEDIT+:} false; then :
6512   $as_echo_n "(cached) " >&6
6513 else
6514   if test -n "$NMEDIT"; then
6515   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522     for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529   done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 NMEDIT=$ac_cv_prog_NMEDIT
6535 if test -n "$NMEDIT"; then
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6537 $as_echo "$NMEDIT" >&6; }
6538 else
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_NMEDIT"; then
6546   ac_ct_NMEDIT=$NMEDIT
6547   # Extract the first word of "nmedit", so it can be a program name with args.
6548 set dummy nmedit; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554   if test -n "$ac_ct_NMEDIT"; then
6555   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562     for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569   done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6575 if test -n "$ac_ct_NMEDIT"; then
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6577 $as_echo "$ac_ct_NMEDIT" >&6; }
6578 else
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583   if test "x$ac_ct_NMEDIT" = x; then
6584     NMEDIT=":"
6585   else
6586     case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6591 esac
6592     NMEDIT=$ac_ct_NMEDIT
6593   fi
6594 else
6595   NMEDIT="$ac_cv_prog_NMEDIT"
6596 fi
6597
6598     if test -n "$ac_tool_prefix"; then
6599   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_LIPO+:} false; then :
6604   $as_echo_n "(cached) " >&6
6605 else
6606   if test -n "$LIPO"; then
6607   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612   IFS=$as_save_IFS
6613   test -z "$as_dir" && as_dir=.
6614     for ac_exec_ext in '' $ac_executable_extensions; do
6615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618     break 2
6619   fi
6620 done
6621   done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 LIPO=$ac_cv_prog_LIPO
6627 if test -n "$LIPO"; then
6628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6629 $as_echo "$LIPO" >&6; }
6630 else
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636 fi
6637 if test -z "$ac_cv_prog_LIPO"; then
6638   ac_ct_LIPO=$LIPO
6639   # Extract the first word of "lipo", so it can be a program name with args.
6640 set dummy lipo; ac_word=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6644   $as_echo_n "(cached) " >&6
6645 else
6646   if test -n "$ac_ct_LIPO"; then
6647   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654     for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_ac_ct_LIPO="lipo"
6657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661   done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6667 if test -n "$ac_ct_LIPO"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6669 $as_echo "$ac_ct_LIPO" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675   if test "x$ac_ct_LIPO" = x; then
6676     LIPO=":"
6677   else
6678     case $cross_compiling:$ac_tool_warned in
6679 yes:)
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684     LIPO=$ac_ct_LIPO
6685   fi
6686 else
6687   LIPO="$ac_cv_prog_LIPO"
6688 fi
6689
6690     if test -n "$ac_tool_prefix"; then
6691   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}otool; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_OTOOL+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   if test -n "$OTOOL"; then
6699   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706     for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713   done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 OTOOL=$ac_cv_prog_OTOOL
6719 if test -n "$OTOOL"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6721 $as_echo "$OTOOL" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_OTOOL"; then
6730   ac_ct_OTOOL=$OTOOL
6731   # Extract the first word of "otool", so it can be a program name with args.
6732 set dummy otool; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$ac_ct_OTOOL"; then
6739   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746     for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_prog_ac_ct_OTOOL="otool"
6749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753   done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6759 if test -n "$ac_ct_OTOOL"; then
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6761 $as_echo "$ac_ct_OTOOL" >&6; }
6762 else
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767   if test "x$ac_ct_OTOOL" = x; then
6768     OTOOL=":"
6769   else
6770     case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776     OTOOL=$ac_ct_OTOOL
6777   fi
6778 else
6779   OTOOL="$ac_cv_prog_OTOOL"
6780 fi
6781
6782     if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if ${ac_cv_prog_OTOOL64+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   if test -n "$OTOOL64"; then
6791   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798     for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805   done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 OTOOL64=$ac_cv_prog_OTOOL64
6811 if test -n "$OTOOL64"; then
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6813 $as_echo "$OTOOL64" >&6; }
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_OTOOL64"; then
6822   ac_ct_OTOOL64=$OTOOL64
6823   # Extract the first word of "otool64", so it can be a program name with args.
6824 set dummy otool64; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$ac_ct_OTOOL64"; then
6831   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_ac_ct_OTOOL64="otool64"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6851 if test -n "$ac_ct_OTOOL64"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6853 $as_echo "$ac_ct_OTOOL64" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_OTOOL64" = x; then
6860     OTOOL64=":"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     OTOOL64=$ac_ct_OTOOL64
6869   fi
6870 else
6871   OTOOL64="$ac_cv_prog_OTOOL64"
6872 fi
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6901 $as_echo_n "checking for -single_module linker flag... " >&6; }
6902 if ${lt_cv_apple_cc_single_mod+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   lt_cv_apple_cc_single_mod=no
6906       if test -z "${LT_MULTI_MODULE}"; then
6907         # By default we will add the -single_module flag. You can override
6908         # by either setting the environment variable LT_MULTI_MODULE
6909         # non-empty at configure time, or by adding -multi_module to the
6910         # link flags.
6911         rm -rf libconftest.dylib*
6912         echo "int foo(void){return 1;}" > conftest.c
6913         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6914 -dynamiclib -Wl,-single_module conftest.c" >&5
6915         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6916           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6917         _lt_result=$?
6918         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6919           lt_cv_apple_cc_single_mod=yes
6920         else
6921           cat conftest.err >&5
6922         fi
6923         rm -rf libconftest.dylib*
6924         rm -f conftest.*
6925       fi
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6928 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6930 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6931 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934   lt_cv_ld_exported_symbols_list=no
6935       save_LDFLAGS=$LDFLAGS
6936       echo "_main" > conftest.sym
6937       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6938       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h.  */
6940
6941 int
6942 main ()
6943 {
6944
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950   lt_cv_ld_exported_symbols_list=yes
6951 else
6952   lt_cv_ld_exported_symbols_list=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext \
6955     conftest$ac_exeext conftest.$ac_ext
6956         LDFLAGS="$save_LDFLAGS"
6957
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6960 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6962 $as_echo_n "checking for -force_load linker flag... " >&6; }
6963 if ${lt_cv_ld_force_load+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   lt_cv_ld_force_load=no
6967       cat > conftest.c << _LT_EOF
6968 int forced_loaded() { return 2;}
6969 _LT_EOF
6970       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6971       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6972       echo "$AR cru libconftest.a conftest.o" >&5
6973       $AR cru libconftest.a conftest.o 2>&5
6974       echo "$RANLIB libconftest.a" >&5
6975       $RANLIB libconftest.a 2>&5
6976       cat > conftest.c << _LT_EOF
6977 int main() { return 0;}
6978 _LT_EOF
6979       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6980       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6981       _lt_result=$?
6982       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6983         lt_cv_ld_force_load=yes
6984       else
6985         cat conftest.err >&5
6986       fi
6987         rm -f conftest.err libconftest.a conftest conftest.c
6988         rm -rf conftest.dSYM
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6992 $as_echo "$lt_cv_ld_force_load" >&6; }
6993     case $host_os in
6994     rhapsody* | darwin1.[012])
6995       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6996     darwin1.*)
6997       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6998     darwin*) # darwin 5.x on
6999       # if running on 10.5 or later, the deployment target defaults
7000       # to the OS version, if on x86, and 10.4, the deployment
7001       # target defaults to 10.4. Don't you love it?
7002       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7003         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7004           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7005         10.[012]*)
7006           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7007         10.*)
7008           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7009       esac
7010     ;;
7011   esac
7012     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7013       _lt_dar_single_mod='$single_module'
7014     fi
7015     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7016       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7017     else
7018       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7019     fi
7020     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7021       _lt_dsymutil='~$DSYMUTIL $lib || :'
7022     else
7023       _lt_dsymutil=
7024     fi
7025     ;;
7026   esac
7027
7028 ac_ext=c
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7035 # On Suns, sometimes $CPP names a directory.
7036 if test -n "$CPP" && test -d "$CPP"; then
7037   CPP=
7038 fi
7039 if test -z "$CPP"; then
7040   if ${ac_cv_prog_CPP+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043       # Double quotes because CPP needs to be expanded
7044     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7045     do
7046       ac_preproc_ok=false
7047 for ac_c_preproc_warn_flag in '' yes
7048 do
7049   # Use a header file that comes with gcc, so configuring glibc
7050   # with a fresh cross-compiler works.
7051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052   # <limits.h> exists even on freestanding compilers.
7053   # On the NeXT, cc -E runs the code through the compiler's parser,
7054   # not just through cpp. "Syntax error" is here to catch this case.
7055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h.  */
7057 #ifdef __STDC__
7058 # include <limits.h>
7059 #else
7060 # include <assert.h>
7061 #endif
7062                      Syntax error
7063 _ACEOF
7064 if ac_fn_c_try_cpp "$LINENO"; then :
7065
7066 else
7067   # Broken: fails on valid input.
7068 continue
7069 fi
7070 rm -f conftest.err conftest.i conftest.$ac_ext
7071
7072   # OK, works on sane cases.  Now check whether nonexistent headers
7073   # can be detected and how.
7074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h.  */
7076 #include <ac_nonexistent.h>
7077 _ACEOF
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7079   # Broken: success on invalid input.
7080 continue
7081 else
7082   # Passes both tests.
7083 ac_preproc_ok=:
7084 break
7085 fi
7086 rm -f conftest.err conftest.i conftest.$ac_ext
7087
7088 done
7089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7090 rm -f conftest.i conftest.err conftest.$ac_ext
7091 if $ac_preproc_ok; then :
7092   break
7093 fi
7094
7095     done
7096     ac_cv_prog_CPP=$CPP
7097
7098 fi
7099   CPP=$ac_cv_prog_CPP
7100 else
7101   ac_cv_prog_CPP=$CPP
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7104 $as_echo "$CPP" >&6; }
7105 ac_preproc_ok=false
7106 for ac_c_preproc_warn_flag in '' yes
7107 do
7108   # Use a header file that comes with gcc, so configuring glibc
7109   # with a fresh cross-compiler works.
7110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7111   # <limits.h> exists even on freestanding compilers.
7112   # On the NeXT, cc -E runs the code through the compiler's parser,
7113   # not just through cpp. "Syntax error" is here to catch this case.
7114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h.  */
7116 #ifdef __STDC__
7117 # include <limits.h>
7118 #else
7119 # include <assert.h>
7120 #endif
7121                      Syntax error
7122 _ACEOF
7123 if ac_fn_c_try_cpp "$LINENO"; then :
7124
7125 else
7126   # Broken: fails on valid input.
7127 continue
7128 fi
7129 rm -f conftest.err conftest.i conftest.$ac_ext
7130
7131   # OK, works on sane cases.  Now check whether nonexistent headers
7132   # can be detected and how.
7133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h.  */
7135 #include <ac_nonexistent.h>
7136 _ACEOF
7137 if ac_fn_c_try_cpp "$LINENO"; then :
7138   # Broken: success on invalid input.
7139 continue
7140 else
7141   # Passes both tests.
7142 ac_preproc_ok=:
7143 break
7144 fi
7145 rm -f conftest.err conftest.i conftest.$ac_ext
7146
7147 done
7148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7149 rm -f conftest.i conftest.err conftest.$ac_ext
7150 if $ac_preproc_ok; then :
7151
7152 else
7153   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7155 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7156 See \`config.log' for more details" "$LINENO" 5; }
7157 fi
7158
7159 ac_ext=c
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7167 $as_echo_n "checking for ANSI C header files... " >&6; }
7168 if ${ac_cv_header_stdc+:} false; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h.  */
7173 #include <stdlib.h>
7174 #include <stdarg.h>
7175 #include <string.h>
7176 #include <float.h>
7177
7178 int
7179 main ()
7180 {
7181
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 if ac_fn_c_try_compile "$LINENO"; then :
7187   ac_cv_header_stdc=yes
7188 else
7189   ac_cv_header_stdc=no
7190 fi
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192
7193 if test $ac_cv_header_stdc = yes; then
7194   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h.  */
7197 #include <string.h>
7198
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201   $EGREP "memchr" >/dev/null 2>&1; then :
7202
7203 else
7204   ac_cv_header_stdc=no
7205 fi
7206 rm -f conftest*
7207
7208 fi
7209
7210 if test $ac_cv_header_stdc = yes; then
7211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h.  */
7214 #include <stdlib.h>
7215
7216 _ACEOF
7217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7218   $EGREP "free" >/dev/null 2>&1; then :
7219
7220 else
7221   ac_cv_header_stdc=no
7222 fi
7223 rm -f conftest*
7224
7225 fi
7226
7227 if test $ac_cv_header_stdc = yes; then
7228   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7229   if test "$cross_compiling" = yes; then :
7230   :
7231 else
7232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h.  */
7234 #include <ctype.h>
7235 #include <stdlib.h>
7236 #if ((' ' & 0x0FF) == 0x020)
7237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7239 #else
7240 # define ISLOWER(c) \
7241                    (('a' <= (c) && (c) <= 'i') \
7242                      || ('j' <= (c) && (c) <= 'r') \
7243                      || ('s' <= (c) && (c) <= 'z'))
7244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7245 #endif
7246
7247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7248 int
7249 main ()
7250 {
7251   int i;
7252   for (i = 0; i < 256; i++)
7253     if (XOR (islower (i), ISLOWER (i))
7254         || toupper (i) != TOUPPER (i))
7255       return 2;
7256   return 0;
7257 }
7258 _ACEOF
7259 if ac_fn_c_try_run "$LINENO"; then :
7260
7261 else
7262   ac_cv_header_stdc=no
7263 fi
7264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265   conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 fi
7267
7268 fi
7269 fi
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7271 $as_echo "$ac_cv_header_stdc" >&6; }
7272 if test $ac_cv_header_stdc = yes; then
7273
7274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7275
7276 fi
7277
7278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7280                   inttypes.h stdint.h unistd.h
7281 do :
7282   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7284 "
7285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7286   cat >>confdefs.h <<_ACEOF
7287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7288 _ACEOF
7289
7290 fi
7291
7292 done
7293
7294
7295 for ac_header in dlfcn.h
7296 do :
7297   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7298 "
7299 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7300   cat >>confdefs.h <<_ACEOF
7301 #define HAVE_DLFCN_H 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309
7310
7311
7312 # Set options
7313
7314
7315
7316         enable_dlopen=no
7317
7318
7319   enable_win32_dll=no
7320
7321
7322             # Check whether --enable-shared was given.
7323 if test "${enable_shared+set}" = set; then :
7324   enableval=$enable_shared; p=${PACKAGE-default}
7325     case $enableval in
7326     yes) enable_shared=yes ;;
7327     no) enable_shared=no ;;
7328     *)
7329       enable_shared=no
7330       # Look at the argument we got.  We use all the common list separators.
7331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7332       for pkg in $enableval; do
7333         IFS="$lt_save_ifs"
7334         if test "X$pkg" = "X$p"; then
7335           enable_shared=yes
7336         fi
7337       done
7338       IFS="$lt_save_ifs"
7339       ;;
7340     esac
7341 else
7342   enable_shared=yes
7343 fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353   # Check whether --enable-static was given.
7354 if test "${enable_static+set}" = set; then :
7355   enableval=$enable_static; p=${PACKAGE-default}
7356     case $enableval in
7357     yes) enable_static=yes ;;
7358     no) enable_static=no ;;
7359     *)
7360      enable_static=no
7361       # Look at the argument we got.  We use all the common list separators.
7362       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7363       for pkg in $enableval; do
7364         IFS="$lt_save_ifs"
7365         if test "X$pkg" = "X$p"; then
7366           enable_static=yes
7367         fi
7368       done
7369       IFS="$lt_save_ifs"
7370       ;;
7371     esac
7372 else
7373   enable_static=yes
7374 fi
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385 # Check whether --with-pic was given.
7386 if test "${with_pic+set}" = set; then :
7387   withval=$with_pic; pic_mode="$withval"
7388 else
7389   pic_mode=default
7390 fi
7391
7392
7393 test -z "$pic_mode" && pic_mode=default
7394
7395
7396
7397
7398
7399
7400
7401   # Check whether --enable-fast-install was given.
7402 if test "${enable_fast_install+set}" = set; then :
7403   enableval=$enable_fast_install; p=${PACKAGE-default}
7404     case $enableval in
7405     yes) enable_fast_install=yes ;;
7406     no) enable_fast_install=no ;;
7407     *)
7408       enable_fast_install=no
7409       # Look at the argument we got.  We use all the common list separators.
7410       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7411       for pkg in $enableval; do
7412         IFS="$lt_save_ifs"
7413         if test "X$pkg" = "X$p"; then
7414           enable_fast_install=yes
7415         fi
7416       done
7417       IFS="$lt_save_ifs"
7418       ;;
7419     esac
7420 else
7421   enable_fast_install=yes
7422 fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 # This can be used to rebuild libtool when needed
7435 LIBTOOL_DEPS="$ltmain"
7436
7437 # Always use our own libtool.
7438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465 test -z "$LN_S" && LN_S="ln -s"
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 if test -n "${ZSH_VERSION+set}" ; then
7481    setopt NO_GLOB_SUBST
7482 fi
7483
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7485 $as_echo_n "checking for objdir... " >&6; }
7486 if ${lt_cv_objdir+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   rm -f .libs 2>/dev/null
7490 mkdir .libs 2>/dev/null
7491 if test -d .libs; then
7492   lt_cv_objdir=.libs
7493 else
7494   # MS-DOS does not allow filenames that begin with a dot.
7495   lt_cv_objdir=_libs
7496 fi
7497 rmdir .libs 2>/dev/null
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7500 $as_echo "$lt_cv_objdir" >&6; }
7501 objdir=$lt_cv_objdir
7502
7503
7504
7505
7506
7507 cat >>confdefs.h <<_ACEOF
7508 #define LT_OBJDIR "$lt_cv_objdir/"
7509 _ACEOF
7510
7511
7512
7513
7514 case $host_os in
7515 aix3*)
7516   # AIX sometimes has problems with the GCC collect2 program.  For some
7517   # reason, if we set the COLLECT_NAMES environment variable, the problems
7518   # vanish in a puff of smoke.
7519   if test "X${COLLECT_NAMES+set}" != Xset; then
7520     COLLECT_NAMES=
7521     export COLLECT_NAMES
7522   fi
7523   ;;
7524 esac
7525
7526 # Global variables:
7527 ofile=libtool
7528 can_build_shared=yes
7529
7530 # All known linkers require a `.a' archive for static linking (except MSVC,
7531 # which needs '.lib').
7532 libext=a
7533
7534 with_gnu_ld="$lt_cv_prog_gnu_ld"
7535
7536 old_CC="$CC"
7537 old_CFLAGS="$CFLAGS"
7538
7539 # Set sane defaults for various variables
7540 test -z "$CC" && CC=cc
7541 test -z "$LTCC" && LTCC=$CC
7542 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7543 test -z "$LD" && LD=ld
7544 test -z "$ac_objext" && ac_objext=o
7545
7546 for cc_temp in $compiler""; do
7547   case $cc_temp in
7548     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7549     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7550     \-*) ;;
7551     *) break;;
7552   esac
7553 done
7554 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7555
7556
7557 # Only perform the check for file, if the check method requires it
7558 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7559 case $deplibs_check_method in
7560 file_magic*)
7561   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7563 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7564 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   case $MAGIC_CMD in
7568 [\\/*] |  ?:[\\/]*)
7569   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7570   ;;
7571 *)
7572   lt_save_MAGIC_CMD="$MAGIC_CMD"
7573   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7574   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7575   for ac_dir in $ac_dummy; do
7576     IFS="$lt_save_ifs"
7577     test -z "$ac_dir" && ac_dir=.
7578     if test -f $ac_dir/${ac_tool_prefix}file; then
7579       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7580       if test -n "$file_magic_test_file"; then
7581         case $deplibs_check_method in
7582         "file_magic "*)
7583           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7584           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7585           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7586             $EGREP "$file_magic_regex" > /dev/null; then
7587             :
7588           else
7589             cat <<_LT_EOF 1>&2
7590
7591 *** Warning: the command libtool uses to detect shared libraries,
7592 *** $file_magic_cmd, produces output that libtool cannot recognize.
7593 *** The result is that libtool may fail to recognize shared libraries
7594 *** as such.  This will affect the creation of libtool libraries that
7595 *** depend on shared libraries, but programs linked with such libtool
7596 *** libraries will work regardless of this problem.  Nevertheless, you
7597 *** may want to report the problem to your system manager and/or to
7598 *** bug-libtool@gnu.org
7599
7600 _LT_EOF
7601           fi ;;
7602         esac
7603       fi
7604       break
7605     fi
7606   done
7607   IFS="$lt_save_ifs"
7608   MAGIC_CMD="$lt_save_MAGIC_CMD"
7609   ;;
7610 esac
7611 fi
7612
7613 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614 if test -n "$MAGIC_CMD"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7616 $as_echo "$MAGIC_CMD" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623
7624
7625
7626 if test -z "$lt_cv_path_MAGIC_CMD"; then
7627   if test -n "$ac_tool_prefix"; then
7628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7629 $as_echo_n "checking for file... " >&6; }
7630 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7631   $as_echo_n "(cached) " >&6
7632 else
7633   case $MAGIC_CMD in
7634 [\\/*] |  ?:[\\/]*)
7635   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7636   ;;
7637 *)
7638   lt_save_MAGIC_CMD="$MAGIC_CMD"
7639   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7640   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7641   for ac_dir in $ac_dummy; do
7642     IFS="$lt_save_ifs"
7643     test -z "$ac_dir" && ac_dir=.
7644     if test -f $ac_dir/file; then
7645       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7646       if test -n "$file_magic_test_file"; then
7647         case $deplibs_check_method in
7648         "file_magic "*)
7649           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7650           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7651           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7652             $EGREP "$file_magic_regex" > /dev/null; then
7653             :
7654           else
7655             cat <<_LT_EOF 1>&2
7656
7657 *** Warning: the command libtool uses to detect shared libraries,
7658 *** $file_magic_cmd, produces output that libtool cannot recognize.
7659 *** The result is that libtool may fail to recognize shared libraries
7660 *** as such.  This will affect the creation of libtool libraries that
7661 *** depend on shared libraries, but programs linked with such libtool
7662 *** libraries will work regardless of this problem.  Nevertheless, you
7663 *** may want to report the problem to your system manager and/or to
7664 *** bug-libtool@gnu.org
7665
7666 _LT_EOF
7667           fi ;;
7668         esac
7669       fi
7670       break
7671     fi
7672   done
7673   IFS="$lt_save_ifs"
7674   MAGIC_CMD="$lt_save_MAGIC_CMD"
7675   ;;
7676 esac
7677 fi
7678
7679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680 if test -n "$MAGIC_CMD"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7682 $as_echo "$MAGIC_CMD" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689   else
7690     MAGIC_CMD=:
7691   fi
7692 fi
7693
7694   fi
7695   ;;
7696 esac
7697
7698 # Use C for the default configuration in the libtool script
7699
7700 lt_save_CC="$CC"
7701 ac_ext=c
7702 ac_cpp='$CPP $CPPFLAGS'
7703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706
7707
7708 # Source file extension for C test sources.
7709 ac_ext=c
7710
7711 # Object file extension for compiled C test sources.
7712 objext=o
7713 objext=$objext
7714
7715 # Code to be used in simple compile tests
7716 lt_simple_compile_test_code="int some_variable = 0;"
7717
7718 # Code to be used in simple link tests
7719 lt_simple_link_test_code='int main(){return(0);}'
7720
7721
7722
7723
7724
7725
7726
7727 # If no C compiler was specified, use CC.
7728 LTCC=${LTCC-"$CC"}
7729
7730 # If no C compiler flags were specified, use CFLAGS.
7731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7732
7733 # Allow CC to be a program name with arguments.
7734 compiler=$CC
7735
7736 # Save the default compiler, since it gets overwritten when the other
7737 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7738 compiler_DEFAULT=$CC
7739
7740 # save warnings/boilerplate of simple test code
7741 ac_outfile=conftest.$ac_objext
7742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7744 _lt_compiler_boilerplate=`cat conftest.err`
7745 $RM conftest*
7746
7747 ac_outfile=conftest.$ac_objext
7748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7750 _lt_linker_boilerplate=`cat conftest.err`
7751 $RM -r conftest*
7752
7753
7754 if test -n "$compiler"; then
7755
7756 lt_prog_compiler_no_builtin_flag=
7757
7758 if test "$GCC" = yes; then
7759   case $cc_basename in
7760   nvcc*)
7761     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7762   *)
7763     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7764   esac
7765
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7768 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   lt_cv_prog_compiler_rtti_exceptions=no
7772    ac_outfile=conftest.$ac_objext
7773    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774    lt_compiler_flag="-fno-rtti -fno-exceptions"
7775    # Insert the option either (1) after the last *FLAGS variable, or
7776    # (2) before a word containing "conftest.", or (3) at the end.
7777    # Note that $ac_compile itself does not contain backslashes and begins
7778    # with a dollar sign (not a hyphen), so the echo should work correctly.
7779    # The option is referenced via a variable to avoid confusing sed.
7780    lt_compile=`echo "$ac_compile" | $SED \
7781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783    -e 's:$: $lt_compiler_flag:'`
7784    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7785    (eval "$lt_compile" 2>conftest.err)
7786    ac_status=$?
7787    cat conftest.err >&5
7788    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789    if (exit $ac_status) && test -s "$ac_outfile"; then
7790      # The compiler can only warn and ignore the option if not recognized
7791      # So say no if there are warnings other than the usual output.
7792      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7793      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795        lt_cv_prog_compiler_rtti_exceptions=yes
7796      fi
7797    fi
7798    $RM conftest*
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7803
7804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7805     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7806 else
7807     :
7808 fi
7809
7810 fi
7811
7812
7813
7814
7815
7816
7817   lt_prog_compiler_wl=
7818 lt_prog_compiler_pic=
7819 lt_prog_compiler_static=
7820
7821
7822   if test "$GCC" = yes; then
7823     lt_prog_compiler_wl='-Wl,'
7824     lt_prog_compiler_static='-static'
7825
7826     case $host_os in
7827       aix*)
7828       # All AIX code is PIC.
7829       if test "$host_cpu" = ia64; then
7830         # AIX 5 now supports IA64 processor
7831         lt_prog_compiler_static='-Bstatic'
7832       fi
7833       ;;
7834
7835     amigaos*)
7836       case $host_cpu in
7837       powerpc)
7838             # see comment about AmigaOS4 .so support
7839             lt_prog_compiler_pic='-fPIC'
7840         ;;
7841       m68k)
7842             # FIXME: we need at least 68020 code to build shared libraries, but
7843             # adding the `-m68020' flag to GCC prevents building anything better,
7844             # like `-m68040'.
7845             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7846         ;;
7847       esac
7848       ;;
7849
7850     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7851       # PIC is the default for these OSes.
7852       ;;
7853
7854     mingw* | cygwin* | pw32* | os2* | cegcc*)
7855       # This hack is so that the source file can tell whether it is being
7856       # built for inclusion in a dll (and should export symbols for example).
7857       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7858       # (--disable-auto-import) libraries
7859       lt_prog_compiler_pic='-DDLL_EXPORT'
7860       ;;
7861
7862     darwin* | rhapsody*)
7863       # PIC is the default on this platform
7864       # Common symbols not allowed in MH_DYLIB files
7865       lt_prog_compiler_pic='-fno-common'
7866       ;;
7867
7868     haiku*)
7869       # PIC is the default for Haiku.
7870       # The "-static" flag exists, but is broken.
7871       lt_prog_compiler_static=
7872       ;;
7873
7874     hpux*)
7875       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7876       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7877       # sets the default TLS model and affects inlining.
7878       case $host_cpu in
7879       hppa*64*)
7880         # +Z the default
7881         ;;
7882       *)
7883         lt_prog_compiler_pic='-fPIC'
7884         ;;
7885       esac
7886       ;;
7887
7888     interix[3-9]*)
7889       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7890       # Instead, we relocate shared libraries at runtime.
7891       ;;
7892
7893     msdosdjgpp*)
7894       # Just because we use GCC doesn't mean we suddenly get shared libraries
7895       # on systems that don't support them.
7896       lt_prog_compiler_can_build_shared=no
7897       enable_shared=no
7898       ;;
7899
7900     *nto* | *qnx*)
7901       # QNX uses GNU C++, but need to define -shared option too, otherwise
7902       # it will coredump.
7903       lt_prog_compiler_pic='-fPIC -shared'
7904       ;;
7905
7906     sysv4*MP*)
7907       if test -d /usr/nec; then
7908         lt_prog_compiler_pic=-Kconform_pic
7909       fi
7910       ;;
7911
7912     *)
7913       lt_prog_compiler_pic='-fPIC'
7914       ;;
7915     esac
7916
7917     case $cc_basename in
7918     nvcc*) # Cuda Compiler Driver 2.2
7919       lt_prog_compiler_wl='-Xlinker '
7920       lt_prog_compiler_pic='-Xcompiler -fPIC'
7921       ;;
7922     esac
7923   else
7924     # PORTME Check for flag to pass linker flags through the system compiler.
7925     case $host_os in
7926     aix*)
7927       lt_prog_compiler_wl='-Wl,'
7928       if test "$host_cpu" = ia64; then
7929         # AIX 5 now supports IA64 processor
7930         lt_prog_compiler_static='-Bstatic'
7931       else
7932         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7933       fi
7934       ;;
7935
7936     mingw* | cygwin* | pw32* | os2* | cegcc*)
7937       # This hack is so that the source file can tell whether it is being
7938       # built for inclusion in a dll (and should export symbols for example).
7939       lt_prog_compiler_pic='-DDLL_EXPORT'
7940       ;;
7941
7942     hpux9* | hpux10* | hpux11*)
7943       lt_prog_compiler_wl='-Wl,'
7944       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7945       # not for PA HP-UX.
7946       case $host_cpu in
7947       hppa*64*|ia64*)
7948         # +Z the default
7949         ;;
7950       *)
7951         lt_prog_compiler_pic='+Z'
7952         ;;
7953       esac
7954       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7955       lt_prog_compiler_static='${wl}-a ${wl}archive'
7956       ;;
7957
7958     irix5* | irix6* | nonstopux*)
7959       lt_prog_compiler_wl='-Wl,'
7960       # PIC (with -KPIC) is the default.
7961       lt_prog_compiler_static='-non_shared'
7962       ;;
7963
7964     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7965       case $cc_basename in
7966       # old Intel for x86_64 which still supported -KPIC.
7967       ecc*)
7968         lt_prog_compiler_wl='-Wl,'
7969         lt_prog_compiler_pic='-KPIC'
7970         lt_prog_compiler_static='-static'
7971         ;;
7972       # icc used to be incompatible with GCC.
7973       # ICC 10 doesn't accept -KPIC any more.
7974       icc* | ifort*)
7975         lt_prog_compiler_wl='-Wl,'
7976         lt_prog_compiler_pic='-fPIC'
7977         lt_prog_compiler_static='-static'
7978         ;;
7979       # Lahey Fortran 8.1.
7980       lf95*)
7981         lt_prog_compiler_wl='-Wl,'
7982         lt_prog_compiler_pic='--shared'
7983         lt_prog_compiler_static='--static'
7984         ;;
7985       nagfor*)
7986         # NAG Fortran compiler
7987         lt_prog_compiler_wl='-Wl,-Wl,,'
7988         lt_prog_compiler_pic='-PIC'
7989         lt_prog_compiler_static='-Bstatic'
7990         ;;
7991       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7992         # Portland Group compilers (*not* the Pentium gcc compiler,
7993         # which looks to be a dead project)
7994         lt_prog_compiler_wl='-Wl,'
7995         lt_prog_compiler_pic='-fpic'
7996         lt_prog_compiler_static='-Bstatic'
7997         ;;
7998       ccc*)
7999         lt_prog_compiler_wl='-Wl,'
8000         # All Alpha code is PIC.
8001         lt_prog_compiler_static='-non_shared'
8002         ;;
8003       xl* | bgxl* | bgf* | mpixl*)
8004         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8005         lt_prog_compiler_wl='-Wl,'
8006         lt_prog_compiler_pic='-qpic'
8007         lt_prog_compiler_static='-qstaticlink'
8008         ;;
8009       *)
8010         case `$CC -V 2>&1 | sed 5q` in
8011         *Sun\ F* | *Sun*Fortran*)
8012           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8013           lt_prog_compiler_pic='-KPIC'
8014           lt_prog_compiler_static='-Bstatic'
8015           lt_prog_compiler_wl=''
8016           ;;
8017         *Sun\ C*)
8018           # Sun C 5.9
8019           lt_prog_compiler_pic='-KPIC'
8020           lt_prog_compiler_static='-Bstatic'
8021           lt_prog_compiler_wl='-Wl,'
8022           ;;
8023         esac
8024         ;;
8025       esac
8026       ;;
8027
8028     newsos6)
8029       lt_prog_compiler_pic='-KPIC'
8030       lt_prog_compiler_static='-Bstatic'
8031       ;;
8032
8033     *nto* | *qnx*)
8034       # QNX uses GNU C++, but need to define -shared option too, otherwise
8035       # it will coredump.
8036       lt_prog_compiler_pic='-fPIC -shared'
8037       ;;
8038
8039     osf3* | osf4* | osf5*)
8040       lt_prog_compiler_wl='-Wl,'
8041       # All OSF/1 code is PIC.
8042       lt_prog_compiler_static='-non_shared'
8043       ;;
8044
8045     rdos*)
8046       lt_prog_compiler_static='-non_shared'
8047       ;;
8048
8049     solaris*)
8050       lt_prog_compiler_pic='-KPIC'
8051       lt_prog_compiler_static='-Bstatic'
8052       case $cc_basename in
8053       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8054         lt_prog_compiler_wl='-Qoption ld ';;
8055       *)
8056         lt_prog_compiler_wl='-Wl,';;
8057       esac
8058       ;;
8059
8060     sunos4*)
8061       lt_prog_compiler_wl='-Qoption ld '
8062       lt_prog_compiler_pic='-PIC'
8063       lt_prog_compiler_static='-Bstatic'
8064       ;;
8065
8066     sysv4 | sysv4.2uw2* | sysv4.3*)
8067       lt_prog_compiler_wl='-Wl,'
8068       lt_prog_compiler_pic='-KPIC'
8069       lt_prog_compiler_static='-Bstatic'
8070       ;;
8071
8072     sysv4*MP*)
8073       if test -d /usr/nec ;then
8074         lt_prog_compiler_pic='-Kconform_pic'
8075         lt_prog_compiler_static='-Bstatic'
8076       fi
8077       ;;
8078
8079     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8080       lt_prog_compiler_wl='-Wl,'
8081       lt_prog_compiler_pic='-KPIC'
8082       lt_prog_compiler_static='-Bstatic'
8083       ;;
8084
8085     unicos*)
8086       lt_prog_compiler_wl='-Wl,'
8087       lt_prog_compiler_can_build_shared=no
8088       ;;
8089
8090     uts4*)
8091       lt_prog_compiler_pic='-pic'
8092       lt_prog_compiler_static='-Bstatic'
8093       ;;
8094
8095     *)
8096       lt_prog_compiler_can_build_shared=no
8097       ;;
8098     esac
8099   fi
8100
8101 case $host_os in
8102   # For platforms which do not support PIC, -DPIC is meaningless:
8103   *djgpp*)
8104     lt_prog_compiler_pic=
8105     ;;
8106   *)
8107     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8108     ;;
8109 esac
8110
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8112 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8113 if ${lt_cv_prog_compiler_pic+:} false; then :
8114   $as_echo_n "(cached) " >&6
8115 else
8116   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8119 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8120 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8121
8122 #
8123 # Check to make sure the PIC flag actually works.
8124 #
8125 if test -n "$lt_prog_compiler_pic"; then
8126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8127 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8128 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   lt_cv_prog_compiler_pic_works=no
8132    ac_outfile=conftest.$ac_objext
8133    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8134    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8135    # Insert the option either (1) after the last *FLAGS variable, or
8136    # (2) before a word containing "conftest.", or (3) at the end.
8137    # Note that $ac_compile itself does not contain backslashes and begins
8138    # with a dollar sign (not a hyphen), so the echo should work correctly.
8139    # The option is referenced via a variable to avoid confusing sed.
8140    lt_compile=`echo "$ac_compile" | $SED \
8141    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8142    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8143    -e 's:$: $lt_compiler_flag:'`
8144    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8145    (eval "$lt_compile" 2>conftest.err)
8146    ac_status=$?
8147    cat conftest.err >&5
8148    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149    if (exit $ac_status) && test -s "$ac_outfile"; then
8150      # The compiler can only warn and ignore the option if not recognized
8151      # So say no if there are warnings other than the usual output.
8152      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8153      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8154      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8155        lt_cv_prog_compiler_pic_works=yes
8156      fi
8157    fi
8158    $RM conftest*
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8162 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8163
8164 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8165     case $lt_prog_compiler_pic in
8166      "" | " "*) ;;
8167      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8168      esac
8169 else
8170     lt_prog_compiler_pic=
8171      lt_prog_compiler_can_build_shared=no
8172 fi
8173
8174 fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 #
8187 # Check to make sure the static flag actually works.
8188 #
8189 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8191 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8192 if ${lt_cv_prog_compiler_static_works+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   lt_cv_prog_compiler_static_works=no
8196    save_LDFLAGS="$LDFLAGS"
8197    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8198    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8199    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8200      # The linker can only warn and ignore the option if not recognized
8201      # So say no if there are warnings
8202      if test -s conftest.err; then
8203        # Append any errors to the config.log.
8204        cat conftest.err 1>&5
8205        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8206        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207        if diff conftest.exp conftest.er2 >/dev/null; then
8208          lt_cv_prog_compiler_static_works=yes
8209        fi
8210      else
8211        lt_cv_prog_compiler_static_works=yes
8212      fi
8213    fi
8214    $RM -r conftest*
8215    LDFLAGS="$save_LDFLAGS"
8216
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8219 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8220
8221 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8222     :
8223 else
8224     lt_prog_compiler_static=
8225 fi
8226
8227
8228
8229
8230
8231
8232
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8234 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8235 if ${lt_cv_prog_compiler_c_o+:} false; then :
8236   $as_echo_n "(cached) " >&6
8237 else
8238   lt_cv_prog_compiler_c_o=no
8239    $RM -r conftest 2>/dev/null
8240    mkdir conftest
8241    cd conftest
8242    mkdir out
8243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8244
8245    lt_compiler_flag="-o out/conftest2.$ac_objext"
8246    # Insert the option either (1) after the last *FLAGS variable, or
8247    # (2) before a word containing "conftest.", or (3) at the end.
8248    # Note that $ac_compile itself does not contain backslashes and begins
8249    # with a dollar sign (not a hyphen), so the echo should work correctly.
8250    lt_compile=`echo "$ac_compile" | $SED \
8251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8253    -e 's:$: $lt_compiler_flag:'`
8254    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8255    (eval "$lt_compile" 2>out/conftest.err)
8256    ac_status=$?
8257    cat out/conftest.err >&5
8258    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8260    then
8261      # The compiler can only warn and ignore the option if not recognized
8262      # So say no if there are warnings
8263      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8264      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8265      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8266        lt_cv_prog_compiler_c_o=yes
8267      fi
8268    fi
8269    chmod u+w . 2>&5
8270    $RM conftest*
8271    # SGI C++ compiler will create directory out/ii_files/ for
8272    # template instantiation
8273    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8274    $RM out/* && rmdir out
8275    cd ..
8276    $RM -r conftest
8277    $RM conftest*
8278
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8281 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8282
8283
8284
8285
8286
8287
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8290 if ${lt_cv_prog_compiler_c_o+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   lt_cv_prog_compiler_c_o=no
8294    $RM -r conftest 2>/dev/null
8295    mkdir conftest
8296    cd conftest
8297    mkdir out
8298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8299
8300    lt_compiler_flag="-o out/conftest2.$ac_objext"
8301    # Insert the option either (1) after the last *FLAGS variable, or
8302    # (2) before a word containing "conftest.", or (3) at the end.
8303    # Note that $ac_compile itself does not contain backslashes and begins
8304    # with a dollar sign (not a hyphen), so the echo should work correctly.
8305    lt_compile=`echo "$ac_compile" | $SED \
8306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8308    -e 's:$: $lt_compiler_flag:'`
8309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8310    (eval "$lt_compile" 2>out/conftest.err)
8311    ac_status=$?
8312    cat out/conftest.err >&5
8313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8315    then
8316      # The compiler can only warn and ignore the option if not recognized
8317      # So say no if there are warnings
8318      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8321        lt_cv_prog_compiler_c_o=yes
8322      fi
8323    fi
8324    chmod u+w . 2>&5
8325    $RM conftest*
8326    # SGI C++ compiler will create directory out/ii_files/ for
8327    # template instantiation
8328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8329    $RM out/* && rmdir out
8330    cd ..
8331    $RM -r conftest
8332    $RM conftest*
8333
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8336 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8337
8338
8339
8340
8341 hard_links="nottested"
8342 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8343   # do not overwrite the value of need_locks provided by the user
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8345 $as_echo_n "checking if we can lock with hard links... " >&6; }
8346   hard_links=yes
8347   $RM conftest*
8348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8349   touch conftest.a
8350   ln conftest.a conftest.b 2>&5 || hard_links=no
8351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8353 $as_echo "$hard_links" >&6; }
8354   if test "$hard_links" = no; then
8355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8356 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8357     need_locks=warn
8358   fi
8359 else
8360   need_locks=no
8361 fi
8362
8363
8364
8365
8366
8367
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8370
8371   runpath_var=
8372   allow_undefined_flag=
8373   always_export_symbols=no
8374   archive_cmds=
8375   archive_expsym_cmds=
8376   compiler_needs_object=no
8377   enable_shared_with_static_runtimes=no
8378   export_dynamic_flag_spec=
8379   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8380   hardcode_automatic=no
8381   hardcode_direct=no
8382   hardcode_direct_absolute=no
8383   hardcode_libdir_flag_spec=
8384   hardcode_libdir_flag_spec_ld=
8385   hardcode_libdir_separator=
8386   hardcode_minus_L=no
8387   hardcode_shlibpath_var=unsupported
8388   inherit_rpath=no
8389   link_all_deplibs=unknown
8390   module_cmds=
8391   module_expsym_cmds=
8392   old_archive_from_new_cmds=
8393   old_archive_from_expsyms_cmds=
8394   thread_safe_flag_spec=
8395   whole_archive_flag_spec=
8396   # include_expsyms should be a list of space-separated symbols to be *always*
8397   # included in the symbol list
8398   include_expsyms=
8399   # exclude_expsyms can be an extended regexp of symbols to exclude
8400   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8401   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8402   # as well as any symbol that contains `d'.
8403   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8404   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8405   # platforms (ab)use it in PIC code, but their linkers get confused if
8406   # the symbol is explicitly referenced.  Since portable code cannot
8407   # rely on this symbol name, it's probably fine to never include it in
8408   # preloaded symbol tables.
8409   # Exclude shared library initialization/finalization symbols.
8410   extract_expsyms_cmds=
8411
8412   case $host_os in
8413   cygwin* | mingw* | pw32* | cegcc*)
8414     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8415     # When not using gcc, we currently assume that we are using
8416     # Microsoft Visual C++.
8417     if test "$GCC" != yes; then
8418       with_gnu_ld=no
8419     fi
8420     ;;
8421   interix*)
8422     # we just hope/assume this is gcc and not c89 (= MSVC++)
8423     with_gnu_ld=yes
8424     ;;
8425   openbsd*)
8426     with_gnu_ld=no
8427     ;;
8428   esac
8429
8430   ld_shlibs=yes
8431
8432   # On some targets, GNU ld is compatible enough with the native linker
8433   # that we're better off using the native interface for both.
8434   lt_use_gnu_ld_interface=no
8435   if test "$with_gnu_ld" = yes; then
8436     case $host_os in
8437       aix*)
8438         # The AIX port of GNU ld has always aspired to compatibility
8439         # with the native linker.  However, as the warning in the GNU ld
8440         # block says, versions before 2.19.5* couldn't really create working
8441         # shared libraries, regardless of the interface used.
8442         case `$LD -v 2>&1` in
8443           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8444           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8445           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8446           *)
8447             lt_use_gnu_ld_interface=yes
8448             ;;
8449         esac
8450         ;;
8451       *)
8452         lt_use_gnu_ld_interface=yes
8453         ;;
8454     esac
8455   fi
8456
8457   if test "$lt_use_gnu_ld_interface" = yes; then
8458     # If archive_cmds runs LD, not CC, wlarc should be empty
8459     wlarc='${wl}'
8460
8461     # Set some defaults for GNU ld with shared library support. These
8462     # are reset later if shared libraries are not supported. Putting them
8463     # here allows them to be overridden if necessary.
8464     runpath_var=LD_RUN_PATH
8465     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8466     export_dynamic_flag_spec='${wl}--export-dynamic'
8467     # ancient GNU ld didn't support --whole-archive et. al.
8468     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8469       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8470     else
8471       whole_archive_flag_spec=
8472     fi
8473     supports_anon_versioning=no
8474     case `$LD -v 2>&1` in
8475       *GNU\ gold*) supports_anon_versioning=yes ;;
8476       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8477       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8478       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8479       *\ 2.11.*) ;; # other 2.11 versions
8480       *) supports_anon_versioning=yes ;;
8481     esac
8482
8483     # See if GNU ld supports shared libraries.
8484     case $host_os in
8485     aix[3-9]*)
8486       # On AIX/PPC, the GNU linker is very broken
8487       if test "$host_cpu" != ia64; then
8488         ld_shlibs=no
8489         cat <<_LT_EOF 1>&2
8490
8491 *** Warning: the GNU linker, at least up to release 2.19, is reported
8492 *** to be unable to reliably create shared libraries on AIX.
8493 *** Therefore, libtool is disabling shared libraries support.  If you
8494 *** really care for shared libraries, you may want to install binutils
8495 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8496 *** You will then need to restart the configuration process.
8497
8498 _LT_EOF
8499       fi
8500       ;;
8501
8502     amigaos*)
8503       case $host_cpu in
8504       powerpc)
8505             # see comment about AmigaOS4 .so support
8506             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8507             archive_expsym_cmds=''
8508         ;;
8509       m68k)
8510             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)'
8511             hardcode_libdir_flag_spec='-L$libdir'
8512             hardcode_minus_L=yes
8513         ;;
8514       esac
8515       ;;
8516
8517     beos*)
8518       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8519         allow_undefined_flag=unsupported
8520         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8521         # support --undefined.  This deserves some investigation.  FIXME
8522         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523       else
8524         ld_shlibs=no
8525       fi
8526       ;;
8527
8528     cygwin* | mingw* | pw32* | cegcc*)
8529       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8530       # as there is no search path for DLLs.
8531       hardcode_libdir_flag_spec='-L$libdir'
8532       export_dynamic_flag_spec='${wl}--export-all-symbols'
8533       allow_undefined_flag=unsupported
8534       always_export_symbols=no
8535       enable_shared_with_static_runtimes=yes
8536       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'
8537       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8538
8539       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8540         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8541         # If the export-symbols file already is a .def file (1st line
8542         # is EXPORTS), use it as is; otherwise, prepend...
8543         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8544           cp $export_symbols $output_objdir/$soname.def;
8545         else
8546           echo EXPORTS > $output_objdir/$soname.def;
8547           cat $export_symbols >> $output_objdir/$soname.def;
8548         fi~
8549         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8550       else
8551         ld_shlibs=no
8552       fi
8553       ;;
8554
8555     haiku*)
8556       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557       link_all_deplibs=yes
8558       ;;
8559
8560     interix[3-9]*)
8561       hardcode_direct=no
8562       hardcode_shlibpath_var=no
8563       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8564       export_dynamic_flag_spec='${wl}-E'
8565       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8566       # Instead, shared libraries are loaded at an image base (0x10000000 by
8567       # default) and relocated if they conflict, which is a slow very memory
8568       # consuming and fragmenting process.  To avoid this, we pick a random,
8569       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8570       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8571       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8572       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'
8573       ;;
8574
8575     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8576       tmp_diet=no
8577       if test "$host_os" = linux-dietlibc; then
8578         case $cc_basename in
8579           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8580         esac
8581       fi
8582       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8583          && test "$tmp_diet" = no
8584       then
8585         tmp_addflag=' $pic_flag'
8586         tmp_sharedflag='-shared'
8587         case $cc_basename,$host_cpu in
8588         pgcc*)                          # Portland Group C compiler
8589           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'
8590           tmp_addflag=' $pic_flag'
8591           ;;
8592         pgf77* | pgf90* | pgf95* | pgfortran*)
8593                                         # Portland Group f77 and f90 compilers
8594           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'
8595           tmp_addflag=' $pic_flag -Mnomain' ;;
8596         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8597           tmp_addflag=' -i_dynamic' ;;
8598         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8599           tmp_addflag=' -i_dynamic -nofor_main' ;;
8600         ifc* | ifort*)                  # Intel Fortran compiler
8601           tmp_addflag=' -nofor_main' ;;
8602         lf95*)                          # Lahey Fortran 8.1
8603           whole_archive_flag_spec=
8604           tmp_sharedflag='--shared' ;;
8605         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8606           tmp_sharedflag='-qmkshrobj'
8607           tmp_addflag= ;;
8608         nvcc*)  # Cuda Compiler Driver 2.2
8609           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'
8610           compiler_needs_object=yes
8611           ;;
8612         esac
8613         case `$CC -V 2>&1 | sed 5q` in
8614         *Sun\ C*)                       # Sun C 5.9
8615           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'
8616           compiler_needs_object=yes
8617           tmp_sharedflag='-G' ;;
8618         *Sun\ F*)                       # Sun Fortran 8.3
8619           tmp_sharedflag='-G' ;;
8620         esac
8621         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8622
8623         if test "x$supports_anon_versioning" = xyes; then
8624           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8625             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8626             echo "local: *; };" >> $output_objdir/$libname.ver~
8627             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8628         fi
8629
8630         case $cc_basename in
8631         xlf* | bgf* | bgxlf* | mpixlf*)
8632           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8633           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8634           hardcode_libdir_flag_spec=
8635           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8636           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8637           if test "x$supports_anon_versioning" = xyes; then
8638             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8639               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8640               echo "local: *; };" >> $output_objdir/$libname.ver~
8641               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8642           fi
8643           ;;
8644         esac
8645       else
8646         ld_shlibs=no
8647       fi
8648       ;;
8649
8650     netbsd*)
8651       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8652         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8653         wlarc=
8654       else
8655         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8657       fi
8658       ;;
8659
8660     solaris*)
8661       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8662         ld_shlibs=no
8663         cat <<_LT_EOF 1>&2
8664
8665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8666 *** create shared libraries on Solaris systems.  Therefore, libtool
8667 *** is disabling shared libraries support.  We urge you to upgrade GNU
8668 *** binutils to release 2.9.1 or newer.  Another option is to modify
8669 *** your PATH or compiler configuration so that the native linker is
8670 *** used, and then restart.
8671
8672 _LT_EOF
8673       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8674         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8676       else
8677         ld_shlibs=no
8678       fi
8679       ;;
8680
8681     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8682       case `$LD -v 2>&1` in
8683         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8684         ld_shlibs=no
8685         cat <<_LT_EOF 1>&2
8686
8687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8688 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8689 *** is disabling shared libraries support.  We urge you to upgrade GNU
8690 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8691 *** your PATH or compiler configuration so that the native linker is
8692 *** used, and then restart.
8693
8694 _LT_EOF
8695         ;;
8696         *)
8697           # For security reasons, it is highly recommended that you always
8698           # use absolute paths for naming shared libraries, and exclude the
8699           # DT_RUNPATH tag from executables and libraries.  But doing so
8700           # requires that you compile everything twice, which is a pain.
8701           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8702             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8703             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705           else
8706             ld_shlibs=no
8707           fi
8708         ;;
8709       esac
8710       ;;
8711
8712     sunos4*)
8713       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8714       wlarc=
8715       hardcode_direct=yes
8716       hardcode_shlibpath_var=no
8717       ;;
8718
8719     *)
8720       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723       else
8724         ld_shlibs=no
8725       fi
8726       ;;
8727     esac
8728
8729     if test "$ld_shlibs" = no; then
8730       runpath_var=
8731       hardcode_libdir_flag_spec=
8732       export_dynamic_flag_spec=
8733       whole_archive_flag_spec=
8734     fi
8735   else
8736     # PORTME fill in a description of your system's linker (not GNU ld)
8737     case $host_os in
8738     aix3*)
8739       allow_undefined_flag=unsupported
8740       always_export_symbols=yes
8741       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'
8742       # Note: this linker hardcodes the directories in LIBPATH if there
8743       # are no directories specified by -L.
8744       hardcode_minus_L=yes
8745       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8746         # Neither direct hardcoding nor static linking is supported with a
8747         # broken collect2.
8748         hardcode_direct=unsupported
8749       fi
8750       ;;
8751
8752     aix[4-9]*)
8753       if test "$host_cpu" = ia64; then
8754         # On IA64, the linker does run time linking by default, so we don't
8755         # have to do anything special.
8756         aix_use_runtimelinking=no
8757         exp_sym_flag='-Bexport'
8758         no_entry_flag=""
8759       else
8760         # If we're using GNU nm, then we don't want the "-C" option.
8761         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8762         # Also, AIX nm treats weak defined symbols like other global
8763         # defined symbols, whereas GNU nm marks them as "W".
8764         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8765           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'
8766         else
8767           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'
8768         fi
8769         aix_use_runtimelinking=no
8770
8771         # Test if we are trying to use run time linking or normal
8772         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8773         # need to do runtime linking.
8774         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8775           for ld_flag in $LDFLAGS; do
8776           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8777             aix_use_runtimelinking=yes
8778             break
8779           fi
8780           done
8781           ;;
8782         esac
8783
8784         exp_sym_flag='-bexport'
8785         no_entry_flag='-bnoentry'
8786       fi
8787
8788       # When large executables or shared objects are built, AIX ld can
8789       # have problems creating the table of contents.  If linking a library
8790       # or program results in "error TOC overflow" add -mminimal-toc to
8791       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8792       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8793
8794       archive_cmds=''
8795       hardcode_direct=yes
8796       hardcode_direct_absolute=yes
8797       hardcode_libdir_separator=':'
8798       link_all_deplibs=yes
8799       file_list_spec='${wl}-f,'
8800
8801       if test "$GCC" = yes; then
8802         case $host_os in aix4.[012]|aix4.[012].*)
8803         # We only want to do this on AIX 4.2 and lower, the check
8804         # below for broken collect2 doesn't work under 4.3+
8805           collect2name=`${CC} -print-prog-name=collect2`
8806           if test -f "$collect2name" &&
8807            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8808           then
8809           # We have reworked collect2
8810           :
8811           else
8812           # We have old collect2
8813           hardcode_direct=unsupported
8814           # It fails to find uninstalled libraries when the uninstalled
8815           # path is not listed in the libpath.  Setting hardcode_minus_L
8816           # to unsupported forces relinking
8817           hardcode_minus_L=yes
8818           hardcode_libdir_flag_spec='-L$libdir'
8819           hardcode_libdir_separator=
8820           fi
8821           ;;
8822         esac
8823         shared_flag='-shared'
8824         if test "$aix_use_runtimelinking" = yes; then
8825           shared_flag="$shared_flag "'${wl}-G'
8826         fi
8827       else
8828         # not using gcc
8829         if test "$host_cpu" = ia64; then
8830         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8831         # chokes on -Wl,-G. The following line is correct:
8832           shared_flag='-G'
8833         else
8834           if test "$aix_use_runtimelinking" = yes; then
8835             shared_flag='${wl}-G'
8836           else
8837             shared_flag='${wl}-bM:SRE'
8838           fi
8839         fi
8840       fi
8841
8842       export_dynamic_flag_spec='${wl}-bexpall'
8843       # It seems that -bexpall does not export symbols beginning with
8844       # underscore (_), so it is better to generate a list of symbols to export.
8845       always_export_symbols=yes
8846       if test "$aix_use_runtimelinking" = yes; then
8847         # Warning - without using the other runtime loading flags (-brtl),
8848         # -berok will link without error, but may produce a broken library.
8849         allow_undefined_flag='-berok'
8850         # Determine the default libpath from the value encoded in an
8851         # empty executable.
8852         if test "${lt_cv_aix_libpath+set}" = set; then
8853   aix_libpath=$lt_cv_aix_libpath
8854 else
8855   if ${lt_cv_aix_libpath_+:} false; then :
8856   $as_echo_n "(cached) " >&6
8857 else
8858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h.  */
8860
8861 int
8862 main ()
8863 {
8864
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_link "$LINENO"; then :
8870
8871   lt_aix_libpath_sed='
8872       /Import File Strings/,/^$/ {
8873           /^0/ {
8874               s/^0  *\([^ ]*\) *$/\1/
8875               p
8876           }
8877       }'
8878   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8879   # Check for a 64-bit object if we didn't find anything.
8880   if test -z "$lt_cv_aix_libpath_"; then
8881     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882   fi
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext \
8885     conftest$ac_exeext conftest.$ac_ext
8886   if test -z "$lt_cv_aix_libpath_"; then
8887     lt_cv_aix_libpath_="/usr/lib:/lib"
8888   fi
8889
8890 fi
8891
8892   aix_libpath=$lt_cv_aix_libpath_
8893 fi
8894
8895         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8896         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"
8897       else
8898         if test "$host_cpu" = ia64; then
8899           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8900           allow_undefined_flag="-z nodefs"
8901           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"
8902         else
8903          # Determine the default libpath from the value encoded in an
8904          # empty executable.
8905          if test "${lt_cv_aix_libpath+set}" = set; then
8906   aix_libpath=$lt_cv_aix_libpath
8907 else
8908   if ${lt_cv_aix_libpath_+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h.  */
8913
8914 int
8915 main ()
8916 {
8917
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 if ac_fn_c_try_link "$LINENO"; then :
8923
8924   lt_aix_libpath_sed='
8925       /Import File Strings/,/^$/ {
8926           /^0/ {
8927               s/^0  *\([^ ]*\) *$/\1/
8928               p
8929           }
8930       }'
8931   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8932   # Check for a 64-bit object if we didn't find anything.
8933   if test -z "$lt_cv_aix_libpath_"; then
8934     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8935   fi
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext \
8938     conftest$ac_exeext conftest.$ac_ext
8939   if test -z "$lt_cv_aix_libpath_"; then
8940     lt_cv_aix_libpath_="/usr/lib:/lib"
8941   fi
8942
8943 fi
8944
8945   aix_libpath=$lt_cv_aix_libpath_
8946 fi
8947
8948          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8949           # Warning - without using the other run time loading flags,
8950           # -berok will link without error, but may produce a broken library.
8951           no_undefined_flag=' ${wl}-bernotok'
8952           allow_undefined_flag=' ${wl}-berok'
8953           if test "$with_gnu_ld" = yes; then
8954             # We only use this code for GNU lds that support --whole-archive.
8955             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8956           else
8957             # Exported symbols can be pulled into shared objects from archives
8958             whole_archive_flag_spec='$convenience'
8959           fi
8960           archive_cmds_need_lc=yes
8961           # This is similar to how AIX traditionally builds its shared libraries.
8962           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'
8963         fi
8964       fi
8965       ;;
8966
8967     amigaos*)
8968       case $host_cpu in
8969       powerpc)
8970             # see comment about AmigaOS4 .so support
8971             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972             archive_expsym_cmds=''
8973         ;;
8974       m68k)
8975             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)'
8976             hardcode_libdir_flag_spec='-L$libdir'
8977             hardcode_minus_L=yes
8978         ;;
8979       esac
8980       ;;
8981
8982     bsdi[45]*)
8983       export_dynamic_flag_spec=-rdynamic
8984       ;;
8985
8986     cygwin* | mingw* | pw32* | cegcc*)
8987       # When not using gcc, we currently assume that we are using
8988       # Microsoft Visual C++.
8989       # hardcode_libdir_flag_spec is actually meaningless, as there is
8990       # no search path for DLLs.
8991       case $cc_basename in
8992       cl*)
8993         # Native MSVC
8994         hardcode_libdir_flag_spec=' '
8995         allow_undefined_flag=unsupported
8996         always_export_symbols=yes
8997         file_list_spec='@'
8998         # Tell ltmain to make .lib files, not .a files.
8999         libext=lib
9000         # Tell ltmain to make .dll files, not .so files.
9001         shrext_cmds=".dll"
9002         # FIXME: Setting linknames here is a bad hack.
9003         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9004         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9005             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9006           else
9007             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9008           fi~
9009           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9010           linknames='
9011         # The linker will not automatically build a static lib if we build a DLL.
9012         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9013         enable_shared_with_static_runtimes=yes
9014         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9015         # Don't use ranlib
9016         old_postinstall_cmds='chmod 644 $oldlib'
9017         postlink_cmds='lt_outputfile="@OUTPUT@"~
9018           lt_tool_outputfile="@TOOL_OUTPUT@"~
9019           case $lt_outputfile in
9020             *.exe|*.EXE) ;;
9021             *)
9022               lt_outputfile="$lt_outputfile.exe"
9023               lt_tool_outputfile="$lt_tool_outputfile.exe"
9024               ;;
9025           esac~
9026           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9027             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9028             $RM "$lt_outputfile.manifest";
9029           fi'
9030         ;;
9031       *)
9032         # Assume MSVC wrapper
9033         hardcode_libdir_flag_spec=' '
9034         allow_undefined_flag=unsupported
9035         # Tell ltmain to make .lib files, not .a files.
9036         libext=lib
9037         # Tell ltmain to make .dll files, not .so files.
9038         shrext_cmds=".dll"
9039         # FIXME: Setting linknames here is a bad hack.
9040         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9041         # The linker will automatically build a .lib file if we build a DLL.
9042         old_archive_from_new_cmds='true'
9043         # FIXME: Should let the user specify the lib program.
9044         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9045         enable_shared_with_static_runtimes=yes
9046         ;;
9047       esac
9048       ;;
9049
9050     darwin* | rhapsody*)
9051
9052
9053   archive_cmds_need_lc=no
9054   hardcode_direct=no
9055   hardcode_automatic=yes
9056   hardcode_shlibpath_var=unsupported
9057   if test "$lt_cv_ld_force_load" = "yes"; then
9058     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\"`'
9059   else
9060     whole_archive_flag_spec=''
9061   fi
9062   link_all_deplibs=yes
9063   allow_undefined_flag="$_lt_dar_allow_undefined"
9064   case $cc_basename in
9065      ifort*) _lt_dar_can_shared=yes ;;
9066      *) _lt_dar_can_shared=$GCC ;;
9067   esac
9068   if test "$_lt_dar_can_shared" = "yes"; then
9069     output_verbose_link_cmd=func_echo_all
9070     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9071     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9072     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}"
9073     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}"
9074
9075   else
9076   ld_shlibs=no
9077   fi
9078
9079       ;;
9080
9081     dgux*)
9082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083       hardcode_libdir_flag_spec='-L$libdir'
9084       hardcode_shlibpath_var=no
9085       ;;
9086
9087     freebsd1*)
9088       ld_shlibs=no
9089       ;;
9090
9091     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9092     # support.  Future versions do this automatically, but an explicit c++rt0.o
9093     # does not break anything, and helps significantly (at the cost of a little
9094     # extra space).
9095     freebsd2.2*)
9096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9097       hardcode_libdir_flag_spec='-R$libdir'
9098       hardcode_direct=yes
9099       hardcode_shlibpath_var=no
9100       ;;
9101
9102     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9103     freebsd2*)
9104       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105       hardcode_direct=yes
9106       hardcode_minus_L=yes
9107       hardcode_shlibpath_var=no
9108       ;;
9109
9110     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9111     freebsd* | dragonfly*)
9112       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9113       hardcode_libdir_flag_spec='-R$libdir'
9114       hardcode_direct=yes
9115       hardcode_shlibpath_var=no
9116       ;;
9117
9118     hpux9*)
9119       if test "$GCC" = yes; then
9120         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'
9121       else
9122         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'
9123       fi
9124       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125       hardcode_libdir_separator=:
9126       hardcode_direct=yes
9127
9128       # hardcode_minus_L: Not really in the search PATH,
9129       # but as the default location of the library.
9130       hardcode_minus_L=yes
9131       export_dynamic_flag_spec='${wl}-E'
9132       ;;
9133
9134     hpux10*)
9135       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9136         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137       else
9138         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9139       fi
9140       if test "$with_gnu_ld" = no; then
9141         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142         hardcode_libdir_flag_spec_ld='+b $libdir'
9143         hardcode_libdir_separator=:
9144         hardcode_direct=yes
9145         hardcode_direct_absolute=yes
9146         export_dynamic_flag_spec='${wl}-E'
9147         # hardcode_minus_L: Not really in the search PATH,
9148         # but as the default location of the library.
9149         hardcode_minus_L=yes
9150       fi
9151       ;;
9152
9153     hpux11*)
9154       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9155         case $host_cpu in
9156         hppa*64*)
9157           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9158           ;;
9159         ia64*)
9160           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9161           ;;
9162         *)
9163           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9164           ;;
9165         esac
9166       else
9167         case $host_cpu in
9168         hppa*64*)
9169           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9170           ;;
9171         ia64*)
9172           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9173           ;;
9174         *)
9175
9176           # Older versions of the 11.00 compiler do not understand -b yet
9177           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9178           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9179 $as_echo_n "checking if $CC understands -b... " >&6; }
9180 if ${lt_cv_prog_compiler__b+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   lt_cv_prog_compiler__b=no
9184    save_LDFLAGS="$LDFLAGS"
9185    LDFLAGS="$LDFLAGS -b"
9186    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9187    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9188      # The linker can only warn and ignore the option if not recognized
9189      # So say no if there are warnings
9190      if test -s conftest.err; then
9191        # Append any errors to the config.log.
9192        cat conftest.err 1>&5
9193        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9194        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9195        if diff conftest.exp conftest.er2 >/dev/null; then
9196          lt_cv_prog_compiler__b=yes
9197        fi
9198      else
9199        lt_cv_prog_compiler__b=yes
9200      fi
9201    fi
9202    $RM -r conftest*
9203    LDFLAGS="$save_LDFLAGS"
9204
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9207 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9208
9209 if test x"$lt_cv_prog_compiler__b" = xyes; then
9210     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9211 else
9212     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9213 fi
9214
9215           ;;
9216         esac
9217       fi
9218       if test "$with_gnu_ld" = no; then
9219         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220         hardcode_libdir_separator=:
9221
9222         case $host_cpu in
9223         hppa*64*|ia64*)
9224           hardcode_direct=no
9225           hardcode_shlibpath_var=no
9226           ;;
9227         *)
9228           hardcode_direct=yes
9229           hardcode_direct_absolute=yes
9230           export_dynamic_flag_spec='${wl}-E'
9231
9232           # hardcode_minus_L: Not really in the search PATH,
9233           # but as the default location of the library.
9234           hardcode_minus_L=yes
9235           ;;
9236         esac
9237       fi
9238       ;;
9239
9240     irix5* | irix6* | nonstopux*)
9241       if test "$GCC" = yes; then
9242         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'
9243         # Try to use the -exported_symbol ld option, if it does not
9244         # work, assume that -exports_file does not work either and
9245         # implicitly export all symbols.
9246         # This should be the same for all languages, so no per-tag cache variable.
9247         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9248 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9249 if ${lt_cv_irix_exported_symbol+:} false; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   save_LDFLAGS="$LDFLAGS"
9253            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9254            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h.  */
9256 int foo (void) { return 0; }
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259   lt_cv_irix_exported_symbol=yes
9260 else
9261   lt_cv_irix_exported_symbol=no
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext \
9264     conftest$ac_exeext conftest.$ac_ext
9265            LDFLAGS="$save_LDFLAGS"
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9268 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9269         if test "$lt_cv_irix_exported_symbol" = yes; then
9270           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'
9271         fi
9272       else
9273         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'
9274         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'
9275       fi
9276       archive_cmds_need_lc='no'
9277       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278       hardcode_libdir_separator=:
9279       inherit_rpath=yes
9280       link_all_deplibs=yes
9281       ;;
9282
9283     netbsd*)
9284       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9285         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9286       else
9287         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9288       fi
9289       hardcode_libdir_flag_spec='-R$libdir'
9290       hardcode_direct=yes
9291       hardcode_shlibpath_var=no
9292       ;;
9293
9294     newsos6)
9295       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296       hardcode_direct=yes
9297       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298       hardcode_libdir_separator=:
9299       hardcode_shlibpath_var=no
9300       ;;
9301
9302     *nto* | *qnx*)
9303       ;;
9304
9305     openbsd*)
9306       if test -f /usr/libexec/ld.so; then
9307         hardcode_direct=yes
9308         hardcode_shlibpath_var=no
9309         hardcode_direct_absolute=yes
9310         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9311           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9313           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9314           export_dynamic_flag_spec='${wl}-E'
9315         else
9316           case $host_os in
9317            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9318              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9319              hardcode_libdir_flag_spec='-R$libdir'
9320              ;;
9321            *)
9322              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9323              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324              ;;
9325           esac
9326         fi
9327       else
9328         ld_shlibs=no
9329       fi
9330       ;;
9331
9332     os2*)
9333       hardcode_libdir_flag_spec='-L$libdir'
9334       hardcode_minus_L=yes
9335       allow_undefined_flag=unsupported
9336       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'
9337       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9338       ;;
9339
9340     osf3*)
9341       if test "$GCC" = yes; then
9342         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9343         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'
9344       else
9345         allow_undefined_flag=' -expect_unresolved \*'
9346         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'
9347       fi
9348       archive_cmds_need_lc='no'
9349       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350       hardcode_libdir_separator=:
9351       ;;
9352
9353     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9354       if test "$GCC" = yes; then
9355         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9356         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'
9357         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358       else
9359         allow_undefined_flag=' -expect_unresolved \*'
9360         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'
9361         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~
9362         $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'
9363
9364         # Both c and cxx compiler support -rpath directly
9365         hardcode_libdir_flag_spec='-rpath $libdir'
9366       fi
9367       archive_cmds_need_lc='no'
9368       hardcode_libdir_separator=:
9369       ;;
9370
9371     solaris*)
9372       no_undefined_flag=' -z defs'
9373       if test "$GCC" = yes; then
9374         wlarc='${wl}'
9375         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9376         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9377           $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'
9378       else
9379         case `$CC -V 2>&1` in
9380         *"Compilers 5.0"*)
9381           wlarc=''
9382           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9384           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9385           ;;
9386         *)
9387           wlarc='${wl}'
9388           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9389           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9390           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9391           ;;
9392         esac
9393       fi
9394       hardcode_libdir_flag_spec='-R$libdir'
9395       hardcode_shlibpath_var=no
9396       case $host_os in
9397       solaris2.[0-5] | solaris2.[0-5].*) ;;
9398       *)
9399         # The compiler driver will combine and reorder linker options,
9400         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9401         # but is careful enough not to reorder.
9402         # Supported since Solaris 2.6 (maybe 2.5.1?)
9403         if test "$GCC" = yes; then
9404           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9405         else
9406           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9407         fi
9408         ;;
9409       esac
9410       link_all_deplibs=yes
9411       ;;
9412
9413     sunos4*)
9414       if test "x$host_vendor" = xsequent; then
9415         # Use $CC to link under sequent, because it throws in some extra .o
9416         # files that make .init and .fini sections work.
9417         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9418       else
9419         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9420       fi
9421       hardcode_libdir_flag_spec='-L$libdir'
9422       hardcode_direct=yes
9423       hardcode_minus_L=yes
9424       hardcode_shlibpath_var=no
9425       ;;
9426
9427     sysv4)
9428       case $host_vendor in
9429         sni)
9430           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431           hardcode_direct=yes # is this really true???
9432         ;;
9433         siemens)
9434           ## LD is ld it makes a PLAMLIB
9435           ## CC just makes a GrossModule.
9436           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9437           reload_cmds='$CC -r -o $output$reload_objs'
9438           hardcode_direct=no
9439         ;;
9440         motorola)
9441           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9443         ;;
9444       esac
9445       runpath_var='LD_RUN_PATH'
9446       hardcode_shlibpath_var=no
9447       ;;
9448
9449     sysv4.3*)
9450       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451       hardcode_shlibpath_var=no
9452       export_dynamic_flag_spec='-Bexport'
9453       ;;
9454
9455     sysv4*MP*)
9456       if test -d /usr/nec; then
9457         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458         hardcode_shlibpath_var=no
9459         runpath_var=LD_RUN_PATH
9460         hardcode_runpath_var=yes
9461         ld_shlibs=yes
9462       fi
9463       ;;
9464
9465     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9466       no_undefined_flag='${wl}-z,text'
9467       archive_cmds_need_lc=no
9468       hardcode_shlibpath_var=no
9469       runpath_var='LD_RUN_PATH'
9470
9471       if test "$GCC" = yes; then
9472         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9474       else
9475         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477       fi
9478       ;;
9479
9480     sysv5* | sco3.2v5* | sco5v6*)
9481       # Note: We can NOT use -z defs as we might desire, because we do not
9482       # link with -lc, and that would cause any symbols used from libc to
9483       # always be unresolved, which means just about no library would
9484       # ever link correctly.  If we're not using GNU ld we use -z text
9485       # though, which does catch some bad symbols but isn't as heavy-handed
9486       # as -z defs.
9487       no_undefined_flag='${wl}-z,text'
9488       allow_undefined_flag='${wl}-z,nodefs'
9489       archive_cmds_need_lc=no
9490       hardcode_shlibpath_var=no
9491       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9492       hardcode_libdir_separator=':'
9493       link_all_deplibs=yes
9494       export_dynamic_flag_spec='${wl}-Bexport'
9495       runpath_var='LD_RUN_PATH'
9496
9497       if test "$GCC" = yes; then
9498         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500       else
9501         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503       fi
9504       ;;
9505
9506     uts4*)
9507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508       hardcode_libdir_flag_spec='-L$libdir'
9509       hardcode_shlibpath_var=no
9510       ;;
9511
9512     *)
9513       ld_shlibs=no
9514       ;;
9515     esac
9516
9517     if test x$host_vendor = xsni; then
9518       case $host in
9519       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9520         export_dynamic_flag_spec='${wl}-Blargedynsym'
9521         ;;
9522       esac
9523     fi
9524   fi
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9527 $as_echo "$ld_shlibs" >&6; }
9528 test "$ld_shlibs" = no && can_build_shared=no
9529
9530 with_gnu_ld=$with_gnu_ld
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546 #
9547 # Do we need to explicitly link libc?
9548 #
9549 case "x$archive_cmds_need_lc" in
9550 x|xyes)
9551   # Assume -lc should be added
9552   archive_cmds_need_lc=yes
9553
9554   if test "$enable_shared" = yes && test "$GCC" = yes; then
9555     case $archive_cmds in
9556     *'~'*)
9557       # FIXME: we may have to deal with multi-command sequences.
9558       ;;
9559     '$CC '*)
9560       # Test whether the compiler implicitly links with -lc since on some
9561       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9562       # to ld, don't add -lc before -lgcc.
9563       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9564 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9565 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   $RM conftest*
9569         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9570
9571         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9572   (eval $ac_compile) 2>&5
9573   ac_status=$?
9574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9575   test $ac_status = 0; } 2>conftest.err; then
9576           soname=conftest
9577           lib=conftest
9578           libobjs=conftest.$ac_objext
9579           deplibs=
9580           wl=$lt_prog_compiler_wl
9581           pic_flag=$lt_prog_compiler_pic
9582           compiler_flags=-v
9583           linker_flags=-v
9584           verstring=
9585           output_objdir=.
9586           libname=conftest
9587           lt_save_allow_undefined_flag=$allow_undefined_flag
9588           allow_undefined_flag=
9589           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9590   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9591   ac_status=$?
9592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9593   test $ac_status = 0; }
9594           then
9595             lt_cv_archive_cmds_need_lc=no
9596           else
9597             lt_cv_archive_cmds_need_lc=yes
9598           fi
9599           allow_undefined_flag=$lt_save_allow_undefined_flag
9600         else
9601           cat conftest.err 1>&5
9602         fi
9603         $RM conftest*
9604
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9607 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9608       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9609       ;;
9610     esac
9611   fi
9612   ;;
9613 esac
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9772 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9773
9774 if test "$GCC" = yes; then
9775   case $host_os in
9776     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9777     *) lt_awk_arg="/^libraries:/" ;;
9778   esac
9779   case $host_os in
9780     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9781     *) lt_sed_strip_eq="s,=/,/,g" ;;
9782   esac
9783   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9784   case $lt_search_path_spec in
9785   *\;*)
9786     # if the path contains ";" then we assume it to be the separator
9787     # otherwise default to the standard path separator (i.e. ":") - it is
9788     # assumed that no part of a normal pathname contains ";" but that should
9789     # okay in the real world where ";" in dirpaths is itself problematic.
9790     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9791     ;;
9792   *)
9793     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9794     ;;
9795   esac
9796   # Ok, now we have the path, separated by spaces, we can step through it
9797   # and add multilib dir if necessary.
9798   lt_tmp_lt_search_path_spec=
9799   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9800   for lt_sys_path in $lt_search_path_spec; do
9801     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9802       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9803     else
9804       test -d "$lt_sys_path" && \
9805         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9806     fi
9807   done
9808   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9809 BEGIN {RS=" "; FS="/|\n";} {
9810   lt_foo="";
9811   lt_count=0;
9812   for (lt_i = NF; lt_i > 0; lt_i--) {
9813     if ($lt_i != "" && $lt_i != ".") {
9814       if ($lt_i == "..") {
9815         lt_count++;
9816       } else {
9817         if (lt_count == 0) {
9818           lt_foo="/" $lt_i lt_foo;
9819         } else {
9820           lt_count--;
9821         }
9822       }
9823     }
9824   }
9825   if (lt_foo != "") { lt_freq[lt_foo]++; }
9826   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9827 }'`
9828   # AWK program above erroneously prepends '/' to C:/dos/paths
9829   # for these hosts.
9830   case $host_os in
9831     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9832       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9833   esac
9834   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9835 else
9836   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9837 fi
9838 library_names_spec=
9839 libname_spec='lib$name'
9840 soname_spec=
9841 shrext_cmds=".so"
9842 postinstall_cmds=
9843 postuninstall_cmds=
9844 finish_cmds=
9845 finish_eval=
9846 shlibpath_var=
9847 shlibpath_overrides_runpath=unknown
9848 version_type=none
9849 dynamic_linker="$host_os ld.so"
9850 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9851 need_lib_prefix=unknown
9852 hardcode_into_libs=no
9853
9854 # when you set need_version to no, make sure it does not cause -set_version
9855 # flags to be left without arguments
9856 need_version=unknown
9857
9858 case $host_os in
9859 aix3*)
9860   version_type=linux
9861   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9862   shlibpath_var=LIBPATH
9863
9864   # AIX 3 has no versioning support, so we append a major version to the name.
9865   soname_spec='${libname}${release}${shared_ext}$major'
9866   ;;
9867
9868 aix[4-9]*)
9869   version_type=linux
9870   need_lib_prefix=no
9871   need_version=no
9872   hardcode_into_libs=yes
9873   if test "$host_cpu" = ia64; then
9874     # AIX 5 supports IA64
9875     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9876     shlibpath_var=LD_LIBRARY_PATH
9877   else
9878     # With GCC up to 2.95.x, collect2 would create an import file
9879     # for dependence libraries.  The import file would start with
9880     # the line `#! .'.  This would cause the generated library to
9881     # depend on `.', always an invalid library.  This was fixed in
9882     # development snapshots of GCC prior to 3.0.
9883     case $host_os in
9884       aix4 | aix4.[01] | aix4.[01].*)
9885       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9886            echo ' yes '
9887            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9888         :
9889       else
9890         can_build_shared=no
9891       fi
9892       ;;
9893     esac
9894     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9895     # soname into executable. Probably we can add versioning support to
9896     # collect2, so additional links can be useful in future.
9897     if test "$aix_use_runtimelinking" = yes; then
9898       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9899       # instead of lib<name>.a to let people know that these are not
9900       # typical AIX shared libraries.
9901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902     else
9903       # We preserve .a as extension for shared libraries through AIX4.2
9904       # and later when we are not doing run time linking.
9905       library_names_spec='${libname}${release}.a $libname.a'
9906       soname_spec='${libname}${release}${shared_ext}$major'
9907     fi
9908     shlibpath_var=LIBPATH
9909   fi
9910   ;;
9911
9912 amigaos*)
9913   case $host_cpu in
9914   powerpc)
9915     # Since July 2007 AmigaOS4 officially supports .so libraries.
9916     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918     ;;
9919   m68k)
9920     library_names_spec='$libname.ixlibrary $libname.a'
9921     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9922     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'
9923     ;;
9924   esac
9925   ;;
9926
9927 beos*)
9928   library_names_spec='${libname}${shared_ext}'
9929   dynamic_linker="$host_os ld.so"
9930   shlibpath_var=LIBRARY_PATH
9931   ;;
9932
9933 bsdi[45]*)
9934   version_type=linux
9935   need_version=no
9936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937   soname_spec='${libname}${release}${shared_ext}$major'
9938   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9939   shlibpath_var=LD_LIBRARY_PATH
9940   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9941   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9942   # the default ld.so.conf also contains /usr/contrib/lib and
9943   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9944   # libtool to hard-code these into programs
9945   ;;
9946
9947 cygwin* | mingw* | pw32* | cegcc*)
9948   version_type=windows
9949   shrext_cmds=".dll"
9950   need_version=no
9951   need_lib_prefix=no
9952
9953   case $GCC,$cc_basename in
9954   yes,*)
9955     # gcc
9956     library_names_spec='$libname.dll.a'
9957     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9958     postinstall_cmds='base_file=`basename \${file}`~
9959       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9960       dldir=$destdir/`dirname \$dlpath`~
9961       test -d \$dldir || mkdir -p \$dldir~
9962       $install_prog $dir/$dlname \$dldir/$dlname~
9963       chmod a+x \$dldir/$dlname~
9964       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9965         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9966       fi'
9967     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9968       dlpath=$dir/\$dldll~
9969        $RM \$dlpath'
9970     shlibpath_overrides_runpath=yes
9971
9972     case $host_os in
9973     cygwin*)
9974       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9975       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976
9977       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9978       ;;
9979     mingw* | cegcc*)
9980       # MinGW DLLs use traditional 'lib' prefix
9981       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9982       ;;
9983     pw32*)
9984       # pw32 DLLs use 'pw' prefix rather than 'lib'
9985       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9986       ;;
9987     esac
9988     dynamic_linker='Win32 ld.exe'
9989     ;;
9990
9991   *,cl*)
9992     # Native MSVC
9993     libname_spec='$name'
9994     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9995     library_names_spec='${libname}.dll.lib'
9996
9997     case $build_os in
9998     mingw*)
9999       sys_lib_search_path_spec=
10000       lt_save_ifs=$IFS
10001       IFS=';'
10002       for lt_path in $LIB
10003       do
10004         IFS=$lt_save_ifs
10005         # Let DOS variable expansion print the short 8.3 style file name.
10006         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10007         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10008       done
10009       IFS=$lt_save_ifs
10010       # Convert to MSYS style.
10011       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10012       ;;
10013     cygwin*)
10014       # Convert to unix form, then to dos form, then back to unix form
10015       # but this time dos style (no spaces!) so that the unix form looks
10016       # like /cygdrive/c/PROGRA~1:/cygdr...
10017       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10018       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10019       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10020       ;;
10021     *)
10022       sys_lib_search_path_spec="$LIB"
10023       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10024         # It is most probably a Windows format PATH.
10025         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10026       else
10027         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10028       fi
10029       # FIXME: find the short name or the path components, as spaces are
10030       # common. (e.g. "Program Files" -> "PROGRA~1")
10031       ;;
10032     esac
10033
10034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10035     postinstall_cmds='base_file=`basename \${file}`~
10036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10037       dldir=$destdir/`dirname \$dlpath`~
10038       test -d \$dldir || mkdir -p \$dldir~
10039       $install_prog $dir/$dlname \$dldir/$dlname'
10040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10041       dlpath=$dir/\$dldll~
10042        $RM \$dlpath'
10043     shlibpath_overrides_runpath=yes
10044     dynamic_linker='Win32 link.exe'
10045     ;;
10046
10047   *)
10048     # Assume MSVC wrapper
10049     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10050     dynamic_linker='Win32 ld.exe'
10051     ;;
10052   esac
10053   # FIXME: first we should search . and the directory the executable is in
10054   shlibpath_var=PATH
10055   ;;
10056
10057 darwin* | rhapsody*)
10058   dynamic_linker="$host_os dyld"
10059   version_type=darwin
10060   need_lib_prefix=no
10061   need_version=no
10062   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10063   soname_spec='${libname}${release}${major}$shared_ext'
10064   shlibpath_overrides_runpath=yes
10065   shlibpath_var=DYLD_LIBRARY_PATH
10066   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10067
10068   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10069   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10070   ;;
10071
10072 dgux*)
10073   version_type=linux
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   ;;
10080
10081 freebsd1*)
10082   dynamic_linker=no
10083   ;;
10084
10085 freebsd* | dragonfly*)
10086   # DragonFly does not have aout.  When/if they implement a new
10087   # versioning mechanism, adjust this.
10088   if test -x /usr/bin/objformat; then
10089     objformat=`/usr/bin/objformat`
10090   else
10091     case $host_os in
10092     freebsd[123]*) objformat=aout ;;
10093     *) objformat=elf ;;
10094     esac
10095   fi
10096   version_type=freebsd-$objformat
10097   case $version_type in
10098     freebsd-elf*)
10099       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10100       need_version=no
10101       need_lib_prefix=no
10102       ;;
10103     freebsd-*)
10104       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10105       need_version=yes
10106       ;;
10107   esac
10108   shlibpath_var=LD_LIBRARY_PATH
10109   case $host_os in
10110   freebsd2*)
10111     shlibpath_overrides_runpath=yes
10112     ;;
10113   freebsd3.[01]* | freebsdelf3.[01]*)
10114     shlibpath_overrides_runpath=yes
10115     hardcode_into_libs=yes
10116     ;;
10117   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10118   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10119     shlibpath_overrides_runpath=no
10120     hardcode_into_libs=yes
10121     ;;
10122   *) # from 4.6 on, and DragonFly
10123     shlibpath_overrides_runpath=yes
10124     hardcode_into_libs=yes
10125     ;;
10126   esac
10127   ;;
10128
10129 gnu*)
10130   version_type=linux
10131   need_lib_prefix=no
10132   need_version=no
10133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10134   soname_spec='${libname}${release}${shared_ext}$major'
10135   shlibpath_var=LD_LIBRARY_PATH
10136   hardcode_into_libs=yes
10137   ;;
10138
10139 haiku*)
10140   version_type=linux
10141   need_lib_prefix=no
10142   need_version=no
10143   dynamic_linker="$host_os runtime_loader"
10144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10145   soname_spec='${libname}${release}${shared_ext}$major'
10146   shlibpath_var=LIBRARY_PATH
10147   shlibpath_overrides_runpath=yes
10148   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10149   hardcode_into_libs=yes
10150   ;;
10151
10152 hpux9* | hpux10* | hpux11*)
10153   # Give a soname corresponding to the major version so that dld.sl refuses to
10154   # link against other versions.
10155   version_type=sunos
10156   need_lib_prefix=no
10157   need_version=no
10158   case $host_cpu in
10159   ia64*)
10160     shrext_cmds='.so'
10161     hardcode_into_libs=yes
10162     dynamic_linker="$host_os dld.so"
10163     shlibpath_var=LD_LIBRARY_PATH
10164     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166     soname_spec='${libname}${release}${shared_ext}$major'
10167     if test "X$HPUX_IA64_MODE" = X32; then
10168       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10169     else
10170       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10171     fi
10172     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10173     ;;
10174   hppa*64*)
10175     shrext_cmds='.sl'
10176     hardcode_into_libs=yes
10177     dynamic_linker="$host_os dld.sl"
10178     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10179     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181     soname_spec='${libname}${release}${shared_ext}$major'
10182     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10183     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10184     ;;
10185   *)
10186     shrext_cmds='.sl'
10187     dynamic_linker="$host_os dld.sl"
10188     shlibpath_var=SHLIB_PATH
10189     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191     soname_spec='${libname}${release}${shared_ext}$major'
10192     ;;
10193   esac
10194   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10195   postinstall_cmds='chmod 555 $lib'
10196   # or fails outright, so override atomically:
10197   install_override_mode=555
10198   ;;
10199
10200 interix[3-9]*)
10201   version_type=linux
10202   need_lib_prefix=no
10203   need_version=no
10204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10205   soname_spec='${libname}${release}${shared_ext}$major'
10206   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10207   shlibpath_var=LD_LIBRARY_PATH
10208   shlibpath_overrides_runpath=no
10209   hardcode_into_libs=yes
10210   ;;
10211
10212 irix5* | irix6* | nonstopux*)
10213   case $host_os in
10214     nonstopux*) version_type=nonstopux ;;
10215     *)
10216         if test "$lt_cv_prog_gnu_ld" = yes; then
10217                 version_type=linux
10218         else
10219                 version_type=irix
10220         fi ;;
10221   esac
10222   need_lib_prefix=no
10223   need_version=no
10224   soname_spec='${libname}${release}${shared_ext}$major'
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10226   case $host_os in
10227   irix5* | nonstopux*)
10228     libsuff= shlibsuff=
10229     ;;
10230   *)
10231     case $LD in # libtool.m4 will add one of these switches to LD
10232     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10233       libsuff= shlibsuff= libmagic=32-bit;;
10234     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10235       libsuff=32 shlibsuff=N32 libmagic=N32;;
10236     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10237       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10238     *) libsuff= shlibsuff= libmagic=never-match;;
10239     esac
10240     ;;
10241   esac
10242   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10243   shlibpath_overrides_runpath=no
10244   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10245   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10246   hardcode_into_libs=yes
10247   ;;
10248
10249 # No shared lib support for Linux oldld, aout, or coff.
10250 linux*oldld* | linux*aout* | linux*coff*)
10251   dynamic_linker=no
10252   ;;
10253
10254 # This must be Linux ELF.
10255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10256   version_type=linux
10257   need_lib_prefix=no
10258   need_version=no
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260   soname_spec='${libname}${release}${shared_ext}$major'
10261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10262   shlibpath_var=LD_LIBRARY_PATH
10263   shlibpath_overrides_runpath=no
10264
10265   # Some binutils ld are patched to set DT_RUNPATH
10266   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10267   $as_echo_n "(cached) " >&6
10268 else
10269   lt_cv_shlibpath_overrides_runpath=no
10270     save_LDFLAGS=$LDFLAGS
10271     save_libdir=$libdir
10272     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10273          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h.  */
10276
10277 int
10278 main ()
10279 {
10280
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10286   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10287   lt_cv_shlibpath_overrides_runpath=yes
10288 fi
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext \
10291     conftest$ac_exeext conftest.$ac_ext
10292     LDFLAGS=$save_LDFLAGS
10293     libdir=$save_libdir
10294
10295 fi
10296
10297   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10298
10299   # This implies no fast_install, which is unacceptable.
10300   # Some rework will be needed to allow for fast_install
10301   # before this can be enabled.
10302   hardcode_into_libs=yes
10303
10304   # Append ld.so.conf contents to the search path
10305   if test -f /etc/ld.so.conf; then
10306     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' ' '`
10307     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10308   fi
10309
10310   # We used to test for /lib/ld.so.1 and disable shared libraries on
10311   # powerpc, because MkLinux only supported shared libraries with the
10312   # GNU dynamic linker.  Since this was broken with cross compilers,
10313   # most powerpc-linux boxes support dynamic linking these days and
10314   # people can always --disable-shared, the test was removed, and we
10315   # assume the GNU/Linux dynamic linker is in use.
10316   dynamic_linker='GNU/Linux ld.so'
10317   ;;
10318
10319 netbsd*)
10320   version_type=sunos
10321   need_lib_prefix=no
10322   need_version=no
10323   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326     dynamic_linker='NetBSD (a.out) ld.so'
10327   else
10328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10329     soname_spec='${libname}${release}${shared_ext}$major'
10330     dynamic_linker='NetBSD ld.elf_so'
10331   fi
10332   shlibpath_var=LD_LIBRARY_PATH
10333   shlibpath_overrides_runpath=yes
10334   hardcode_into_libs=yes
10335   ;;
10336
10337 newsos6)
10338   version_type=linux
10339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340   shlibpath_var=LD_LIBRARY_PATH
10341   shlibpath_overrides_runpath=yes
10342   ;;
10343
10344 *nto* | *qnx*)
10345   version_type=qnx
10346   need_lib_prefix=no
10347   need_version=no
10348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349   soname_spec='${libname}${release}${shared_ext}$major'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   shlibpath_overrides_runpath=no
10352   hardcode_into_libs=yes
10353   dynamic_linker='ldqnx.so'
10354   ;;
10355
10356 openbsd*)
10357   version_type=sunos
10358   sys_lib_dlsearch_path_spec="/usr/lib"
10359   need_lib_prefix=no
10360   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10361   case $host_os in
10362     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10363     *)                          need_version=no  ;;
10364   esac
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10366   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10369     case $host_os in
10370       openbsd2.[89] | openbsd2.[89].*)
10371         shlibpath_overrides_runpath=no
10372         ;;
10373       *)
10374         shlibpath_overrides_runpath=yes
10375         ;;
10376       esac
10377   else
10378     shlibpath_overrides_runpath=yes
10379   fi
10380   ;;
10381
10382 os2*)
10383   libname_spec='$name'
10384   shrext_cmds=".dll"
10385   need_lib_prefix=no
10386   library_names_spec='$libname${shared_ext} $libname.a'
10387   dynamic_linker='OS/2 ld.exe'
10388   shlibpath_var=LIBPATH
10389   ;;
10390
10391 osf3* | osf4* | osf5*)
10392   version_type=osf
10393   need_lib_prefix=no
10394   need_version=no
10395   soname_spec='${libname}${release}${shared_ext}$major'
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10399   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10400   ;;
10401
10402 rdos*)
10403   dynamic_linker=no
10404   ;;
10405
10406 solaris*)
10407   version_type=linux
10408   need_lib_prefix=no
10409   need_version=no
10410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10411   soname_spec='${libname}${release}${shared_ext}$major'
10412   shlibpath_var=LD_LIBRARY_PATH
10413   shlibpath_overrides_runpath=yes
10414   hardcode_into_libs=yes
10415   # ldd complains unless libraries are executable
10416   postinstall_cmds='chmod +x $lib'
10417   ;;
10418
10419 sunos4*)
10420   version_type=sunos
10421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10422   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10423   shlibpath_var=LD_LIBRARY_PATH
10424   shlibpath_overrides_runpath=yes
10425   if test "$with_gnu_ld" = yes; then
10426     need_lib_prefix=no
10427   fi
10428   need_version=yes
10429   ;;
10430
10431 sysv4 | sysv4.3*)
10432   version_type=linux
10433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434   soname_spec='${libname}${release}${shared_ext}$major'
10435   shlibpath_var=LD_LIBRARY_PATH
10436   case $host_vendor in
10437     sni)
10438       shlibpath_overrides_runpath=no
10439       need_lib_prefix=no
10440       runpath_var=LD_RUN_PATH
10441       ;;
10442     siemens)
10443       need_lib_prefix=no
10444       ;;
10445     motorola)
10446       need_lib_prefix=no
10447       need_version=no
10448       shlibpath_overrides_runpath=no
10449       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10450       ;;
10451   esac
10452   ;;
10453
10454 sysv4*MP*)
10455   if test -d /usr/nec ;then
10456     version_type=linux
10457     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10458     soname_spec='$libname${shared_ext}.$major'
10459     shlibpath_var=LD_LIBRARY_PATH
10460   fi
10461   ;;
10462
10463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10464   version_type=freebsd-elf
10465   need_lib_prefix=no
10466   need_version=no
10467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10468   soname_spec='${libname}${release}${shared_ext}$major'
10469   shlibpath_var=LD_LIBRARY_PATH
10470   shlibpath_overrides_runpath=yes
10471   hardcode_into_libs=yes
10472   if test "$with_gnu_ld" = yes; then
10473     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10474   else
10475     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10476     case $host_os in
10477       sco3.2v5*)
10478         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10479         ;;
10480     esac
10481   fi
10482   sys_lib_dlsearch_path_spec='/usr/lib'
10483   ;;
10484
10485 tpf*)
10486   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10487   version_type=linux
10488   need_lib_prefix=no
10489   need_version=no
10490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491   shlibpath_var=LD_LIBRARY_PATH
10492   shlibpath_overrides_runpath=no
10493   hardcode_into_libs=yes
10494   ;;
10495
10496 uts4*)
10497   version_type=linux
10498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499   soname_spec='${libname}${release}${shared_ext}$major'
10500   shlibpath_var=LD_LIBRARY_PATH
10501   ;;
10502
10503 *)
10504   dynamic_linker=no
10505   ;;
10506 esac
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10508 $as_echo "$dynamic_linker" >&6; }
10509 test "$dynamic_linker" = no && can_build_shared=no
10510
10511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10512 if test "$GCC" = yes; then
10513   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10514 fi
10515
10516 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10517   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10518 fi
10519 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10520   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10521 fi
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10616 hardcode_action=
10617 if test -n "$hardcode_libdir_flag_spec" ||
10618    test -n "$runpath_var" ||
10619    test "X$hardcode_automatic" = "Xyes" ; then
10620
10621   # We can hardcode non-existent directories.
10622   if test "$hardcode_direct" != no &&
10623      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10624      # have to relink, otherwise we might link with an installed library
10625      # when we should be linking with a yet-to-be-installed one
10626      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10627      test "$hardcode_minus_L" != no; then
10628     # Linking always hardcodes the temporary library directory.
10629     hardcode_action=relink
10630   else
10631     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10632     hardcode_action=immediate
10633   fi
10634 else
10635   # We cannot hardcode anything, or else we can only hardcode existing
10636   # directories.
10637   hardcode_action=unsupported
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10640 $as_echo "$hardcode_action" >&6; }
10641
10642 if test "$hardcode_action" = relink ||
10643    test "$inherit_rpath" = yes; then
10644   # Fast installation is not supported
10645   enable_fast_install=no
10646 elif test "$shlibpath_overrides_runpath" = yes ||
10647      test "$enable_shared" = no; then
10648   # Fast installation is not necessary
10649   enable_fast_install=needless
10650 fi
10651
10652
10653
10654
10655
10656
10657   if test "x$enable_dlopen" != xyes; then
10658   enable_dlopen=unknown
10659   enable_dlopen_self=unknown
10660   enable_dlopen_self_static=unknown
10661 else
10662   lt_cv_dlopen=no
10663   lt_cv_dlopen_libs=
10664
10665   case $host_os in
10666   beos*)
10667     lt_cv_dlopen="load_add_on"
10668     lt_cv_dlopen_libs=
10669     lt_cv_dlopen_self=yes
10670     ;;
10671
10672   mingw* | pw32* | cegcc*)
10673     lt_cv_dlopen="LoadLibrary"
10674     lt_cv_dlopen_libs=
10675     ;;
10676
10677   cygwin*)
10678     lt_cv_dlopen="dlopen"
10679     lt_cv_dlopen_libs=
10680     ;;
10681
10682   darwin*)
10683   # if libdl is installed we need to link against it
10684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10686 if ${ac_cv_lib_dl_dlopen+:} false; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldl  $LIBS"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h.  */
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695    Use char because int might match the return type of a GCC
10696    builtin and then its argument prototype would still apply.  */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char dlopen ();
10701 int
10702 main ()
10703 {
10704 return dlopen ();
10705   ;
10706   return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710   ac_cv_lib_dl_dlopen=yes
10711 else
10712   ac_cv_lib_dl_dlopen=no
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715     conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10720 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10721   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10722 else
10723
10724     lt_cv_dlopen="dyld"
10725     lt_cv_dlopen_libs=
10726     lt_cv_dlopen_self=yes
10727
10728 fi
10729
10730     ;;
10731
10732   *)
10733     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10734 if test "x$ac_cv_func_shl_load" = xyes; then :
10735   lt_cv_dlopen="shl_load"
10736 else
10737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10738 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10739 if ${ac_cv_lib_dld_shl_load+:} false; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-ldld  $LIBS"
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h.  */
10746
10747 /* Override any GCC internal prototype to avoid an error.
10748    Use char because int might match the return type of a GCC
10749    builtin and then its argument prototype would still apply.  */
10750 #ifdef __cplusplus
10751 extern "C"
10752 #endif
10753 char shl_load ();
10754 int
10755 main ()
10756 {
10757 return shl_load ();
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763   ac_cv_lib_dld_shl_load=yes
10764 else
10765   ac_cv_lib_dld_shl_load=no
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext \
10768     conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10772 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10773 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10774   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10775 else
10776   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10777 if test "x$ac_cv_func_dlopen" = xyes; then :
10778   lt_cv_dlopen="dlopen"
10779 else
10780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10782 if ${ac_cv_lib_dl_dlopen+:} false; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   ac_check_lib_save_LIBS=$LIBS
10786 LIBS="-ldl  $LIBS"
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789
10790 /* Override any GCC internal prototype to avoid an error.
10791    Use char because int might match the return type of a GCC
10792    builtin and then its argument prototype would still apply.  */
10793 #ifdef __cplusplus
10794 extern "C"
10795 #endif
10796 char dlopen ();
10797 int
10798 main ()
10799 {
10800 return dlopen ();
10801   ;
10802   return 0;
10803 }
10804 _ACEOF
10805 if ac_fn_c_try_link "$LINENO"; then :
10806   ac_cv_lib_dl_dlopen=yes
10807 else
10808   ac_cv_lib_dl_dlopen=no
10809 fi
10810 rm -f core conftest.err conftest.$ac_objext \
10811     conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10813 fi
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10815 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10816 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10817   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10818 else
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10820 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10821 if ${ac_cv_lib_svld_dlopen+:} false; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-lsvld  $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h.  */
10828
10829 /* Override any GCC internal prototype to avoid an error.
10830    Use char because int might match the return type of a GCC
10831    builtin and then its argument prototype would still apply.  */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dlopen ();
10836 int
10837 main ()
10838 {
10839 return dlopen ();
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845   ac_cv_lib_svld_dlopen=yes
10846 else
10847   ac_cv_lib_svld_dlopen=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850     conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10854 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10855 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10856   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10857 else
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10859 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10860 if ${ac_cv_lib_dld_dld_link+:} false; then :
10861   $as_echo_n "(cached) " >&6
10862 else
10863   ac_check_lib_save_LIBS=$LIBS
10864 LIBS="-ldld  $LIBS"
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h.  */
10867
10868 /* Override any GCC internal prototype to avoid an error.
10869    Use char because int might match the return type of a GCC
10870    builtin and then its argument prototype would still apply.  */
10871 #ifdef __cplusplus
10872 extern "C"
10873 #endif
10874 char dld_link ();
10875 int
10876 main ()
10877 {
10878 return dld_link ();
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884   ac_cv_lib_dld_dld_link=yes
10885 else
10886   ac_cv_lib_dld_dld_link=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext \
10889     conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10891 fi
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10893 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10894 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10895   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10896 fi
10897
10898
10899 fi
10900
10901
10902 fi
10903
10904
10905 fi
10906
10907
10908 fi
10909
10910
10911 fi
10912
10913     ;;
10914   esac
10915
10916   if test "x$lt_cv_dlopen" != xno; then
10917     enable_dlopen=yes
10918   else
10919     enable_dlopen=no
10920   fi
10921
10922   case $lt_cv_dlopen in
10923   dlopen)
10924     save_CPPFLAGS="$CPPFLAGS"
10925     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10926
10927     save_LDFLAGS="$LDFLAGS"
10928     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10929
10930     save_LIBS="$LIBS"
10931     LIBS="$lt_cv_dlopen_libs $LIBS"
10932
10933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10934 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10935 if ${lt_cv_dlopen_self+:} false; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938           if test "$cross_compiling" = yes; then :
10939   lt_cv_dlopen_self=cross
10940 else
10941   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10942   lt_status=$lt_dlunknown
10943   cat > conftest.$ac_ext <<_LT_EOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10946
10947 #if HAVE_DLFCN_H
10948 #include <dlfcn.h>
10949 #endif
10950
10951 #include <stdio.h>
10952
10953 #ifdef RTLD_GLOBAL
10954 #  define LT_DLGLOBAL           RTLD_GLOBAL
10955 #else
10956 #  ifdef DL_GLOBAL
10957 #    define LT_DLGLOBAL         DL_GLOBAL
10958 #  else
10959 #    define LT_DLGLOBAL         0
10960 #  endif
10961 #endif
10962
10963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10964    find out it does not work in some platform. */
10965 #ifndef LT_DLLAZY_OR_NOW
10966 #  ifdef RTLD_LAZY
10967 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10968 #  else
10969 #    ifdef DL_LAZY
10970 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10971 #    else
10972 #      ifdef RTLD_NOW
10973 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10974 #      else
10975 #        ifdef DL_NOW
10976 #          define LT_DLLAZY_OR_NOW      DL_NOW
10977 #        else
10978 #          define LT_DLLAZY_OR_NOW      0
10979 #        endif
10980 #      endif
10981 #    endif
10982 #  endif
10983 #endif
10984
10985 /* When -fvisbility=hidden is used, assume the code has been annotated
10986    correspondingly for the symbols needed.  */
10987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10988 int fnord () __attribute__((visibility("default")));
10989 #endif
10990
10991 int fnord () { return 42; }
10992 int main ()
10993 {
10994   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10995   int status = $lt_dlunknown;
10996
10997   if (self)
10998     {
10999       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11000       else
11001         {
11002           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11003           else puts (dlerror ());
11004         }
11005       /* dlclose (self); */
11006     }
11007   else
11008     puts (dlerror ());
11009
11010   return status;
11011 }
11012 _LT_EOF
11013   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11014   (eval $ac_link) 2>&5
11015   ac_status=$?
11016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11017   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11018     (./conftest; exit; ) >&5 2>/dev/null
11019     lt_status=$?
11020     case x$lt_status in
11021       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11022       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11023       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11024     esac
11025   else :
11026     # compilation failed
11027     lt_cv_dlopen_self=no
11028   fi
11029 fi
11030 rm -fr conftest*
11031
11032
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11035 $as_echo "$lt_cv_dlopen_self" >&6; }
11036
11037     if test "x$lt_cv_dlopen_self" = xyes; then
11038       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11039       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11040 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11041 if ${lt_cv_dlopen_self_static+:} false; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044           if test "$cross_compiling" = yes; then :
11045   lt_cv_dlopen_self_static=cross
11046 else
11047   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11048   lt_status=$lt_dlunknown
11049   cat > conftest.$ac_ext <<_LT_EOF
11050 #line $LINENO "configure"
11051 #include "confdefs.h"
11052
11053 #if HAVE_DLFCN_H
11054 #include <dlfcn.h>
11055 #endif
11056
11057 #include <stdio.h>
11058
11059 #ifdef RTLD_GLOBAL
11060 #  define LT_DLGLOBAL           RTLD_GLOBAL
11061 #else
11062 #  ifdef DL_GLOBAL
11063 #    define LT_DLGLOBAL         DL_GLOBAL
11064 #  else
11065 #    define LT_DLGLOBAL         0
11066 #  endif
11067 #endif
11068
11069 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11070    find out it does not work in some platform. */
11071 #ifndef LT_DLLAZY_OR_NOW
11072 #  ifdef RTLD_LAZY
11073 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11074 #  else
11075 #    ifdef DL_LAZY
11076 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11077 #    else
11078 #      ifdef RTLD_NOW
11079 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11080 #      else
11081 #        ifdef DL_NOW
11082 #          define LT_DLLAZY_OR_NOW      DL_NOW
11083 #        else
11084 #          define LT_DLLAZY_OR_NOW      0
11085 #        endif
11086 #      endif
11087 #    endif
11088 #  endif
11089 #endif
11090
11091 /* When -fvisbility=hidden is used, assume the code has been annotated
11092    correspondingly for the symbols needed.  */
11093 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11094 int fnord () __attribute__((visibility("default")));
11095 #endif
11096
11097 int fnord () { return 42; }
11098 int main ()
11099 {
11100   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101   int status = $lt_dlunknown;
11102
11103   if (self)
11104     {
11105       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11106       else
11107         {
11108           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11109           else puts (dlerror ());
11110         }
11111       /* dlclose (self); */
11112     }
11113   else
11114     puts (dlerror ());
11115
11116   return status;
11117 }
11118 _LT_EOF
11119   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11120   (eval $ac_link) 2>&5
11121   ac_status=$?
11122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11124     (./conftest; exit; ) >&5 2>/dev/null
11125     lt_status=$?
11126     case x$lt_status in
11127       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11128       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11129       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11130     esac
11131   else :
11132     # compilation failed
11133     lt_cv_dlopen_self_static=no
11134   fi
11135 fi
11136 rm -fr conftest*
11137
11138
11139 fi
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11141 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11142     fi
11143
11144     CPPFLAGS="$save_CPPFLAGS"
11145     LDFLAGS="$save_LDFLAGS"
11146     LIBS="$save_LIBS"
11147     ;;
11148   esac
11149
11150   case $lt_cv_dlopen_self in
11151   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11152   *) enable_dlopen_self=unknown ;;
11153   esac
11154
11155   case $lt_cv_dlopen_self_static in
11156   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11157   *) enable_dlopen_self_static=unknown ;;
11158   esac
11159 fi
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177 striplib=
11178 old_striplib=
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11180 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11181 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11182   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11183   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186 else
11187 # FIXME - insert some real tests, host_os isn't really good enough
11188   case $host_os in
11189   darwin*)
11190     if test -n "$STRIP" ; then
11191       striplib="$STRIP -x"
11192       old_striplib="$STRIP -S"
11193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194 $as_echo "yes" >&6; }
11195     else
11196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11198     fi
11199     ;;
11200   *)
11201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202 $as_echo "no" >&6; }
11203     ;;
11204   esac
11205 fi
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218   # Report which library types will actually be built
11219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11220 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11222 $as_echo "$can_build_shared" >&6; }
11223
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11225 $as_echo_n "checking whether to build shared libraries... " >&6; }
11226   test "$can_build_shared" = "no" && enable_shared=no
11227
11228   # On AIX, shared libraries and static libraries use the same namespace, and
11229   # are all built from PIC.
11230   case $host_os in
11231   aix3*)
11232     test "$enable_shared" = yes && enable_static=no
11233     if test -n "$RANLIB"; then
11234       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11235       postinstall_cmds='$RANLIB $lib'
11236     fi
11237     ;;
11238
11239   aix[4-9]*)
11240     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11241       test "$enable_shared" = yes && enable_static=no
11242     fi
11243     ;;
11244   esac
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11246 $as_echo "$enable_shared" >&6; }
11247
11248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11249 $as_echo_n "checking whether to build static libraries... " >&6; }
11250   # Make sure either enable_shared or enable_static is yes.
11251   test "$enable_shared" = yes || enable_static=yes
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11253 $as_echo "$enable_static" >&6; }
11254
11255
11256
11257
11258 fi
11259 ac_ext=c
11260 ac_cpp='$CPP $CPPFLAGS'
11261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11264
11265 CC="$lt_save_CC"
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279         ac_config_commands="$ac_config_commands libtool"
11280
11281
11282
11283
11284 # Only expand once:
11285
11286
11287
11288
11289
11290 # Checks for libraries.
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lapr-1" >&5
11292 $as_echo_n "checking for main in -lapr-1... " >&6; }
11293 if ${ac_cv_lib_apr_1_main+:} false; then :
11294   $as_echo_n "(cached) " >&6
11295 else
11296   ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-lapr-1  $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h.  */
11300
11301
11302 int
11303 main ()
11304 {
11305 return main ();
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"; then :
11311   ac_cv_lib_apr_1_main=yes
11312 else
11313   ac_cv_lib_apr_1_main=no
11314 fi
11315 rm -f core conftest.err conftest.$ac_objext \
11316     conftest$ac_exeext conftest.$ac_ext
11317 LIBS=$ac_check_lib_save_LIBS
11318 fi
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_1_main" >&5
11320 $as_echo "$ac_cv_lib_apr_1_main" >&6; }
11321 if test "x$ac_cv_lib_apr_1_main" = xyes; then :
11322   cat >>confdefs.h <<_ACEOF
11323 #define HAVE_LIBAPR_1 1
11324 _ACEOF
11325
11326   LIBS="-lapr-1 $LIBS"
11327
11328 fi
11329
11330
11331
11332 # Check whether --with-apache-header was given.
11333 if test "${with_apache_header+set}" = set; then :
11334   withval=$with_apache_header;
11335 fi
11336
11337 if test "x$with_apache_header" = "xyes"; then
11338     as_fn_error $? "
11339 Please specify the --with-apache-header option. And, please specify the place of the header file.
11340
11341 " "$LINENO" 5
11342 fi
11343
11344
11345 # Check whether --with-apxs was given.
11346 if test "${with_apxs+set}" = set; then :
11347   withval=$with_apxs;
11348 fi
11349
11350 if test "x$with_apxs" = "x" ; then
11351   APXS=""
11352 fi
11353 if test "x$with_apxs" = "xyes" ; then
11354     as_fn_error $? "
11355 Please specify the --with-apxs option. And, please specify the place of the apxs program.
11356 " "$LINENO" 5
11357 fi
11358
11359
11360 # Check whether --with-apr-config was given.
11361 if test "${with_apr_config+set}" = set; then :
11362   withval=$with_apr_config;
11363 fi
11364
11365 if test "x$with_apr_config" = "xyes" ; then
11366     as_fn_error $? "
11367 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
11368 " "$LINENO" 5
11369 fi
11370
11371
11372 # Check whether --with-apu-config was given.
11373 if test "${with_apu_config+set}" = set; then :
11374   withval=$with_apu_config;
11375 fi
11376
11377 if test "x$with_apu_config" = "xyes" ; then
11378     as_fn_error $? "
11379 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
11380 " "$LINENO" 5
11381 fi
11382
11383
11384 # Check whether --with-pcre-config was given.
11385 if test "${with_pcre_config+set}" = set; then :
11386   withval=$with_pcre_config;
11387 fi
11388
11389 if test "x$with_pcre_config" = "xyes" ; then
11390     as_fn_error $? "
11391 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
11392 " "$LINENO" 5
11393 fi
11394
11395
11396
11397 # Check whether --enable-img-conv-f was given.
11398 if test "${enable_img_conv_f+set}" = set; then :
11399   enableval=$enable_img_conv_f;
11400 fi
11401
11402 if test "x$enable_img_conv_f" = "xyes"; then
11403   QDEFS=""
11404 else
11405   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
11406 fi
11407
11408
11409 # Check whether --enable-memcache-cookie was given.
11410 if test "${enable_memcache_cookie+set}" = set; then :
11411   enableval=$enable_memcache_cookie;
11412 fi
11413
11414 # Check whether --enable-memcached-static was given.
11415 if test "${enable_memcached_static+set}" = set; then :
11416   enableval=$enable_memcached_static;
11417 fi
11418
11419
11420 # Check whether --with-memcached-header was given.
11421 if test "${with_memcached_header+set}" = set; then :
11422   withval=$with_memcached_header;
11423 fi
11424
11425
11426 # Check whether --with-memcached-lib-dir was given.
11427 if test "${with_memcached_lib_dir+set}" = set; then :
11428   withval=$with_memcached_lib_dir;
11429 fi
11430
11431 if test "x$enable_memcache_cookie" = "xyes" ; then
11432         if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
11433     as_fn_error $? "
11434 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
11435 " "$LINENO" 5
11436   fi
11437   if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
11438     as_fn_error $? "
11439 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
11440 " "$LINENO" 5
11441   fi
11442   if test "x$enable_memcached_static" = "xyes" ; then
11443     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
11444     MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
11445   else
11446     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
11447     MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
11448   fi
11449 else
11450         MEMCACHE_COOKIE_DEFS=""
11451   MEMCACHE_COOKIE_LIBS=""
11452 fi
11453 # Check whether --enable-mysql-cookie was given.
11454 if test "${enable_mysql_cookie+set}" = set; then :
11455   enableval=$enable_mysql_cookie;
11456 fi
11457
11458
11459 # Check whether --with-mysql-header was given.
11460 if test "${with_mysql_header+set}" = set; then :
11461   withval=$with_mysql_header;
11462 fi
11463
11464
11465 # Check whether --with-mysql-lib-dir was given.
11466 if test "${with_mysql_lib_dir+set}" = set; then :
11467   withval=$with_mysql_lib_dir;
11468 fi
11469
11470 if test "x$enable_mysql_cookie" = "xyes"; then
11471         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
11472     as_fn_error $? "
11473 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
11474 " "$LINENO" 5
11475   fi
11476   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
11477     as_fn_error $? "
11478 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
11479 " "$LINENO" 5
11480   fi
11481   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
11482   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
11483 else
11484         MYSQL_COOKIE_DEFS=""
11485   MYSQL_COOKIE_LIBS=""
11486 fi
11487
11488 OPENSSL_PATH=""
11489
11490 # Check whether --with-openssl was given.
11491 if test "${with_openssl+set}" = set; then :
11492   withval=$with_openssl;
11493   if test "$withval" = "yes"; then
11494     as_fn_error $? "--with-openssl requires a path" "$LINENO" 5
11495   else
11496     openssl_prefix=$withval
11497
11498     if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
11499       as_fn_error $? "'--with-openssl requires a path to a directory'" "$LINENO" 5
11500     fi
11501
11502     CPPFLAGS="${CPPFLAGS} -I${openssl_prefix}/include"
11503     LDFLAGS="${LDFLAGS} -L${openssl_prefix}/lib"
11504     LDFLAGS="${LDFLAGS} -R${openssl_prefix}/lib"
11505     OPENSSL_PATH="--with-openssl=${openssl_prefix}"
11506   fi
11507
11508 fi
11509
11510
11511 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
11512 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
11513
11514 else
11515   as_fn_error $? "We require OpenSSL; try --with-openssl" "$LINENO" 5
11516 fi
11517
11518
11519
11520 # Check whether --enable-dump-log was given.
11521 if test "${enable_dump_log+set}" = set; then :
11522   enableval=$enable_dump_log;
11523 fi
11524
11525 if test "x$enable_dump_log" = "xyes"; then
11526   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
11527 else
11528     if test "x$enable_dump_log" != "x" ; then
11529         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
11530     fi
11531 fi
11532
11533
11534 if test "x$with_apxs" = "x" ; then
11535   # Extract the first word of "apxs2", so it can be a program name with args.
11536 set dummy apxs2; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if ${ac_cv_path_APXS2+:} false; then :
11540   $as_echo_n "(cached) " >&6
11541 else
11542   case $APXS2 in
11543   [\\/]* | ?:[\\/]*)
11544   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
11545   ;;
11546   *)
11547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
11549 for as_dir in $as_dummy
11550 do
11551   IFS=$as_save_IFS
11552   test -z "$as_dir" && as_dir=.
11553     for ac_exec_ext in '' $ac_executable_extensions; do
11554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11555     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
11556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557     break 2
11558   fi
11559 done
11560   done
11561 IFS=$as_save_IFS
11562
11563   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
11564   ;;
11565 esac
11566 fi
11567 APXS2=$ac_cv_path_APXS2
11568 if test -n "$APXS2"; then
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS2" >&5
11570 $as_echo "$APXS2" >&6; }
11571 else
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574 fi
11575
11576
11577   if test "x$APXS2" = "xno"; then
11578     # Extract the first word of "apxs", so it can be a program name with args.
11579 set dummy apxs; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_path_APXS+:} false; then :
11583   $as_echo_n "(cached) " >&6
11584 else
11585   case $APXS in
11586   [\\/]* | ?:[\\/]*)
11587   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
11588   ;;
11589   *)
11590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
11592 for as_dir in $as_dummy
11593 do
11594   IFS=$as_save_IFS
11595   test -z "$as_dir" && as_dir=.
11596     for ac_exec_ext in '' $ac_executable_extensions; do
11597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
11599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600     break 2
11601   fi
11602 done
11603   done
11604 IFS=$as_save_IFS
11605
11606   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
11607   ;;
11608 esac
11609 fi
11610 APXS=$ac_cv_path_APXS
11611 if test -n "$APXS"; then
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5
11613 $as_echo "$APXS" >&6; }
11614 else
11615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 fi
11618
11619
11620     if test "x$APXS" = "xno" ; then
11621       as_fn_error $? "apxs not found." "$LINENO" 5
11622     fi
11623   else
11624     APXS="$APXS2"
11625   fi
11626 fi
11627 if test "x$with_apxs" != "x" ; then
11628   APXS=$with_apxs
11629 fi
11630
11631 # Extract the first word of "libtool", so it can be a program name with args.
11632 set dummy libtool; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if ${ac_cv_path_LIBTOOL+:} false; then :
11636   $as_echo_n "(cached) " >&6
11637 else
11638   case $LIBTOOL in
11639   [\\/]* | ?:[\\/]*)
11640   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
11641   ;;
11642   *)
11643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
11645 for as_dir in $as_dummy
11646 do
11647   IFS=$as_save_IFS
11648   test -z "$as_dir" && as_dir=.
11649     for ac_exec_ext in '' $ac_executable_extensions; do
11650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11651     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
11652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653     break 2
11654   fi
11655 done
11656   done
11657 IFS=$as_save_IFS
11658
11659   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
11660   ;;
11661 esac
11662 fi
11663 LIBTOOL=$ac_cv_path_LIBTOOL
11664 if test -n "$LIBTOOL"; then
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
11666 $as_echo "$LIBTOOL" >&6; }
11667 else
11668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11670 fi
11671
11672
11673 if test "x$LIBTOOL" = "xno"; then
11674     as_fn_error $? "libtool not found." "$LINENO" 5
11675 fi
11676
11677
11678 # Extract the first word of "Wand-config", so it can be a program name with args.
11679 set dummy Wand-config; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if ${ac_cv_path_WAND_CONFIG+:} false; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   case $WAND_CONFIG in
11686   [\\/]* | ?:[\\/]*)
11687   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
11688   ;;
11689   *)
11690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
11692 for as_dir in $as_dummy
11693 do
11694   IFS=$as_save_IFS
11695   test -z "$as_dir" && as_dir=.
11696     for ac_exec_ext in '' $ac_executable_extensions; do
11697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700     break 2
11701   fi
11702 done
11703   done
11704 IFS=$as_save_IFS
11705
11706   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
11707   ;;
11708 esac
11709 fi
11710 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
11711 if test -n "$WAND_CONFIG"; then
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAND_CONFIG" >&5
11713 $as_echo "$WAND_CONFIG" >&6; }
11714 else
11715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11717 fi
11718
11719
11720 if test "x$WAND_CONFIG" = "xno" ; then
11721     as_fn_error $? "wand-config not found." "$LINENO" 5
11722 fi
11723
11724 if test "x$with_apr_config" = "x" ; then
11725   # Extract the first word of "apr-config", so it can be a program name with args.
11726 set dummy apr-config; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if ${ac_cv_path_APR_CONFIG+:} false; then :
11730   $as_echo_n "(cached) " >&6
11731 else
11732   case $APR_CONFIG in
11733   [\\/]* | ?:[\\/]*)
11734   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
11735   ;;
11736   *)
11737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
11739 for as_dir in $as_dummy
11740 do
11741   IFS=$as_save_IFS
11742   test -z "$as_dir" && as_dir=.
11743     for ac_exec_ext in '' $ac_executable_extensions; do
11744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11745     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747     break 2
11748   fi
11749 done
11750   done
11751 IFS=$as_save_IFS
11752
11753   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
11754   ;;
11755 esac
11756 fi
11757 APR_CONFIG=$ac_cv_path_APR_CONFIG
11758 if test -n "$APR_CONFIG"; then
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_CONFIG" >&5
11760 $as_echo "$APR_CONFIG" >&6; }
11761 else
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765
11766
11767   if test "x$APR_CONFIG" = "xno" ; then
11768     # Extract the first word of "apr-1-config", so it can be a program name with args.
11769 set dummy apr-1-config; ac_word=$2
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11771 $as_echo_n "checking for $ac_word... " >&6; }
11772 if ${ac_cv_path_APR_1_CONFIG+:} false; then :
11773   $as_echo_n "(cached) " >&6
11774 else
11775   case $APR_1_CONFIG in
11776   [\\/]* | ?:[\\/]*)
11777   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
11778   ;;
11779   *)
11780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
11782 for as_dir in $as_dummy
11783 do
11784   IFS=$as_save_IFS
11785   test -z "$as_dir" && as_dir=.
11786     for ac_exec_ext in '' $ac_executable_extensions; do
11787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11788     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790     break 2
11791   fi
11792 done
11793   done
11794 IFS=$as_save_IFS
11795
11796   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
11797   ;;
11798 esac
11799 fi
11800 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
11801 if test -n "$APR_1_CONFIG"; then
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APR_1_CONFIG" >&5
11803 $as_echo "$APR_1_CONFIG" >&6; }
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808
11809
11810     if test "x$APR_1_CONFIG" = "xno" ; then
11811       as_fn_error $? "apr-config and apr-1-config not found." "$LINENO" 5
11812     else
11813       APR_CONFIG="$APR_1_CONFIG"
11814     fi
11815   fi
11816 fi
11817 if test "x$with_apr_config" != "x" ; then
11818   APR_CONFIG=$with_apr_config
11819 fi
11820 if test "x$with_apu_config" = "x" ; then
11821   # Extract the first word of "apu-config", so it can be a program name with args.
11822 set dummy apu-config; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if ${ac_cv_path_APU_CONFIG+:} false; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828   case $APU_CONFIG in
11829   [\\/]* | ?:[\\/]*)
11830   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
11831   ;;
11832   *)
11833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
11835 for as_dir in $as_dummy
11836 do
11837   IFS=$as_save_IFS
11838   test -z "$as_dir" && as_dir=.
11839     for ac_exec_ext in '' $ac_executable_extensions; do
11840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11841     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11843     break 2
11844   fi
11845 done
11846   done
11847 IFS=$as_save_IFS
11848
11849   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
11850   ;;
11851 esac
11852 fi
11853 APU_CONFIG=$ac_cv_path_APU_CONFIG
11854 if test -n "$APU_CONFIG"; then
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_CONFIG" >&5
11856 $as_echo "$APU_CONFIG" >&6; }
11857 else
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11860 fi
11861
11862
11863   if test "x$APU_CONFIG" = "xno" ; then
11864     # Extract the first word of "apu-1-config", so it can be a program name with args.
11865 set dummy apu-1-config; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_path_APU_1_CONFIG+:} false; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   case $APU_1_CONFIG in
11872   [\\/]* | ?:[\\/]*)
11873   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
11874   ;;
11875   *)
11876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
11878 for as_dir in $as_dummy
11879 do
11880   IFS=$as_save_IFS
11881   test -z "$as_dir" && as_dir=.
11882     for ac_exec_ext in '' $ac_executable_extensions; do
11883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11884     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886     break 2
11887   fi
11888 done
11889   done
11890 IFS=$as_save_IFS
11891
11892   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
11893   ;;
11894 esac
11895 fi
11896 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
11897 if test -n "$APU_1_CONFIG"; then
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APU_1_CONFIG" >&5
11899 $as_echo "$APU_1_CONFIG" >&6; }
11900 else
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 fi
11904
11905
11906     if test "x$APU_1_CONFIG" = "xno" ; then
11907       as_fn_error $? "apu-config and apu-1-config not found." "$LINENO" 5
11908     else
11909       APU_CONFIG="$APU_1_CONFIG"
11910     fi
11911   fi
11912 fi
11913 if test "x$with_apu_config" != "x" ; then
11914   APU_CONFIG=$with_apu_config
11915 fi
11916
11917 CFLAGS="${CFLAGS} -DLIBICONV_PLUG"
11918 case $host_os in
11919   freebsd*)
11920     CFLAGS="${CFLAGS} -I/usr/local/include "
11921     ;;
11922 esac
11923
11924 if test "x${with_apache_header}" = "x" ; then
11925   with_apache_header=`${APXS} -q includedir`
11926 fi
11927
11928 # Checks for library functions.
11929 for ac_header in stdlib.h
11930 do :
11931   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11932 if test "x$ac_cv_header_stdlib_h" = xyes; then :
11933   cat >>confdefs.h <<_ACEOF
11934 #define HAVE_STDLIB_H 1
11935 _ACEOF
11936
11937 fi
11938
11939 done
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11942 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11943 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   if test "$cross_compiling" = yes; then :
11947   ac_cv_func_malloc_0_nonnull=no
11948 else
11949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h.  */
11951 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11952 # include <stdlib.h>
11953 #else
11954 char *malloc ();
11955 #endif
11956
11957 int
11958 main ()
11959 {
11960 return ! malloc (0);
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_run "$LINENO"; then :
11966   ac_cv_func_malloc_0_nonnull=yes
11967 else
11968   ac_cv_func_malloc_0_nonnull=no
11969 fi
11970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11971   conftest.$ac_objext conftest.beam conftest.$ac_ext
11972 fi
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11976 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11977 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11978
11979 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11980
11981 else
11982   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11983
11984    case " $LIBOBJS " in
11985   *" malloc.$ac_objext "* ) ;;
11986   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11987  ;;
11988 esac
11989
11990
11991 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11992
11993 fi
11994
11995
11996 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
11997 do :
11998   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12001   cat >>confdefs.h <<_ACEOF
12002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003 _ACEOF
12004
12005 fi
12006 done
12007
12008
12009 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
12010 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
12011 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
12012 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
12013 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
12014 LIBS="${LIBS} css/src/.libs/libscss.a"
12015 LIBS="${LIBS} -lcrypto -lssl "
12016 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
12017 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
12018 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
12019 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
12020 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
12021 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
12022 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
12023 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
12024
12025 # Checks for header files.
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12027 $as_echo_n "checking for ANSI C header files... " >&6; }
12028 if ${ac_cv_header_stdc+:} false; then :
12029   $as_echo_n "(cached) " >&6
12030 else
12031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h.  */
12033 #include <stdlib.h>
12034 #include <stdarg.h>
12035 #include <string.h>
12036 #include <float.h>
12037
12038 int
12039 main ()
12040 {
12041
12042   ;
12043   return 0;
12044 }
12045 _ACEOF
12046 if ac_fn_c_try_compile "$LINENO"; then :
12047   ac_cv_header_stdc=yes
12048 else
12049   ac_cv_header_stdc=no
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052
12053 if test $ac_cv_header_stdc = yes; then
12054   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h.  */
12057 #include <string.h>
12058
12059 _ACEOF
12060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12061   $EGREP "memchr" >/dev/null 2>&1; then :
12062
12063 else
12064   ac_cv_header_stdc=no
12065 fi
12066 rm -f conftest*
12067
12068 fi
12069
12070 if test $ac_cv_header_stdc = yes; then
12071   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h.  */
12074 #include <stdlib.h>
12075
12076 _ACEOF
12077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12078   $EGREP "free" >/dev/null 2>&1; then :
12079
12080 else
12081   ac_cv_header_stdc=no
12082 fi
12083 rm -f conftest*
12084
12085 fi
12086
12087 if test $ac_cv_header_stdc = yes; then
12088   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12089   if test "$cross_compiling" = yes; then :
12090   :
12091 else
12092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094 #include <ctype.h>
12095 #include <stdlib.h>
12096 #if ((' ' & 0x0FF) == 0x020)
12097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12099 #else
12100 # define ISLOWER(c) \
12101                    (('a' <= (c) && (c) <= 'i') \
12102                      || ('j' <= (c) && (c) <= 'r') \
12103                      || ('s' <= (c) && (c) <= 'z'))
12104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12105 #endif
12106
12107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12108 int
12109 main ()
12110 {
12111   int i;
12112   for (i = 0; i < 256; i++)
12113     if (XOR (islower (i), ISLOWER (i))
12114         || toupper (i) != TOUPPER (i))
12115       return 2;
12116   return 0;
12117 }
12118 _ACEOF
12119 if ac_fn_c_try_run "$LINENO"; then :
12120
12121 else
12122   ac_cv_header_stdc=no
12123 fi
12124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12125   conftest.$ac_objext conftest.beam conftest.$ac_ext
12126 fi
12127
12128 fi
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12131 $as_echo "$ac_cv_header_stdc" >&6; }
12132 if test $ac_cv_header_stdc = yes; then
12133
12134 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12135
12136 fi
12137
12138 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
12139 do :
12140   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12143   cat >>confdefs.h <<_ACEOF
12144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12145 _ACEOF
12146
12147 fi
12148
12149 done
12150
12151 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
12152 for ac_header in apr_shm.h apr_global_mutex.h
12153 do :
12154   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12155 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12157   cat >>confdefs.h <<_ACEOF
12158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12159 _ACEOF
12160
12161 fi
12162
12163 done
12164
12165 for ac_header in apr.h
12166 do :
12167   ac_fn_c_check_header_mongrel "$LINENO" "apr.h" "ac_cv_header_apr_h" "$ac_includes_default"
12168 if test "x$ac_cv_header_apr_h" = xyes; then :
12169   cat >>confdefs.h <<_ACEOF
12170 #define HAVE_APR_H 1
12171 _ACEOF
12172
12173 fi
12174
12175 done
12176
12177 for ac_header in ap_config.h
12178 do :
12179   ac_fn_c_check_header_mongrel "$LINENO" "ap_config.h" "ac_cv_header_ap_config_h" "$ac_includes_default"
12180 if test "x$ac_cv_header_ap_config_h" = xyes; then :
12181   cat >>confdefs.h <<_ACEOF
12182 #define HAVE_AP_CONFIG_H 1
12183 _ACEOF
12184
12185 fi
12186
12187 done
12188
12189 for ac_header in libgen.h
12190 do :
12191   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
12192 if test "x$ac_cv_header_libgen_h" = xyes; then :
12193   cat >>confdefs.h <<_ACEOF
12194 #define HAVE_LIBGEN_H 1
12195 _ACEOF
12196
12197 fi
12198
12199 done
12200
12201 #AC_CHECK_HEADERS([ap_regex.h],
12202 #  AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
12203 #[[
12204 ##ifdef HAVE_APR_H
12205 ##include "apr.h"
12206 ##endif
12207 ##ifdef HAVE_AP_CONFIG_H
12208 ##include "ap_config.h"
12209 ##endif
12210 #]])
12211 for ac_header in ap_regex.h
12212 do :
12213   ac_fn_c_check_header_compile "$LINENO" "ap_regex.h" "ac_cv_header_ap_regex_h" "#ifdef HAVE_APR_H
12214 # include \"apr.h\"
12215 #endif
12216 #ifdef HAVE_AP_CONFIG_H
12217 # include \"ap_config.h\"
12218 #endif
12219
12220 "
12221 if test "x$ac_cv_header_ap_regex_h" = xyes; then :
12222   cat >>confdefs.h <<_ACEOF
12223 #define HAVE_AP_REGEX_H 1
12224 _ACEOF
12225  use_pcre_flag="no"
12226 else
12227   use_pcre_flag="yes"
12228 fi
12229
12230 done
12231
12232 if test "x$use_pcre_flag" = "xyes" ; then
12233   if test "x$with_pcre_config" = "x" ; then
12234     # Extract the first word of "pcre-config", so it can be a program name with args.
12235 set dummy pcre-config; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_path_PCRE_CONFIG+:} false; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   case $PCRE_CONFIG in
12242   [\\/]* | ?:[\\/]*)
12243   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
12244   ;;
12245   *)
12246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
12248 for as_dir in $as_dummy
12249 do
12250   IFS=$as_save_IFS
12251   test -z "$as_dir" && as_dir=.
12252     for ac_exec_ext in '' $ac_executable_extensions; do
12253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12256     break 2
12257   fi
12258 done
12259   done
12260 IFS=$as_save_IFS
12261
12262   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
12263   ;;
12264 esac
12265 fi
12266 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
12267 if test -n "$PCRE_CONFIG"; then
12268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_CONFIG" >&5
12269 $as_echo "$PCRE_CONFIG" >&6; }
12270 else
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 fi
12274
12275
12276     if test "x$PCRE_CONFIG" = "xno" ; then
12277       # Extract the first word of "pcre-1-config", so it can be a program name with args.
12278 set dummy pcre-1-config; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if ${ac_cv_path_PCRE_1_CONFIG+:} false; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284   case $PCRE_1_CONFIG in
12285   [\\/]* | ?:[\\/]*)
12286   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
12287   ;;
12288   *)
12289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
12291 for as_dir in $as_dummy
12292 do
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12304
12305   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
12306   ;;
12307 esac
12308 fi
12309 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
12310 if test -n "$PCRE_1_CONFIG"; then
12311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_1_CONFIG" >&5
12312 $as_echo "$PCRE_1_CONFIG" >&6; }
12313 else
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 fi
12317
12318
12319       if test "x$PCRE_1_CONFIG" = "xno" ; then
12320         as_fn_error $? "pcre-config and pcre-1-config not found." "$LINENO" 5
12321       else
12322         PCRE_CONFIG="$PCRE_1_CONFIG"
12323       fi
12324     fi
12325   fi
12326   if test "x$with_pcre_config" != "x" ; then
12327     PCRE_CONFIG=$with_pcre_config
12328   fi
12329   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
12330 else
12331
12332 $as_echo "#define HAVE_AP_REGEX_H 1" >>confdefs.h
12333
12334 fi
12335
12336 # Checks for typedefs, structures, and compiler characteristics.
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12338 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12339 if ${ac_cv_c_const+:} false; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h.  */
12344
12345 int
12346 main ()
12347 {
12348 /* FIXME: Include the comments suggested by Paul. */
12349 #ifndef __cplusplus
12350   /* Ultrix mips cc rejects this.  */
12351   typedef int charset[2];
12352   const charset cs;
12353   /* SunOS 4.1.1 cc rejects this.  */
12354   char const *const *pcpcc;
12355   char **ppc;
12356   /* NEC SVR4.0.2 mips cc rejects this.  */
12357   struct point {int x, y;};
12358   static struct point const zero = {0,0};
12359   /* AIX XL C 1.02.0.0 rejects this.
12360      It does not let you subtract one const X* pointer from another in
12361      an arm of an if-expression whose if-part is not a constant
12362      expression */
12363   const char *g = "string";
12364   pcpcc = &g + (g ? g-g : 0);
12365   /* HPUX 7.0 cc rejects these. */
12366   ++pcpcc;
12367   ppc = (char**) pcpcc;
12368   pcpcc = (char const *const *) ppc;
12369   { /* SCO 3.2v4 cc rejects this.  */
12370     char *t;
12371     char const *s = 0 ? (char *) 0 : (char const *) 0;
12372
12373     *t++ = 0;
12374     if (s) return 0;
12375   }
12376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12377     int x[] = {25, 17};
12378     const int *foo = &x[0];
12379     ++foo;
12380   }
12381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12382     typedef const int *iptr;
12383     iptr p = 0;
12384     ++p;
12385   }
12386   { /* AIX XL C 1.02.0.0 rejects this saying
12387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12388     struct s { int j; const int *ap[3]; };
12389     struct s *b; b->j = 5;
12390   }
12391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12392     const int foo = 10;
12393     if (!foo) return 0;
12394   }
12395   return !cs[0] && !zero.x;
12396 #endif
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_compile "$LINENO"; then :
12403   ac_cv_c_const=yes
12404 else
12405   ac_cv_c_const=no
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12410 $as_echo "$ac_cv_c_const" >&6; }
12411 if test $ac_cv_c_const = no; then
12412
12413 $as_echo "#define const /**/" >>confdefs.h
12414
12415 fi
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec support/freebsd/Makefile"
12431
12432 cat >confcache <<\_ACEOF
12433 # This file is a shell script that caches the results of configure
12434 # tests run on this system so they can be shared between configure
12435 # scripts and configure runs, see configure's option --config-cache.
12436 # It is not useful on other systems.  If it contains results you don't
12437 # want to keep, you may remove or edit it.
12438 #
12439 # config.status only pays attention to the cache file if you give it
12440 # the --recheck option to rerun configure.
12441 #
12442 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12444 # following values.
12445
12446 _ACEOF
12447
12448 # The following way of writing the cache mishandles newlines in values,
12449 # but we know of no workaround that is simple, portable, and efficient.
12450 # So, we kill variables containing newlines.
12451 # Ultrix sh set writes to stderr and can't be redirected directly,
12452 # and sets the high bit in the cache file unless we assign to the vars.
12453 (
12454   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12455     eval ac_val=\$$ac_var
12456     case $ac_val in #(
12457     *${as_nl}*)
12458       case $ac_var in #(
12459       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12460 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12461       esac
12462       case $ac_var in #(
12463       _ | IFS | as_nl) ;; #(
12464       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12465       *) { eval $ac_var=; unset $ac_var;} ;;
12466       esac ;;
12467     esac
12468   done
12469
12470   (set) 2>&1 |
12471     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12472     *${as_nl}ac_space=\ *)
12473       # `set' does not quote correctly, so add quotes: double-quote
12474       # substitution turns \\\\ into \\, and sed turns \\ into \.
12475       sed -n \
12476         "s/'/'\\\\''/g;
12477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12478       ;; #(
12479     *)
12480       # `set' quotes correctly as required by POSIX, so do not add quotes.
12481       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12482       ;;
12483     esac |
12484     sort
12485 ) |
12486   sed '
12487      /^ac_cv_env_/b end
12488      t clear
12489      :clear
12490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12491      t end
12492      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12493      :end' >>confcache
12494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12495   if test -w "$cache_file"; then
12496     if test "x$cache_file" != "x/dev/null"; then
12497       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12498 $as_echo "$as_me: updating cache $cache_file" >&6;}
12499       if test ! -f "$cache_file" || test -h "$cache_file"; then
12500         cat confcache >"$cache_file"
12501       else
12502         case $cache_file in #(
12503         */* | ?:*)
12504           mv -f confcache "$cache_file"$$ &&
12505           mv -f "$cache_file"$$ "$cache_file" ;; #(
12506         *)
12507           mv -f confcache "$cache_file" ;;
12508         esac
12509       fi
12510     fi
12511   else
12512     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12513 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12514   fi
12515 fi
12516 rm -f confcache
12517
12518 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12519 # Let make expand exec_prefix.
12520 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12521
12522 DEFS=-DHAVE_CONFIG_H
12523
12524 ac_libobjs=
12525 ac_ltlibobjs=
12526 U=
12527 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12528   # 1. Remove the extension, and $U if already installed.
12529   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12530   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12531   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12532   #    will be set to the directory where LIBOBJS objects are built.
12533   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12534   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12535 done
12536 LIBOBJS=$ac_libobjs
12537
12538 LTLIBOBJS=$ac_ltlibobjs
12539
12540
12541  if test -n "$EXEEXT"; then
12542   am__EXEEXT_TRUE=
12543   am__EXEEXT_FALSE='#'
12544 else
12545   am__EXEEXT_TRUE='#'
12546   am__EXEEXT_FALSE=
12547 fi
12548
12549 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12550   as_fn_error $? "conditional \"AMDEP\" was never defined.
12551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12552 fi
12553 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12554   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12556 fi
12557
12558 : "${CONFIG_STATUS=./config.status}"
12559 ac_write_fail=0
12560 ac_clean_files_save=$ac_clean_files
12561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12563 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12564 as_write_fail=0
12565 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12566 #! $SHELL
12567 # Generated by $as_me.
12568 # Run this file to recreate the current configuration.
12569 # Compiler output produced by configure, useful for debugging
12570 # configure, is in config.log if it exists.
12571
12572 debug=false
12573 ac_cs_recheck=false
12574 ac_cs_silent=false
12575
12576 SHELL=\${CONFIG_SHELL-$SHELL}
12577 export SHELL
12578 _ASEOF
12579 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12580 ## -------------------- ##
12581 ## M4sh Initialization. ##
12582 ## -------------------- ##
12583
12584 # Be more Bourne compatible
12585 DUALCASE=1; export DUALCASE # for MKS sh
12586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12587   emulate sh
12588   NULLCMD=:
12589   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12590   # is contrary to our usage.  Disable this feature.
12591   alias -g '${1+"$@"}'='"$@"'
12592   setopt NO_GLOB_SUBST
12593 else
12594   case `(set -o) 2>/dev/null` in #(
12595   *posix*) :
12596     set -o posix ;; #(
12597   *) :
12598      ;;
12599 esac
12600 fi
12601
12602
12603 as_nl='
12604 '
12605 export as_nl
12606 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12607 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12610 # Prefer a ksh shell builtin over an external printf program on Solaris,
12611 # but without wasting forks for bash or zsh.
12612 if test -z "$BASH_VERSION$ZSH_VERSION" \
12613     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12614   as_echo='print -r --'
12615   as_echo_n='print -rn --'
12616 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12617   as_echo='printf %s\n'
12618   as_echo_n='printf %s'
12619 else
12620   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12621     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12622     as_echo_n='/usr/ucb/echo -n'
12623   else
12624     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12625     as_echo_n_body='eval
12626       arg=$1;
12627       case $arg in #(
12628       *"$as_nl"*)
12629         expr "X$arg" : "X\\(.*\\)$as_nl";
12630         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12631       esac;
12632       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12633     '
12634     export as_echo_n_body
12635     as_echo_n='sh -c $as_echo_n_body as_echo'
12636   fi
12637   export as_echo_body
12638   as_echo='sh -c $as_echo_body as_echo'
12639 fi
12640
12641 # The user is always right.
12642 if test "${PATH_SEPARATOR+set}" != set; then
12643   PATH_SEPARATOR=:
12644   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12645     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12646       PATH_SEPARATOR=';'
12647   }
12648 fi
12649
12650
12651 # IFS
12652 # We need space, tab and new line, in precisely that order.  Quoting is
12653 # there to prevent editors from complaining about space-tab.
12654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12655 # splitting by setting IFS to empty value.)
12656 IFS=" ""        $as_nl"
12657
12658 # Find who we are.  Look in the path if we contain no directory separator.
12659 as_myself=
12660 case $0 in #((
12661   *[\\/]* ) as_myself=$0 ;;
12662   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665   IFS=$as_save_IFS
12666   test -z "$as_dir" && as_dir=.
12667     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12668   done
12669 IFS=$as_save_IFS
12670
12671      ;;
12672 esac
12673 # We did not find ourselves, most probably we were run as `sh COMMAND'
12674 # in which case we are not to be found in the path.
12675 if test "x$as_myself" = x; then
12676   as_myself=$0
12677 fi
12678 if test ! -f "$as_myself"; then
12679   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12680   exit 1
12681 fi
12682
12683 # Unset variables that we do not need and which cause bugs (e.g. in
12684 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12685 # suppresses any "Segmentation fault" message there.  '((' could
12686 # trigger a bug in pdksh 5.2.14.
12687 for as_var in BASH_ENV ENV MAIL MAILPATH
12688 do eval test x\${$as_var+set} = xset \
12689   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12690 done
12691 PS1='$ '
12692 PS2='> '
12693 PS4='+ '
12694
12695 # NLS nuisances.
12696 LC_ALL=C
12697 export LC_ALL
12698 LANGUAGE=C
12699 export LANGUAGE
12700
12701 # CDPATH.
12702 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12703
12704
12705 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12706 # ----------------------------------------
12707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12709 # script with STATUS, using 1 if that was 0.
12710 as_fn_error ()
12711 {
12712   as_status=$1; test $as_status -eq 0 && as_status=1
12713   if test "$4"; then
12714     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12715     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12716   fi
12717   $as_echo "$as_me: error: $2" >&2
12718   as_fn_exit $as_status
12719 } # as_fn_error
12720
12721
12722 # as_fn_set_status STATUS
12723 # -----------------------
12724 # Set $? to STATUS, without forking.
12725 as_fn_set_status ()
12726 {
12727   return $1
12728 } # as_fn_set_status
12729
12730 # as_fn_exit STATUS
12731 # -----------------
12732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12733 as_fn_exit ()
12734 {
12735   set +e
12736   as_fn_set_status $1
12737   exit $1
12738 } # as_fn_exit
12739
12740 # as_fn_unset VAR
12741 # ---------------
12742 # Portably unset VAR.
12743 as_fn_unset ()
12744 {
12745   { eval $1=; unset $1;}
12746 }
12747 as_unset=as_fn_unset
12748 # as_fn_append VAR VALUE
12749 # ----------------------
12750 # Append the text in VALUE to the end of the definition contained in VAR. Take
12751 # advantage of any shell optimizations that allow amortized linear growth over
12752 # repeated appends, instead of the typical quadratic growth present in naive
12753 # implementations.
12754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12755   eval 'as_fn_append ()
12756   {
12757     eval $1+=\$2
12758   }'
12759 else
12760   as_fn_append ()
12761   {
12762     eval $1=\$$1\$2
12763   }
12764 fi # as_fn_append
12765
12766 # as_fn_arith ARG...
12767 # ------------------
12768 # Perform arithmetic evaluation on the ARGs, and store the result in the
12769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12770 # must be portable across $(()) and expr.
12771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12772   eval 'as_fn_arith ()
12773   {
12774     as_val=$(( $* ))
12775   }'
12776 else
12777   as_fn_arith ()
12778   {
12779     as_val=`expr "$@" || test $? -eq 1`
12780   }
12781 fi # as_fn_arith
12782
12783
12784 if expr a : '\(a\)' >/dev/null 2>&1 &&
12785    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12786   as_expr=expr
12787 else
12788   as_expr=false
12789 fi
12790
12791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12792   as_basename=basename
12793 else
12794   as_basename=false
12795 fi
12796
12797 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12798   as_dirname=dirname
12799 else
12800   as_dirname=false
12801 fi
12802
12803 as_me=`$as_basename -- "$0" ||
12804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12805          X"$0" : 'X\(//\)$' \| \
12806          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12807 $as_echo X/"$0" |
12808     sed '/^.*\/\([^/][^/]*\)\/*$/{
12809             s//\1/
12810             q
12811           }
12812           /^X\/\(\/\/\)$/{
12813             s//\1/
12814             q
12815           }
12816           /^X\/\(\/\).*/{
12817             s//\1/
12818             q
12819           }
12820           s/.*/./; q'`
12821
12822 # Avoid depending upon Character Ranges.
12823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12826 as_cr_digits='0123456789'
12827 as_cr_alnum=$as_cr_Letters$as_cr_digits
12828
12829 ECHO_C= ECHO_N= ECHO_T=
12830 case `echo -n x` in #(((((
12831 -n*)
12832   case `echo 'xy\c'` in
12833   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12834   xy)  ECHO_C='\c';;
12835   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12836        ECHO_T=' ';;
12837   esac;;
12838 *)
12839   ECHO_N='-n';;
12840 esac
12841
12842 rm -f conf$$ conf$$.exe conf$$.file
12843 if test -d conf$$.dir; then
12844   rm -f conf$$.dir/conf$$.file
12845 else
12846   rm -f conf$$.dir
12847   mkdir conf$$.dir 2>/dev/null
12848 fi
12849 if (echo >conf$$.file) 2>/dev/null; then
12850   if ln -s conf$$.file conf$$ 2>/dev/null; then
12851     as_ln_s='ln -s'
12852     # ... but there are two gotchas:
12853     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12854     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12855     # In both cases, we have to default to `cp -p'.
12856     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12857       as_ln_s='cp -p'
12858   elif ln conf$$.file conf$$ 2>/dev/null; then
12859     as_ln_s=ln
12860   else
12861     as_ln_s='cp -p'
12862   fi
12863 else
12864   as_ln_s='cp -p'
12865 fi
12866 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12867 rmdir conf$$.dir 2>/dev/null
12868
12869
12870 # as_fn_mkdir_p
12871 # -------------
12872 # Create "$as_dir" as a directory, including parents if necessary.
12873 as_fn_mkdir_p ()
12874 {
12875
12876   case $as_dir in #(
12877   -*) as_dir=./$as_dir;;
12878   esac
12879   test -d "$as_dir" || eval $as_mkdir_p || {
12880     as_dirs=
12881     while :; do
12882       case $as_dir in #(
12883       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12884       *) as_qdir=$as_dir;;
12885       esac
12886       as_dirs="'$as_qdir' $as_dirs"
12887       as_dir=`$as_dirname -- "$as_dir" ||
12888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12889          X"$as_dir" : 'X\(//\)[^/]' \| \
12890          X"$as_dir" : 'X\(//\)$' \| \
12891          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12892 $as_echo X"$as_dir" |
12893     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12894             s//\1/
12895             q
12896           }
12897           /^X\(\/\/\)[^/].*/{
12898             s//\1/
12899             q
12900           }
12901           /^X\(\/\/\)$/{
12902             s//\1/
12903             q
12904           }
12905           /^X\(\/\).*/{
12906             s//\1/
12907             q
12908           }
12909           s/.*/./; q'`
12910       test -d "$as_dir" && break
12911     done
12912     test -z "$as_dirs" || eval "mkdir $as_dirs"
12913   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12914
12915
12916 } # as_fn_mkdir_p
12917 if mkdir -p . 2>/dev/null; then
12918   as_mkdir_p='mkdir -p "$as_dir"'
12919 else
12920   test -d ./-p && rmdir ./-p
12921   as_mkdir_p=false
12922 fi
12923
12924 if test -x / >/dev/null 2>&1; then
12925   as_test_x='test -x'
12926 else
12927   if ls -dL / >/dev/null 2>&1; then
12928     as_ls_L_option=L
12929   else
12930     as_ls_L_option=
12931   fi
12932   as_test_x='
12933     eval sh -c '\''
12934       if test -d "$1"; then
12935         test -d "$1/.";
12936       else
12937         case $1 in #(
12938         -*)set "./$1";;
12939         esac;
12940         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12941         ???[sx]*):;;*)false;;esac;fi
12942     '\'' sh
12943   '
12944 fi
12945 as_executable_p=$as_test_x
12946
12947 # Sed expression to map a string onto a valid CPP name.
12948 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12949
12950 # Sed expression to map a string onto a valid variable name.
12951 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12952
12953
12954 exec 6>&1
12955 ## ----------------------------------- ##
12956 ## Main body of $CONFIG_STATUS script. ##
12957 ## ----------------------------------- ##
12958 _ASEOF
12959 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12960
12961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12962 # Save the log message, to keep $0 and so on meaningful, and to
12963 # report actual input values of CONFIG_FILES etc. instead of their
12964 # values after options handling.
12965 ac_log="
12966 This file was extended by mod_chxj $as_me 0.14.1, which was
12967 generated by GNU Autoconf 2.68.  Invocation command line was
12968
12969   CONFIG_FILES    = $CONFIG_FILES
12970   CONFIG_HEADERS  = $CONFIG_HEADERS
12971   CONFIG_LINKS    = $CONFIG_LINKS
12972   CONFIG_COMMANDS = $CONFIG_COMMANDS
12973   $ $0 $@
12974
12975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12976 "
12977
12978 _ACEOF
12979
12980 case $ac_config_files in *"
12981 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12982 esac
12983
12984 case $ac_config_headers in *"
12985 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12986 esac
12987
12988
12989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12990 # Files that config.status was made for.
12991 config_files="$ac_config_files"
12992 config_headers="$ac_config_headers"
12993 config_commands="$ac_config_commands"
12994
12995 _ACEOF
12996
12997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12998 ac_cs_usage="\
12999 \`$as_me' instantiates files and other configuration actions
13000 from templates according to the current configuration.  Unless the files
13001 and actions are specified as TAGs, all are instantiated by default.
13002
13003 Usage: $0 [OPTION]... [TAG]...
13004
13005   -h, --help       print this help, then exit
13006   -V, --version    print version number and configuration settings, then exit
13007       --config     print configuration, then exit
13008   -q, --quiet, --silent
13009                    do not print progress messages
13010   -d, --debug      don't remove temporary files
13011       --recheck    update $as_me by reconfiguring in the same conditions
13012       --file=FILE[:TEMPLATE]
13013                    instantiate the configuration file FILE
13014       --header=FILE[:TEMPLATE]
13015                    instantiate the configuration header FILE
13016
13017 Configuration files:
13018 $config_files
13019
13020 Configuration headers:
13021 $config_headers
13022
13023 Configuration commands:
13024 $config_commands
13025
13026 Report bugs to <konn@users.sourceforge.jp>."
13027
13028 _ACEOF
13029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13030 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13031 ac_cs_version="\\
13032 mod_chxj config.status 0.14.1
13033 configured by $0, generated by GNU Autoconf 2.68,
13034   with options \\"\$ac_cs_config\\"
13035
13036 Copyright (C) 2010 Free Software Foundation, Inc.
13037 This config.status script is free software; the Free Software Foundation
13038 gives unlimited permission to copy, distribute and modify it."
13039
13040 ac_pwd='$ac_pwd'
13041 srcdir='$srcdir'
13042 INSTALL='$INSTALL'
13043 MKDIR_P='$MKDIR_P'
13044 AWK='$AWK'
13045 test -n "\$AWK" || AWK=awk
13046 _ACEOF
13047
13048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13049 # The default lists apply if the user does not specify any file.
13050 ac_need_defaults=:
13051 while test $# != 0
13052 do
13053   case $1 in
13054   --*=?*)
13055     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13056     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13057     ac_shift=:
13058     ;;
13059   --*=)
13060     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13061     ac_optarg=
13062     ac_shift=:
13063     ;;
13064   *)
13065     ac_option=$1
13066     ac_optarg=$2
13067     ac_shift=shift
13068     ;;
13069   esac
13070
13071   case $ac_option in
13072   # Handling of the options.
13073   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13074     ac_cs_recheck=: ;;
13075   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13076     $as_echo "$ac_cs_version"; exit ;;
13077   --config | --confi | --conf | --con | --co | --c )
13078     $as_echo "$ac_cs_config"; exit ;;
13079   --debug | --debu | --deb | --de | --d | -d )
13080     debug=: ;;
13081   --file | --fil | --fi | --f )
13082     $ac_shift
13083     case $ac_optarg in
13084     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13085     '') as_fn_error $? "missing file argument" ;;
13086     esac
13087     as_fn_append CONFIG_FILES " '$ac_optarg'"
13088     ac_need_defaults=false;;
13089   --header | --heade | --head | --hea )
13090     $ac_shift
13091     case $ac_optarg in
13092     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13093     esac
13094     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13095     ac_need_defaults=false;;
13096   --he | --h)
13097     # Conflict between --help and --header
13098     as_fn_error $? "ambiguous option: \`$1'
13099 Try \`$0 --help' for more information.";;
13100   --help | --hel | -h )
13101     $as_echo "$ac_cs_usage"; exit ;;
13102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13103   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13104     ac_cs_silent=: ;;
13105
13106   # This is an error.
13107   -*) as_fn_error $? "unrecognized option: \`$1'
13108 Try \`$0 --help' for more information." ;;
13109
13110   *) as_fn_append ac_config_targets " $1"
13111      ac_need_defaults=false ;;
13112
13113   esac
13114   shift
13115 done
13116
13117 ac_configure_extra_args=
13118
13119 if $ac_cs_silent; then
13120   exec 6>/dev/null
13121   ac_configure_extra_args="$ac_configure_extra_args --silent"
13122 fi
13123
13124 _ACEOF
13125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13126 if \$ac_cs_recheck; then
13127   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13128   shift
13129   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13130   CONFIG_SHELL='$SHELL'
13131   export CONFIG_SHELL
13132   exec "\$@"
13133 fi
13134
13135 _ACEOF
13136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13137 exec 5>>config.log
13138 {
13139   echo
13140   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13141 ## Running $as_me. ##
13142 _ASBOX
13143   $as_echo "$ac_log"
13144 } >&5
13145
13146 _ACEOF
13147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13148 #
13149 # INIT-COMMANDS
13150 #
13151 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13152
13153
13154 # The HP-UX ksh and POSIX shell print the target directory to stdout
13155 # if CDPATH is set.
13156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13157
13158 sed_quote_subst='$sed_quote_subst'
13159 double_quote_subst='$double_quote_subst'
13160 delay_variable_subst='$delay_variable_subst'
13161 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13162 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13163 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13164 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13165 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13166 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13167 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13168 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13169 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13170 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13171 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13172 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13173 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13174 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13175 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13176 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13177 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13178 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13179 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13180 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13181 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13182 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13183 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13184 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13185 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13186 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13187 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13188 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13189 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13190 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13191 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13192 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13193 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13194 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13195 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13196 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13197 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13198 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13199 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13200 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13201 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13202 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13203 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13204 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13205 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13206 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13207 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13208 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13209 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13210 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13211 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13212 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13213 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13214 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13215 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13216 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"`'
13217 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13218 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13219 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13220 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13221 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13222 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13223 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13224 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13225 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13226 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13227 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13228 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13229 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13230 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13231 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13232 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13233 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13234 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13235 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13236 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13237 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13238 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13239 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13240 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13241 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13242 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13243 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13244 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13245 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13246 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13247 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13248 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13249 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13250 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13251 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13252 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13253 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13254 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13255 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13256 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13257 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13258 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13259 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13260 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13261 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13262 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13263 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13264 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13265 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13266 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13267 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13268 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13269 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13270 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13271 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13272 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13273 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13274 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13275 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13276 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13277 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13278 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13279 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13280 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13281 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13282 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13283 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13284 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13285 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13286 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13287 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13288 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13289 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13290 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13291
13292 LTCC='$LTCC'
13293 LTCFLAGS='$LTCFLAGS'
13294 compiler='$compiler_DEFAULT'
13295
13296 # A function that is used when there is no print builtin or printf.
13297 func_fallback_echo ()
13298 {
13299   eval 'cat <<_LTECHO_EOF
13300 \$1
13301 _LTECHO_EOF'
13302 }
13303
13304 # Quote evaled strings.
13305 for var in SHELL \
13306 ECHO \
13307 SED \
13308 GREP \
13309 EGREP \
13310 FGREP \
13311 LD \
13312 NM \
13313 LN_S \
13314 lt_SP2NL \
13315 lt_NL2SP \
13316 reload_flag \
13317 OBJDUMP \
13318 deplibs_check_method \
13319 file_magic_cmd \
13320 file_magic_glob \
13321 want_nocaseglob \
13322 DLLTOOL \
13323 sharedlib_from_linklib_cmd \
13324 AR \
13325 AR_FLAGS \
13326 archiver_list_spec \
13327 STRIP \
13328 RANLIB \
13329 CC \
13330 CFLAGS \
13331 compiler \
13332 lt_cv_sys_global_symbol_pipe \
13333 lt_cv_sys_global_symbol_to_cdecl \
13334 lt_cv_sys_global_symbol_to_c_name_address \
13335 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13336 nm_file_list_spec \
13337 lt_prog_compiler_no_builtin_flag \
13338 lt_prog_compiler_pic \
13339 lt_prog_compiler_wl \
13340 lt_prog_compiler_static \
13341 lt_cv_prog_compiler_c_o \
13342 need_locks \
13343 MANIFEST_TOOL \
13344 DSYMUTIL \
13345 NMEDIT \
13346 LIPO \
13347 OTOOL \
13348 OTOOL64 \
13349 shrext_cmds \
13350 export_dynamic_flag_spec \
13351 whole_archive_flag_spec \
13352 compiler_needs_object \
13353 with_gnu_ld \
13354 allow_undefined_flag \
13355 no_undefined_flag \
13356 hardcode_libdir_flag_spec \
13357 hardcode_libdir_flag_spec_ld \
13358 hardcode_libdir_separator \
13359 exclude_expsyms \
13360 include_expsyms \
13361 file_list_spec \
13362 variables_saved_for_relink \
13363 libname_spec \
13364 library_names_spec \
13365 soname_spec \
13366 install_override_mode \
13367 finish_eval \
13368 old_striplib \
13369 striplib; do
13370     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13371     *[\\\\\\\`\\"\\\$]*)
13372       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13373       ;;
13374     *)
13375       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13376       ;;
13377     esac
13378 done
13379
13380 # Double-quote double-evaled strings.
13381 for var in reload_cmds \
13382 old_postinstall_cmds \
13383 old_postuninstall_cmds \
13384 old_archive_cmds \
13385 extract_expsyms_cmds \
13386 old_archive_from_new_cmds \
13387 old_archive_from_expsyms_cmds \
13388 archive_cmds \
13389 archive_expsym_cmds \
13390 module_cmds \
13391 module_expsym_cmds \
13392 export_symbols_cmds \
13393 prelink_cmds \
13394 postlink_cmds \
13395 postinstall_cmds \
13396 postuninstall_cmds \
13397 finish_cmds \
13398 sys_lib_search_path_spec \
13399 sys_lib_dlsearch_path_spec; do
13400     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13401     *[\\\\\\\`\\"\\\$]*)
13402       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13403       ;;
13404     *)
13405       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13406       ;;
13407     esac
13408 done
13409
13410 ac_aux_dir='$ac_aux_dir'
13411 xsi_shell='$xsi_shell'
13412 lt_shell_append='$lt_shell_append'
13413
13414 # See if we are running on zsh, and set the options which allow our
13415 # commands through without removal of \ escapes INIT.
13416 if test -n "\${ZSH_VERSION+set}" ; then
13417    setopt NO_GLOB_SUBST
13418 fi
13419
13420
13421     PACKAGE='$PACKAGE'
13422     VERSION='$VERSION'
13423     TIMESTAMP='$TIMESTAMP'
13424     RM='$RM'
13425     ofile='$ofile'
13426
13427
13428
13429
13430 _ACEOF
13431
13432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13433
13434 # Handling of arguments.
13435 for ac_config_target in $ac_config_targets
13436 do
13437   case $ac_config_target in
13438     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13439     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13440     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13441     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13442     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13443     "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
13444     "support/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES support/freebsd/Makefile" ;;
13445
13446   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13447   esac
13448 done
13449
13450
13451 # If the user did not use the arguments to specify the items to instantiate,
13452 # then the envvar interface is used.  Set only those that are not.
13453 # We use the long form for the default assignment because of an extremely
13454 # bizarre bug on SunOS 4.1.3.
13455 if $ac_need_defaults; then
13456   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13457   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13458   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13459 fi
13460
13461 # Have a temporary directory for convenience.  Make it in the build tree
13462 # simply because there is no reason against having it here, and in addition,
13463 # creating and moving files from /tmp can sometimes cause problems.
13464 # Hook for its removal unless debugging.
13465 # Note that there is a small window in which the directory will not be cleaned:
13466 # after its creation but before its name has been assigned to `$tmp'.
13467 $debug ||
13468 {
13469   tmp= ac_tmp=
13470   trap 'exit_status=$?
13471   : "${ac_tmp:=$tmp}"
13472   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13473 ' 0
13474   trap 'as_fn_exit 1' 1 2 13 15
13475 }
13476 # Create a (secure) tmp directory for tmp files.
13477
13478 {
13479   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13480   test -d "$tmp"
13481 }  ||
13482 {
13483   tmp=./conf$$-$RANDOM
13484   (umask 077 && mkdir "$tmp")
13485 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13486 ac_tmp=$tmp
13487
13488 # Set up the scripts for CONFIG_FILES section.
13489 # No need to generate them if there are no CONFIG_FILES.
13490 # This happens for instance with `./config.status config.h'.
13491 if test -n "$CONFIG_FILES"; then
13492
13493
13494 ac_cr=`echo X | tr X '\015'`
13495 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13496 # But we know of no other shell where ac_cr would be empty at this
13497 # point, so we can use a bashism as a fallback.
13498 if test "x$ac_cr" = x; then
13499   eval ac_cr=\$\'\\r\'
13500 fi
13501 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13502 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13503   ac_cs_awk_cr='\\r'
13504 else
13505   ac_cs_awk_cr=$ac_cr
13506 fi
13507
13508 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13509 _ACEOF
13510
13511
13512 {
13513   echo "cat >conf$$subs.awk <<_ACEOF" &&
13514   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13515   echo "_ACEOF"
13516 } >conf$$subs.sh ||
13517   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13518 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13519 ac_delim='%!_!# '
13520 for ac_last_try in false false false false false :; do
13521   . ./conf$$subs.sh ||
13522     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13523
13524   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13525   if test $ac_delim_n = $ac_delim_num; then
13526     break
13527   elif $ac_last_try; then
13528     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13529   else
13530     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13531   fi
13532 done
13533 rm -f conf$$subs.sh
13534
13535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13537 _ACEOF
13538 sed -n '
13539 h
13540 s/^/S["/; s/!.*/"]=/
13541 p
13542 g
13543 s/^[^!]*!//
13544 :repl
13545 t repl
13546 s/'"$ac_delim"'$//
13547 t delim
13548 :nl
13549 h
13550 s/\(.\{148\}\)..*/\1/
13551 t more1
13552 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13553 p
13554 n
13555 b repl
13556 :more1
13557 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13558 p
13559 g
13560 s/.\{148\}//
13561 t nl
13562 :delim
13563 h
13564 s/\(.\{148\}\)..*/\1/
13565 t more2
13566 s/["\\]/\\&/g; s/^/"/; s/$/"/
13567 p
13568 b
13569 :more2
13570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13571 p
13572 g
13573 s/.\{148\}//
13574 t delim
13575 ' <conf$$subs.awk | sed '
13576 /^[^""]/{
13577   N
13578   s/\n//
13579 }
13580 ' >>$CONFIG_STATUS || ac_write_fail=1
13581 rm -f conf$$subs.awk
13582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13583 _ACAWK
13584 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13585   for (key in S) S_is_set[key] = 1
13586   FS = "\a"
13587
13588 }
13589 {
13590   line = $ 0
13591   nfields = split(line, field, "@")
13592   substed = 0
13593   len = length(field[1])
13594   for (i = 2; i < nfields; i++) {
13595     key = field[i]
13596     keylen = length(key)
13597     if (S_is_set[key]) {
13598       value = S[key]
13599       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13600       len += length(value) + length(field[++i])
13601       substed = 1
13602     } else
13603       len += 1 + keylen
13604   }
13605
13606   print line
13607 }
13608
13609 _ACAWK
13610 _ACEOF
13611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13612 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13613   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13614 else
13615   cat
13616 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13617   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13618 _ACEOF
13619
13620 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13621 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13622 # trailing colons and then remove the whole line if VPATH becomes empty
13623 # (actually we leave an empty line to preserve line numbers).
13624 if test "x$srcdir" = x.; then
13625   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13626 h
13627 s///
13628 s/^/:/
13629 s/[      ]*$/:/
13630 s/:\$(srcdir):/:/g
13631 s/:\${srcdir}:/:/g
13632 s/:@srcdir@:/:/g
13633 s/^:*//
13634 s/:*$//
13635 x
13636 s/\(=[   ]*\).*/\1/
13637 G
13638 s/\n//
13639 s/^[^=]*=[       ]*$//
13640 }'
13641 fi
13642
13643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644 fi # test -n "$CONFIG_FILES"
13645
13646 # Set up the scripts for CONFIG_HEADERS section.
13647 # No need to generate them if there are no CONFIG_HEADERS.
13648 # This happens for instance with `./config.status Makefile'.
13649 if test -n "$CONFIG_HEADERS"; then
13650 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13651 BEGIN {
13652 _ACEOF
13653
13654 # Transform confdefs.h into an awk script `defines.awk', embedded as
13655 # here-document in config.status, that substitutes the proper values into
13656 # config.h.in to produce config.h.
13657
13658 # Create a delimiter string that does not exist in confdefs.h, to ease
13659 # handling of long lines.
13660 ac_delim='%!_!# '
13661 for ac_last_try in false false :; do
13662   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13663   if test -z "$ac_tt"; then
13664     break
13665   elif $ac_last_try; then
13666     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13667   else
13668     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13669   fi
13670 done
13671
13672 # For the awk script, D is an array of macro values keyed by name,
13673 # likewise P contains macro parameters if any.  Preserve backslash
13674 # newline sequences.
13675
13676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13677 sed -n '
13678 s/.\{148\}/&'"$ac_delim"'/g
13679 t rset
13680 :rset
13681 s/^[     ]*#[    ]*define[       ][      ]*/ /
13682 t def
13683 d
13684 :def
13685 s/\\$//
13686 t bsnl
13687 s/["\\]/\\&/g
13688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13689 D["\1"]=" \3"/p
13690 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13691 d
13692 :bsnl
13693 s/["\\]/\\&/g
13694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13695 D["\1"]=" \3\\\\\\n"\\/p
13696 t cont
13697 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13698 t cont
13699 d
13700 :cont
13701 n
13702 s/.\{148\}/&'"$ac_delim"'/g
13703 t clear
13704 :clear
13705 s/\\$//
13706 t bsnlc
13707 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13708 d
13709 :bsnlc
13710 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13711 b cont
13712 ' <confdefs.h | sed '
13713 s/'"$ac_delim"'/"\\\
13714 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13715
13716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13717   for (key in D) D_is_set[key] = 1
13718   FS = "\a"
13719 }
13720 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13721   line = \$ 0
13722   split(line, arg, " ")
13723   if (arg[1] == "#") {
13724     defundef = arg[2]
13725     mac1 = arg[3]
13726   } else {
13727     defundef = substr(arg[1], 2)
13728     mac1 = arg[2]
13729   }
13730   split(mac1, mac2, "(") #)
13731   macro = mac2[1]
13732   prefix = substr(line, 1, index(line, defundef) - 1)
13733   if (D_is_set[macro]) {
13734     # Preserve the white space surrounding the "#".
13735     print prefix "define", macro P[macro] D[macro]
13736     next
13737   } else {
13738     # Replace #undef with comments.  This is necessary, for example,
13739     # in the case of _POSIX_SOURCE, which is predefined and required
13740     # on some systems where configure will not decide to define it.
13741     if (defundef == "undef") {
13742       print "/*", prefix defundef, macro, "*/"
13743       next
13744     }
13745   }
13746 }
13747 { print }
13748 _ACAWK
13749 _ACEOF
13750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13751   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13752 fi # test -n "$CONFIG_HEADERS"
13753
13754
13755 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13756 shift
13757 for ac_tag
13758 do
13759   case $ac_tag in
13760   :[FHLC]) ac_mode=$ac_tag; continue;;
13761   esac
13762   case $ac_mode$ac_tag in
13763   :[FHL]*:*);;
13764   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13765   :[FH]-) ac_tag=-:-;;
13766   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13767   esac
13768   ac_save_IFS=$IFS
13769   IFS=:
13770   set x $ac_tag
13771   IFS=$ac_save_IFS
13772   shift
13773   ac_file=$1
13774   shift
13775
13776   case $ac_mode in
13777   :L) ac_source=$1;;
13778   :[FH])
13779     ac_file_inputs=
13780     for ac_f
13781     do
13782       case $ac_f in
13783       -) ac_f="$ac_tmp/stdin";;
13784       *) # Look for the file first in the build tree, then in the source tree
13785          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13786          # because $ac_f cannot contain `:'.
13787          test -f "$ac_f" ||
13788            case $ac_f in
13789            [\\/$]*) false;;
13790            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13791            esac ||
13792            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13793       esac
13794       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13795       as_fn_append ac_file_inputs " '$ac_f'"
13796     done
13797
13798     # Let's still pretend it is `configure' which instantiates (i.e., don't
13799     # use $as_me), people would be surprised to read:
13800     #    /* config.h.  Generated by config.status.  */
13801     configure_input='Generated from '`
13802           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13803         `' by configure.'
13804     if test x"$ac_file" != x-; then
13805       configure_input="$ac_file.  $configure_input"
13806       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13807 $as_echo "$as_me: creating $ac_file" >&6;}
13808     fi
13809     # Neutralize special characters interpreted by sed in replacement strings.
13810     case $configure_input in #(
13811     *\&* | *\|* | *\\* )
13812        ac_sed_conf_input=`$as_echo "$configure_input" |
13813        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13814     *) ac_sed_conf_input=$configure_input;;
13815     esac
13816
13817     case $ac_tag in
13818     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13819       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13820     esac
13821     ;;
13822   esac
13823
13824   ac_dir=`$as_dirname -- "$ac_file" ||
13825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13826          X"$ac_file" : 'X\(//\)[^/]' \| \
13827          X"$ac_file" : 'X\(//\)$' \| \
13828          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13829 $as_echo X"$ac_file" |
13830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13831             s//\1/
13832             q
13833           }
13834           /^X\(\/\/\)[^/].*/{
13835             s//\1/
13836             q
13837           }
13838           /^X\(\/\/\)$/{
13839             s//\1/
13840             q
13841           }
13842           /^X\(\/\).*/{
13843             s//\1/
13844             q
13845           }
13846           s/.*/./; q'`
13847   as_dir="$ac_dir"; as_fn_mkdir_p
13848   ac_builddir=.
13849
13850 case "$ac_dir" in
13851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13852 *)
13853   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13854   # A ".." for each directory in $ac_dir_suffix.
13855   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13856   case $ac_top_builddir_sub in
13857   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13858   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13859   esac ;;
13860 esac
13861 ac_abs_top_builddir=$ac_pwd
13862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13863 # for backward compatibility:
13864 ac_top_builddir=$ac_top_build_prefix
13865
13866 case $srcdir in
13867   .)  # We are building in place.
13868     ac_srcdir=.
13869     ac_top_srcdir=$ac_top_builddir_sub
13870     ac_abs_top_srcdir=$ac_pwd ;;
13871   [\\/]* | ?:[\\/]* )  # Absolute name.
13872     ac_srcdir=$srcdir$ac_dir_suffix;
13873     ac_top_srcdir=$srcdir
13874     ac_abs_top_srcdir=$srcdir ;;
13875   *) # Relative name.
13876     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13877     ac_top_srcdir=$ac_top_build_prefix$srcdir
13878     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13879 esac
13880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13881
13882
13883   case $ac_mode in
13884   :F)
13885   #
13886   # CONFIG_FILE
13887   #
13888
13889   case $INSTALL in
13890   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13891   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13892   esac
13893   ac_MKDIR_P=$MKDIR_P
13894   case $MKDIR_P in
13895   [\\/$]* | ?:[\\/]* ) ;;
13896   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13897   esac
13898 _ACEOF
13899
13900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13901 # If the template does not know about datarootdir, expand it.
13902 # FIXME: This hack should be removed a few years after 2.60.
13903 ac_datarootdir_hack=; ac_datarootdir_seen=
13904 ac_sed_dataroot='
13905 /datarootdir/ {
13906   p
13907   q
13908 }
13909 /@datadir@/p
13910 /@docdir@/p
13911 /@infodir@/p
13912 /@localedir@/p
13913 /@mandir@/p'
13914 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13915 *datarootdir*) ac_datarootdir_seen=yes;;
13916 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13917   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13918 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13919 _ACEOF
13920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13921   ac_datarootdir_hack='
13922   s&@datadir@&$datadir&g
13923   s&@docdir@&$docdir&g
13924   s&@infodir@&$infodir&g
13925   s&@localedir@&$localedir&g
13926   s&@mandir@&$mandir&g
13927   s&\\\${datarootdir}&$datarootdir&g' ;;
13928 esac
13929 _ACEOF
13930
13931 # Neutralize VPATH when `$srcdir' = `.'.
13932 # Shell code in configure.ac might set extrasub.
13933 # FIXME: do we really want to maintain this feature?
13934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13935 ac_sed_extra="$ac_vpsub
13936 $extrasub
13937 _ACEOF
13938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13939 :t
13940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13941 s|@configure_input@|$ac_sed_conf_input|;t t
13942 s&@top_builddir@&$ac_top_builddir_sub&;t t
13943 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13944 s&@srcdir@&$ac_srcdir&;t t
13945 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13946 s&@top_srcdir@&$ac_top_srcdir&;t t
13947 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13948 s&@builddir@&$ac_builddir&;t t
13949 s&@abs_builddir@&$ac_abs_builddir&;t t
13950 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13951 s&@INSTALL@&$ac_INSTALL&;t t
13952 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13953 $ac_datarootdir_hack
13954 "
13955 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13956   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13957
13958 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13959   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13960   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13961       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13962   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13963 which seems to be undefined.  Please make sure it is defined" >&5
13964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13965 which seems to be undefined.  Please make sure it is defined" >&2;}
13966
13967   rm -f "$ac_tmp/stdin"
13968   case $ac_file in
13969   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13970   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13971   esac \
13972   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973  ;;
13974   :H)
13975   #
13976   # CONFIG_HEADER
13977   #
13978   if test x"$ac_file" != x-; then
13979     {
13980       $as_echo "/* $configure_input  */" \
13981       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13982     } >"$ac_tmp/config.h" \
13983       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13984     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13985       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13987     else
13988       rm -f "$ac_file"
13989       mv "$ac_tmp/config.h" "$ac_file" \
13990         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13991     fi
13992   else
13993     $as_echo "/* $configure_input  */" \
13994       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13995       || as_fn_error $? "could not create -" "$LINENO" 5
13996   fi
13997 # Compute "$ac_file"'s index in $config_headers.
13998 _am_arg="$ac_file"
13999 _am_stamp_count=1
14000 for _am_header in $config_headers :; do
14001   case $_am_header in
14002     $_am_arg | $_am_arg:* )
14003       break ;;
14004     * )
14005       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14006   esac
14007 done
14008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14010          X"$_am_arg" : 'X\(//\)[^/]' \| \
14011          X"$_am_arg" : 'X\(//\)$' \| \
14012          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14013 $as_echo X"$_am_arg" |
14014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14015             s//\1/
14016             q
14017           }
14018           /^X\(\/\/\)[^/].*/{
14019             s//\1/
14020             q
14021           }
14022           /^X\(\/\/\)$/{
14023             s//\1/
14024             q
14025           }
14026           /^X\(\/\).*/{
14027             s//\1/
14028             q
14029           }
14030           s/.*/./; q'`/stamp-h$_am_stamp_count
14031  ;;
14032
14033   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14034 $as_echo "$as_me: executing $ac_file commands" >&6;}
14035  ;;
14036   esac
14037
14038
14039   case $ac_file$ac_mode in
14040     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14041   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14042   # are listed without --file.  Let's play safe and only enable the eval
14043   # if we detect the quoting.
14044   case $CONFIG_FILES in
14045   *\'*) eval set x "$CONFIG_FILES" ;;
14046   *)   set x $CONFIG_FILES ;;
14047   esac
14048   shift
14049   for mf
14050   do
14051     # Strip MF so we end up with the name of the file.
14052     mf=`echo "$mf" | sed -e 's/:.*$//'`
14053     # Check whether this is an Automake generated Makefile or not.
14054     # We used to match only the files named `Makefile.in', but
14055     # some people rename them; so instead we look at the file content.
14056     # Grep'ing the first line is not enough: some people post-process
14057     # each Makefile.in and add a new line on top of each file to say so.
14058     # Grep'ing the whole file is not good either: AIX grep has a line
14059     # limit of 2048, but all sed's we know have understand at least 4000.
14060     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14061       dirpart=`$as_dirname -- "$mf" ||
14062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14063          X"$mf" : 'X\(//\)[^/]' \| \
14064          X"$mf" : 'X\(//\)$' \| \
14065          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14066 $as_echo X"$mf" |
14067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14068             s//\1/
14069             q
14070           }
14071           /^X\(\/\/\)[^/].*/{
14072             s//\1/
14073             q
14074           }
14075           /^X\(\/\/\)$/{
14076             s//\1/
14077             q
14078           }
14079           /^X\(\/\).*/{
14080             s//\1/
14081             q
14082           }
14083           s/.*/./; q'`
14084     else
14085       continue
14086     fi
14087     # Extract the definition of DEPDIR, am__include, and am__quote
14088     # from the Makefile without running `make'.
14089     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14090     test -z "$DEPDIR" && continue
14091     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14092     test -z "am__include" && continue
14093     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14094     # When using ansi2knr, U may be empty or an underscore; expand it
14095     U=`sed -n 's/^U = //p' < "$mf"`
14096     # Find all dependency output files, they are included files with
14097     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14098     # simplest approach to changing $(DEPDIR) to its actual value in the
14099     # expansion.
14100     for file in `sed -n "
14101       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14102          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14103       # Make sure the directory exists.
14104       test -f "$dirpart/$file" && continue
14105       fdir=`$as_dirname -- "$file" ||
14106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107          X"$file" : 'X\(//\)[^/]' \| \
14108          X"$file" : 'X\(//\)$' \| \
14109          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14110 $as_echo X"$file" |
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'`
14128       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14129       # echo "creating $dirpart/$file"
14130       echo '# dummy' > "$dirpart/$file"
14131     done
14132   done
14133 }
14134  ;;
14135     "libtool":C)
14136
14137     # See if we are running on zsh, and set the options which allow our
14138     # commands through without removal of \ escapes.
14139     if test -n "${ZSH_VERSION+set}" ; then
14140       setopt NO_GLOB_SUBST
14141     fi
14142
14143     cfgfile="${ofile}T"
14144     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14145     $RM "$cfgfile"
14146
14147     cat <<_LT_EOF >> "$cfgfile"
14148 #! $SHELL
14149
14150 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14151 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14154 #
14155 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14156 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14157 #                 Inc.
14158 #   Written by Gordon Matzigkeit, 1996
14159 #
14160 #   This file is part of GNU Libtool.
14161 #
14162 # GNU Libtool is free software; you can redistribute it and/or
14163 # modify it under the terms of the GNU General Public License as
14164 # published by the Free Software Foundation; either version 2 of
14165 # the License, or (at your option) any later version.
14166 #
14167 # As a special exception to the GNU General Public License,
14168 # if you distribute this file as part of a program or library that
14169 # is built using GNU Libtool, you may include this file under the
14170 # same distribution terms that you use for the rest of that program.
14171 #
14172 # GNU Libtool is distributed in the hope that it will be useful,
14173 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14175 # GNU General Public License for more details.
14176 #
14177 # You should have received a copy of the GNU General Public License
14178 # along with GNU Libtool; see the file COPYING.  If not, a copy
14179 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14180 # obtained by writing to the Free Software Foundation, Inc.,
14181 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14182
14183
14184 # The names of the tagged configurations supported by this script.
14185 available_tags=""
14186
14187 # ### BEGIN LIBTOOL CONFIG
14188
14189 # Which release of libtool.m4 was used?
14190 macro_version=$macro_version
14191 macro_revision=$macro_revision
14192
14193 # Whether or not to build shared libraries.
14194 build_libtool_libs=$enable_shared
14195
14196 # Whether or not to build static libraries.
14197 build_old_libs=$enable_static
14198
14199 # What type of objects to build.
14200 pic_mode=$pic_mode
14201
14202 # Whether or not to optimize for fast installation.
14203 fast_install=$enable_fast_install
14204
14205 # Shell to use when invoking shell scripts.
14206 SHELL=$lt_SHELL
14207
14208 # An echo program that protects backslashes.
14209 ECHO=$lt_ECHO
14210
14211 # The host system.
14212 host_alias=$host_alias
14213 host=$host
14214 host_os=$host_os
14215
14216 # The build system.
14217 build_alias=$build_alias
14218 build=$build
14219 build_os=$build_os
14220
14221 # A sed program that does not truncate output.
14222 SED=$lt_SED
14223
14224 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14225 Xsed="\$SED -e 1s/^X//"
14226
14227 # A grep program that handles long lines.
14228 GREP=$lt_GREP
14229
14230 # An ERE matcher.
14231 EGREP=$lt_EGREP
14232
14233 # A literal string matcher.
14234 FGREP=$lt_FGREP
14235
14236 # A BSD- or MS-compatible name lister.
14237 NM=$lt_NM
14238
14239 # Whether we need soft or hard links.
14240 LN_S=$lt_LN_S
14241
14242 # What is the maximum length of a command?
14243 max_cmd_len=$max_cmd_len
14244
14245 # Object file suffix (normally "o").
14246 objext=$ac_objext
14247
14248 # Executable file suffix (normally "").
14249 exeext=$exeext
14250
14251 # whether the shell understands "unset".
14252 lt_unset=$lt_unset
14253
14254 # turn spaces into newlines.
14255 SP2NL=$lt_lt_SP2NL
14256
14257 # turn newlines into spaces.
14258 NL2SP=$lt_lt_NL2SP
14259
14260 # convert \$build file names to \$host format.
14261 to_host_file_cmd=$lt_cv_to_host_file_cmd
14262
14263 # convert \$build files to toolchain format.
14264 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14265
14266 # An object symbol dumper.
14267 OBJDUMP=$lt_OBJDUMP
14268
14269 # Method to check whether dependent libraries are shared objects.
14270 deplibs_check_method=$lt_deplibs_check_method
14271
14272 # Command to use when deplibs_check_method = "file_magic".
14273 file_magic_cmd=$lt_file_magic_cmd
14274
14275 # How to find potential files when deplibs_check_method = "file_magic".
14276 file_magic_glob=$lt_file_magic_glob
14277
14278 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14279 want_nocaseglob=$lt_want_nocaseglob
14280
14281 # DLL creation program.
14282 DLLTOOL=$lt_DLLTOOL
14283
14284 # Command to associate shared and link libraries.
14285 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14286
14287 # The archiver.
14288 AR=$lt_AR
14289
14290 # Flags to create an archive.
14291 AR_FLAGS=$lt_AR_FLAGS
14292
14293 # How to feed a file listing to the archiver.
14294 archiver_list_spec=$lt_archiver_list_spec
14295
14296 # A symbol stripping program.
14297 STRIP=$lt_STRIP
14298
14299 # Commands used to install an old-style archive.
14300 RANLIB=$lt_RANLIB
14301 old_postinstall_cmds=$lt_old_postinstall_cmds
14302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14303
14304 # Whether to use a lock for old archive extraction.
14305 lock_old_archive_extraction=$lock_old_archive_extraction
14306
14307 # A C compiler.
14308 LTCC=$lt_CC
14309
14310 # LTCC compiler flags.
14311 LTCFLAGS=$lt_CFLAGS
14312
14313 # Take the output of nm and produce a listing of raw symbols and C names.
14314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14315
14316 # Transform the output of nm in a proper C declaration.
14317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14318
14319 # Transform the output of nm in a C name address pair.
14320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14321
14322 # Transform the output of nm in a C name address pair when lib prefix is needed.
14323 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14324
14325 # Specify filename containing input files for \$NM.
14326 nm_file_list_spec=$lt_nm_file_list_spec
14327
14328 # The root where to search for dependent libraries,and in which our libraries should be installed.
14329 lt_sysroot=$lt_sysroot
14330
14331 # The name of the directory that contains temporary libtool files.
14332 objdir=$objdir
14333
14334 # Used to examine libraries when file_magic_cmd begins with "file".
14335 MAGIC_CMD=$MAGIC_CMD
14336
14337 # Must we lock files when doing compilation?
14338 need_locks=$lt_need_locks
14339
14340 # Manifest tool.
14341 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14342
14343 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14344 DSYMUTIL=$lt_DSYMUTIL
14345
14346 # Tool to change global to local symbols on Mac OS X.
14347 NMEDIT=$lt_NMEDIT
14348
14349 # Tool to manipulate fat objects and archives on Mac OS X.
14350 LIPO=$lt_LIPO
14351
14352 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14353 OTOOL=$lt_OTOOL
14354
14355 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14356 OTOOL64=$lt_OTOOL64
14357
14358 # Old archive suffix (normally "a").
14359 libext=$libext
14360
14361 # Shared library suffix (normally ".so").
14362 shrext_cmds=$lt_shrext_cmds
14363
14364 # The commands to extract the exported symbol list from a shared archive.
14365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14366
14367 # Variables whose values should be saved in libtool wrapper scripts and
14368 # restored at link time.
14369 variables_saved_for_relink=$lt_variables_saved_for_relink
14370
14371 # Do we need the "lib" prefix for modules?
14372 need_lib_prefix=$need_lib_prefix
14373
14374 # Do we need a version for libraries?
14375 need_version=$need_version
14376
14377 # Library versioning type.
14378 version_type=$version_type
14379
14380 # Shared library runtime path variable.
14381 runpath_var=$runpath_var
14382
14383 # Shared library path variable.
14384 shlibpath_var=$shlibpath_var
14385
14386 # Is shlibpath searched before the hard-coded library search path?
14387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14388
14389 # Format of library name prefix.
14390 libname_spec=$lt_libname_spec
14391
14392 # List of archive names.  First name is the real one, the rest are links.
14393 # The last name is the one that the linker finds with -lNAME
14394 library_names_spec=$lt_library_names_spec
14395
14396 # The coded name of the library, if different from the real name.
14397 soname_spec=$lt_soname_spec
14398
14399 # Permission mode override for installation of shared libraries.
14400 install_override_mode=$lt_install_override_mode
14401
14402 # Command to use after installation of a shared archive.
14403 postinstall_cmds=$lt_postinstall_cmds
14404
14405 # Command to use after uninstallation of a shared archive.
14406 postuninstall_cmds=$lt_postuninstall_cmds
14407
14408 # Commands used to finish a libtool library installation in a directory.
14409 finish_cmds=$lt_finish_cmds
14410
14411 # As "finish_cmds", except a single script fragment to be evaled but
14412 # not shown.
14413 finish_eval=$lt_finish_eval
14414
14415 # Whether we should hardcode library paths into libraries.
14416 hardcode_into_libs=$hardcode_into_libs
14417
14418 # Compile-time system search path for libraries.
14419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14420
14421 # Run-time system search path for libraries.
14422 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14423
14424 # Whether dlopen is supported.
14425 dlopen_support=$enable_dlopen
14426
14427 # Whether dlopen of programs is supported.
14428 dlopen_self=$enable_dlopen_self
14429
14430 # Whether dlopen of statically linked programs is supported.
14431 dlopen_self_static=$enable_dlopen_self_static
14432
14433 # Commands to strip libraries.
14434 old_striplib=$lt_old_striplib
14435 striplib=$lt_striplib
14436
14437
14438 # The linker used to build libraries.
14439 LD=$lt_LD
14440
14441 # How to create reloadable object files.
14442 reload_flag=$lt_reload_flag
14443 reload_cmds=$lt_reload_cmds
14444
14445 # Commands used to build an old-style archive.
14446 old_archive_cmds=$lt_old_archive_cmds
14447
14448 # A language specific compiler.
14449 CC=$lt_compiler
14450
14451 # Is the compiler the GNU compiler?
14452 with_gcc=$GCC
14453
14454 # Compiler flag to turn off builtin functions.
14455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14456
14457 # Additional compiler flags for building library objects.
14458 pic_flag=$lt_lt_prog_compiler_pic
14459
14460 # How to pass a linker flag through the compiler.
14461 wl=$lt_lt_prog_compiler_wl
14462
14463 # Compiler flag to prevent dynamic linking.
14464 link_static_flag=$lt_lt_prog_compiler_static
14465
14466 # Does compiler simultaneously support -c and -o options?
14467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14468
14469 # Whether or not to add -lc for building shared libraries.
14470 build_libtool_need_lc=$archive_cmds_need_lc
14471
14472 # Whether or not to disallow shared libs when runtime libs are static.
14473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14474
14475 # Compiler flag to allow reflexive dlopens.
14476 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14477
14478 # Compiler flag to generate shared objects directly from archives.
14479 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14480
14481 # Whether the compiler copes with passing no objects directly.
14482 compiler_needs_object=$lt_compiler_needs_object
14483
14484 # Create an old-style archive from a shared archive.
14485 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14486
14487 # Create a temporary old-style archive to link instead of a shared archive.
14488 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14489
14490 # Commands used to build a shared archive.
14491 archive_cmds=$lt_archive_cmds
14492 archive_expsym_cmds=$lt_archive_expsym_cmds
14493
14494 # Commands used to build a loadable module if different from building
14495 # a shared archive.
14496 module_cmds=$lt_module_cmds
14497 module_expsym_cmds=$lt_module_expsym_cmds
14498
14499 # Whether we are building with GNU ld or not.
14500 with_gnu_ld=$lt_with_gnu_ld
14501
14502 # Flag that allows shared libraries with undefined symbols to be built.
14503 allow_undefined_flag=$lt_allow_undefined_flag
14504
14505 # Flag that enforces no undefined symbols.
14506 no_undefined_flag=$lt_no_undefined_flag
14507
14508 # Flag to hardcode \$libdir into a binary during linking.
14509 # This must work even if \$libdir does not exist
14510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14511
14512 # If ld is used when linking, flag to hardcode \$libdir into a binary
14513 # during linking.  This must work even if \$libdir does not exist.
14514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14515
14516 # Whether we need a single "-rpath" flag with a separated argument.
14517 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14518
14519 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14520 # DIR into the resulting binary.
14521 hardcode_direct=$hardcode_direct
14522
14523 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14524 # DIR into the resulting binary and the resulting library dependency is
14525 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14526 # library is relocated.
14527 hardcode_direct_absolute=$hardcode_direct_absolute
14528
14529 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14530 # into the resulting binary.
14531 hardcode_minus_L=$hardcode_minus_L
14532
14533 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14534 # into the resulting binary.
14535 hardcode_shlibpath_var=$hardcode_shlibpath_var
14536
14537 # Set to "yes" if building a shared library automatically hardcodes DIR
14538 # into the library and all subsequent libraries and executables linked
14539 # against it.
14540 hardcode_automatic=$hardcode_automatic
14541
14542 # Set to yes if linker adds runtime paths of dependent libraries
14543 # to runtime path list.
14544 inherit_rpath=$inherit_rpath
14545
14546 # Whether libtool must link a program against all its dependency libraries.
14547 link_all_deplibs=$link_all_deplibs
14548
14549 # Set to "yes" if exported symbols are required.
14550 always_export_symbols=$always_export_symbols
14551
14552 # The commands to list exported symbols.
14553 export_symbols_cmds=$lt_export_symbols_cmds
14554
14555 # Symbols that should not be listed in the preloaded symbols.
14556 exclude_expsyms=$lt_exclude_expsyms
14557
14558 # Symbols that must always be exported.
14559 include_expsyms=$lt_include_expsyms
14560
14561 # Commands necessary for linking programs (against libraries) with templates.
14562 prelink_cmds=$lt_prelink_cmds
14563
14564 # Commands necessary for finishing linking programs.
14565 postlink_cmds=$lt_postlink_cmds
14566
14567 # Specify filename containing input files.
14568 file_list_spec=$lt_file_list_spec
14569
14570 # How to hardcode a shared library path into an executable.
14571 hardcode_action=$hardcode_action
14572
14573 # ### END LIBTOOL CONFIG
14574
14575 _LT_EOF
14576
14577   case $host_os in
14578   aix3*)
14579     cat <<\_LT_EOF >> "$cfgfile"
14580 # AIX sometimes has problems with the GCC collect2 program.  For some
14581 # reason, if we set the COLLECT_NAMES environment variable, the problems
14582 # vanish in a puff of smoke.
14583 if test "X${COLLECT_NAMES+set}" != Xset; then
14584   COLLECT_NAMES=
14585   export COLLECT_NAMES
14586 fi
14587 _LT_EOF
14588     ;;
14589   esac
14590
14591
14592 ltmain="$ac_aux_dir/ltmain.sh"
14593
14594
14595   # We use sed instead of cat because bash on DJGPP gets confused if
14596   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14597   # text mode, it properly converts lines to CR/LF.  This bash problem
14598   # is reportedly fixed, but why not run on old versions too?
14599   sed '$q' "$ltmain" >> "$cfgfile" \
14600      || (rm -f "$cfgfile"; exit 1)
14601
14602   if test x"$xsi_shell" = xyes; then
14603   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14604 func_dirname ()\
14605 {\
14606 \    case ${1} in\
14607 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14608 \      *  ) func_dirname_result="${3}" ;;\
14609 \    esac\
14610 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14611   && mv -f "$cfgfile.tmp" "$cfgfile" \
14612     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14613 test 0 -eq $? || _lt_function_replace_fail=:
14614
14615
14616   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14617 func_basename ()\
14618 {\
14619 \    func_basename_result="${1##*/}"\
14620 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14621   && mv -f "$cfgfile.tmp" "$cfgfile" \
14622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14623 test 0 -eq $? || _lt_function_replace_fail=:
14624
14625
14626   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14627 func_dirname_and_basename ()\
14628 {\
14629 \    case ${1} in\
14630 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14631 \      *  ) func_dirname_result="${3}" ;;\
14632 \    esac\
14633 \    func_basename_result="${1##*/}"\
14634 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14635   && mv -f "$cfgfile.tmp" "$cfgfile" \
14636     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14637 test 0 -eq $? || _lt_function_replace_fail=:
14638
14639
14640   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14641 func_stripname ()\
14642 {\
14643 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14644 \    # positional parameters, so assign one to ordinary parameter first.\
14645 \    func_stripname_result=${3}\
14646 \    func_stripname_result=${func_stripname_result#"${1}"}\
14647 \    func_stripname_result=${func_stripname_result%"${2}"}\
14648 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14649   && mv -f "$cfgfile.tmp" "$cfgfile" \
14650     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14651 test 0 -eq $? || _lt_function_replace_fail=:
14652
14653
14654   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14655 func_split_long_opt ()\
14656 {\
14657 \    func_split_long_opt_name=${1%%=*}\
14658 \    func_split_long_opt_arg=${1#*=}\
14659 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14660   && mv -f "$cfgfile.tmp" "$cfgfile" \
14661     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14662 test 0 -eq $? || _lt_function_replace_fail=:
14663
14664
14665   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14666 func_split_short_opt ()\
14667 {\
14668 \    func_split_short_opt_arg=${1#??}\
14669 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14670 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14671   && mv -f "$cfgfile.tmp" "$cfgfile" \
14672     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673 test 0 -eq $? || _lt_function_replace_fail=:
14674
14675
14676   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14677 func_lo2o ()\
14678 {\
14679 \    case ${1} in\
14680 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14681 \      *)    func_lo2o_result=${1} ;;\
14682 \    esac\
14683 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14684   && mv -f "$cfgfile.tmp" "$cfgfile" \
14685     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14686 test 0 -eq $? || _lt_function_replace_fail=:
14687
14688
14689   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14690 func_xform ()\
14691 {\
14692     func_xform_result=${1%.*}.lo\
14693 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14694   && mv -f "$cfgfile.tmp" "$cfgfile" \
14695     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14696 test 0 -eq $? || _lt_function_replace_fail=:
14697
14698
14699   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14700 func_arith ()\
14701 {\
14702     func_arith_result=$(( $* ))\
14703 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14704   && mv -f "$cfgfile.tmp" "$cfgfile" \
14705     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14706 test 0 -eq $? || _lt_function_replace_fail=:
14707
14708
14709   sed -e '/^func_len ()$/,/^} # func_len /c\
14710 func_len ()\
14711 {\
14712     func_len_result=${#1}\
14713 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14714   && mv -f "$cfgfile.tmp" "$cfgfile" \
14715     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14716 test 0 -eq $? || _lt_function_replace_fail=:
14717
14718 fi
14719
14720 if test x"$lt_shell_append" = xyes; then
14721   sed -e '/^func_append ()$/,/^} # func_append /c\
14722 func_append ()\
14723 {\
14724     eval "${1}+=\\${2}"\
14725 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14726   && mv -f "$cfgfile.tmp" "$cfgfile" \
14727     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14728 test 0 -eq $? || _lt_function_replace_fail=:
14729
14730
14731   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14732 func_append_quoted ()\
14733 {\
14734 \    func_quote_for_eval "${2}"\
14735 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14736 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14737   && mv -f "$cfgfile.tmp" "$cfgfile" \
14738     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14739 test 0 -eq $? || _lt_function_replace_fail=:
14740
14741
14742   # Save a `func_append' function call where possible by direct use of '+='
14743   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14744     && mv -f "$cfgfile.tmp" "$cfgfile" \
14745       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14746   test 0 -eq $? || _lt_function_replace_fail=:
14747 else
14748   # Save a `func_append' function call even when '+=' is not available
14749   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14750     && mv -f "$cfgfile.tmp" "$cfgfile" \
14751       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14752   test 0 -eq $? || _lt_function_replace_fail=:
14753 fi
14754
14755 if test x"$_lt_function_replace_fail" = x":"; then
14756   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14757 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14758 fi
14759
14760
14761    mv -f "$cfgfile" "$ofile" ||
14762     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14763   chmod +x "$ofile"
14764
14765  ;;
14766
14767   esac
14768 done # for ac_tag
14769
14770
14771 as_fn_exit 0
14772 _ACEOF
14773 ac_clean_files=$ac_clean_files_save
14774
14775 test $ac_write_fail = 0 ||
14776   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14777
14778
14779 # configure is writing to config.log, and then calls config.status.
14780 # config.status does its own redirection, appending to config.log.
14781 # Unfortunately, on DOS this fails, as config.log is still kept open
14782 # by configure, so config.status won't be able to write to it; its
14783 # output is simply discarded.  So we exec the FD to /dev/null,
14784 # effectively closing config.log, so it can be properly (re)opened and
14785 # appended to by config.status.  When coming back to configure, we
14786 # need to make the FD available again.
14787 if test "$no_create" != yes; then
14788   ac_cs_success=:
14789   ac_config_status_args=
14790   test "$silent" = yes &&
14791     ac_config_status_args="$ac_config_status_args --quiet"
14792   exec 5>/dev/null
14793   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14794   exec 5>>config.log
14795   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14796   # would make configure fail if this is the last instruction.
14797   $ac_cs_success || as_fn_exit 1
14798 fi
14799 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14800   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14801 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14802 fi
14803