ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/ircd-hybrid-20110809/configure
Revision: 1154
Committed: Tue Aug 9 20:07:34 2011 UTC (12 years, 7 months ago) by michael
File size: 502883 byte(s)
Log Message:
- move directories

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1108 2010-11-02 15:20:47Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for ircd-hybrid 7.4.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154 esac
155 fi
156 "
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171 exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
188 as_have_required=yes
189 else
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194 else
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 test -z "$as_dir" && as_dir=.
201 as_found=:
202 case $as_dir in #(
203 /*)
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 break 2
212 fi
213 fi
214 done;;
215 esac
216 as_found=false
217 done
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
221 fi; }
222 IFS=$as_save_IFS
223
224
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
230 BASH_ENV=/dev/null
231 ENV=/dev/null
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233 export CONFIG_SHELL
234 case $- in # ((((
235 *v*x* | *x*v* ) as_opts=-vx ;;
236 *v* ) as_opts=-v ;;
237 *x* ) as_opts=-x ;;
238 * ) as_opts= ;;
239 esac
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241 fi
242
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 else
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: bugs@ircd-hybrid.org about your system, including any
252 $0: error possibly output before this message. Then install
253 $0: a modern shell, or manually run the script under such a
254 $0: shell if you do have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 lt_ltdl_dir='libltdl'
549
550 SHELL=${CONFIG_SHELL-/bin/sh}
551
552
553 test -n "$DJDIR" || exec 7<&0 </dev/null
554 exec 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572
573 # Identity of this package.
574 PACKAGE_NAME='ircd-hybrid'
575 PACKAGE_TARNAME='ircd-hybrid'
576 PACKAGE_VERSION='7.4'
577 PACKAGE_STRING='ircd-hybrid 7.4'
578 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
579 PACKAGE_URL=''
580
581 ac_unique_file="src/ircd.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_func_list=
619 ac_header_list=
620 ac_subst_vars='ltdl_LTLIBOBJS
621 ltdl_LIBOBJS
622 am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 LOCALSTATEDIR
627 DATADIR
628 LIBDIR
629 SYSCONFDIR
630 PREFIX
631 EFNET_FALSE
632 EFNET_TRUE
633 ENABLE_SSL_FALSE
634 ENABLE_SSL_TRUE
635 ENABLE_PCRE_FALSE
636 ENABLE_PCRE_TRUE
637 LTDLOPEN
638 LT_CONFIG_H
639 CONVENIENCE_LTDL_FALSE
640 CONVENIENCE_LTDL_TRUE
641 INSTALL_LTDL_FALSE
642 INSTALL_LTDL_TRUE
643 ARGZ_H
644 sys_symbol_underscore
645 LIBADD_DL
646 LT_DLPREOPEN
647 LIBADD_DLD_LINK
648 LIBADD_SHL_LOAD
649 LIBADD_DLOPEN
650 LT_DLLOADERS
651 INCLTDL
652 LTDLINCL
653 LTDLDEPS
654 LIBLTDL
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 EGREP
674 GREP
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 LIBTOOL
685 LEXLIB
686 LEX_OUTPUT_ROOT
687 LEX
688 YFLAGS
689 YACC
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 with_included_ltdl
783 with_ltdl_include
784 with_ltdl_lib
785 enable_ltdl_install
786 with_zlib_path
787 enable_zlib
788 with_libpcre_path
789 enable_libpcre
790 enable_openssl
791 enable_assert
792 enable_small_net
793 enable_kqueue
794 enable_epoll
795 enable_devpoll
796 enable_rtsigio
797 enable_poll
798 enable_select
799 with_nicklen
800 with_topiclen
801 with_syslog_facility
802 enable_efnet
803 enable_halfops
804 enable_debugging
805 enable_warnings
806 enable_syslog
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 YACC
817 YFLAGS
818 CPP'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used" >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures ircd-hybrid 7.4 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of ircd-hybrid 7.4:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable make rules and dependencies not useful
1440 (and sometimes confusing) to the casual installer
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-static[=PKGS] build static libraries [default=no]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-ltdl-install install libltdl
1449 --disable-zlib Disable ziplinks support
1450 --disable-libpcre Disable PCRE support
1451 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1452 --disable-openssl Disable OpenSSL support.
1453 --enable-assert Enable assert() statements
1454 --enable-small-net Enable small network support.
1455 --enable-kqueue Force kqueue usage.
1456 --enable-epoll Force epoll usage.
1457 --enable-devpoll Force devpoll usage.
1458 --enable-rtsigio Force rtsigio usage.
1459 --enable-poll Force poll usage.
1460 --enable-select Force select usage.
1461 --enable-efnet For IRCDs running on EFnet.
1462 --enable-halfops Enable halfops support.
1463 --enable-debugging Enable debugging.
1464 --enable-warnings Enable compiler warnings.
1465 --enable-syslog="EVENTS"
1466 Enable syslog for events: users oper (space
1467 separated in quotes; default: disabled).
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot=DIR Search for dependent libraries within DIR
1476 (or the compiler's sysroot if not specified).
1477 --with-included-ltdl use the GNU ltdl sources included here
1478 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1479 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1480 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1481 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1482 --with-nicklen=<value> Set nickname length (default 9).
1483 --with-topiclen=<value> Set topic length (default 160).
1484 --with-syslog-facility=LOG
1485 Define the syslog facility to use (default:
1486 LOG_LOCAL4)
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 YACC The `Yet Another Compiler Compiler' implementation to use.
1497 Defaults to the first program found out of: `bison -y', `byacc',
1498 `yacc'.
1499 YFLAGS The list of arguments that will be passed by default to $YACC.
1500 This script will default YFLAGS to the empty string to avoid a
1501 default value of `-d' given by some make applications.
1502 CPP C preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <bugs@ircd-hybrid.org>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 ircd-hybrid configure 7.4
1571 generated by GNU Autoconf 2.68
1572
1573 Copyright (C) 2010 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 $as_test_x conftest$ac_exeext
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_link
1667
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } > conftest.i && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_cpp
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793 #define $2 innocuous_$2
1794
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char $2 (); below.
1797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798 <limits.h> exists even on freestanding compilers. */
1799
1800 #ifdef __STDC__
1801 # include <limits.h>
1802 #else
1803 # include <assert.h>
1804 #endif
1805
1806 #undef $2
1807
1808 /* Override any GCC internal prototype to avoid an error.
1809 Use char because int might match the return type of a GCC
1810 builtin and then its argument prototype would still apply. */
1811 #ifdef __cplusplus
1812 extern "C"
1813 #endif
1814 char $2 ();
1815 /* The GNU C library defines this for functions which it implements
1816 to always fail with ENOSYS. Some functions are actually named
1817 something starting with __ and the normal name is an alias. */
1818 #if defined __stub_$2 || defined __stub___$2
1819 choke me
1820 #endif
1821
1822 int
1823 main ()
1824 {
1825 return $2 ();
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_link "$LINENO"; then :
1831 eval "$3=yes"
1832 else
1833 eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext \
1836 conftest$ac_exeext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_func
1844
1845 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1846 # ---------------------------------------------
1847 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1848 # accordingly.
1849 ac_fn_c_check_decl ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 as_decl_name=`echo $2|sed 's/ *(.*//'`
1853 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1855 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main ()
1864 {
1865 #ifndef $as_decl_name
1866 #ifdef __cplusplus
1867 (void) $as_decl_use;
1868 #else
1869 (void) $as_decl_name;
1870 #endif
1871 #endif
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_decl
1890
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=no"
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof ($2))
1911 return 0;
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 if (sizeof (($2)))
1924 return 0;
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930
1931 else
1932 eval "$3=yes"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_type
1944
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $5
1960 int
1961 main ()
1962 {
1963 static $2 ac_aggr;
1964 if (ac_aggr.$3)
1965 return 0;
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$4=yes"
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (sizeof ac_aggr.$3)
1981 return 0;
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$4=yes"
1988 else
1989 eval "$4=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$4
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_member
2001
2002 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2003 # --------------------------------------------
2004 # Tries to find the compile-time value of EXPR in a program that includes
2005 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2006 # computed
2007 ac_fn_c_compute_int ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if test "$cross_compiling" = yes; then
2011 # Depending upon the size, compute the lo and hi bounds.
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $4
2015 int
2016 main ()
2017 {
2018 static int test_array [1 - 2 * !(($2) >= 0)];
2019 test_array [0] = 0
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_lo=0 ac_mid=0
2027 while :; do
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035 test_array [0] = 0
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=$ac_mid; break
2043 else
2044 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2045 if test $ac_lo -le $ac_mid; then
2046 ac_lo= ac_hi=
2047 break
2048 fi
2049 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 done
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 int
2058 main ()
2059 {
2060 static int test_array [1 - 2 * !(($2) < 0)];
2061 test_array [0] = 0
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=-1 ac_mid=-1
2069 while :; do
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 int
2074 main ()
2075 {
2076 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2077 test_array [0] = 0
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_lo=$ac_mid; break
2085 else
2086 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2087 if test $ac_mid -le $ac_hi; then
2088 ac_lo= ac_hi=
2089 break
2090 fi
2091 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 done
2095 else
2096 ac_lo= ac_hi=
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 # Binary search between lo and hi bounds.
2102 while test "x$ac_lo" != "x$ac_hi"; do
2103 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2106 $4
2107 int
2108 main ()
2109 {
2110 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2111 test_array [0] = 0
2112
2113 ;
2114 return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 ac_hi=$ac_mid
2119 else
2120 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 done
2124 case $ac_lo in #((
2125 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2126 '') ac_retval=1 ;;
2127 esac
2128 else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 static long int longval () { return $2; }
2133 static unsigned long int ulongval () { return $2; }
2134 #include <stdio.h>
2135 #include <stdlib.h>
2136 int
2137 main ()
2138 {
2139
2140 FILE *f = fopen ("conftest.val", "w");
2141 if (! f)
2142 return 1;
2143 if (($2) < 0)
2144 {
2145 long int i = longval ();
2146 if (i != ($2))
2147 return 1;
2148 fprintf (f, "%ld", i);
2149 }
2150 else
2151 {
2152 unsigned long int i = ulongval ();
2153 if (i != ($2))
2154 return 1;
2155 fprintf (f, "%lu", i);
2156 }
2157 /* Do not output a trailing newline, as this causes \r\n confusion
2158 on some platforms. */
2159 return ferror (f) || fclose (f) != 0;
2160
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_run "$LINENO"; then :
2166 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2167 else
2168 ac_retval=1
2169 fi
2170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2171 conftest.$ac_objext conftest.beam conftest.$ac_ext
2172 rm -f conftest.val
2173
2174 fi
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_c_compute_int
2179
2180 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2181 # -------------------------------------------------------
2182 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2183 # the include files in INCLUDES and setting the cache variable VAR
2184 # accordingly.
2185 ac_fn_c_check_header_mongrel ()
2186 {
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if eval \${$3+:} false; then :
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if eval \${$3+:} false; then :
2192 $as_echo_n "(cached) " >&6
2193 fi
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 else
2198 # Is the header compilable?
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2200 $as_echo_n "checking $2 usability... " >&6; }
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 #include <$2>
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_header_compiler=yes
2208 else
2209 ac_header_compiler=no
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2213 $as_echo "$ac_header_compiler" >&6; }
2214
2215 # Is the header present?
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2217 $as_echo_n "checking $2 presence... " >&6; }
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2220 #include <$2>
2221 _ACEOF
2222 if ac_fn_c_try_cpp "$LINENO"; then :
2223 ac_header_preproc=yes
2224 else
2225 ac_header_preproc=no
2226 fi
2227 rm -f conftest.err conftest.i conftest.$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2229 $as_echo "$ac_header_preproc" >&6; }
2230
2231 # So? What about this header?
2232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2233 yes:no: )
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2235 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 ;;
2239 no:yes:* )
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2241 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2243 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2245 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2247 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250 ( $as_echo "## ----------------------------------- ##
2251 ## Report this to bugs@ircd-hybrid.org ##
2252 ## ----------------------------------- ##"
2253 ) | sed "s/^/$as_me: WARNING: /" >&2
2254 ;;
2255 esac
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2257 $as_echo_n "checking for $2... " >&6; }
2258 if eval \${$3+:} false; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 eval "$3=\$ac_header_compiler"
2262 fi
2263 eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 fi
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268
2269 } # ac_fn_c_check_header_mongrel
2270 cat >config.log <<_ACEOF
2271 This file contains any messages produced by compilers while
2272 running configure, to aid debugging if configure makes a mistake.
2273
2274 It was created by ircd-hybrid $as_me 7.4, which was
2275 generated by GNU Autoconf 2.68. Invocation command line was
2276
2277 $ $0 $@
2278
2279 _ACEOF
2280 exec 5>>config.log
2281 {
2282 cat <<_ASUNAME
2283 ## --------- ##
2284 ## Platform. ##
2285 ## --------- ##
2286
2287 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2288 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2289 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2290 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2291 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2292
2293 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2294 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2295
2296 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2297 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2298 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2299 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2300 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2301 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2302 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2303
2304 _ASUNAME
2305
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 $as_echo "PATH: $as_dir"
2312 done
2313 IFS=$as_save_IFS
2314
2315 } >&5
2316
2317 cat >&5 <<_ACEOF
2318
2319
2320 ## ----------- ##
2321 ## Core tests. ##
2322 ## ----------- ##
2323
2324 _ACEOF
2325
2326
2327 # Keep a trace of the command line.
2328 # Strip out --no-create and --no-recursion so they do not pile up.
2329 # Strip out --silent because we don't want to record it for future runs.
2330 # Also quote any args containing shell meta-characters.
2331 # Make two passes to allow for proper duplicate-argument suppression.
2332 ac_configure_args=
2333 ac_configure_args0=
2334 ac_configure_args1=
2335 ac_must_keep_next=false
2336 for ac_pass in 1 2
2337 do
2338 for ac_arg
2339 do
2340 case $ac_arg in
2341 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2343 | -silent | --silent | --silen | --sile | --sil)
2344 continue ;;
2345 *\'*)
2346 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2347 esac
2348 case $ac_pass in
2349 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2350 2)
2351 as_fn_append ac_configure_args1 " '$ac_arg'"
2352 if test $ac_must_keep_next = true; then
2353 ac_must_keep_next=false # Got value, back to normal.
2354 else
2355 case $ac_arg in
2356 *=* | --config-cache | -C | -disable-* | --disable-* \
2357 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2358 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2359 | -with-* | --with-* | -without-* | --without-* | --x)
2360 case "$ac_configure_args0 " in
2361 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2362 esac
2363 ;;
2364 -* ) ac_must_keep_next=true ;;
2365 esac
2366 fi
2367 as_fn_append ac_configure_args " '$ac_arg'"
2368 ;;
2369 esac
2370 done
2371 done
2372 { ac_configure_args0=; unset ac_configure_args0;}
2373 { ac_configure_args1=; unset ac_configure_args1;}
2374
2375 # When interrupted or exit'd, cleanup temporary files, and complete
2376 # config.log. We remove comments because anyway the quotes in there
2377 # would cause problems or look ugly.
2378 # WARNING: Use '\'' to represent an apostrophe within the trap.
2379 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2380 trap 'exit_status=$?
2381 # Save into config.log some information that might help in debugging.
2382 {
2383 echo
2384
2385 $as_echo "## ---------------- ##
2386 ## Cache variables. ##
2387 ## ---------------- ##"
2388 echo
2389 # The following way of writing the cache mishandles newlines in values,
2390 (
2391 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in #(
2394 *${as_nl}*)
2395 case $ac_var in #(
2396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2398 esac
2399 case $ac_var in #(
2400 _ | IFS | as_nl) ;; #(
2401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2402 *) { eval $ac_var=; unset $ac_var;} ;;
2403 esac ;;
2404 esac
2405 done
2406 (set) 2>&1 |
2407 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2408 *${as_nl}ac_space=\ *)
2409 sed -n \
2410 "s/'\''/'\''\\\\'\'''\''/g;
2411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2412 ;; #(
2413 *)
2414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2415 ;;
2416 esac |
2417 sort
2418 )
2419 echo
2420
2421 $as_echo "## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##"
2424 echo
2425 for ac_var in $ac_subst_vars
2426 do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
2432 done | sort
2433 echo
2434
2435 if test -n "$ac_subst_files"; then
2436 $as_echo "## ------------------- ##
2437 ## File substitutions. ##
2438 ## ------------------- ##"
2439 echo
2440 for ac_var in $ac_subst_files
2441 do
2442 eval ac_val=\$$ac_var
2443 case $ac_val in
2444 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2445 esac
2446 $as_echo "$ac_var='\''$ac_val'\''"
2447 done | sort
2448 echo
2449 fi
2450
2451 if test -s confdefs.h; then
2452 $as_echo "## ----------- ##
2453 ## confdefs.h. ##
2454 ## ----------- ##"
2455 echo
2456 cat confdefs.h
2457 echo
2458 fi
2459 test "$ac_signal" != 0 &&
2460 $as_echo "$as_me: caught signal $ac_signal"
2461 $as_echo "$as_me: exit $exit_status"
2462 } >&5
2463 rm -f core *.core core.conftest.* &&
2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2465 exit $exit_status
2466 ' 0
2467 for ac_signal in 1 2 13 15; do
2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2469 done
2470 ac_signal=0
2471
2472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2473 rm -f -r conftest* confdefs.h
2474
2475 $as_echo "/* confdefs.h */" > confdefs.h
2476
2477 # Predefined preprocessor variables.
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_NAME "$PACKAGE_NAME"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2489 _ACEOF
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_STRING "$PACKAGE_STRING"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_URL "$PACKAGE_URL"
2501 _ACEOF
2502
2503
2504 # Let the site file select an alternate cache file if it wants to.
2505 # Prefer an explicitly selected file to automatically selected ones.
2506 ac_site_file1=NONE
2507 ac_site_file2=NONE
2508 if test -n "$CONFIG_SITE"; then
2509 # We do not want a PATH search for config.site.
2510 case $CONFIG_SITE in #((
2511 -*) ac_site_file1=./$CONFIG_SITE;;
2512 */*) ac_site_file1=$CONFIG_SITE;;
2513 *) ac_site_file1=./$CONFIG_SITE;;
2514 esac
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_file1=$prefix/share/config.site
2517 ac_site_file2=$prefix/etc/config.site
2518 else
2519 ac_site_file1=$ac_default_prefix/share/config.site
2520 ac_site_file2=$ac_default_prefix/etc/config.site
2521 fi
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2523 do
2524 test "x$ac_site_file" = xNONE && continue
2525 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528 sed 's/^/| /' "$ac_site_file" >&5
2529 . "$ac_site_file" \
2530 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 as_fn_error $? "failed to load site script $ac_site_file
2533 See \`config.log' for more details" "$LINENO" 5; }
2534 fi
2535 done
2536
2537 if test -r "$cache_file"; then
2538 # Some versions of bash will fail to source /dev/null (special files
2539 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2540 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2542 $as_echo "$as_me: loading cache $cache_file" >&6;}
2543 case $cache_file in
2544 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2545 *) . "./$cache_file";;
2546 esac
2547 fi
2548 else
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2550 $as_echo "$as_me: creating cache $cache_file" >&6;}
2551 >$cache_file
2552 fi
2553
2554 as_fn_append ac_func_list " mmap"
2555 as_fn_append ac_func_list " strtok_r"
2556 as_fn_append ac_func_list " usleep"
2557 as_fn_append ac_func_list " strlcat"
2558 as_fn_append ac_func_list " strlcpy"
2559 as_fn_append ac_func_list " socketpair"
2560 as_fn_append ac_header_list " crypt.h"
2561 as_fn_append ac_header_list " inttypes.h"
2562 as_fn_append ac_header_list " stdint.h"
2563 as_fn_append ac_header_list " sys/resource.h"
2564 as_fn_append ac_header_list " sys/param.h"
2565 as_fn_append ac_header_list " errno.h"
2566 as_fn_append ac_header_list " sys/syslog.h"
2567 as_fn_append ac_header_list " types.h"
2568 as_fn_append ac_header_list " socket.h"
2569 as_fn_append ac_header_list " sys/wait.h"
2570 as_fn_append ac_header_list " wait.h"
2571 as_fn_append ac_header_list " link.h"
2572 # Check that the precious variables saved in the cache have kept the same
2573 # value.
2574 ac_cache_corrupted=false
2575 for ac_var in $ac_precious_vars; do
2576 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2577 eval ac_new_set=\$ac_env_${ac_var}_set
2578 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2579 eval ac_new_val=\$ac_env_${ac_var}_value
2580 case $ac_old_set,$ac_new_set in
2581 set,)
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2583 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2584 ac_cache_corrupted=: ;;
2585 ,set)
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2587 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,);;
2590 *)
2591 if test "x$ac_old_val" != "x$ac_new_val"; then
2592 # differences in whitespace do not lead to failure.
2593 ac_old_val_w=`echo x $ac_old_val`
2594 ac_new_val_w=`echo x $ac_new_val`
2595 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2597 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2598 ac_cache_corrupted=:
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2601 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2602 eval $ac_var=\$ac_old_val
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2605 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2607 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2608 fi;;
2609 esac
2610 # Pass precious variables to config.status.
2611 if test "$ac_new_set" = set; then
2612 case $ac_new_val in
2613 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2614 *) ac_arg=$ac_var=$ac_new_val ;;
2615 esac
2616 case " $ac_configure_args " in
2617 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2618 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2619 esac
2620 fi
2621 done
2622 if $ac_cache_corrupted; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2626 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2627 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2628 fi
2629 ## -------------------- ##
2630 ## Main body of script. ##
2631 ## -------------------- ##
2632
2633 ac_ext=c
2634 ac_cpp='$CPP $CPPFLAGS'
2635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638
2639
2640 am__api_version='1.11'
2641
2642 ac_aux_dir=
2643 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2644 if test -f "$ac_dir/install-sh"; then
2645 ac_aux_dir=$ac_dir
2646 ac_install_sh="$ac_aux_dir/install-sh -c"
2647 break
2648 elif test -f "$ac_dir/install.sh"; then
2649 ac_aux_dir=$ac_dir
2650 ac_install_sh="$ac_aux_dir/install.sh -c"
2651 break
2652 elif test -f "$ac_dir/shtool"; then
2653 ac_aux_dir=$ac_dir
2654 ac_install_sh="$ac_aux_dir/shtool install -c"
2655 break
2656 fi
2657 done
2658 if test -z "$ac_aux_dir"; then
2659 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2660 fi
2661
2662 # These three variables are undocumented and unsupported,
2663 # and are intended to be withdrawn in a future Autoconf release.
2664 # They can cause serious problems if a builder's source tree is in a directory
2665 # whose full name contains unusual characters.
2666 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2667 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2668 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2669
2670
2671 # Find a good install program. We prefer a C program (faster),
2672 # so one script is as good as another. But avoid the broken or
2673 # incompatible versions:
2674 # SysV /etc/install, /usr/sbin/install
2675 # SunOS /usr/etc/install
2676 # IRIX /sbin/install
2677 # AIX /bin/install
2678 # AmigaOS /C/install, which installs bootblocks on floppy discs
2679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682 # OS/2's system install, which has a completely different semantic
2683 # ./install, which can be erroneously created by make from ./install.sh.
2684 # Reject install programs that cannot install multiple files.
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2687 if test -z "$INSTALL"; then
2688 if ${ac_cv_path_install+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 # Account for people who put trailing slashes in PATH elements.
2697 case $as_dir/ in #((
2698 ./ | .// | /[cC]/* | \
2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2701 /usr/ucb/* ) ;;
2702 *)
2703 # OSF1 and SCO ODT 3.0 have their own names for install.
2704 # Don't use installbsd from OSF since it installs stuff as root
2705 # by default.
2706 for ac_prog in ginstall scoinst install; do
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2709 if test $ac_prog = install &&
2710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # AIX install. It has an incompatible calling convention.
2712 :
2713 elif test $ac_prog = install &&
2714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # program-specific install script used by HP pwplus--don't use.
2716 :
2717 else
2718 rm -rf conftest.one conftest.two conftest.dir
2719 echo one > conftest.one
2720 echo two > conftest.two
2721 mkdir conftest.dir
2722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723 test -s conftest.one && test -s conftest.two &&
2724 test -s conftest.dir/conftest.one &&
2725 test -s conftest.dir/conftest.two
2726 then
2727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 break 3
2729 fi
2730 fi
2731 fi
2732 done
2733 done
2734 ;;
2735 esac
2736
2737 done
2738 IFS=$as_save_IFS
2739
2740 rm -rf conftest.one conftest.two conftest.dir
2741
2742 fi
2743 if test "${ac_cv_path_install+set}" = set; then
2744 INSTALL=$ac_cv_path_install
2745 else
2746 # As a last resort, use the slow shell script. Don't cache a
2747 # value for INSTALL within a source directory, because that will
2748 # break other packages using the cache if that directory is
2749 # removed, or if the value is a relative name.
2750 INSTALL=$ac_install_sh
2751 fi
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2754 $as_echo "$INSTALL" >&6; }
2755
2756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2757 # It thinks the first close brace ends the variable substitution.
2758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759
2760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761
2762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2765 $as_echo_n "checking whether build environment is sane... " >&6; }
2766 # Just in case
2767 sleep 1
2768 echo timestamp > conftest.file
2769 # Reject unsafe characters in $srcdir or the absolute working directory
2770 # name. Accept space and tab only in the latter.
2771 am_lf='
2772 '
2773 case `pwd` in
2774 *[\\\"\#\$\&\'\`$am_lf]*)
2775 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2776 esac
2777 case $srcdir in
2778 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2779 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2780 esac
2781
2782 # Do `set' in a subshell so we don't clobber the current shell's
2783 # arguments. Must try -L first in case configure is actually a
2784 # symlink; some systems play weird games with the mod time of symlinks
2785 # (eg FreeBSD returns the mod time of the symlink's containing
2786 # directory).
2787 if (
2788 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2789 if test "$*" = "X"; then
2790 # -L didn't work.
2791 set X `ls -t "$srcdir/configure" conftest.file`
2792 fi
2793 rm -f conftest.file
2794 if test "$*" != "X $srcdir/configure conftest.file" \
2795 && test "$*" != "X conftest.file $srcdir/configure"; then
2796
2797 # If neither matched, then we have a broken ls. This can happen
2798 # if, for instance, CONFIG_SHELL is bash and it inherits a
2799 # broken ls alias from the environment. This has actually
2800 # happened. Such a system could not be considered "sane".
2801 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2802 alias in your environment" "$LINENO" 5
2803 fi
2804
2805 test "$2" = conftest.file
2806 )
2807 then
2808 # Ok.
2809 :
2810 else
2811 as_fn_error $? "newly created file is older than distributed files!
2812 Check your system clock" "$LINENO" 5
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2815 $as_echo "yes" >&6; }
2816 test "$program_prefix" != NONE &&
2817 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2818 # Use a double $ so make ignores it.
2819 test "$program_suffix" != NONE &&
2820 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2821 # Double any \ or $.
2822 # By default was `s,x,x', remove it if useless.
2823 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2824 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2825
2826 # expand $ac_aux_dir to an absolute path
2827 am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829 if test x"${MISSING+set}" != xset; then
2830 case $am_aux_dir in
2831 *\ * | *\ *)
2832 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2833 *)
2834 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2835 esac
2836 fi
2837 # Use eval to expand $SHELL
2838 if eval "$MISSING --run true"; then
2839 am_missing_run="$MISSING --run "
2840 else
2841 am_missing_run=
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2843 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2844 fi
2845
2846 if test x"${install_sh}" != xset; then
2847 case $am_aux_dir in
2848 *\ * | *\ *)
2849 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850 *)
2851 install_sh="\${SHELL} $am_aux_dir/install-sh"
2852 esac
2853 fi
2854
2855 # Installed binaries are usually stripped using `strip' when the user
2856 # run `make install-strip'. However `strip' might not be the right
2857 # tool to use in cross-compilation environments, therefore Automake
2858 # will honor the `STRIP' environment variable to overrule this program.
2859 if test "$cross_compiling" != no; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}strip; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_STRIP+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test -n "$STRIP"; then
2869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882 done
2883 done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 STRIP=$ac_cv_prog_STRIP
2889 if test -n "$STRIP"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2891 $as_echo "$STRIP" >&6; }
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898 fi
2899 if test -z "$ac_cv_prog_STRIP"; then
2900 ac_ct_STRIP=$STRIP
2901 # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$ac_ct_STRIP"; then
2909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_STRIP="strip"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2931 $as_echo "$ac_ct_STRIP" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937 if test "x$ac_ct_STRIP" = x; then
2938 STRIP=":"
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941 yes:)
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944 ac_tool_warned=yes ;;
2945 esac
2946 STRIP=$ac_ct_STRIP
2947 fi
2948 else
2949 STRIP="$ac_cv_prog_STRIP"
2950 fi
2951
2952 fi
2953 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2956 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2957 if test -z "$MKDIR_P"; then
2958 if ${ac_cv_path_mkdir+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_prog in mkdir gmkdir; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2969 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2970 'mkdir (GNU coreutils) '* | \
2971 'mkdir (coreutils) '* | \
2972 'mkdir (fileutils) '4.1*)
2973 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2974 break 3;;
2975 esac
2976 done
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982
2983 test -d ./--version && rmdir ./--version
2984 if test "${ac_cv_path_mkdir+set}" = set; then
2985 MKDIR_P="$ac_cv_path_mkdir -p"
2986 else
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for MKDIR_P within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 MKDIR_P="$ac_install_sh -d"
2992 fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2995 $as_echo "$MKDIR_P" >&6; }
2996
2997 mkdir_p="$MKDIR_P"
2998 case $mkdir_p in
2999 [\\/$]* | ?:[\\/]*) ;;
3000 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3001 esac
3002
3003 for ac_prog in gawk mawk nawk awk
3004 do
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_AWK+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_AWK="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 AWK=$ac_cv_prog_AWK
3033 if test -n "$AWK"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 test -n "$AWK" && break
3043 done
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047 set x ${MAKE-make}
3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 cat >conftest.make <<\_ACEOF
3053 SHELL = /bin/sh
3054 all:
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3056 _ACEOF
3057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059 *@@@%%%=?*=@@@%%%*)
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3061 *)
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3063 esac
3064 rm -f conftest.make
3065 fi
3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3069 SET_MAKE=
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 SET_MAKE="MAKE=${MAKE-make}"
3074 fi
3075
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3079 am__leading_dot=.
3080 else
3081 am__leading_dot=_
3082 fi
3083 rmdir .tst 2>/dev/null
3084
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087 # is not polluted with repeated "-I."
3088 am__isrc=' -I$(srcdir)'
3089 # test to see if srcdir already configured
3090 if test -f $srcdir/config.status; then
3091 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3092 fi
3093 fi
3094
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097 if (cygpath --version) >/dev/null 2>/dev/null; then
3098 CYGPATH_W='cygpath -w'
3099 else
3100 CYGPATH_W=echo
3101 fi
3102 fi
3103
3104
3105 # Define the identity of the package.
3106 PACKAGE='ircd-hybrid'
3107 VERSION='7.4'
3108
3109
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3112 _ACEOF
3113
3114
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3117 _ACEOF
3118
3119 # Some tools Automake needs.
3120
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3122
3123
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3125
3126
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3128
3129
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3131
3132
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3134
3135 # We need awk for the "check" target. The system "awk" is bad on
3136 # some platforms.
3137 # Always define AMTAR for backward compatibility.
3138
3139 AMTAR=${AMTAR-"${am_missing_run}tar"}
3140
3141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3142
3143
3144
3145
3146
3147
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3149 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3150 # Check whether --enable-maintainer-mode was given.
3151 if test "${enable_maintainer_mode+set}" = set; then :
3152 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3153 else
3154 USE_MAINTAINER_MODE=no
3155 fi
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3158 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3159 if test $USE_MAINTAINER_MODE = yes; then
3160 MAINTAINER_MODE_TRUE=
3161 MAINTAINER_MODE_FALSE='#'
3162 else
3163 MAINTAINER_MODE_TRUE='#'
3164 MAINTAINER_MODE_FALSE=
3165 fi
3166
3167 MAINT=$MAINTAINER_MODE_TRUE
3168
3169
3170 ac_config_headers="$ac_config_headers config.h"
3171
3172
3173
3174 # Checks for programs.
3175 DEPDIR="${am__leading_dot}deps"
3176
3177 ac_config_commands="$ac_config_commands depfiles"
3178
3179
3180 am_make=${MAKE-make}
3181 cat > confinc << 'END'
3182 am__doit:
3183 @echo this is the am__doit target
3184 .PHONY: am__doit
3185 END
3186 # If we don't find an include directive, just comment out the code.
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3188 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3189 am__include="#"
3190 am__quote=
3191 _am_result=none
3192 # First try GNU make style include.
3193 echo "include confinc" > confmf
3194 # Ignore all kinds of additional output from `make'.
3195 case `$am_make -s -f confmf 2> /dev/null` in #(
3196 *the\ am__doit\ target*)
3197 am__include=include
3198 am__quote=
3199 _am_result=GNU
3200 ;;
3201 esac
3202 # Now try BSD make style include.
3203 if test "$am__include" = "#"; then
3204 echo '.include "confinc"' > confmf
3205 case `$am_make -s -f confmf 2> /dev/null` in #(
3206 *the\ am__doit\ target*)
3207 am__include=.include
3208 am__quote="\""
3209 _am_result=BSD
3210 ;;
3211 esac
3212 fi
3213
3214
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3216 $as_echo "$_am_result" >&6; }
3217 rm -f confinc confmf
3218
3219 # Check whether --enable-dependency-tracking was given.
3220 if test "${enable_dependency_tracking+set}" = set; then :
3221 enableval=$enable_dependency_tracking;
3222 fi
3223
3224 if test "x$enable_dependency_tracking" != xno; then
3225 am_depcomp="$ac_aux_dir/depcomp"
3226 AMDEPBACKSLASH='\'
3227 fi
3228 if test "x$enable_dependency_tracking" != xno; then
3229 AMDEP_TRUE=
3230 AMDEP_FALSE='#'
3231 else
3232 AMDEP_TRUE='#'
3233 AMDEP_FALSE=
3234 fi
3235
3236
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_CC+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$ac_cv_prog_CC"; then
3282 ac_ct_CC=$CC
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_ac_ct_CC="gcc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3313 $as_echo "$ac_ct_CC" >&6; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319 if test "x$ac_ct_CC" = x; then
3320 CC=""
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323 yes:)
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3326 ac_tool_warned=yes ;;
3327 esac
3328 CC=$ac_ct_CC
3329 fi
3330 else
3331 CC="$ac_cv_prog_CC"
3332 fi
3333
3334 if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}cc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 ac_cv_prog_CC="${ac_tool_prefix}cc"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373 fi
3374 fi
3375 if test -z "$CC"; then
3376 # Extract the first word of "cc", so it can be a program name with args.
3377 set dummy cc; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 ac_prog_rejected=no
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395 ac_prog_rejected=yes
3396 continue
3397 fi
3398 ac_cv_prog_CC="cc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3401 fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 if test $ac_prog_rejected = yes; then
3407 # We found a bogon in the path, so make sure we never use it.
3408 set dummy $ac_cv_prog_CC
3409 shift
3410 if test $# != 0; then
3411 # We chose a different compiler from the bogus one.
3412 # However, it has the same basename, so the bogon will be chosen
3413 # first if we set CC to just the basename; use the full file name.
3414 shift
3415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3416 fi
3417 fi
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$CC"; then
3432 if test -n "$ac_tool_prefix"; then
3433 for ac_prog in cl.exe
3434 do
3435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 $as_echo "$CC" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471
3472 test -n "$CC" && break
3473 done
3474 fi
3475 if test -z "$CC"; then
3476 ac_ct_CC=$CC
3477 for ac_prog in cl.exe
3478 do
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 test -n "$ac_ct_CC" && break
3517 done
3518
3519 if test "x$ac_ct_CC" = x; then
3520 CC=""
3521 else
3522 case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3526 ac_tool_warned=yes ;;
3527 esac
3528 CC=$ac_ct_CC
3529 fi
3530 fi
3531
3532 fi
3533
3534
3535 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "no acceptable C compiler found in \$PATH
3538 See \`config.log' for more details" "$LINENO" 5; }
3539
3540 # Provide some information about the compiler.
3541 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3542 set X $ac_compile
3543 ac_compiler=$2
3544 for ac_option in --version -v -V -qversion; do
3545 { { ac_try="$ac_compiler $ac_option >&5"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3553 ac_status=$?
3554 if test -s conftest.err; then
3555 sed '10a\
3556 ... rest of stderr output deleted ...
3557 10q' conftest.err >conftest.er1
3558 cat conftest.er1 >&5
3559 fi
3560 rm -f conftest.er1 conftest.err
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }
3563 done
3564
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 ac_clean_files_save=$ac_clean_files
3577 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3578 # Try to create an executable without -o first, disregard a.out.
3579 # It will help us diagnose broken compilers, and finding out an intuition
3580 # of exeext.
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3582 $as_echo_n "checking whether the C compiler works... " >&6; }
3583 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3584
3585 # The possible output files:
3586 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3587
3588 ac_rmfiles=
3589 for ac_file in $ac_files
3590 do
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3594 esac
3595 done
3596 rm -f $ac_rmfiles
3597
3598 if { { ac_try="$ac_link_default"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604 $as_echo "$ac_try_echo"; } >&5
3605 (eval "$ac_link_default") 2>&5
3606 ac_status=$?
3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3608 test $ac_status = 0; }; then :
3609 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3610 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3611 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3612 # so that the user can short-circuit this test for compilers unknown to
3613 # Autoconf.
3614 for ac_file in $ac_files ''
3615 do
3616 test -f "$ac_file" || continue
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3619 ;;
3620 [ab].out )
3621 # We found the default executable, but exeext='' is most
3622 # certainly right.
3623 break;;
3624 *.* )
3625 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3626 then :; else
3627 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 fi
3629 # We set ac_cv_exeext here because the later test for it is not
3630 # safe: cross compilers may not add the suffix if given an `-o'
3631 # argument, so we may need to know it at that point already.
3632 # Even if this section looks crufty: it has the advantage of
3633 # actually working.
3634 break;;
3635 * )
3636 break;;
3637 esac
3638 done
3639 test "$ac_cv_exeext" = no && ac_cv_exeext=
3640
3641 else
3642 ac_file=''
3643 fi
3644 if test -z "$ac_file"; then :
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3649
3650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error 77 "C compiler cannot create executables
3653 See \`config.log' for more details" "$LINENO" 5; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3656 $as_echo "yes" >&6; }
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3659 $as_echo_n "checking for C compiler default output file name... " >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3661 $as_echo "$ac_file" >&6; }
3662 ac_exeext=$ac_cv_exeext
3663
3664 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3665 ac_clean_files=$ac_clean_files_save
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3667 $as_echo_n "checking for suffix of executables... " >&6; }
3668 if { { ac_try="$ac_link"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_link") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3680 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3681 # work properly (i.e., refer to `conftest.exe'), while it won't with
3682 # `rm'.
3683 for ac_file in conftest.exe conftest conftest.*; do
3684 test -f "$ac_file" || continue
3685 case $ac_file in
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3687 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688 break;;
3689 * ) break;;
3690 esac
3691 done
3692 else
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3696 See \`config.log' for more details" "$LINENO" 5; }
3697 fi
3698 rm -f conftest conftest$ac_cv_exeext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3700 $as_echo "$ac_cv_exeext" >&6; }
3701
3702 rm -f conftest.$ac_ext
3703 EXEEXT=$ac_cv_exeext
3704 ac_exeext=$EXEEXT
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <stdio.h>
3708 int
3709 main ()
3710 {
3711 FILE *f = fopen ("conftest.out", "w");
3712 return ferror (f) || fclose (f) != 0;
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 ac_clean_files="$ac_clean_files conftest.out"
3719 # Check that the compiler produces executables we can run. If not, either
3720 # the compiler is broken, or we cross compile.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3722 $as_echo_n "checking whether we are cross compiling... " >&6; }
3723 if test "$cross_compiling" != yes; then
3724 { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }
3735 if { ac_try='./conftest$ac_cv_exeext'
3736 { { case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_try") 2>&5
3743 ac_status=$?
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; }; then
3746 cross_compiling=no
3747 else
3748 if test "$cross_compiling" = maybe; then
3749 cross_compiling=yes
3750 else
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "cannot run C compiled programs.
3754 If you meant to cross compile, use \`--host'.
3755 See \`config.log' for more details" "$LINENO" 5; }
3756 fi
3757 fi
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3760 $as_echo "$cross_compiling" >&6; }
3761
3762 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3763 ac_clean_files=$ac_clean_files_save
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3765 $as_echo_n "checking for suffix of object files... " >&6; }
3766 if ${ac_cv_objext+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 rm -f conftest.o conftest.obj
3781 if { { ac_try="$ac_compile"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_compile") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; then :
3792 for ac_file in conftest.o conftest.obj conftest.*; do
3793 test -f "$ac_file" || continue;
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3797 break;;
3798 esac
3799 done
3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "cannot compute suffix of object files: cannot compile
3807 See \`config.log' for more details" "$LINENO" 5; }
3808 fi
3809 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3812 $as_echo "$ac_cv_objext" >&6; }
3813 OBJEXT=$ac_cv_objext
3814 ac_objext=$OBJEXT
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3816 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3817 if ${ac_cv_c_compiler_gnu+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822
3823 int
3824 main ()
3825 {
3826 #ifndef __GNUC__
3827 choke me
3828 #endif
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 if ac_fn_c_try_compile "$LINENO"; then :
3835 ac_compiler_gnu=yes
3836 else
3837 ac_compiler_gnu=no
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3841
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3844 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3845 if test $ac_compiler_gnu = yes; then
3846 GCC=yes
3847 else
3848 GCC=
3849 fi
3850 ac_test_CFLAGS=${CFLAGS+set}
3851 ac_save_CFLAGS=$CFLAGS
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3853 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3854 if ${ac_cv_prog_cc_g+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 ac_save_c_werror_flag=$ac_c_werror_flag
3858 ac_c_werror_flag=yes
3859 ac_cv_prog_cc_g=no
3860 CFLAGS="-g"
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863
3864 int
3865 main ()
3866 {
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_cv_prog_cc_g=yes
3874 else
3875 CFLAGS=""
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main ()
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888
3889 else
3890 ac_c_werror_flag=$ac_save_c_werror_flag
3891 CFLAGS="-g"
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3894
3895 int
3896 main ()
3897 {
3898
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_g=yes
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 ac_c_werror_flag=$ac_save_c_werror_flag
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3914 $as_echo "$ac_cv_prog_cc_g" >&6; }
3915 if test "$ac_test_CFLAGS" = set; then
3916 CFLAGS=$ac_save_CFLAGS
3917 elif test $ac_cv_prog_cc_g = yes; then
3918 if test "$GCC" = yes; then
3919 CFLAGS="-g -O2"
3920 else
3921 CFLAGS="-g"
3922 fi
3923 else
3924 if test "$GCC" = yes; then
3925 CFLAGS="-O2"
3926 else
3927 CFLAGS=
3928 fi
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3931 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3932 if ${ac_cv_prog_cc_c89+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 ac_cv_prog_cc_c89=no
3936 ac_save_CC=$CC
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3939 #include <stdarg.h>
3940 #include <stdio.h>
3941 #include <sys/types.h>
3942 #include <sys/stat.h>
3943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3944 struct buf { int x; };
3945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3946 static char *e (p, i)
3947 char **p;
3948 int i;
3949 {
3950 return p[i];
3951 }
3952 static char *f (char * (*g) (char **, int), char **p, ...)
3953 {
3954 char *s;
3955 va_list v;
3956 va_start (v,p);
3957 s = g (p, va_arg (v,int));
3958 va_end (v);
3959 return s;
3960 }
3961
3962 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3963 function prototypes and stuff, but not '\xHH' hex character constants.
3964 These don't provoke an error unfortunately, instead are silently treated
3965 as 'x'. The following induces an error, until -std is added to get
3966 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3967 array size at least. It's necessary to write '\x00'==0 to get something
3968 that's true only with -std. */
3969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3970
3971 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3972 inside strings and character constants. */
3973 #define FOO(x) 'x'
3974 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3975
3976 int test (int i, double x);
3977 struct s1 {int (*f) (int a);};
3978 struct s2 {int (*f) (double a);};
3979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3980 int argc;
3981 char **argv;
3982 int
3983 main ()
3984 {
3985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3991 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3992 do
3993 CC="$ac_save_CC $ac_arg"
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_prog_cc_c89=$ac_arg
3996 fi
3997 rm -f core conftest.err conftest.$ac_objext
3998 test "x$ac_cv_prog_cc_c89" != "xno" && break
3999 done
4000 rm -f conftest.$ac_ext
4001 CC=$ac_save_CC
4002
4003 fi
4004 # AC_CACHE_VAL
4005 case "x$ac_cv_prog_cc_c89" in
4006 x)
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4008 $as_echo "none needed" >&6; } ;;
4009 xno)
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4011 $as_echo "unsupported" >&6; } ;;
4012 *)
4013 CC="$CC $ac_cv_prog_cc_c89"
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4015 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4016 esac
4017 if test "x$ac_cv_prog_cc_c89" != xno; then :
4018
4019 fi
4020
4021 ac_ext=c
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026
4027 depcc="$CC" am_compiler_list=
4028
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4030 $as_echo_n "checking dependency style of $depcc... " >&6; }
4031 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4035 # We make a subdir and do the tests there. Otherwise we can end up
4036 # making bogus files that we don't know about and never remove. For
4037 # instance it was reported that on HP-UX the gcc test will end up
4038 # making a dummy file named `D' -- because `-MD' means `put the output
4039 # in D'.
4040 mkdir conftest.dir
4041 # Copy depcomp to subdir because otherwise we won't find it if we're
4042 # using a relative directory.
4043 cp "$am_depcomp" conftest.dir
4044 cd conftest.dir
4045 # We will build objects and dependencies in a subdirectory because
4046 # it helps to detect inapplicable dependency modes. For instance
4047 # both Tru64's cc and ICC support -MD to output dependencies as a
4048 # side effect of compilation, but ICC will put the dependencies in
4049 # the current directory while Tru64 will put them in the object
4050 # directory.
4051 mkdir sub
4052
4053 am_cv_CC_dependencies_compiler_type=none
4054 if test "$am_compiler_list" = ""; then
4055 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4056 fi
4057 am__universal=false
4058 case " $depcc " in #(
4059 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4060 esac
4061
4062 for depmode in $am_compiler_list; do
4063 # Setup a source with many dependencies, because some compilers
4064 # like to wrap large dependency lists on column 80 (with \), and
4065 # we should not choose a depcomp mode which is confused by this.
4066 #
4067 # We need to recreate these files for each test, as the compiler may
4068 # overwrite some of them when testing with obscure command lines.
4069 # This happens at least with the AIX C compiler.
4070 : > sub/conftest.c
4071 for i in 1 2 3 4 5 6; do
4072 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4073 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4074 # Solaris 8's {/usr,}/bin/sh.
4075 touch sub/conftst$i.h
4076 done
4077 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4078
4079 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4080 # mode. It turns out that the SunPro C++ compiler does not properly
4081 # handle `-M -o', and we need to detect this. Also, some Intel
4082 # versions had trouble with output in subdirs
4083 am__obj=sub/conftest.${OBJEXT-o}
4084 am__minus_obj="-o $am__obj"
4085 case $depmode in
4086 gcc)
4087 # This depmode causes a compiler race in universal mode.
4088 test "$am__universal" = false || continue
4089 ;;
4090 nosideeffect)
4091 # after this tag, mechanisms are not by side-effect, so they'll
4092 # only be used when explicitly requested
4093 if test "x$enable_dependency_tracking" = xyes; then
4094 continue
4095 else
4096 break
4097 fi
4098 ;;
4099 msvisualcpp | msvcmsys)
4100 # This compiler won't grok `-c -o', but also, the minuso test has
4101 # not run yet. These depmodes are late enough in the game, and
4102 # so weak that their functioning should not be impacted.
4103 am__obj=conftest.${OBJEXT-o}
4104 am__minus_obj=
4105 ;;
4106 none) break ;;
4107 esac
4108 if depmode=$depmode \
4109 source=sub/conftest.c object=$am__obj \
4110 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4111 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4112 >/dev/null 2>conftest.err &&
4113 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4114 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4115 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4116 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4117 # icc doesn't choke on unknown options, it will just issue warnings
4118 # or remarks (even with -Werror). So we grep stderr for any message
4119 # that says an option was ignored or not supported.
4120 # When given -MP, icc 7.0 and 7.1 complain thusly:
4121 # icc: Command line warning: ignoring option '-M'; no argument required
4122 # The diagnosis changed in icc 8.0:
4123 # icc: Command line remark: option '-MP' not supported
4124 if (grep 'ignoring option' conftest.err ||
4125 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4126 am_cv_CC_dependencies_compiler_type=$depmode
4127 break
4128 fi
4129 fi
4130 done
4131
4132 cd ..
4133 rm -rf conftest.dir
4134 else
4135 am_cv_CC_dependencies_compiler_type=none
4136 fi
4137
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4140 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4141 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4142
4143 if
4144 test "x$enable_dependency_tracking" != xno \
4145 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4146 am__fastdepCC_TRUE=
4147 am__fastdepCC_FALSE='#'
4148 else
4149 am__fastdepCC_TRUE='#'
4150 am__fastdepCC_FALSE=
4151 fi
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4155 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4156 if ${ac_cv_prog_cc_c99+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 ac_cv_prog_cc_c99=no
4160 ac_save_CC=$CC
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <stdarg.h>
4164 #include <stdbool.h>
4165 #include <stdlib.h>
4166 #include <wchar.h>
4167 #include <stdio.h>
4168
4169 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4170 #define debug(...) fprintf (stderr, __VA_ARGS__)
4171 #define showlist(...) puts (#__VA_ARGS__)
4172 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4173 static void
4174 test_varargs_macros (void)
4175 {
4176 int x = 1234;
4177 int y = 5678;
4178 debug ("Flag");
4179 debug ("X = %d\n", x);
4180 showlist (The first, second, and third items.);
4181 report (x>y, "x is %d but y is %d", x, y);
4182 }
4183
4184 // Check long long types.
4185 #define BIG64 18446744073709551615ull
4186 #define BIG32 4294967295ul
4187 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4188 #if !BIG_OK
4189 your preprocessor is broken;
4190 #endif
4191 #if BIG_OK
4192 #else
4193 your preprocessor is broken;
4194 #endif
4195 static long long int bignum = -9223372036854775807LL;
4196 static unsigned long long int ubignum = BIG64;
4197
4198 struct incomplete_array
4199 {
4200 int datasize;
4201 double data[];
4202 };
4203
4204 struct named_init {
4205 int number;
4206 const wchar_t *name;
4207 double average;
4208 };
4209
4210 typedef const char *ccp;
4211
4212 static inline int
4213 test_restrict (ccp restrict text)
4214 {
4215 // See if C++-style comments work.
4216 // Iterate through items via the restricted pointer.
4217 // Also check for declarations in for loops.
4218 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4219 continue;
4220 return 0;
4221 }
4222
4223 // Check varargs and va_copy.
4224 static void
4225 test_varargs (const char *format, ...)
4226 {
4227 va_list args;
4228 va_start (args, format);
4229 va_list args_copy;
4230 va_copy (args_copy, args);
4231
4232 const char *str;
4233 int number;
4234 float fnumber;
4235
4236 while (*format)
4237 {
4238 switch (*format++)
4239 {
4240 case 's': // string
4241 str = va_arg (args_copy, const char *);
4242 break;
4243 case 'd': // int
4244 number = va_arg (args_copy, int);
4245 break;
4246 case 'f': // float
4247 fnumber = va_arg (args_copy, double);
4248 break;
4249 default:
4250 break;
4251 }
4252 }
4253 va_end (args_copy);
4254 va_end (args);
4255 }
4256
4257 int
4258 main ()
4259 {
4260
4261 // Check bool.
4262 _Bool success = false;
4263
4264 // Check restrict.
4265 if (test_restrict ("String literal") == 0)
4266 success = true;
4267 char *restrict newvar = "Another string";
4268
4269 // Check varargs.
4270 test_varargs ("s, d' f .", "string", 65, 34.234);
4271 test_varargs_macros ();
4272
4273 // Check flexible array members.
4274 struct incomplete_array *ia =
4275 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4276 ia->datasize = 10;
4277 for (int i = 0; i < ia->datasize; ++i)
4278 ia->data[i] = i * 1.234;
4279
4280 // Check named initializers.
4281 struct named_init ni = {
4282 .number = 34,
4283 .name = L"Test wide string",
4284 .average = 543.34343,
4285 };
4286
4287 ni.number = 58;
4288
4289 int dynamic_array[ni.number];
4290 dynamic_array[ni.number - 1] = 543;
4291
4292 // work around unused variable warnings
4293 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4294 || dynamic_array[ni.number - 1] != 543);
4295
4296 ;
4297 return 0;
4298 }
4299 _ACEOF
4300 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4301 do
4302 CC="$ac_save_CC $ac_arg"
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_prog_cc_c99=$ac_arg
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext
4307 test "x$ac_cv_prog_cc_c99" != "xno" && break
4308 done
4309 rm -f conftest.$ac_ext
4310 CC=$ac_save_CC
4311
4312 fi
4313 # AC_CACHE_VAL
4314 case "x$ac_cv_prog_cc_c99" in
4315 x)
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4317 $as_echo "none needed" >&6; } ;;
4318 xno)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4320 $as_echo "unsupported" >&6; } ;;
4321 *)
4322 CC="$CC $ac_cv_prog_cc_c99"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4324 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4325 esac
4326 if test "x$ac_cv_prog_cc_c99" != xno; then :
4327
4328 fi
4329
4330
4331 if test "$ac_cv_prog_cc_c99" = "no"; then :
4332 as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4333 fi
4334 for ac_prog in 'bison -y' byacc
4335 do
4336 # Extract the first word of "$ac_prog", so it can be a program name with args.
4337 set dummy $ac_prog; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if ${ac_cv_prog_YACC+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$YACC"; then
4344 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_YACC="$ac_prog"
4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 break 2
4356 fi
4357 done
4358 done
4359 IFS=$as_save_IFS
4360
4361 fi
4362 fi
4363 YACC=$ac_cv_prog_YACC
4364 if test -n "$YACC"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4366 $as_echo "$YACC" >&6; }
4367 else
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4370 fi
4371
4372
4373 test -n "$YACC" && break
4374 done
4375 test -n "$YACC" || YACC="yacc"
4376
4377
4378 for ac_prog in flex lex
4379 do
4380 # Extract the first word of "$ac_prog", so it can be a program name with args.
4381 set dummy $ac_prog; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_LEX+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$LEX"; then
4388 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_LEX="$ac_prog"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401 done
4402 done
4403 IFS=$as_save_IFS
4404
4405 fi
4406 fi
4407 LEX=$ac_cv_prog_LEX
4408 if test -n "$LEX"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4410 $as_echo "$LEX" >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4414 fi
4415
4416
4417 test -n "$LEX" && break
4418 done
4419 test -n "$LEX" || LEX=":"
4420
4421 if test "x$LEX" != "x:"; then
4422 cat >conftest.l <<_ACEOF
4423 %%
4424 a { ECHO; }
4425 b { REJECT; }
4426 c { yymore (); }
4427 d { yyless (1); }
4428 e { yyless (input () != 0); }
4429 f { unput (yytext[0]); }
4430 . { BEGIN INITIAL; }
4431 %%
4432 #ifdef YYTEXT_POINTER
4433 extern char *yytext;
4434 #endif
4435 int
4436 main (void)
4437 {
4438 return ! yylex () + ! yywrap ();
4439 }
4440 _ACEOF
4441 { { ac_try="$LEX conftest.l"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$LEX conftest.l") 2>&5
4449 ac_status=$?
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4453 $as_echo_n "checking lex output file root... " >&6; }
4454 if ${ac_cv_prog_lex_root+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457
4458 if test -f lex.yy.c; then
4459 ac_cv_prog_lex_root=lex.yy
4460 elif test -f lexyy.c; then
4461 ac_cv_prog_lex_root=lexyy
4462 else
4463 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4464 fi
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4467 $as_echo "$ac_cv_prog_lex_root" >&6; }
4468 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4469
4470 if test -z "${LEXLIB+set}"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4472 $as_echo_n "checking lex library... " >&6; }
4473 if ${ac_cv_lib_lex+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476
4477 ac_save_LIBS=$LIBS
4478 ac_cv_lib_lex='none needed'
4479 for ac_lib in '' -lfl -ll; do
4480 LIBS="$ac_lib $ac_save_LIBS"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 `cat $LEX_OUTPUT_ROOT.c`
4484 _ACEOF
4485 if ac_fn_c_try_link "$LINENO"; then :
4486 ac_cv_lib_lex=$ac_lib
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext \
4489 conftest$ac_exeext conftest.$ac_ext
4490 test "$ac_cv_lib_lex" != 'none needed' && break
4491 done
4492 LIBS=$ac_save_LIBS
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4496 $as_echo "$ac_cv_lib_lex" >&6; }
4497 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4498 fi
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4502 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4503 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 # POSIX says lex can declare yytext either as a pointer or an array; the
4507 # default is implementation-dependent. Figure out which it is, since
4508 # not all implementations provide the %pointer and %array declarations.
4509 ac_cv_prog_lex_yytext_pointer=no
4510 ac_save_LIBS=$LIBS
4511 LIBS="$LEXLIB $ac_save_LIBS"
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 #define YYTEXT_POINTER 1
4516 `cat $LEX_OUTPUT_ROOT.c`
4517 _ACEOF
4518 if ac_fn_c_try_link "$LINENO"; then :
4519 ac_cv_prog_lex_yytext_pointer=yes
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext \
4522 conftest$ac_exeext conftest.$ac_ext
4523 LIBS=$ac_save_LIBS
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4527 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4528 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4529
4530 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4531
4532 fi
4533 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4534
4535 fi
4536 if test "$LEX" = :; then
4537 LEX=${am_missing_run}flex
4538 fi
4539
4540
4541 # Initializing libtool.
4542
4543
4544
4545
4546
4547
4548
4549 case `pwd` in
4550 *\ * | *\ *)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4553 esac
4554
4555
4556
4557 macro_version='2.4'
4558 macro_revision='1.3293'
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572 ltmain="$ac_aux_dir/ltmain.sh"
4573
4574 # Make sure we can run config.sub.
4575 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4576 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4579 $as_echo_n "checking build system type... " >&6; }
4580 if ${ac_cv_build+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 ac_build_alias=$build_alias
4584 test "x$ac_build_alias" = x &&
4585 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4586 test "x$ac_build_alias" = x &&
4587 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4588 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4590
4591 fi
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4593 $as_echo "$ac_cv_build" >&6; }
4594 case $ac_cv_build in
4595 *-*-*) ;;
4596 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4597 esac
4598 build=$ac_cv_build
4599 ac_save_IFS=$IFS; IFS='-'
4600 set x $ac_cv_build
4601 shift
4602 build_cpu=$1
4603 build_vendor=$2
4604 shift; shift
4605 # Remember, the first character of IFS is used to create $*,
4606 # except with old shells:
4607 build_os=$*
4608 IFS=$ac_save_IFS
4609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4610
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4613 $as_echo_n "checking host system type... " >&6; }
4614 if ${ac_cv_host+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test "x$host_alias" = x; then
4618 ac_cv_host=$ac_cv_build
4619 else
4620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4622 fi
4623
4624 fi
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4626 $as_echo "$ac_cv_host" >&6; }
4627 case $ac_cv_host in
4628 *-*-*) ;;
4629 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4630 esac
4631 host=$ac_cv_host
4632 ac_save_IFS=$IFS; IFS='-'
4633 set x $ac_cv_host
4634 shift
4635 host_cpu=$1
4636 host_vendor=$2
4637 shift; shift
4638 # Remember, the first character of IFS is used to create $*,
4639 # except with old shells:
4640 host_os=$*
4641 IFS=$ac_save_IFS
4642 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4643
4644
4645 # Backslashify metacharacters that are still active within
4646 # double-quoted strings.
4647 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4648
4649 # Same as above, but do not quote variable references.
4650 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4651
4652 # Sed substitution to delay expansion of an escaped shell variable in a
4653 # double_quote_subst'ed string.
4654 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4655
4656 # Sed substitution to delay expansion of an escaped single quote.
4657 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4658
4659 # Sed substitution to avoid accidental globbing in evaled expressions
4660 no_glob_subst='s/\*/\\\*/g'
4661
4662 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4663 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4664 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4665
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4667 $as_echo_n "checking how to print strings... " >&6; }
4668 # Test print first, because it will be a builtin if present.
4669 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4670 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='print -r --'
4672 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4673 ECHO='printf %s\n'
4674 else
4675 # Use this function as a fallback that always works.
4676 func_fallback_echo ()
4677 {
4678 eval 'cat <<_LTECHO_EOF
4679 $1
4680 _LTECHO_EOF'
4681 }
4682 ECHO='func_fallback_echo'
4683 fi
4684
4685 # func_echo_all arg...
4686 # Invoke $ECHO with all args, space-separated.
4687 func_echo_all ()
4688 {
4689 $ECHO ""
4690 }
4691
4692 case "$ECHO" in
4693 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4694 $as_echo "printf" >&6; } ;;
4695 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4696 $as_echo "print -r" >&6; } ;;
4697 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4698 $as_echo "cat" >&6; } ;;
4699 esac
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4715 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4716 if ${ac_cv_path_SED+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4720 for ac_i in 1 2 3 4 5 6 7; do
4721 ac_script="$ac_script$as_nl$ac_script"
4722 done
4723 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4724 { ac_script=; unset ac_script;}
4725 if test -z "$SED"; then
4726 ac_path_SED_found=false
4727 # Loop through the user's path and test for each of PROGNAME-LIST
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4730 do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_prog in sed gsed; do
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4736 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4737 # Check for GNU ac_path_SED and select it if it is found.
4738 # Check for GNU $ac_path_SED
4739 case `"$ac_path_SED" --version 2>&1` in
4740 *GNU*)
4741 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4742 *)
4743 ac_count=0
4744 $as_echo_n 0123456789 >"conftest.in"
4745 while :
4746 do
4747 cat "conftest.in" "conftest.in" >"conftest.tmp"
4748 mv "conftest.tmp" "conftest.in"
4749 cp "conftest.in" "conftest.nl"
4750 $as_echo '' >> "conftest.nl"
4751 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4753 as_fn_arith $ac_count + 1 && ac_count=$as_val
4754 if test $ac_count -gt ${ac_path_SED_max-0}; then
4755 # Best one so far, save it but keep looking for a better one
4756 ac_cv_path_SED="$ac_path_SED"
4757 ac_path_SED_max=$ac_count
4758 fi
4759 # 10*(2^10) chars as input seems more than enough
4760 test $ac_count -gt 10 && break
4761 done
4762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4763 esac
4764
4765 $ac_path_SED_found && break 3
4766 done
4767 done
4768 done
4769 IFS=$as_save_IFS
4770 if test -z "$ac_cv_path_SED"; then
4771 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4772 fi
4773 else
4774 ac_cv_path_SED=$SED
4775 fi
4776
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4779 $as_echo "$ac_cv_path_SED" >&6; }
4780 SED="$ac_cv_path_SED"
4781 rm -f conftest.sed
4782
4783 test -z "$SED" && SED=sed
4784 Xsed="$SED -e 1s/^X//"
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4798 if ${ac_cv_path_GREP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -z "$GREP"; then
4802 ac_path_GREP_found=false
4803 # Loop through the user's path and test for each of PROGNAME-LIST
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4806 do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_prog in grep ggrep; do
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4812 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4813 # Check for GNU ac_path_GREP and select it if it is found.
4814 # Check for GNU $ac_path_GREP
4815 case `"$ac_path_GREP" --version 2>&1` in
4816 *GNU*)
4817 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4818 *)
4819 ac_count=0
4820 $as_echo_n 0123456789 >"conftest.in"
4821 while :
4822 do
4823 cat "conftest.in" "conftest.in" >"conftest.tmp"
4824 mv "conftest.tmp" "conftest.in"
4825 cp "conftest.in" "conftest.nl"
4826 $as_echo 'GREP' >> "conftest.nl"
4827 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829 as_fn_arith $ac_count + 1 && ac_count=$as_val
4830 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4831 # Best one so far, save it but keep looking for a better one
4832 ac_cv_path_GREP="$ac_path_GREP"
4833 ac_path_GREP_max=$ac_count
4834 fi
4835 # 10*(2^10) chars as input seems more than enough
4836 test $ac_count -gt 10 && break
4837 done
4838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841 $ac_path_GREP_found && break 3
4842 done
4843 done
4844 done
4845 IFS=$as_save_IFS
4846 if test -z "$ac_cv_path_GREP"; then
4847 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4848 fi
4849 else
4850 ac_cv_path_GREP=$GREP
4851 fi
4852
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4855 $as_echo "$ac_cv_path_GREP" >&6; }
4856 GREP="$ac_cv_path_GREP"
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4860 $as_echo_n "checking for egrep... " >&6; }
4861 if ${ac_cv_path_EGREP+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4865 then ac_cv_path_EGREP="$GREP -E"
4866 else
4867 if test -z "$EGREP"; then
4868 ac_path_EGREP_found=false
4869 # Loop through the user's path and test for each of PROGNAME-LIST
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_prog in egrep; do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4878 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4879 # Check for GNU ac_path_EGREP and select it if it is found.
4880 # Check for GNU $ac_path_EGREP
4881 case `"$ac_path_EGREP" --version 2>&1` in
4882 *GNU*)
4883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4884 *)
4885 ac_count=0
4886 $as_echo_n 0123456789 >"conftest.in"
4887 while :
4888 do
4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
4890 mv "conftest.tmp" "conftest.in"
4891 cp "conftest.in" "conftest.nl"
4892 $as_echo 'EGREP' >> "conftest.nl"
4893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
4896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4897 # Best one so far, save it but keep looking for a better one
4898 ac_cv_path_EGREP="$ac_path_EGREP"
4899 ac_path_EGREP_max=$ac_count
4900 fi
4901 # 10*(2^10) chars as input seems more than enough
4902 test $ac_count -gt 10 && break
4903 done
4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 esac
4906
4907 $ac_path_EGREP_found && break 3
4908 done
4909 done
4910 done
4911 IFS=$as_save_IFS
4912 if test -z "$ac_cv_path_EGREP"; then
4913 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 fi
4915 else
4916 ac_cv_path_EGREP=$EGREP
4917 fi
4918
4919 fi
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4922 $as_echo "$ac_cv_path_EGREP" >&6; }
4923 EGREP="$ac_cv_path_EGREP"
4924
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4927 $as_echo_n "checking for fgrep... " >&6; }
4928 if ${ac_cv_path_FGREP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4932 then ac_cv_path_FGREP="$GREP -F"
4933 else
4934 if test -z "$FGREP"; then
4935 ac_path_FGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4939 do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in fgrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4945 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4946 # Check for GNU ac_path_FGREP and select it if it is found.
4947 # Check for GNU $ac_path_FGREP
4948 case `"$ac_path_FGREP" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4951 *)
4952 ac_count=0
4953 $as_echo_n 0123456789 >"conftest.in"
4954 while :
4955 do
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 $as_echo 'FGREP' >> "conftest.nl"
4960 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_FGREP="$ac_path_FGREP"
4966 ac_path_FGREP_max=$ac_count
4967 fi
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4973
4974 $ac_path_FGREP_found && break 3
4975 done
4976 done
4977 done
4978 IFS=$as_save_IFS
4979 if test -z "$ac_cv_path_FGREP"; then
4980 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4981 fi
4982 else
4983 ac_cv_path_FGREP=$FGREP
4984 fi
4985
4986 fi
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4989 $as_echo "$ac_cv_path_FGREP" >&6; }
4990 FGREP="$ac_cv_path_FGREP"
4991
4992
4993 test -z "$GREP" && GREP=grep
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013 # Check whether --with-gnu-ld was given.
5014 if test "${with_gnu_ld+set}" = set; then :
5015 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5016 else
5017 with_gnu_ld=no
5018 fi
5019
5020 ac_prog=ld
5021 if test "$GCC" = yes; then
5022 # Check if gcc -print-prog-name=ld gives a path.
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5024 $as_echo_n "checking for ld used by $CC... " >&6; }
5025 case $host in
5026 *-*-mingw*)
5027 # gcc leaves a trailing carriage return which upsets mingw
5028 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5029 *)
5030 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5031 esac
5032 case $ac_prog in
5033 # Accept absolute paths.
5034 [\\/]* | ?:[\\/]*)
5035 re_direlt='/[^/][^/]*/\.\./'
5036 # Canonicalize the pathname of ld
5037 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5038 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5039 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5040 done
5041 test -z "$LD" && LD="$ac_prog"
5042 ;;
5043 "")
5044 # If it fails, then pretend we aren't using GCC.
5045 ac_prog=ld
5046 ;;
5047 *)
5048 # If it is relative, then search for the first ld in PATH.
5049 with_gnu_ld=unknown
5050 ;;
5051 esac
5052 elif test "$with_gnu_ld" = yes; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5054 $as_echo_n "checking for GNU ld... " >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5057 $as_echo_n "checking for non-GNU ld... " >&6; }
5058 fi
5059 if ${lt_cv_path_LD+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -z "$LD"; then
5063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064 for ac_dir in $PATH; do
5065 IFS="$lt_save_ifs"
5066 test -z "$ac_dir" && ac_dir=.
5067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5068 lt_cv_path_LD="$ac_dir/$ac_prog"
5069 # Check to see if the program is GNU ld. I'd rather use --version,
5070 # but apparently some variants of GNU ld only accept -v.
5071 # Break only if it was the GNU/non-GNU ld that we prefer.
5072 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5073 *GNU* | *'with BFD'*)
5074 test "$with_gnu_ld" != no && break
5075 ;;
5076 *)
5077 test "$with_gnu_ld" != yes && break
5078 ;;
5079 esac
5080 fi
5081 done
5082 IFS="$lt_save_ifs"
5083 else
5084 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5085 fi
5086 fi
5087
5088 LD="$lt_cv_path_LD"
5089 if test -n "$LD"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5091 $as_echo "$LD" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5099 if ${lt_cv_prog_gnu_ld+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5103 case `$LD -v 2>&1 </dev/null` in
5104 *GNU* | *'with BFD'*)
5105 lt_cv_prog_gnu_ld=yes
5106 ;;
5107 *)
5108 lt_cv_prog_gnu_ld=no
5109 ;;
5110 esac
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5113 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5114 with_gnu_ld=$lt_cv_prog_gnu_ld
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5125 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5126 if ${lt_cv_path_NM+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$NM"; then
5130 # Let the user override the test.
5131 lt_cv_path_NM="$NM"
5132 else
5133 lt_nm_to_check="${ac_tool_prefix}nm"
5134 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5135 lt_nm_to_check="$lt_nm_to_check nm"
5136 fi
5137 for lt_tmp_nm in $lt_nm_to_check; do
5138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5139 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5140 IFS="$lt_save_ifs"
5141 test -z "$ac_dir" && ac_dir=.
5142 tmp_nm="$ac_dir/$lt_tmp_nm"
5143 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5144 # Check to see if the nm accepts a BSD-compat flag.
5145 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5146 # nm: unknown option "B" ignored
5147 # Tru64's nm complains that /dev/null is an invalid object file
5148 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5149 */dev/null* | *'Invalid file or object type'*)
5150 lt_cv_path_NM="$tmp_nm -B"
5151 break
5152 ;;
5153 *)
5154 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5155 */dev/null*)
5156 lt_cv_path_NM="$tmp_nm -p"
5157 break
5158 ;;
5159 *)
5160 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5161 continue # so that we can try to find one that supports BSD flags
5162 ;;
5163 esac
5164 ;;
5165 esac
5166 fi
5167 done
5168 IFS="$lt_save_ifs"
5169 done
5170 : ${lt_cv_path_NM=no}
5171 fi
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5174 $as_echo "$lt_cv_path_NM" >&6; }
5175 if test "$lt_cv_path_NM" != "no"; then
5176 NM="$lt_cv_path_NM"
5177 else
5178 # Didn't find any BSD compatible name lister, look for dumpbin.
5179 if test -n "$DUMPBIN"; then :
5180 # Let the user override the test.
5181 else
5182 if test -n "$ac_tool_prefix"; then
5183 for ac_prog in dumpbin "link -dump"
5184 do
5185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_DUMPBIN+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$DUMPBIN"; then
5193 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 DUMPBIN=$ac_cv_prog_DUMPBIN
5213 if test -n "$DUMPBIN"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5215 $as_echo "$DUMPBIN" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222 test -n "$DUMPBIN" && break
5223 done
5224 fi
5225 if test -z "$DUMPBIN"; then
5226 ac_ct_DUMPBIN=$DUMPBIN
5227 for ac_prog in dumpbin "link -dump"
5228 do
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$ac_ct_DUMPBIN"; then
5237 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5249 fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5257 if test -n "$ac_ct_DUMPBIN"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5259 $as_echo "$ac_ct_DUMPBIN" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266 test -n "$ac_ct_DUMPBIN" && break
5267 done
5268
5269 if test "x$ac_ct_DUMPBIN" = x; then
5270 DUMPBIN=":"
5271 else
5272 case $cross_compiling:$ac_tool_warned in
5273 yes:)
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5276 ac_tool_warned=yes ;;
5277 esac
5278 DUMPBIN=$ac_ct_DUMPBIN
5279 fi
5280 fi
5281
5282 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5283 *COFF*)
5284 DUMPBIN="$DUMPBIN -symbols"
5285 ;;
5286 *)
5287 DUMPBIN=:
5288 ;;
5289 esac
5290 fi
5291
5292 if test "$DUMPBIN" != ":"; then
5293 NM="$DUMPBIN"
5294 fi
5295 fi
5296 test -z "$NM" && NM=nm
5297
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5304 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5305 if ${lt_cv_nm_interface+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 lt_cv_nm_interface="BSD nm"
5309 echo "int some_variable = 0;" > conftest.$ac_ext
5310 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5311 (eval "$ac_compile" 2>conftest.err)
5312 cat conftest.err >&5
5313 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5314 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5315 cat conftest.err >&5
5316 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5317 cat conftest.out >&5
5318 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5319 lt_cv_nm_interface="MS dumpbin"
5320 fi
5321 rm -f conftest*
5322 fi
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5324 $as_echo "$lt_cv_nm_interface" >&6; }
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5327 $as_echo_n "checking whether ln -s works... " >&6; }
5328 LN_S=$as_ln_s
5329 if test "$LN_S" = "ln -s"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 $as_echo "yes" >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5334 $as_echo "no, using $LN_S" >&6; }
5335 fi
5336
5337 # find the maximum length of command line arguments
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5339 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5340 if ${lt_cv_sys_max_cmd_len+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 i=0
5344 teststring="ABCD"
5345
5346 case $build_os in
5347 msdosdjgpp*)
5348 # On DJGPP, this test can blow up pretty badly due to problems in libc
5349 # (any single argument exceeding 2000 bytes causes a buffer overrun
5350 # during glob expansion). Even if it were fixed, the result of this
5351 # check would be larger than it should be.
5352 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5353 ;;
5354
5355 gnu*)
5356 # Under GNU Hurd, this test is not required because there is
5357 # no limit to the length of command line arguments.
5358 # Libtool will interpret -1 as no limit whatsoever
5359 lt_cv_sys_max_cmd_len=-1;
5360 ;;
5361
5362 cygwin* | mingw* | cegcc*)
5363 # On Win9x/ME, this test blows up -- it succeeds, but takes
5364 # about 5 minutes as the teststring grows exponentially.
5365 # Worse, since 9x/ME are not pre-emptively multitasking,
5366 # you end up with a "frozen" computer, even though with patience
5367 # the test eventually succeeds (with a max line length of 256k).
5368 # Instead, let's just punt: use the minimum linelength reported by
5369 # all of the supported platforms: 8192 (on NT/2K/XP).
5370 lt_cv_sys_max_cmd_len=8192;
5371 ;;
5372
5373 mint*)
5374 # On MiNT this can take a long time and run out of memory.
5375 lt_cv_sys_max_cmd_len=8192;
5376 ;;
5377
5378 amigaos*)
5379 # On AmigaOS with pdksh, this test takes hours, literally.
5380 # So we just punt and use a minimum line length of 8192.
5381 lt_cv_sys_max_cmd_len=8192;
5382 ;;
5383
5384 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5385 # This has been around since 386BSD, at least. Likely further.
5386 if test -x /sbin/sysctl; then
5387 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5388 elif test -x /usr/sbin/sysctl; then
5389 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5390 else
5391 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5392 fi
5393 # And add a safety zone
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5396 ;;
5397
5398 interix*)
5399 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5400 lt_cv_sys_max_cmd_len=196608
5401 ;;
5402
5403 osf*)
5404 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5405 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5406 # nice to cause kernel panics so lets avoid the loop below.
5407 # First set a reasonable default.
5408 lt_cv_sys_max_cmd_len=16384
5409 #
5410 if test -x /sbin/sysconfig; then
5411 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5412 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5413 esac
5414 fi
5415 ;;
5416 sco3.2v5*)
5417 lt_cv_sys_max_cmd_len=102400
5418 ;;
5419 sysv5* | sco5v6* | sysv4.2uw2*)
5420 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5421 if test -n "$kargmax"; then
5422 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5423 else
5424 lt_cv_sys_max_cmd_len=32768
5425 fi
5426 ;;
5427 *)
5428 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5429 if test -n "$lt_cv_sys_max_cmd_len"; then
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5432 else
5433 # Make teststring a little bigger before we do anything with it.
5434 # a 1K string should be a reasonable start.
5435 for i in 1 2 3 4 5 6 7 8 ; do
5436 teststring=$teststring$teststring
5437 done
5438 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5439 # If test is not a shell built-in, we'll probably end up computing a
5440 # maximum length that is only half of the actual maximum length, but
5441 # we can't tell.
5442 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5443 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5444 test $i != 17 # 1/2 MB should be enough
5445 do
5446 i=`expr $i + 1`
5447 teststring=$teststring$teststring
5448 done
5449 # Only check the string length outside the loop.
5450 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5451 teststring=
5452 # Add a significant safety factor because C++ compilers can tack on
5453 # massive amounts of additional arguments before passing them to the
5454 # linker. It appears as though 1/2 is a usable value.
5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5456 fi
5457 ;;
5458 esac
5459
5460 fi
5461
5462 if test -n $lt_cv_sys_max_cmd_len ; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5464 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5467 $as_echo "none" >&6; }
5468 fi
5469 max_cmd_len=$lt_cv_sys_max_cmd_len
5470
5471
5472
5473
5474
5475
5476 : ${CP="cp -f"}
5477 : ${MV="mv -f"}
5478 : ${RM="rm -f"}
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5481 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5482 # Try some XSI features
5483 xsi_shell=no
5484 ( _lt_dummy="a/b/c"
5485 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5486 = c,a/b,b/c, \
5487 && eval 'test $(( 1 + 1 )) -eq 2 \
5488 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5489 && xsi_shell=yes
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5491 $as_echo "$xsi_shell" >&6; }
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5495 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5496 lt_shell_append=no
5497 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5498 >/dev/null 2>&1 \
5499 && lt_shell_append=yes
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5501 $as_echo "$lt_shell_append" >&6; }
5502
5503
5504 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5505 lt_unset=unset
5506 else
5507 lt_unset=false
5508 fi
5509
5510
5511
5512
5513
5514 # test EBCDIC or ASCII
5515 case `echo X|tr X '\101'` in
5516 A) # ASCII based system
5517 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5518 lt_SP2NL='tr \040 \012'
5519 lt_NL2SP='tr \015\012 \040\040'
5520 ;;
5521 *) # EBCDIC based system
5522 lt_SP2NL='tr \100 \n'
5523 lt_NL2SP='tr \r\n \100\100'
5524 ;;
5525 esac
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5536 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5537 if ${lt_cv_to_host_file_cmd+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 case $host in
5541 *-*-mingw* )
5542 case $build in
5543 *-*-mingw* ) # actually msys
5544 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5545 ;;
5546 *-*-cygwin* )
5547 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5548 ;;
5549 * ) # otherwise, assume *nix
5550 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5551 ;;
5552 esac
5553 ;;
5554 *-*-cygwin* )
5555 case $build in
5556 *-*-mingw* ) # actually msys
5557 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5558 ;;
5559 *-*-cygwin* )
5560 lt_cv_to_host_file_cmd=func_convert_file_noop
5561 ;;
5562 * ) # otherwise, assume *nix
5563 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5564 ;;
5565 esac
5566 ;;
5567 * ) # unhandled hosts (and "normal" native builds)
5568 lt_cv_to_host_file_cmd=func_convert_file_noop
5569 ;;
5570 esac
5571
5572 fi
5573
5574 to_host_file_cmd=$lt_cv_to_host_file_cmd
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5576 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5577
5578
5579
5580
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5583 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5584 if ${lt_cv_to_tool_file_cmd+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 #assume ordinary cross tools, or native build.
5588 lt_cv_to_tool_file_cmd=func_convert_file_noop
5589 case $host in
5590 *-*-mingw* )
5591 case $build in
5592 *-*-mingw* ) # actually msys
5593 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5594 ;;
5595 esac
5596 ;;
5597 esac
5598
5599 fi
5600
5601 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5603 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5610 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5611 if ${lt_cv_ld_reload_flag+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 lt_cv_ld_reload_flag='-r'
5615 fi
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5617 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5618 reload_flag=$lt_cv_ld_reload_flag
5619 case $reload_flag in
5620 "" | " "*) ;;
5621 *) reload_flag=" $reload_flag" ;;
5622 esac
5623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5624 case $host_os in
5625 cygwin* | mingw* | pw32* | cegcc*)
5626 if test "$GCC" != yes; then
5627 reload_cmds=false
5628 fi
5629 ;;
5630 darwin*)
5631 if test "$GCC" = yes; then
5632 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5633 else
5634 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5635 fi
5636 ;;
5637 esac
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 if test -n "$ac_tool_prefix"; then
5648 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5649 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if ${ac_cv_prog_OBJDUMP+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -n "$OBJDUMP"; then
5656 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669 done
5670 done
5671 IFS=$as_save_IFS
5672
5673 fi
5674 fi
5675 OBJDUMP=$ac_cv_prog_OBJDUMP
5676 if test -n "$OBJDUMP"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5678 $as_echo "$OBJDUMP" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685 fi
5686 if test -z "$ac_cv_prog_OBJDUMP"; then
5687 ac_ct_OBJDUMP=$OBJDUMP
5688 # Extract the first word of "objdump", so it can be a program name with args.
5689 set dummy objdump; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if test -n "$ac_ct_OBJDUMP"; then
5696 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701 IFS=$as_save_IFS
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709 done
5710 done
5711 IFS=$as_save_IFS
5712
5713 fi
5714 fi
5715 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5716 if test -n "$ac_ct_OBJDUMP"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5718 $as_echo "$ac_ct_OBJDUMP" >&6; }
5719 else
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722 fi
5723
5724 if test "x$ac_ct_OBJDUMP" = x; then
5725 OBJDUMP="false"
5726 else
5727 case $cross_compiling:$ac_tool_warned in
5728 yes:)
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5731 ac_tool_warned=yes ;;
5732 esac
5733 OBJDUMP=$ac_ct_OBJDUMP
5734 fi
5735 else
5736 OBJDUMP="$ac_cv_prog_OBJDUMP"
5737 fi
5738
5739 test -z "$OBJDUMP" && OBJDUMP=objdump
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5750 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5751 if ${lt_cv_deplibs_check_method+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 lt_cv_file_magic_cmd='$MAGIC_CMD'
5755 lt_cv_file_magic_test_file=
5756 lt_cv_deplibs_check_method='unknown'
5757 # Need to set the preceding variable on all platforms that support
5758 # interlibrary dependencies.
5759 # 'none' -- dependencies not supported.
5760 # `unknown' -- same as none, but documents that we really don't know.
5761 # 'pass_all' -- all dependencies passed with no checks.
5762 # 'test_compile' -- check by making test program.
5763 # 'file_magic [[regex]]' -- check by looking for files in library path
5764 # which responds to the $file_magic_cmd with a given extended regex.
5765 # If you have `file' or equivalent on your system and you're not sure
5766 # whether `pass_all' will *always* work, you probably want this one.
5767
5768 case $host_os in
5769 aix[4-9]*)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772
5773 beos*)
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776
5777 bsdi[45]*)
5778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5779 lt_cv_file_magic_cmd='/usr/bin/file -L'
5780 lt_cv_file_magic_test_file=/shlib/libc.so
5781 ;;
5782
5783 cygwin*)
5784 # func_win32_libid is a shell function defined in ltmain.sh
5785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5786 lt_cv_file_magic_cmd='func_win32_libid'
5787 ;;
5788
5789 mingw* | pw32*)
5790 # Base MSYS/MinGW do not provide the 'file' command needed by
5791 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5792 # unless we find 'file', for example because we are cross-compiling.
5793 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5794 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5795 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5796 lt_cv_file_magic_cmd='func_win32_libid'
5797 else
5798 # Keep this pattern in sync with the one in func_win32_libid.
5799 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5800 lt_cv_file_magic_cmd='$OBJDUMP -f'
5801 fi
5802 ;;
5803
5804 cegcc*)
5805 # use the weaker test based on 'objdump'. See mingw*.
5806 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5807 lt_cv_file_magic_cmd='$OBJDUMP -f'
5808 ;;
5809
5810 darwin* | rhapsody*)
5811 lt_cv_deplibs_check_method=pass_all
5812 ;;
5813
5814 freebsd* | dragonfly*)
5815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5816 case $host_cpu in
5817 i*86 )
5818 # Not sure whether the presence of OpenBSD here was a mistake.
5819 # Let's accept both of them until this is cleared up.
5820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5821 lt_cv_file_magic_cmd=/usr/bin/file
5822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5823 ;;
5824 esac
5825 else
5826 lt_cv_deplibs_check_method=pass_all
5827 fi
5828 ;;
5829
5830 gnu*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834 haiku*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
5838 hpux10.20* | hpux11*)
5839 lt_cv_file_magic_cmd=/usr/bin/file
5840 case $host_cpu in
5841 ia64*)
5842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5843 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5844 ;;
5845 hppa*64*)
5846 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]'
5847 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5848 ;;
5849 *)
5850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5851 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5852 ;;
5853 esac
5854 ;;
5855
5856 interix[3-9]*)
5857 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5859 ;;
5860
5861 irix5* | irix6* | nonstopux*)
5862 case $LD in
5863 *-32|*"-32 ") libmagic=32-bit;;
5864 *-n32|*"-n32 ") libmagic=N32;;
5865 *-64|*"-64 ") libmagic=64-bit;;
5866 *) libmagic=never-match;;
5867 esac
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870
5871 # This must be Linux ELF.
5872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5873 lt_cv_deplibs_check_method=pass_all
5874 ;;
5875
5876 netbsd*)
5877 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5879 else
5880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5881 fi
5882 ;;
5883
5884 newos6*)
5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5886 lt_cv_file_magic_cmd=/usr/bin/file
5887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5888 ;;
5889
5890 *nto* | *qnx*)
5891 lt_cv_deplibs_check_method=pass_all
5892 ;;
5893
5894 openbsd*)
5895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5897 else
5898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5899 fi
5900 ;;
5901
5902 osf3* | osf4* | osf5*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
5905
5906 rdos*)
5907 lt_cv_deplibs_check_method=pass_all
5908 ;;
5909
5910 solaris*)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
5913
5914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917
5918 sysv4 | sysv4.3*)
5919 case $host_vendor in
5920 motorola)
5921 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]'
5922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5923 ;;
5924 ncr)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927 sequent)
5928 lt_cv_file_magic_cmd='/bin/file'
5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5930 ;;
5931 sni)
5932 lt_cv_file_magic_cmd='/bin/file'
5933 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5934 lt_cv_file_magic_test_file=/lib/libc.so
5935 ;;
5936 siemens)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939 pc)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942 esac
5943 ;;
5944
5945 tpf*)
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948 esac
5949
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5952 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5953
5954 file_magic_glob=
5955 want_nocaseglob=no
5956 if test "$build" = "$host"; then
5957 case $host_os in
5958 mingw* | pw32*)
5959 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5960 want_nocaseglob=yes
5961 else
5962 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5963 fi
5964 ;;
5965 esac
5966 fi
5967
5968 file_magic_cmd=$lt_cv_file_magic_cmd
5969 deplibs_check_method=$lt_cv_deplibs_check_method
5970 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_DLLTOOL+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$DLLTOOL"; then
6002 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 DLLTOOL=$ac_cv_prog_DLLTOOL
6022 if test -n "$DLLTOOL"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6024 $as_echo "$DLLTOOL" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030
6031 fi
6032 if test -z "$ac_cv_prog_DLLTOOL"; then
6033 ac_ct_DLLTOOL=$DLLTOOL
6034 # Extract the first word of "dlltool", so it can be a program name with args.
6035 set dummy dlltool; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_DLLTOOL"; then
6042 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6062 if test -n "$ac_ct_DLLTOOL"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6064 $as_echo "$ac_ct_DLLTOOL" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070 if test "x$ac_ct_DLLTOOL" = x; then
6071 DLLTOOL="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074 yes:)
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned=yes ;;
6078 esac
6079 DLLTOOL=$ac_ct_DLLTOOL
6080 fi
6081 else
6082 DLLTOOL="$ac_cv_prog_DLLTOOL"
6083 fi
6084
6085 test -z "$DLLTOOL" && DLLTOOL=dlltool
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6097 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6098 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 lt_cv_sharedlib_from_linklib_cmd='unknown'
6102
6103 case $host_os in
6104 cygwin* | mingw* | pw32* | cegcc*)
6105 # two different shell functions defined in ltmain.sh
6106 # decide which to use based on capabilities of $DLLTOOL
6107 case `$DLLTOOL --help 2>&1` in
6108 *--identify-strict*)
6109 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6110 ;;
6111 *)
6112 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6113 ;;
6114 esac
6115 ;;
6116 *)
6117 # fallback: assume linklib IS sharedlib
6118 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6119 ;;
6120 esac
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6124 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6125 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6126 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6127
6128
6129
6130
6131
6132
6133
6134 if test -n "$ac_tool_prefix"; then
6135 for ac_prog in ar
6136 do
6137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_AR+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$AR"; then
6145 ac_cv_prog_AR="$AR" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6157 fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 AR=$ac_cv_prog_AR
6165 if test -n "$AR"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6167 $as_echo "$AR" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172
6173
6174 test -n "$AR" && break
6175 done
6176 fi
6177 if test -z "$AR"; then
6178 ac_ct_AR=$AR
6179 for ac_prog in ar
6180 do
6181 # Extract the first word of "$ac_prog", so it can be a program name with args.
6182 set dummy $ac_prog; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_AR"; then
6189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_AR="$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6211 $as_echo "$ac_ct_AR" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 test -n "$ac_ct_AR" && break
6219 done
6220
6221 if test "x$ac_ct_AR" = x; then
6222 AR="false"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 AR=$ac_ct_AR
6231 fi
6232 fi
6233
6234 : ${AR=ar}
6235 : ${AR_FLAGS=cru}
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6248 $as_echo_n "checking for archiver @FILE support... " >&6; }
6249 if ${lt_cv_ar_at_file+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 lt_cv_ar_at_file=no
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255
6256 int
6257 main ()
6258 {
6259
6260 ;
6261 return 0;
6262 }
6263 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"; then :
6265 echo conftest.$ac_objext > conftest.lst
6266 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6268 (eval $lt_ar_try) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }
6272 if test "$ac_status" -eq 0; then
6273 # Ensure the archiver fails upon bogus file names.
6274 rm -f conftest.$ac_objext libconftest.a
6275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6276 (eval $lt_ar_try) 2>&5
6277 ac_status=$?
6278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6279 test $ac_status = 0; }
6280 if test "$ac_status" -ne 0; then
6281 lt_cv_ar_at_file=@
6282 fi
6283 fi
6284 rm -f conftest.* libconftest.a
6285
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288
6289 fi
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6291 $as_echo "$lt_cv_ar_at_file" >&6; }
6292
6293 if test "x$lt_cv_ar_at_file" = xno; then
6294 archiver_list_spec=
6295 else
6296 archiver_list_spec=$lt_cv_ar_at_file
6297 fi
6298
6299
6300
6301
6302
6303
6304
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}strip; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 $as_echo_n "checking for $ac_word... " >&6; }
6310 if ${ac_cv_prog_STRIP+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -n "$STRIP"; then
6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6315 else
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 fi
6332 fi
6333 STRIP=$ac_cv_prog_STRIP
6334 if test -n "$STRIP"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6336 $as_echo "$STRIP" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_STRIP"; then
6345 ac_ct_STRIP=$STRIP
6346 # Extract the first word of "strip", so it can be a program name with args.
6347 set dummy strip; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$ac_ct_STRIP"; then
6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_STRIP="strip"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6374 if test -n "$ac_ct_STRIP"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6376 $as_echo "$ac_ct_STRIP" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382 if test "x$ac_ct_STRIP" = x; then
6383 STRIP=":"
6384 else
6385 case $cross_compiling:$ac_tool_warned in
6386 yes:)
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6389 ac_tool_warned=yes ;;
6390 esac
6391 STRIP=$ac_ct_STRIP
6392 fi
6393 else
6394 STRIP="$ac_cv_prog_STRIP"
6395 fi
6396
6397 test -z "$STRIP" && STRIP=:
6398
6399
6400
6401
6402
6403
6404 if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_RANLIB+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$RANLIB"; then
6413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426 done
6427 done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 RANLIB=$ac_cv_prog_RANLIB
6433 if test -n "$RANLIB"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6435 $as_echo "$RANLIB" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 fi
6443 if test -z "$ac_cv_prog_RANLIB"; then
6444 ac_ct_RANLIB=$RANLIB
6445 # Extract the first word of "ranlib", so it can be a program name with args.
6446 set dummy ranlib; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$ac_ct_RANLIB"; then
6453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_ac_ct_RANLIB="ranlib"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473 if test -n "$ac_ct_RANLIB"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6475 $as_echo "$ac_ct_RANLIB" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481 if test "x$ac_ct_RANLIB" = x; then
6482 RANLIB=":"
6483 else
6484 case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490 RANLIB=$ac_ct_RANLIB
6491 fi
6492 else
6493 RANLIB="$ac_cv_prog_RANLIB"
6494 fi
6495
6496 test -z "$RANLIB" && RANLIB=:
6497
6498
6499
6500
6501
6502
6503 # Determine commands to create old-style static archives.
6504 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6505 old_postinstall_cmds='chmod 644 $oldlib'
6506 old_postuninstall_cmds=
6507
6508 if test -n "$RANLIB"; then
6509 case $host_os in
6510 openbsd*)
6511 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6512 ;;
6513 *)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6515 ;;
6516 esac
6517 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6518 fi
6519
6520 case $host_os in
6521 darwin*)
6522 lock_old_archive_extraction=yes ;;
6523 *)
6524 lock_old_archive_extraction=no ;;
6525 esac
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 # If no C compiler was specified, use CC.
6566 LTCC=${LTCC-"$CC"}
6567
6568 # If no C compiler flags were specified, use CFLAGS.
6569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6570
6571 # Allow CC to be a program name with arguments.
6572 compiler=$CC
6573
6574
6575 # Check for command to grab the raw symbol name followed by C symbol from nm.
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6577 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6578 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581
6582 # These are sane defaults that work on at least a few old systems.
6583 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6584
6585 # Character class describing NM global symbol codes.
6586 symcode='[BCDEGRST]'
6587
6588 # Regexp to match symbols that can be accessed directly from C.
6589 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6590
6591 # Define system-specific variables.
6592 case $host_os in
6593 aix*)
6594 symcode='[BCDT]'
6595 ;;
6596 cygwin* | mingw* | pw32* | cegcc*)
6597 symcode='[ABCDGISTW]'
6598 ;;
6599 hpux*)
6600 if test "$host_cpu" = ia64; then
6601 symcode='[ABCDEGRST]'
6602 fi
6603 ;;
6604 irix* | nonstopux*)
6605 symcode='[BCDEGRST]'
6606 ;;
6607 osf*)
6608 symcode='[BCDEGQRST]'
6609 ;;
6610 solaris*)
6611 symcode='[BDRT]'
6612 ;;
6613 sco3.2v5*)
6614 symcode='[DT]'
6615 ;;
6616 sysv4.2uw2*)
6617 symcode='[DT]'
6618 ;;
6619 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6620 symcode='[ABDT]'
6621 ;;
6622 sysv4)
6623 symcode='[DFNSTU]'
6624 ;;
6625 esac
6626
6627 # If we're using GNU nm, then use its standard symbol codes.
6628 case `$NM -V 2>&1` in
6629 *GNU* | *'with BFD'*)
6630 symcode='[ABCDGIRSTW]' ;;
6631 esac
6632
6633 # Transform an extracted symbol line into a proper C declaration.
6634 # Some systems (esp. on ia64) link data and code symbols differently,
6635 # so use this general approach.
6636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6637
6638 # Transform an extracted symbol line into symbol name and symbol address
6639 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6640 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'"
6641
6642 # Handle CRLF in mingw tool chain
6643 opt_cr=
6644 case $build_os in
6645 mingw*)
6646 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6647 ;;
6648 esac
6649
6650 # Try without a prefix underscore, then with it.
6651 for ac_symprfx in "" "_"; do
6652
6653 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6654 symxfrm="\\1 $ac_symprfx\\2 \\2"
6655
6656 # Write the raw and C identifiers.
6657 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6658 # Fake it for dumpbin and say T for any non-static function
6659 # and D for any global variable.
6660 # Also find C++ and __fastcall symbols from MSVC++,
6661 # which start with @ or ?.
6662 lt_cv_sys_global_symbol_pipe="$AWK '"\
6663 " {last_section=section; section=\$ 3};"\
6664 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6665 " \$ 0!~/External *\|/{next};"\
6666 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6667 " {if(hide[section]) next};"\
6668 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6669 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6670 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6671 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6672 " ' prfx=^$ac_symprfx"
6673 else
6674 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6675 fi
6676 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6677
6678 # Check to see that the pipe works correctly.
6679 pipe_works=no
6680
6681 rm -f conftest*
6682 cat > conftest.$ac_ext <<_LT_EOF
6683 #ifdef __cplusplus
6684 extern "C" {
6685 #endif
6686 char nm_test_var;
6687 void nm_test_func(void);
6688 void nm_test_func(void){}
6689 #ifdef __cplusplus
6690 }
6691 #endif
6692 int main(){nm_test_var='a';nm_test_func();return(0);}
6693 _LT_EOF
6694
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 # Now try to grab the symbols.
6701 nlist=conftest.nm
6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6703 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; } && test -s "$nlist"; then
6707 # Try sorting and uniquifying the output.
6708 if sort "$nlist" | uniq > "$nlist"T; then
6709 mv -f "$nlist"T "$nlist"
6710 else
6711 rm -f "$nlist"T
6712 fi
6713
6714 # Make sure that we snagged all the symbols we need.
6715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6717 cat <<_LT_EOF > conftest.$ac_ext
6718 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6719 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6720 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6721 relocations are performed -- see ld's documentation on pseudo-relocs. */
6722 # define LT_DLSYM_CONST
6723 #elif defined(__osf__)
6724 /* This system does not cope well with relocations in const data. */
6725 # define LT_DLSYM_CONST
6726 #else
6727 # define LT_DLSYM_CONST const
6728 #endif
6729
6730 #ifdef __cplusplus
6731 extern "C" {
6732 #endif
6733
6734 _LT_EOF
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6737
6738 cat <<_LT_EOF >> conftest.$ac_ext
6739
6740 /* The mapping between symbol names and symbols. */
6741 LT_DLSYM_CONST struct {
6742 const char *name;
6743 void *address;
6744 }
6745 lt__PROGRAM__LTX_preloaded_symbols[] =
6746 {
6747 { "@PROGRAM@", (void *) 0 },
6748 _LT_EOF
6749 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6750 cat <<\_LT_EOF >> conftest.$ac_ext
6751 {0, (void *) 0}
6752 };
6753
6754 /* This works around a problem in FreeBSD linker */
6755 #ifdef FREEBSD_WORKAROUND
6756 static const void *lt_preloaded_setup() {
6757 return lt__PROGRAM__LTX_preloaded_symbols;
6758 }
6759 #endif
6760
6761 #ifdef __cplusplus
6762 }
6763 #endif
6764 _LT_EOF
6765 # Now try linking the two files.
6766 mv conftest.$ac_objext conftstm.$ac_objext
6767 lt_globsym_save_LIBS=$LIBS
6768 lt_globsym_save_CFLAGS=$CFLAGS
6769 LIBS="conftstm.$ac_objext"
6770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6772 (eval $ac_link) 2>&5
6773 ac_status=$?
6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6776 pipe_works=yes
6777 fi
6778 LIBS=$lt_globsym_save_LIBS
6779 CFLAGS=$lt_globsym_save_CFLAGS
6780 else
6781 echo "cannot find nm_test_func in $nlist" >&5
6782 fi
6783 else
6784 echo "cannot find nm_test_var in $nlist" >&5
6785 fi
6786 else
6787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6788 fi
6789 else
6790 echo "$progname: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6792 fi
6793 rm -rf conftest* conftst*
6794
6795 # Do not use the global_symbol_pipe unless it works.
6796 if test "$pipe_works" = yes; then
6797 break
6798 else
6799 lt_cv_sys_global_symbol_pipe=
6800 fi
6801 done
6802
6803 fi
6804
6805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6806 lt_cv_sys_global_symbol_to_cdecl=
6807 fi
6808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6810 $as_echo "failed" >&6; }
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6813 $as_echo "ok" >&6; }
6814 fi
6815
6816 # Response file support.
6817 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6818 nm_file_list_spec='@'
6819 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6820 nm_file_list_spec='@'
6821 fi
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6850 $as_echo_n "checking for sysroot... " >&6; }
6851
6852 # Check whether --with-sysroot was given.
6853 if test "${with_sysroot+set}" = set; then :
6854 withval=$with_sysroot;
6855 else
6856 with_sysroot=no
6857 fi
6858
6859
6860 lt_sysroot=
6861 case ${with_sysroot} in #(
6862 yes)
6863 if test "$GCC" = yes; then
6864 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6865 fi
6866 ;; #(
6867 /*)
6868 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6869 ;; #(
6870 no|'')
6871 ;; #(
6872 *)
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6874 $as_echo "${with_sysroot}" >&6; }
6875 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6876 ;;
6877 esac
6878
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6880 $as_echo "${lt_sysroot:-no}" >&6; }
6881
6882
6883
6884
6885
6886 # Check whether --enable-libtool-lock was given.
6887 if test "${enable_libtool_lock+set}" = set; then :
6888 enableval=$enable_libtool_lock;
6889 fi
6890
6891 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6892
6893 # Some flags need to be propagated to the compiler or linker for good
6894 # libtool support.
6895 case $host in
6896 ia64-*-hpux*)
6897 # Find out which ABI we are using.
6898 echo 'int i;' > conftest.$ac_ext
6899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6900 (eval $ac_compile) 2>&5
6901 ac_status=$?
6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; }; then
6904 case `/usr/bin/file conftest.$ac_objext` in
6905 *ELF-32*)
6906 HPUX_IA64_MODE="32"
6907 ;;
6908 *ELF-64*)
6909 HPUX_IA64_MODE="64"
6910 ;;
6911 esac
6912 fi
6913 rm -rf conftest*
6914 ;;
6915 *-*-irix6*)
6916 # Find out which ABI we are using.
6917 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6919 (eval $ac_compile) 2>&5
6920 ac_status=$?
6921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6922 test $ac_status = 0; }; then
6923 if test "$lt_cv_prog_gnu_ld" = yes; then
6924 case `/usr/bin/file conftest.$ac_objext` in
6925 *32-bit*)
6926 LD="${LD-ld} -melf32bsmip"
6927 ;;
6928 *N32*)
6929 LD="${LD-ld} -melf32bmipn32"
6930 ;;
6931 *64-bit*)
6932 LD="${LD-ld} -melf64bmip"
6933 ;;
6934 esac
6935 else
6936 case `/usr/bin/file conftest.$ac_objext` in
6937 *32-bit*)
6938 LD="${LD-ld} -32"
6939 ;;
6940 *N32*)
6941 LD="${LD-ld} -n32"
6942 ;;
6943 *64-bit*)
6944 LD="${LD-ld} -64"
6945 ;;
6946 esac
6947 fi
6948 fi
6949 rm -rf conftest*
6950 ;;
6951
6952 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6953 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6954 # Find out which ABI we are using.
6955 echo 'int i;' > conftest.$ac_ext
6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957 (eval $ac_compile) 2>&5
6958 ac_status=$?
6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960 test $ac_status = 0; }; then
6961 case `/usr/bin/file conftest.o` in
6962 *32-bit*)
6963 case $host in
6964 x86_64-*kfreebsd*-gnu)
6965 LD="${LD-ld} -m elf_i386_fbsd"
6966 ;;
6967 x86_64-*linux*)
6968 LD="${LD-ld} -m elf_i386"
6969 ;;
6970 ppc64-*linux*|powerpc64-*linux*)
6971 LD="${LD-ld} -m elf32ppclinux"
6972 ;;
6973 s390x-*linux*)
6974 LD="${LD-ld} -m elf_s390"
6975 ;;
6976 sparc64-*linux*)
6977 LD="${LD-ld} -m elf32_sparc"
6978 ;;
6979 esac
6980 ;;
6981 *64-bit*)
6982 case $host in
6983 x86_64-*kfreebsd*-gnu)
6984 LD="${LD-ld} -m elf_x86_64_fbsd"
6985 ;;
6986 x86_64-*linux*)
6987 LD="${LD-ld} -m elf_x86_64"
6988 ;;
6989 ppc*-*linux*|powerpc*-*linux*)
6990 LD="${LD-ld} -m elf64ppc"
6991 ;;
6992 s390*-*linux*|s390*-*tpf*)
6993 LD="${LD-ld} -m elf64_s390"
6994 ;;
6995 sparc*-*linux*)
6996 LD="${LD-ld} -m elf64_sparc"
6997 ;;
6998 esac
6999 ;;
7000 esac
7001 fi
7002 rm -rf conftest*
7003 ;;
7004
7005 *-*-sco3.2v5*)
7006 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7007 SAVE_CFLAGS="$CFLAGS"
7008 CFLAGS="$CFLAGS -belf"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7010 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7011 if ${lt_cv_cc_needs_belf+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022
7023 int
7024 main ()
7025 {
7026
7027 ;
7028 return 0;
7029 }
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032 lt_cv_cc_needs_belf=yes
7033 else
7034 lt_cv_cc_needs_belf=no
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7038 ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7046 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7047 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7048 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7049 CFLAGS="$SAVE_CFLAGS"
7050 fi
7051 ;;
7052 sparc*-*solaris*)
7053 # Find out which ABI we are using.
7054 echo 'int i;' > conftest.$ac_ext
7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7056 (eval $ac_compile) 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; }; then
7060 case `/usr/bin/file conftest.o` in
7061 *64-bit*)
7062 case $lt_cv_prog_gnu_ld in
7063 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7064 *)
7065 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7066 LD="${LD-ld} -64"
7067 fi
7068 ;;
7069 esac
7070 ;;
7071 esac
7072 fi
7073 rm -rf conftest*
7074 ;;
7075 esac
7076
7077 need_locks="$enable_libtool_lock"
7078
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}mt; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 if test -n "$MANIFEST_TOOL"; then
7088 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105 fi
7106 fi
7107 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7108 if test -n "$MANIFEST_TOOL"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7110 $as_echo "$MANIFEST_TOOL" >&6; }
7111 else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7119 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7120 # Extract the first word of "mt", so it can be a program name with args.
7121 set dummy mt; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$ac_ct_MANIFEST_TOOL"; then
7128 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7148 if test -n "$ac_ct_MANIFEST_TOOL"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7150 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7157 MANIFEST_TOOL=":"
7158 else
7159 case $cross_compiling:$ac_tool_warned in
7160 yes:)
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163 ac_tool_warned=yes ;;
7164 esac
7165 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7166 fi
7167 else
7168 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7169 fi
7170
7171 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7173 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7174 if ${lt_cv_path_mainfest_tool+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 lt_cv_path_mainfest_tool=no
7178 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7179 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7180 cat conftest.err >&5
7181 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7182 lt_cv_path_mainfest_tool=yes
7183 fi
7184 rm -f conftest*
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7187 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7188 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7189 MANIFEST_TOOL=:
7190 fi
7191
7192
7193
7194
7195
7196
7197 case $host_os in
7198 rhapsody* | darwin*)
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$DSYMUTIL"; then
7208 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7228 if test -n "$DSYMUTIL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7230 $as_echo "$DSYMUTIL" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236
7237 fi
7238 if test -z "$ac_cv_prog_DSYMUTIL"; then
7239 ac_ct_DSYMUTIL=$DSYMUTIL
7240 # Extract the first word of "dsymutil", so it can be a program name with args.
7241 set dummy dsymutil; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 if test -n "$ac_ct_DSYMUTIL"; then
7248 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265 fi
7266 fi
7267 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7268 if test -n "$ac_ct_DSYMUTIL"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7270 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7271 else
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7274 fi
7275
7276 if test "x$ac_ct_DSYMUTIL" = x; then
7277 DSYMUTIL=":"
7278 else
7279 case $cross_compiling:$ac_tool_warned in
7280 yes:)
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7284 esac
7285 DSYMUTIL=$ac_ct_DSYMUTIL
7286 fi
7287 else
7288 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7289 fi
7290
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_NMEDIT+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$NMEDIT"; then
7300 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 NMEDIT=$ac_cv_prog_NMEDIT
7320 if test -n "$NMEDIT"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7322 $as_echo "$NMEDIT" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326 fi
7327
7328
7329 fi
7330 if test -z "$ac_cv_prog_NMEDIT"; then
7331 ac_ct_NMEDIT=$NMEDIT
7332 # Extract the first word of "nmedit", so it can be a program name with args.
7333 set dummy nmedit; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -n "$ac_ct_NMEDIT"; then
7340 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353 done
7354 done
7355 IFS=$as_save_IFS
7356
7357 fi
7358 fi
7359 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7360 if test -n "$ac_ct_NMEDIT"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7362 $as_echo "$ac_ct_NMEDIT" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7366 fi
7367
7368 if test "x$ac_ct_NMEDIT" = x; then
7369 NMEDIT=":"
7370 else
7371 case $cross_compiling:$ac_tool_warned in
7372 yes:)
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375 ac_tool_warned=yes ;;
7376 esac
7377 NMEDIT=$ac_ct_NMEDIT
7378 fi
7379 else
7380 NMEDIT="$ac_cv_prog_NMEDIT"
7381 fi
7382
7383 if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_LIPO+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$LIPO"; then
7392 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 LIPO=$ac_cv_prog_LIPO
7412 if test -n "$LIPO"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7414 $as_echo "$LIPO" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420
7421 fi
7422 if test -z "$ac_cv_prog_LIPO"; then
7423 ac_ct_LIPO=$LIPO
7424 # Extract the first word of "lipo", so it can be a program name with args.
7425 set dummy lipo; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$ac_ct_LIPO"; then
7432 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_prog_ac_ct_LIPO="lipo"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7452 if test -n "$ac_ct_LIPO"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7454 $as_echo "$ac_ct_LIPO" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460 if test "x$ac_ct_LIPO" = x; then
7461 LIPO=":"
7462 else
7463 case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469 LIPO=$ac_ct_LIPO
7470 fi
7471 else
7472 LIPO="$ac_cv_prog_LIPO"
7473 fi
7474
7475 if test -n "$ac_tool_prefix"; then
7476 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7477 set dummy ${ac_tool_prefix}otool; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_OTOOL+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 if test -n "$OTOOL"; then
7484 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 OTOOL=$ac_cv_prog_OTOOL
7504 if test -n "$OTOOL"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7506 $as_echo "$OTOOL" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_OTOOL"; then
7515 ac_ct_OTOOL=$OTOOL
7516 # Extract the first word of "otool", so it can be a program name with args.
7517 set dummy otool; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$ac_ct_OTOOL"; then
7524 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7533 ac_cv_prog_ac_ct_OTOOL="otool"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7544 if test -n "$ac_ct_OTOOL"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7546 $as_echo "$ac_ct_OTOOL" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552 if test "x$ac_ct_OTOOL" = x; then
7553 OTOOL=":"
7554 else
7555 case $cross_compiling:$ac_tool_warned in
7556 yes:)
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7559 ac_tool_warned=yes ;;
7560 esac
7561 OTOOL=$ac_ct_OTOOL
7562 fi
7563 else
7564 OTOOL="$ac_cv_prog_OTOOL"
7565 fi
7566
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_OTOOL64+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 if test -n "$OTOOL64"; then
7576 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 OTOOL64=$ac_cv_prog_OTOOL64
7596 if test -n "$OTOOL64"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7598 $as_echo "$OTOOL64" >&6; }
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 fi
7606 if test -z "$ac_cv_prog_OTOOL64"; then
7607 ac_ct_OTOOL64=$OTOOL64
7608 # Extract the first word of "otool64", so it can be a program name with args.
7609 set dummy otool64; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$ac_ct_OTOOL64"; then
7616 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_prog_ac_ct_OTOOL64="otool64"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7636 if test -n "$ac_ct_OTOOL64"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7638 $as_echo "$ac_ct_OTOOL64" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644 if test "x$ac_ct_OTOOL64" = x; then
7645 OTOOL64=":"
7646 else
7647 case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653 OTOOL64=$ac_ct_OTOOL64
7654 fi
7655 else
7656 OTOOL64="$ac_cv_prog_OTOOL64"
7657 fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7686 $as_echo_n "checking for -single_module linker flag... " >&6; }
7687 if ${lt_cv_apple_cc_single_mod+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 lt_cv_apple_cc_single_mod=no
7691 if test -z "${LT_MULTI_MODULE}"; then
7692 # By default we will add the -single_module flag. You can override
7693 # by either setting the environment variable LT_MULTI_MODULE
7694 # non-empty at configure time, or by adding -multi_module to the
7695 # link flags.
7696 rm -rf libconftest.dylib*
7697 echo "int foo(void){return 1;}" > conftest.c
7698 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7699 -dynamiclib -Wl,-single_module conftest.c" >&5
7700 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7701 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7702 _lt_result=$?
7703 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7704 lt_cv_apple_cc_single_mod=yes
7705 else
7706 cat conftest.err >&5
7707 fi
7708 rm -rf libconftest.dylib*
7709 rm -f conftest.*
7710 fi
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7713 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7715 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7716 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 lt_cv_ld_exported_symbols_list=no
7720 save_LDFLAGS=$LDFLAGS
7721 echo "_main" > conftest.sym
7722 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725
7726 int
7727 main ()
7728 {
7729
7730 ;
7731 return 0;
7732 }
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735 lt_cv_ld_exported_symbols_list=yes
7736 else
7737 lt_cv_ld_exported_symbols_list=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 LDFLAGS="$save_LDFLAGS"
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7745 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7747 $as_echo_n "checking for -force_load linker flag... " >&6; }
7748 if ${lt_cv_ld_force_load+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 lt_cv_ld_force_load=no
7752 cat > conftest.c << _LT_EOF
7753 int forced_loaded() { return 2;}
7754 _LT_EOF
7755 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7756 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7757 echo "$AR cru libconftest.a conftest.o" >&5
7758 $AR cru libconftest.a conftest.o 2>&5
7759 echo "$RANLIB libconftest.a" >&5
7760 $RANLIB libconftest.a 2>&5
7761 cat > conftest.c << _LT_EOF
7762 int main() { return 0;}
7763 _LT_EOF
7764 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7765 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7766 _lt_result=$?
7767 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7768 lt_cv_ld_force_load=yes
7769 else
7770 cat conftest.err >&5
7771 fi
7772 rm -f conftest.err libconftest.a conftest conftest.c
7773 rm -rf conftest.dSYM
7774
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7777 $as_echo "$lt_cv_ld_force_load" >&6; }
7778 case $host_os in
7779 rhapsody* | darwin1.[012])
7780 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7781 darwin1.*)
7782 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7783 darwin*) # darwin 5.x on
7784 # if running on 10.5 or later, the deployment target defaults
7785 # to the OS version, if on x86, and 10.4, the deployment
7786 # target defaults to 10.4. Don't you love it?
7787 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7788 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7789 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7790 10.[012]*)
7791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7792 10.*)
7793 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7794 esac
7795 ;;
7796 esac
7797 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7798 _lt_dar_single_mod='$single_module'
7799 fi
7800 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7801 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7802 else
7803 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7804 fi
7805 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7806 _lt_dsymutil='~$DSYMUTIL $lib || :'
7807 else
7808 _lt_dsymutil=
7809 fi
7810 ;;
7811 esac
7812
7813 ac_ext=c
7814 ac_cpp='$CPP $CPPFLAGS'
7815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7820 # On Suns, sometimes $CPP names a directory.
7821 if test -n "$CPP" && test -d "$CPP"; then
7822 CPP=
7823 fi
7824 if test -z "$CPP"; then
7825 if ${ac_cv_prog_CPP+:} false; then :
7826 $as_echo_n "(cached) " >&6
7827 else
7828 # Double quotes because CPP needs to be expanded
7829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7830 do
7831 ac_preproc_ok=false
7832 for ac_c_preproc_warn_flag in '' yes
7833 do
7834 # Use a header file that comes with gcc, so configuring glibc
7835 # with a fresh cross-compiler works.
7836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7837 # <limits.h> exists even on freestanding compilers.
7838 # On the NeXT, cc -E runs the code through the compiler's parser,
7839 # not just through cpp. "Syntax error" is here to catch this case.
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842 #ifdef __STDC__
7843 # include <limits.h>
7844 #else
7845 # include <assert.h>
7846 #endif
7847 Syntax error
7848 _ACEOF
7849 if ac_fn_c_try_cpp "$LINENO"; then :
7850
7851 else
7852 # Broken: fails on valid input.
7853 continue
7854 fi
7855 rm -f conftest.err conftest.i conftest.$ac_ext
7856
7857 # OK, works on sane cases. Now check whether nonexistent headers
7858 # can be detected and how.
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 #include <ac_nonexistent.h>
7862 _ACEOF
7863 if ac_fn_c_try_cpp "$LINENO"; then :
7864 # Broken: success on invalid input.
7865 continue
7866 else
7867 # Passes both tests.
7868 ac_preproc_ok=:
7869 break
7870 fi
7871 rm -f conftest.err conftest.i conftest.$ac_ext
7872
7873 done
7874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7875 rm -f conftest.i conftest.err conftest.$ac_ext
7876 if $ac_preproc_ok; then :
7877 break
7878 fi
7879
7880 done
7881 ac_cv_prog_CPP=$CPP
7882
7883 fi
7884 CPP=$ac_cv_prog_CPP
7885 else
7886 ac_cv_prog_CPP=$CPP
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7889 $as_echo "$CPP" >&6; }
7890 ac_preproc_ok=false
7891 for ac_c_preproc_warn_flag in '' yes
7892 do
7893 # Use a header file that comes with gcc, so configuring glibc
7894 # with a fresh cross-compiler works.
7895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7896 # <limits.h> exists even on freestanding compilers.
7897 # On the NeXT, cc -E runs the code through the compiler's parser,
7898 # not just through cpp. "Syntax error" is here to catch this case.
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 #ifdef __STDC__
7902 # include <limits.h>
7903 #else
7904 # include <assert.h>
7905 #endif
7906 Syntax error
7907 _ACEOF
7908 if ac_fn_c_try_cpp "$LINENO"; then :
7909
7910 else
7911 # Broken: fails on valid input.
7912 continue
7913 fi
7914 rm -f conftest.err conftest.i conftest.$ac_ext
7915
7916 # OK, works on sane cases. Now check whether nonexistent headers
7917 # can be detected and how.
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <ac_nonexistent.h>
7921 _ACEOF
7922 if ac_fn_c_try_cpp "$LINENO"; then :
7923 # Broken: success on invalid input.
7924 continue
7925 else
7926 # Passes both tests.
7927 ac_preproc_ok=:
7928 break
7929 fi
7930 rm -f conftest.err conftest.i conftest.$ac_ext
7931
7932 done
7933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7934 rm -f conftest.i conftest.err conftest.$ac_ext
7935 if $ac_preproc_ok; then :
7936
7937 else
7938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7941 See \`config.log' for more details" "$LINENO" 5; }
7942 fi
7943
7944 ac_ext=c
7945 ac_cpp='$CPP $CPPFLAGS'
7946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949
7950
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7952 $as_echo_n "checking for ANSI C header files... " >&6; }
7953 if ${ac_cv_header_stdc+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <stdlib.h>
7959 #include <stdarg.h>
7960 #include <string.h>
7961 #include <float.h>
7962
7963 int
7964 main ()
7965 {
7966
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 ac_cv_header_stdc=yes
7973 else
7974 ac_cv_header_stdc=no
7975 fi
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977
7978 if test $ac_cv_header_stdc = yes; then
7979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <string.h>
7983
7984 _ACEOF
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986 $EGREP "memchr" >/dev/null 2>&1; then :
7987
7988 else
7989 ac_cv_header_stdc=no
7990 fi
7991 rm -f conftest*
7992
7993 fi
7994
7995 if test $ac_cv_header_stdc = yes; then
7996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 #include <stdlib.h>
8000
8001 _ACEOF
8002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8003 $EGREP "free" >/dev/null 2>&1; then :
8004
8005 else
8006 ac_cv_header_stdc=no
8007 fi
8008 rm -f conftest*
8009
8010 fi
8011
8012 if test $ac_cv_header_stdc = yes; then
8013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8014 if test "$cross_compiling" = yes; then :
8015 :
8016 else
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 #include <ctype.h>
8020 #include <stdlib.h>
8021 #if ((' ' & 0x0FF) == 0x020)
8022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8024 #else
8025 # define ISLOWER(c) \
8026 (('a' <= (c) && (c) <= 'i') \
8027 || ('j' <= (c) && (c) <= 'r') \
8028 || ('s' <= (c) && (c) <= 'z'))
8029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8030 #endif
8031
8032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8033 int
8034 main ()
8035 {
8036 int i;
8037 for (i = 0; i < 256; i++)
8038 if (XOR (islower (i), ISLOWER (i))
8039 || toupper (i) != TOUPPER (i))
8040 return 2;
8041 return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_run "$LINENO"; then :
8045
8046 else
8047 ac_cv_header_stdc=no
8048 fi
8049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8050 conftest.$ac_objext conftest.beam conftest.$ac_ext
8051 fi
8052
8053 fi
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8056 $as_echo "$ac_cv_header_stdc" >&6; }
8057 if test $ac_cv_header_stdc = yes; then
8058
8059 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8060
8061 fi
8062
8063 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8064 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8065 inttypes.h stdint.h unistd.h
8066 do :
8067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8069 "
8070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8071 cat >>confdefs.h <<_ACEOF
8072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8073 _ACEOF
8074
8075 fi
8076
8077 done
8078
8079
8080 for ac_header in dlfcn.h
8081 do :
8082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8083 "
8084 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8085 cat >>confdefs.h <<_ACEOF
8086 #define HAVE_DLFCN_H 1
8087 _ACEOF
8088
8089 fi
8090
8091 done
8092
8093
8094
8095
8096
8097 # Set options
8098 enable_dlopen=yes
8099 # Check whether --enable-static was given.
8100 if test "${enable_static+set}" = set; then :
8101 enableval=$enable_static; p=${PACKAGE-default}
8102 case $enableval in
8103 yes) enable_static=yes ;;
8104 no) enable_static=no ;;
8105 *)
8106 enable_static=no
8107 # Look at the argument we got. We use all the common list separators.
8108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8109 for pkg in $enableval; do
8110 IFS="$lt_save_ifs"
8111 if test "X$pkg" = "X$p"; then
8112 enable_static=yes
8113 fi
8114 done
8115 IFS="$lt_save_ifs"
8116 ;;
8117 esac
8118 else
8119 enable_static=no
8120 fi
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132 enable_win32_dll=no
8133
8134
8135 # Check whether --enable-shared was given.
8136 if test "${enable_shared+set}" = set; then :
8137 enableval=$enable_shared; p=${PACKAGE-default}
8138 case $enableval in
8139 yes) enable_shared=yes ;;
8140 no) enable_shared=no ;;
8141 *)
8142 enable_shared=no
8143 # Look at the argument we got. We use all the common list separators.
8144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8145 for pkg in $enableval; do
8146 IFS="$lt_save_ifs"
8147 if test "X$pkg" = "X$p"; then
8148 enable_shared=yes
8149 fi
8150 done
8151 IFS="$lt_save_ifs"
8152 ;;
8153 esac
8154 else
8155 enable_shared=yes
8156 fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 # Check whether --with-pic was given.
8169 if test "${with_pic+set}" = set; then :
8170 withval=$with_pic; pic_mode="$withval"
8171 else
8172 pic_mode=default
8173 fi
8174
8175
8176 test -z "$pic_mode" && pic_mode=default
8177
8178
8179
8180
8181
8182
8183
8184 # Check whether --enable-fast-install was given.
8185 if test "${enable_fast_install+set}" = set; then :
8186 enableval=$enable_fast_install; p=${PACKAGE-default}
8187 case $enableval in
8188 yes) enable_fast_install=yes ;;
8189 no) enable_fast_install=no ;;
8190 *)
8191 enable_fast_install=no
8192 # Look at the argument we got. We use all the common list separators.
8193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8194 for pkg in $enableval; do
8195 IFS="$lt_save_ifs"
8196 if test "X$pkg" = "X$p"; then
8197 enable_fast_install=yes
8198 fi
8199 done
8200 IFS="$lt_save_ifs"
8201 ;;
8202 esac
8203 else
8204 enable_fast_install=yes
8205 fi
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217 # This can be used to rebuild libtool when needed
8218 LIBTOOL_DEPS="$ltmain"
8219
8220 # Always use our own libtool.
8221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248 test -z "$LN_S" && LN_S="ln -s"
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 if test -n "${ZSH_VERSION+set}" ; then
8264 setopt NO_GLOB_SUBST
8265 fi
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8268 $as_echo_n "checking for objdir... " >&6; }
8269 if ${lt_cv_objdir+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 rm -f .libs 2>/dev/null
8273 mkdir .libs 2>/dev/null
8274 if test -d .libs; then
8275 lt_cv_objdir=.libs
8276 else
8277 # MS-DOS does not allow filenames that begin with a dot.
8278 lt_cv_objdir=_libs
8279 fi
8280 rmdir .libs 2>/dev/null
8281 fi
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8283 $as_echo "$lt_cv_objdir" >&6; }
8284 objdir=$lt_cv_objdir
8285
8286
8287
8288
8289
8290 cat >>confdefs.h <<_ACEOF
8291 #define LT_OBJDIR "$lt_cv_objdir/"
8292 _ACEOF
8293
8294
8295
8296
8297 case $host_os in
8298 aix3*)
8299 # AIX sometimes has problems with the GCC collect2 program. For some
8300 # reason, if we set the COLLECT_NAMES environment variable, the problems
8301 # vanish in a puff of smoke.
8302 if test "X${COLLECT_NAMES+set}" != Xset; then
8303 COLLECT_NAMES=
8304 export COLLECT_NAMES
8305 fi
8306 ;;
8307 esac
8308
8309 # Global variables:
8310 ofile=libtool
8311 can_build_shared=yes
8312
8313 # All known linkers require a `.a' archive for static linking (except MSVC,
8314 # which needs '.lib').
8315 libext=a
8316
8317 with_gnu_ld="$lt_cv_prog_gnu_ld"
8318
8319 old_CC="$CC"
8320 old_CFLAGS="$CFLAGS"
8321
8322 # Set sane defaults for various variables
8323 test -z "$CC" && CC=cc
8324 test -z "$LTCC" && LTCC=$CC
8325 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8326 test -z "$LD" && LD=ld
8327 test -z "$ac_objext" && ac_objext=o
8328
8329 for cc_temp in $compiler""; do
8330 case $cc_temp in
8331 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8332 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8333 \-*) ;;
8334 *) break;;
8335 esac
8336 done
8337 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8338
8339
8340 # Only perform the check for file, if the check method requires it
8341 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8342 case $deplibs_check_method in
8343 file_magic*)
8344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8346 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8347 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 case $MAGIC_CMD in
8351 [\\/*] | ?:[\\/]*)
8352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8353 ;;
8354 *)
8355 lt_save_MAGIC_CMD="$MAGIC_CMD"
8356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8358 for ac_dir in $ac_dummy; do
8359 IFS="$lt_save_ifs"
8360 test -z "$ac_dir" && ac_dir=.
8361 if test -f $ac_dir/${ac_tool_prefix}file; then
8362 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8363 if test -n "$file_magic_test_file"; then
8364 case $deplibs_check_method in
8365 "file_magic "*)
8366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8369 $EGREP "$file_magic_regex" > /dev/null; then
8370 :
8371 else
8372 cat <<_LT_EOF 1>&2
8373
8374 *** Warning: the command libtool uses to detect shared libraries,
8375 *** $file_magic_cmd, produces output that libtool cannot recognize.
8376 *** The result is that libtool may fail to recognize shared libraries
8377 *** as such. This will affect the creation of libtool libraries that
8378 *** depend on shared libraries, but programs linked with such libtool
8379 *** libraries will work regardless of this problem. Nevertheless, you
8380 *** may want to report the problem to your system manager and/or to
8381 *** bug-libtool@gnu.org
8382
8383 _LT_EOF
8384 fi ;;
8385 esac
8386 fi
8387 break
8388 fi
8389 done
8390 IFS="$lt_save_ifs"
8391 MAGIC_CMD="$lt_save_MAGIC_CMD"
8392 ;;
8393 esac
8394 fi
8395
8396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8397 if test -n "$MAGIC_CMD"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8399 $as_echo "$MAGIC_CMD" >&6; }
8400 else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402 $as_echo "no" >&6; }
8403 fi
8404
8405
8406
8407
8408
8409 if test -z "$lt_cv_path_MAGIC_CMD"; then
8410 if test -n "$ac_tool_prefix"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8412 $as_echo_n "checking for file... " >&6; }
8413 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 case $MAGIC_CMD in
8417 [\\/*] | ?:[\\/]*)
8418 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8419 ;;
8420 *)
8421 lt_save_MAGIC_CMD="$MAGIC_CMD"
8422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8424 for ac_dir in $ac_dummy; do
8425 IFS="$lt_save_ifs"
8426 test -z "$ac_dir" && ac_dir=.
8427 if test -f $ac_dir/file; then
8428 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8429 if test -n "$file_magic_test_file"; then
8430 case $deplibs_check_method in
8431 "file_magic "*)
8432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8435 $EGREP "$file_magic_regex" > /dev/null; then
8436 :
8437 else
8438 cat <<_LT_EOF 1>&2
8439
8440 *** Warning: the command libtool uses to detect shared libraries,
8441 *** $file_magic_cmd, produces output that libtool cannot recognize.
8442 *** The result is that libtool may fail to recognize shared libraries
8443 *** as such. This will affect the creation of libtool libraries that
8444 *** depend on shared libraries, but programs linked with such libtool
8445 *** libraries will work regardless of this problem. Nevertheless, you
8446 *** may want to report the problem to your system manager and/or to
8447 *** bug-libtool@gnu.org
8448
8449 _LT_EOF
8450 fi ;;
8451 esac
8452 fi
8453 break
8454 fi
8455 done
8456 IFS="$lt_save_ifs"
8457 MAGIC_CMD="$lt_save_MAGIC_CMD"
8458 ;;
8459 esac
8460 fi
8461
8462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8463 if test -n "$MAGIC_CMD"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8465 $as_echo "$MAGIC_CMD" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471
8472 else
8473 MAGIC_CMD=:
8474 fi
8475 fi
8476
8477 fi
8478 ;;
8479 esac
8480
8481 # Use C for the default configuration in the libtool script
8482
8483 lt_save_CC="$CC"
8484 ac_ext=c
8485 ac_cpp='$CPP $CPPFLAGS'
8486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489
8490
8491 # Source file extension for C test sources.
8492 ac_ext=c
8493
8494 # Object file extension for compiled C test sources.
8495 objext=o
8496 objext=$objext
8497
8498 # Code to be used in simple compile tests
8499 lt_simple_compile_test_code="int some_variable = 0;"
8500
8501 # Code to be used in simple link tests
8502 lt_simple_link_test_code='int main(){return(0);}'
8503
8504
8505
8506
8507
8508
8509
8510 # If no C compiler was specified, use CC.
8511 LTCC=${LTCC-"$CC"}
8512
8513 # If no C compiler flags were specified, use CFLAGS.
8514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8515
8516 # Allow CC to be a program name with arguments.
8517 compiler=$CC
8518
8519 # Save the default compiler, since it gets overwritten when the other
8520 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8521 compiler_DEFAULT=$CC
8522
8523 # save warnings/boilerplate of simple test code
8524 ac_outfile=conftest.$ac_objext
8525 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8526 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8527 _lt_compiler_boilerplate=`cat conftest.err`
8528 $RM conftest*
8529
8530 ac_outfile=conftest.$ac_objext
8531 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8532 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8533 _lt_linker_boilerplate=`cat conftest.err`
8534 $RM -r conftest*
8535
8536
8537 if test -n "$compiler"; then
8538
8539 lt_prog_compiler_no_builtin_flag=
8540
8541 if test "$GCC" = yes; then
8542 case $cc_basename in
8543 nvcc*)
8544 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8545 *)
8546 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8547 esac
8548
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8550 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8551 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 lt_cv_prog_compiler_rtti_exceptions=no
8555 ac_outfile=conftest.$ac_objext
8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8557 lt_compiler_flag="-fno-rtti -fno-exceptions"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 # The option is referenced via a variable to avoid confusing sed.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>conftest.err)
8569 ac_status=$?
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s "$ac_outfile"; then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings other than the usual output.
8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_rtti_exceptions=yes
8579 fi
8580 fi
8581 $RM conftest*
8582
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8585 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8586
8587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8588 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8589 else
8590 :
8591 fi
8592
8593 fi
8594
8595
8596
8597
8598
8599
8600 lt_prog_compiler_wl=
8601 lt_prog_compiler_pic=
8602 lt_prog_compiler_static=
8603
8604
8605 if test "$GCC" = yes; then
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_static='-static'
8608
8609 case $host_os in
8610 aix*)
8611 # All AIX code is PIC.
8612 if test "$host_cpu" = ia64; then
8613 # AIX 5 now supports IA64 processor
8614 lt_prog_compiler_static='-Bstatic'
8615 fi
8616 ;;
8617
8618 amigaos*)
8619 case $host_cpu in
8620 powerpc)
8621 # see comment about AmigaOS4 .so support
8622 lt_prog_compiler_pic='-fPIC'
8623 ;;
8624 m68k)
8625 # FIXME: we need at least 68020 code to build shared libraries, but
8626 # adding the `-m68020' flag to GCC prevents building anything better,
8627 # like `-m68040'.
8628 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8629 ;;
8630 esac
8631 ;;
8632
8633 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8634 # PIC is the default for these OSes.
8635 ;;
8636
8637 mingw* | cygwin* | pw32* | os2* | cegcc*)
8638 # This hack is so that the source file can tell whether it is being
8639 # built for inclusion in a dll (and should export symbols for example).
8640 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8641 # (--disable-auto-import) libraries
8642 lt_prog_compiler_pic='-DDLL_EXPORT'
8643 ;;
8644
8645 darwin* | rhapsody*)
8646 # PIC is the default on this platform
8647 # Common symbols not allowed in MH_DYLIB files
8648 lt_prog_compiler_pic='-fno-common'
8649 ;;
8650
8651 haiku*)
8652 # PIC is the default for Haiku.
8653 # The "-static" flag exists, but is broken.
8654 lt_prog_compiler_static=
8655 ;;
8656
8657 hpux*)
8658 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8659 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8660 # sets the default TLS model and affects inlining.
8661 case $host_cpu in
8662 hppa*64*)
8663 # +Z the default
8664 ;;
8665 *)
8666 lt_prog_compiler_pic='-fPIC'
8667 ;;
8668 esac
8669 ;;
8670
8671 interix[3-9]*)
8672 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8673 # Instead, we relocate shared libraries at runtime.
8674 ;;
8675
8676 msdosdjgpp*)
8677 # Just because we use GCC doesn't mean we suddenly get shared libraries
8678 # on systems that don't support them.
8679 lt_prog_compiler_can_build_shared=no
8680 enable_shared=no
8681 ;;
8682
8683 *nto* | *qnx*)
8684 # QNX uses GNU C++, but need to define -shared option too, otherwise
8685 # it will coredump.
8686 lt_prog_compiler_pic='-fPIC -shared'
8687 ;;
8688
8689 sysv4*MP*)
8690 if test -d /usr/nec; then
8691 lt_prog_compiler_pic=-Kconform_pic
8692 fi
8693 ;;
8694
8695 *)
8696 lt_prog_compiler_pic='-fPIC'
8697 ;;
8698 esac
8699
8700 case $cc_basename in
8701 nvcc*) # Cuda Compiler Driver 2.2
8702 lt_prog_compiler_wl='-Xlinker '
8703 lt_prog_compiler_pic='-Xcompiler -fPIC'
8704 ;;
8705 esac
8706 else
8707 # PORTME Check for flag to pass linker flags through the system compiler.
8708 case $host_os in
8709 aix*)
8710 lt_prog_compiler_wl='-Wl,'
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 now supports IA64 processor
8713 lt_prog_compiler_static='-Bstatic'
8714 else
8715 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8716 fi
8717 ;;
8718
8719 mingw* | cygwin* | pw32* | os2* | cegcc*)
8720 # This hack is so that the source file can tell whether it is being
8721 # built for inclusion in a dll (and should export symbols for example).
8722 lt_prog_compiler_pic='-DDLL_EXPORT'
8723 ;;
8724
8725 hpux9* | hpux10* | hpux11*)
8726 lt_prog_compiler_wl='-Wl,'
8727 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8728 # not for PA HP-UX.
8729 case $host_cpu in
8730 hppa*64*|ia64*)
8731 # +Z the default
8732 ;;
8733 *)
8734 lt_prog_compiler_pic='+Z'
8735 ;;
8736 esac
8737 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8738 lt_prog_compiler_static='${wl}-a ${wl}archive'
8739 ;;
8740
8741 irix5* | irix6* | nonstopux*)
8742 lt_prog_compiler_wl='-Wl,'
8743 # PIC (with -KPIC) is the default.
8744 lt_prog_compiler_static='-non_shared'
8745 ;;
8746
8747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8748 case $cc_basename in
8749 # old Intel for x86_64 which still supported -KPIC.
8750 ecc*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='-KPIC'
8753 lt_prog_compiler_static='-static'
8754 ;;
8755 # icc used to be incompatible with GCC.
8756 # ICC 10 doesn't accept -KPIC any more.
8757 icc* | ifort*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fPIC'
8760 lt_prog_compiler_static='-static'
8761 ;;
8762 # Lahey Fortran 8.1.
8763 lf95*)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='--shared'
8766 lt_prog_compiler_static='--static'
8767 ;;
8768 nagfor*)
8769 # NAG Fortran compiler
8770 lt_prog_compiler_wl='-Wl,-Wl,,'
8771 lt_prog_compiler_pic='-PIC'
8772 lt_prog_compiler_static='-Bstatic'
8773 ;;
8774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8775 # Portland Group compilers (*not* the Pentium gcc compiler,
8776 # which looks to be a dead project)
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fpic'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781 ccc*)
8782 lt_prog_compiler_wl='-Wl,'
8783 # All Alpha code is PIC.
8784 lt_prog_compiler_static='-non_shared'
8785 ;;
8786 xl* | bgxl* | bgf* | mpixl*)
8787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-qpic'
8790 lt_prog_compiler_static='-qstaticlink'
8791 ;;
8792 *)
8793 case `$CC -V 2>&1 | sed 5q` in
8794 *Sun\ F* | *Sun*Fortran*)
8795 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl=''
8799 ;;
8800 *Sun\ C*)
8801 # Sun C 5.9
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl='-Wl,'
8805 ;;
8806 esac
8807 ;;
8808 esac
8809 ;;
8810
8811 newsos6)
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815
8816 *nto* | *qnx*)
8817 # QNX uses GNU C++, but need to define -shared option too, otherwise
8818 # it will coredump.
8819 lt_prog_compiler_pic='-fPIC -shared'
8820 ;;
8821
8822 osf3* | osf4* | osf5*)
8823 lt_prog_compiler_wl='-Wl,'
8824 # All OSF/1 code is PIC.
8825 lt_prog_compiler_static='-non_shared'
8826 ;;
8827
8828 rdos*)
8829 lt_prog_compiler_static='-non_shared'
8830 ;;
8831
8832 solaris*)
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 case $cc_basename in
8836 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8837 lt_prog_compiler_wl='-Qoption ld ';;
8838 *)
8839 lt_prog_compiler_wl='-Wl,';;
8840 esac
8841 ;;
8842
8843 sunos4*)
8844 lt_prog_compiler_wl='-Qoption ld '
8845 lt_prog_compiler_pic='-PIC'
8846 lt_prog_compiler_static='-Bstatic'
8847 ;;
8848
8849 sysv4 | sysv4.2uw2* | sysv4.3*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8853 ;;
8854
8855 sysv4*MP*)
8856 if test -d /usr/nec ;then
8857 lt_prog_compiler_pic='-Kconform_pic'
8858 lt_prog_compiler_static='-Bstatic'
8859 fi
8860 ;;
8861
8862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8866 ;;
8867
8868 unicos*)
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_can_build_shared=no
8871 ;;
8872
8873 uts4*)
8874 lt_prog_compiler_pic='-pic'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877
8878 *)
8879 lt_prog_compiler_can_build_shared=no
8880 ;;
8881 esac
8882 fi
8883
8884 case $host_os in
8885 # For platforms which do not support PIC, -DPIC is meaningless:
8886 *djgpp*)
8887 lt_prog_compiler_pic=
8888 ;;
8889 *)
8890 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8891 ;;
8892 esac
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8895 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8896 if ${lt_cv_prog_compiler_pic+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8900 fi
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8902 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8903 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8904
8905 #
8906 # Check to make sure the PIC flag actually works.
8907 #
8908 if test -n "$lt_prog_compiler_pic"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8910 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8911 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 lt_cv_prog_compiler_pic_works=no
8915 ac_outfile=conftest.$ac_objext
8916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8918 # Insert the option either (1) after the last *FLAGS variable, or
8919 # (2) before a word containing "conftest.", or (3) at the end.
8920 # Note that $ac_compile itself does not contain backslashes and begins
8921 # with a dollar sign (not a hyphen), so the echo should work correctly.
8922 # The option is referenced via a variable to avoid confusing sed.
8923 lt_compile=`echo "$ac_compile" | $SED \
8924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926 -e 's:$: $lt_compiler_flag:'`
8927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928 (eval "$lt_compile" 2>conftest.err)
8929 ac_status=$?
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 if (exit $ac_status) && test -s "$ac_outfile"; then
8933 # The compiler can only warn and ignore the option if not recognized
8934 # So say no if there are warnings other than the usual output.
8935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8938 lt_cv_prog_compiler_pic_works=yes
8939 fi
8940 fi
8941 $RM conftest*
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8945 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8946
8947 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8948 case $lt_prog_compiler_pic in
8949 "" | " "*) ;;
8950 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8951 esac
8952 else
8953 lt_prog_compiler_pic=
8954 lt_prog_compiler_can_build_shared=no
8955 fi
8956
8957 fi
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969 #
8970 # Check to make sure the static flag actually works.
8971 #
8972 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8974 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8975 if ${lt_cv_prog_compiler_static_works+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 lt_cv_prog_compiler_static_works=no
8979 save_LDFLAGS="$LDFLAGS"
8980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8981 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8983 # The linker can only warn and ignore the option if not recognized
8984 # So say no if there are warnings
8985 if test -s conftest.err; then
8986 # Append any errors to the config.log.
8987 cat conftest.err 1>&5
8988 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8990 if diff conftest.exp conftest.er2 >/dev/null; then
8991 lt_cv_prog_compiler_static_works=yes
8992 fi
8993 else
8994 lt_cv_prog_compiler_static_works=yes
8995 fi
8996 fi
8997 $RM -r conftest*
8998 LDFLAGS="$save_LDFLAGS"
8999
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9002 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9003
9004 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9005 :
9006 else
9007 lt_prog_compiler_static=
9008 fi
9009
9010
9011
9012
9013
9014
9015
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9018 if ${lt_cv_prog_compiler_c_o+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 lt_cv_prog_compiler_c_o=no
9022 $RM -r conftest 2>/dev/null
9023 mkdir conftest
9024 cd conftest
9025 mkdir out
9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027
9028 lt_compiler_flag="-o out/conftest2.$ac_objext"
9029 # Insert the option either (1) after the last *FLAGS variable, or
9030 # (2) before a word containing "conftest.", or (3) at the end.
9031 # Note that $ac_compile itself does not contain backslashes and begins
9032 # with a dollar sign (not a hyphen), so the echo should work correctly.
9033 lt_compile=`echo "$ac_compile" | $SED \
9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036 -e 's:$: $lt_compiler_flag:'`
9037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9038 (eval "$lt_compile" 2>out/conftest.err)
9039 ac_status=$?
9040 cat out/conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9043 then
9044 # The compiler can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9049 lt_cv_prog_compiler_c_o=yes
9050 fi
9051 fi
9052 chmod u+w . 2>&5
9053 $RM conftest*
9054 # SGI C++ compiler will create directory out/ii_files/ for
9055 # template instantiation
9056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9057 $RM out/* && rmdir out
9058 cd ..
9059 $RM -r conftest
9060 $RM conftest*
9061
9062 fi
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9064 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9065
9066
9067
9068
9069
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9072 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9073 if ${lt_cv_prog_compiler_c_o+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 lt_cv_prog_compiler_c_o=no
9077 $RM -r conftest 2>/dev/null
9078 mkdir conftest
9079 cd conftest
9080 mkdir out
9081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9082
9083 lt_compiler_flag="-o out/conftest2.$ac_objext"
9084 # Insert the option either (1) after the last *FLAGS variable, or
9085 # (2) before a word containing "conftest.", or (3) at the end.
9086 # Note that $ac_compile itself does not contain backslashes and begins
9087 # with a dollar sign (not a hyphen), so the echo should work correctly.
9088 lt_compile=`echo "$ac_compile" | $SED \
9089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9091 -e 's:$: $lt_compiler_flag:'`
9092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9093 (eval "$lt_compile" 2>out/conftest.err)
9094 ac_status=$?
9095 cat out/conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9098 then
9099 # The compiler can only warn and ignore the option if not recognized
9100 # So say no if there are warnings
9101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9102 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9103 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9104 lt_cv_prog_compiler_c_o=yes
9105 fi
9106 fi
9107 chmod u+w . 2>&5
9108 $RM conftest*
9109 # SGI C++ compiler will create directory out/ii_files/ for
9110 # template instantiation
9111 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9112 $RM out/* && rmdir out
9113 cd ..
9114 $RM -r conftest
9115 $RM conftest*
9116
9117 fi
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9119 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9120
9121
9122
9123
9124 hard_links="nottested"
9125 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9126 # do not overwrite the value of need_locks provided by the user
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9128 $as_echo_n "checking if we can lock with hard links... " >&6; }
9129 hard_links=yes
9130 $RM conftest*
9131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9132 touch conftest.a
9133 ln conftest.a conftest.b 2>&5 || hard_links=no
9134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9136 $as_echo "$hard_links" >&6; }
9137 if test "$hard_links" = no; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9139 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9140 need_locks=warn
9141 fi
9142 else
9143 need_locks=no
9144 fi
9145
9146
9147
9148
9149
9150
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9152 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9153
9154 runpath_var=
9155 allow_undefined_flag=
9156 always_export_symbols=no
9157 archive_cmds=
9158 archive_expsym_cmds=
9159 compiler_needs_object=no
9160 enable_shared_with_static_runtimes=no
9161 export_dynamic_flag_spec=
9162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9163 hardcode_automatic=no
9164 hardcode_direct=no
9165 hardcode_direct_absolute=no
9166 hardcode_libdir_flag_spec=
9167 hardcode_libdir_flag_spec_ld=
9168 hardcode_libdir_separator=
9169 hardcode_minus_L=no
9170 hardcode_shlibpath_var=unsupported
9171 inherit_rpath=no
9172 link_all_deplibs=unknown
9173 module_cmds=
9174 module_expsym_cmds=
9175 old_archive_from_new_cmds=
9176 old_archive_from_expsyms_cmds=
9177 thread_safe_flag_spec=
9178 whole_archive_flag_spec=
9179 # include_expsyms should be a list of space-separated symbols to be *always*
9180 # included in the symbol list
9181 include_expsyms=
9182 # exclude_expsyms can be an extended regexp of symbols to exclude
9183 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9184 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9185 # as well as any symbol that contains `d'.
9186 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9187 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9188 # platforms (ab)use it in PIC code, but their linkers get confused if
9189 # the symbol is explicitly referenced. Since portable code cannot
9190 # rely on this symbol name, it's probably fine to never include it in
9191 # preloaded symbol tables.
9192 # Exclude shared library initialization/finalization symbols.
9193 extract_expsyms_cmds=
9194
9195 case $host_os in
9196 cygwin* | mingw* | pw32* | cegcc*)
9197 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9198 # When not using gcc, we currently assume that we are using
9199 # Microsoft Visual C++.
9200 if test "$GCC" != yes; then
9201 with_gnu_ld=no
9202 fi
9203 ;;
9204 interix*)
9205 # we just hope/assume this is gcc and not c89 (= MSVC++)
9206 with_gnu_ld=yes
9207 ;;
9208 openbsd*)
9209 with_gnu_ld=no
9210 ;;
9211 esac
9212
9213 ld_shlibs=yes
9214
9215 # On some targets, GNU ld is compatible enough with the native linker
9216 # that we're better off using the native interface for both.
9217 lt_use_gnu_ld_interface=no
9218 if test "$with_gnu_ld" = yes; then
9219 case $host_os in
9220 aix*)
9221 # The AIX port of GNU ld has always aspired to compatibility
9222 # with the native linker. However, as the warning in the GNU ld
9223 # block says, versions before 2.19.5* couldn't really create working
9224 # shared libraries, regardless of the interface used.
9225 case `$LD -v 2>&1` in
9226 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9227 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9228 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9229 *)
9230 lt_use_gnu_ld_interface=yes
9231 ;;
9232 esac
9233 ;;
9234 *)
9235 lt_use_gnu_ld_interface=yes
9236 ;;
9237 esac
9238 fi
9239
9240 if test "$lt_use_gnu_ld_interface" = yes; then
9241 # If archive_cmds runs LD, not CC, wlarc should be empty
9242 wlarc='${wl}'
9243
9244 # Set some defaults for GNU ld with shared library support. These
9245 # are reset later if shared libraries are not supported. Putting them
9246 # here allows them to be overridden if necessary.
9247 runpath_var=LD_RUN_PATH
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 export_dynamic_flag_spec='${wl}--export-dynamic'
9250 # ancient GNU ld didn't support --whole-archive et. al.
9251 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9252 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9253 else
9254 whole_archive_flag_spec=
9255 fi
9256 supports_anon_versioning=no
9257 case `$LD -v 2>&1` in
9258 *GNU\ gold*) supports_anon_versioning=yes ;;
9259 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9260 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9261 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9262 *\ 2.11.*) ;; # other 2.11 versions
9263 *) supports_anon_versioning=yes ;;
9264 esac
9265
9266 # See if GNU ld supports shared libraries.
9267 case $host_os in
9268 aix[3-9]*)
9269 # On AIX/PPC, the GNU linker is very broken
9270 if test "$host_cpu" != ia64; then
9271 ld_shlibs=no
9272 cat <<_LT_EOF 1>&2
9273
9274 *** Warning: the GNU linker, at least up to release 2.19, is reported
9275 *** to be unable to reliably create shared libraries on AIX.
9276 *** Therefore, libtool is disabling shared libraries support. If you
9277 *** really care for shared libraries, you may want to install binutils
9278 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9279 *** You will then need to restart the configuration process.
9280
9281 _LT_EOF
9282 fi
9283 ;;
9284
9285 amigaos*)
9286 case $host_cpu in
9287 powerpc)
9288 # see comment about AmigaOS4 .so support
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 archive_expsym_cmds=''
9291 ;;
9292 m68k)
9293 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)'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_minus_L=yes
9296 ;;
9297 esac
9298 ;;
9299
9300 beos*)
9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 allow_undefined_flag=unsupported
9303 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9304 # support --undefined. This deserves some investigation. FIXME
9305 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 else
9307 ld_shlibs=no
9308 fi
9309 ;;
9310
9311 cygwin* | mingw* | pw32* | cegcc*)
9312 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9313 # as there is no search path for DLLs.
9314 hardcode_libdir_flag_spec='-L$libdir'
9315 export_dynamic_flag_spec='${wl}--export-all-symbols'
9316 allow_undefined_flag=unsupported
9317 always_export_symbols=no
9318 enable_shared_with_static_runtimes=yes
9319 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'
9320 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9321
9322 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9324 # If the export-symbols file already is a .def file (1st line
9325 # is EXPORTS), use it as is; otherwise, prepend...
9326 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9327 cp $export_symbols $output_objdir/$soname.def;
9328 else
9329 echo EXPORTS > $output_objdir/$soname.def;
9330 cat $export_symbols >> $output_objdir/$soname.def;
9331 fi~
9332 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333 else
9334 ld_shlibs=no
9335 fi
9336 ;;
9337
9338 haiku*)
9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340 link_all_deplibs=yes
9341 ;;
9342
9343 interix[3-9]*)
9344 hardcode_direct=no
9345 hardcode_shlibpath_var=no
9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 export_dynamic_flag_spec='${wl}-E'
9348 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9349 # Instead, shared libraries are loaded at an image base (0x10000000 by
9350 # default) and relocated if they conflict, which is a slow very memory
9351 # consuming and fragmenting process. To avoid this, we pick a random,
9352 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9353 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9354 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9355 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'
9356 ;;
9357
9358 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9359 tmp_diet=no
9360 if test "$host_os" = linux-dietlibc; then
9361 case $cc_basename in
9362 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9363 esac
9364 fi
9365 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9366 && test "$tmp_diet" = no
9367 then
9368 tmp_addflag=' $pic_flag'
9369 tmp_sharedflag='-shared'
9370 case $cc_basename,$host_cpu in
9371 pgcc*) # Portland Group C compiler
9372 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'
9373 tmp_addflag=' $pic_flag'
9374 ;;
9375 pgf77* | pgf90* | pgf95* | pgfortran*)
9376 # Portland Group f77 and f90 compilers
9377 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'
9378 tmp_addflag=' $pic_flag -Mnomain' ;;
9379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9380 tmp_addflag=' -i_dynamic' ;;
9381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9382 tmp_addflag=' -i_dynamic -nofor_main' ;;
9383 ifc* | ifort*) # Intel Fortran compiler
9384 tmp_addflag=' -nofor_main' ;;
9385 lf95*) # Lahey Fortran 8.1
9386 whole_archive_flag_spec=
9387 tmp_sharedflag='--shared' ;;
9388 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9389 tmp_sharedflag='-qmkshrobj'
9390 tmp_addflag= ;;
9391 nvcc*) # Cuda Compiler Driver 2.2
9392 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'
9393 compiler_needs_object=yes
9394 ;;
9395 esac
9396 case `$CC -V 2>&1 | sed 5q` in
9397 *Sun\ C*) # Sun C 5.9
9398 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'
9399 compiler_needs_object=yes
9400 tmp_sharedflag='-G' ;;
9401 *Sun\ F*) # Sun Fortran 8.3
9402 tmp_sharedflag='-G' ;;
9403 esac
9404 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405
9406 if test "x$supports_anon_versioning" = xyes; then
9407 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9409 echo "local: *; };" >> $output_objdir/$libname.ver~
9410 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9411 fi
9412
9413 case $cc_basename in
9414 xlf* | bgf* | bgxlf* | mpixlf*)
9415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9416 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9417 hardcode_libdir_flag_spec=
9418 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9419 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9420 if test "x$supports_anon_versioning" = xyes; then
9421 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9423 echo "local: *; };" >> $output_objdir/$libname.ver~
9424 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9425 fi
9426 ;;
9427 esac
9428 else
9429 ld_shlibs=no
9430 fi
9431 ;;
9432
9433 netbsd*)
9434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9435 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9436 wlarc=
9437 else
9438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 fi
9441 ;;
9442
9443 solaris*)
9444 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9445 ld_shlibs=no
9446 cat <<_LT_EOF 1>&2
9447
9448 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9449 *** create shared libraries on Solaris systems. Therefore, libtool
9450 *** is disabling shared libraries support. We urge you to upgrade GNU
9451 *** binutils to release 2.9.1 or newer. Another option is to modify
9452 *** your PATH or compiler configuration so that the native linker is
9453 *** used, and then restart.
9454
9455 _LT_EOF
9456 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9457 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9458 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9459 else
9460 ld_shlibs=no
9461 fi
9462 ;;
9463
9464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9465 case `$LD -v 2>&1` in
9466 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9467 ld_shlibs=no
9468 cat <<_LT_EOF 1>&2
9469
9470 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9471 *** reliably create shared libraries on SCO systems. Therefore, libtool
9472 *** is disabling shared libraries support. We urge you to upgrade GNU
9473 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9474 *** your PATH or compiler configuration so that the native linker is
9475 *** used, and then restart.
9476
9477 _LT_EOF
9478 ;;
9479 *)
9480 # For security reasons, it is highly recommended that you always
9481 # use absolute paths for naming shared libraries, and exclude the
9482 # DT_RUNPATH tag from executables and libraries. But doing so
9483 # requires that you compile everything twice, which is a pain.
9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488 else
9489 ld_shlibs=no
9490 fi
9491 ;;
9492 esac
9493 ;;
9494
9495 sunos4*)
9496 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9497 wlarc=
9498 hardcode_direct=yes
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 *)
9503 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9504 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9505 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9506 else
9507 ld_shlibs=no
9508 fi
9509 ;;
9510 esac
9511
9512 if test "$ld_shlibs" = no; then
9513 runpath_var=
9514 hardcode_libdir_flag_spec=
9515 export_dynamic_flag_spec=
9516 whole_archive_flag_spec=
9517 fi
9518 else
9519 # PORTME fill in a description of your system's linker (not GNU ld)
9520 case $host_os in
9521 aix3*)
9522 allow_undefined_flag=unsupported
9523 always_export_symbols=yes
9524 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'
9525 # Note: this linker hardcodes the directories in LIBPATH if there
9526 # are no directories specified by -L.
9527 hardcode_minus_L=yes
9528 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9529 # Neither direct hardcoding nor static linking is supported with a
9530 # broken collect2.
9531 hardcode_direct=unsupported
9532 fi
9533 ;;
9534
9535 aix[4-9]*)
9536 if test "$host_cpu" = ia64; then
9537 # On IA64, the linker does run time linking by default, so we don't
9538 # have to do anything special.
9539 aix_use_runtimelinking=no
9540 exp_sym_flag='-Bexport'
9541 no_entry_flag=""
9542 else
9543 # If we're using GNU nm, then we don't want the "-C" option.
9544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9545 # Also, AIX nm treats weak defined symbols like other global
9546 # defined symbols, whereas GNU nm marks them as "W".
9547 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9548 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'
9549 else
9550 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'
9551 fi
9552 aix_use_runtimelinking=no
9553
9554 # Test if we are trying to use run time linking or normal
9555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9556 # need to do runtime linking.
9557 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9558 for ld_flag in $LDFLAGS; do
9559 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9560 aix_use_runtimelinking=yes
9561 break
9562 fi
9563 done
9564 ;;
9565 esac
9566
9567 exp_sym_flag='-bexport'
9568 no_entry_flag='-bnoentry'
9569 fi
9570
9571 # When large executables or shared objects are built, AIX ld can
9572 # have problems creating the table of contents. If linking a library
9573 # or program results in "error TOC overflow" add -mminimal-toc to
9574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9576
9577 archive_cmds=''
9578 hardcode_direct=yes
9579 hardcode_direct_absolute=yes
9580 hardcode_libdir_separator=':'
9581 link_all_deplibs=yes
9582 file_list_spec='${wl}-f,'
9583
9584 if test "$GCC" = yes; then
9585 case $host_os in aix4.[012]|aix4.[012].*)
9586 # We only want to do this on AIX 4.2 and lower, the check
9587 # below for broken collect2 doesn't work under 4.3+
9588 collect2name=`${CC} -print-prog-name=collect2`
9589 if test -f "$collect2name" &&
9590 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9591 then
9592 # We have reworked collect2
9593 :
9594 else
9595 # We have old collect2
9596 hardcode_direct=unsupported
9597 # It fails to find uninstalled libraries when the uninstalled
9598 # path is not listed in the libpath. Setting hardcode_minus_L
9599 # to unsupported forces relinking
9600 hardcode_minus_L=yes
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_libdir_separator=
9603 fi
9604 ;;
9605 esac
9606 shared_flag='-shared'
9607 if test "$aix_use_runtimelinking" = yes; then
9608 shared_flag="$shared_flag "'${wl}-G'
9609 fi
9610 else
9611 # not using gcc
9612 if test "$host_cpu" = ia64; then
9613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9614 # chokes on -Wl,-G. The following line is correct:
9615 shared_flag='-G'
9616 else
9617 if test "$aix_use_runtimelinking" = yes; then
9618 shared_flag='${wl}-G'
9619 else
9620 shared_flag='${wl}-bM:SRE'
9621 fi
9622 fi
9623 fi
9624
9625 export_dynamic_flag_spec='${wl}-bexpall'
9626 # It seems that -bexpall does not export symbols beginning with
9627 # underscore (_), so it is better to generate a list of symbols to export.
9628 always_export_symbols=yes
9629 if test "$aix_use_runtimelinking" = yes; then
9630 # Warning - without using the other runtime loading flags (-brtl),
9631 # -berok will link without error, but may produce a broken library.
9632 allow_undefined_flag='-berok'
9633 # Determine the default libpath from the value encoded in an
9634 # empty executable.
9635 if test "${lt_cv_aix_libpath+set}" = set; then
9636 aix_libpath=$lt_cv_aix_libpath
9637 else
9638 if ${lt_cv_aix_libpath_+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643
9644 int
9645 main ()
9646 {
9647
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 if ac_fn_c_try_link "$LINENO"; then :
9653
9654 lt_aix_libpath_sed='
9655 /Import File Strings/,/^$/ {
9656 /^0/ {
9657 s/^0 *\([^ ]*\) *$/\1/
9658 p
9659 }
9660 }'
9661 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9662 # Check for a 64-bit object if we didn't find anything.
9663 if test -z "$lt_cv_aix_libpath_"; then
9664 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9665 fi
9666 fi
9667 rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext conftest.$ac_ext
9669 if test -z "$lt_cv_aix_libpath_"; then
9670 lt_cv_aix_libpath_="/usr/lib:/lib"
9671 fi
9672
9673 fi
9674
9675 aix_libpath=$lt_cv_aix_libpath_
9676 fi
9677
9678 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9679 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"
9680 else
9681 if test "$host_cpu" = ia64; then
9682 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9683 allow_undefined_flag="-z nodefs"
9684 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"
9685 else
9686 # Determine the default libpath from the value encoded in an
9687 # empty executable.
9688 if test "${lt_cv_aix_libpath+set}" = set; then
9689 aix_libpath=$lt_cv_aix_libpath
9690 else
9691 if ${lt_cv_aix_libpath_+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9696
9697 int
9698 main ()
9699 {
9700
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"; then :
9706
9707 lt_aix_libpath_sed='
9708 /Import File Strings/,/^$/ {
9709 /^0/ {
9710 s/^0 *\([^ ]*\) *$/\1/
9711 p
9712 }
9713 }'
9714 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9715 # Check for a 64-bit object if we didn't find anything.
9716 if test -z "$lt_cv_aix_libpath_"; then
9717 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9718 fi
9719 fi
9720 rm -f core conftest.err conftest.$ac_objext \
9721 conftest$ac_exeext conftest.$ac_ext
9722 if test -z "$lt_cv_aix_libpath_"; then
9723 lt_cv_aix_libpath_="/usr/lib:/lib"
9724 fi
9725
9726 fi
9727
9728 aix_libpath=$lt_cv_aix_libpath_
9729 fi
9730
9731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9732 # Warning - without using the other run time loading flags,
9733 # -berok will link without error, but may produce a broken library.
9734 no_undefined_flag=' ${wl}-bernotok'
9735 allow_undefined_flag=' ${wl}-berok'
9736 if test "$with_gnu_ld" = yes; then
9737 # We only use this code for GNU lds that support --whole-archive.
9738 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9739 else
9740 # Exported symbols can be pulled into shared objects from archives
9741 whole_archive_flag_spec='$convenience'
9742 fi
9743 archive_cmds_need_lc=yes
9744 # This is similar to how AIX traditionally builds its shared libraries.
9745 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'
9746 fi
9747 fi
9748 ;;
9749
9750 amigaos*)
9751 case $host_cpu in
9752 powerpc)
9753 # see comment about AmigaOS4 .so support
9754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9755 archive_expsym_cmds=''
9756 ;;
9757 m68k)
9758 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)'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_minus_L=yes
9761 ;;
9762 esac
9763 ;;
9764
9765 bsdi[45]*)
9766 export_dynamic_flag_spec=-rdynamic
9767 ;;
9768
9769 cygwin* | mingw* | pw32* | cegcc*)
9770 # When not using gcc, we currently assume that we are using
9771 # Microsoft Visual C++.
9772 # hardcode_libdir_flag_spec is actually meaningless, as there is
9773 # no search path for DLLs.
9774 case $cc_basename in
9775 cl*)
9776 # Native MSVC
9777 hardcode_libdir_flag_spec=' '
9778 allow_undefined_flag=unsupported
9779 always_export_symbols=yes
9780 file_list_spec='@'
9781 # Tell ltmain to make .lib files, not .a files.
9782 libext=lib
9783 # Tell ltmain to make .dll files, not .so files.
9784 shrext_cmds=".dll"
9785 # FIXME: Setting linknames here is a bad hack.
9786 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9787 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9788 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9789 else
9790 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9791 fi~
9792 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9793 linknames='
9794 # The linker will not automatically build a static lib if we build a DLL.
9795 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9796 enable_shared_with_static_runtimes=yes
9797 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9798 # Don't use ranlib
9799 old_postinstall_cmds='chmod 644 $oldlib'
9800 postlink_cmds='lt_outputfile="@OUTPUT@"~
9801 lt_tool_outputfile="@TOOL_OUTPUT@"~
9802 case $lt_outputfile in
9803 *.exe|*.EXE) ;;
9804 *)
9805 lt_outputfile="$lt_outputfile.exe"
9806 lt_tool_outputfile="$lt_tool_outputfile.exe"
9807 ;;
9808 esac~
9809 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9810 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9811 $RM "$lt_outputfile.manifest";
9812 fi'
9813 ;;
9814 *)
9815 # Assume MSVC wrapper
9816 hardcode_libdir_flag_spec=' '
9817 allow_undefined_flag=unsupported
9818 # Tell ltmain to make .lib files, not .a files.
9819 libext=lib
9820 # Tell ltmain to make .dll files, not .so files.
9821 shrext_cmds=".dll"
9822 # FIXME: Setting linknames here is a bad hack.
9823 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9824 # The linker will automatically build a .lib file if we build a DLL.
9825 old_archive_from_new_cmds='true'
9826 # FIXME: Should let the user specify the lib program.
9827 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9828 enable_shared_with_static_runtimes=yes
9829 ;;
9830 esac
9831 ;;
9832
9833 darwin* | rhapsody*)
9834
9835
9836 archive_cmds_need_lc=no
9837 hardcode_direct=no
9838 hardcode_automatic=yes
9839 hardcode_shlibpath_var=unsupported
9840 if test "$lt_cv_ld_force_load" = "yes"; then
9841 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\"`'
9842 else
9843 whole_archive_flag_spec=''
9844 fi
9845 link_all_deplibs=yes
9846 allow_undefined_flag="$_lt_dar_allow_undefined"
9847 case $cc_basename in
9848 ifort*) _lt_dar_can_shared=yes ;;
9849 *) _lt_dar_can_shared=$GCC ;;
9850 esac
9851 if test "$_lt_dar_can_shared" = "yes"; then
9852 output_verbose_link_cmd=func_echo_all
9853 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9854 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9855 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}"
9856 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}"
9857
9858 else
9859 ld_shlibs=no
9860 fi
9861
9862 ;;
9863
9864 dgux*)
9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_shlibpath_var=no
9868 ;;
9869
9870 freebsd1*)
9871 ld_shlibs=no
9872 ;;
9873
9874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9875 # support. Future versions do this automatically, but an explicit c++rt0.o
9876 # does not break anything, and helps significantly (at the cost of a little
9877 # extra space).
9878 freebsd2.2*)
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9886 freebsd2*)
9887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_direct=yes
9889 hardcode_minus_L=yes
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9894 freebsd* | dragonfly*)
9895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9899 ;;
9900
9901 hpux9*)
9902 if test "$GCC" = yes; then
9903 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'
9904 else
9905 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'
9906 fi
9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_separator=:
9909 hardcode_direct=yes
9910
9911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 export_dynamic_flag_spec='${wl}-E'
9915 ;;
9916
9917 hpux10*)
9918 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9919 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920 else
9921 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9922 fi
9923 if test "$with_gnu_ld" = no; then
9924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_flag_spec_ld='+b $libdir'
9926 hardcode_libdir_separator=:
9927 hardcode_direct=yes
9928 hardcode_direct_absolute=yes
9929 export_dynamic_flag_spec='${wl}-E'
9930 # hardcode_minus_L: Not really in the search PATH,
9931 # but as the default location of the library.
9932 hardcode_minus_L=yes
9933 fi
9934 ;;
9935
9936 hpux11*)
9937 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9938 case $host_cpu in
9939 hppa*64*)
9940 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 ;;
9942 ia64*)
9943 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9944 ;;
9945 *)
9946 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 esac
9949 else
9950 case $host_cpu in
9951 hppa*64*)
9952 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 ;;
9954 ia64*)
9955 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9956 ;;
9957 *)
9958
9959 # Older versions of the 11.00 compiler do not understand -b yet
9960 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9962 $as_echo_n "checking if $CC understands -b... " >&6; }
9963 if ${lt_cv_prog_compiler__b+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 lt_cv_prog_compiler__b=no
9967 save_LDFLAGS="$LDFLAGS"
9968 LDFLAGS="$LDFLAGS -b"
9969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9971 # The linker can only warn and ignore the option if not recognized
9972 # So say no if there are warnings
9973 if test -s conftest.err; then
9974 # Append any errors to the config.log.
9975 cat conftest.err 1>&5
9976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9978 if diff conftest.exp conftest.er2 >/dev/null; then
9979 lt_cv_prog_compiler__b=yes
9980 fi
9981 else
9982 lt_cv_prog_compiler__b=yes
9983 fi
9984 fi
9985 $RM -r conftest*
9986 LDFLAGS="$save_LDFLAGS"
9987
9988 fi
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9990 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9991
9992 if test x"$lt_cv_prog_compiler__b" = xyes; then
9993 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9996 fi
9997
9998 ;;
9999 esac
10000 fi
10001 if test "$with_gnu_ld" = no; then
10002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10003 hardcode_libdir_separator=:
10004
10005 case $host_cpu in
10006 hppa*64*|ia64*)
10007 hardcode_direct=no
10008 hardcode_shlibpath_var=no
10009 ;;
10010 *)
10011 hardcode_direct=yes
10012 hardcode_direct_absolute=yes
10013 export_dynamic_flag_spec='${wl}-E'
10014
10015 # hardcode_minus_L: Not really in the search PATH,
10016 # but as the default location of the library.
10017 hardcode_minus_L=yes
10018 ;;
10019 esac
10020 fi
10021 ;;
10022
10023 irix5* | irix6* | nonstopux*)
10024 if test "$GCC" = yes; then
10025 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'
10026 # Try to use the -exported_symbol ld option, if it does not
10027 # work, assume that -exports_file does not work either and
10028 # implicitly export all symbols.
10029 # This should be the same for all languages, so no per-tag cache variable.
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10031 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10032 if ${lt_cv_irix_exported_symbol+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 save_LDFLAGS="$LDFLAGS"
10036 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 int foo (void) { return 0; }
10040 _ACEOF
10041 if ac_fn_c_try_link "$LINENO"; then :
10042 lt_cv_irix_exported_symbol=yes
10043 else
10044 lt_cv_irix_exported_symbol=no
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext \
10047 conftest$ac_exeext conftest.$ac_ext
10048 LDFLAGS="$save_LDFLAGS"
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10051 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10052 if test "$lt_cv_irix_exported_symbol" = yes; then
10053 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'
10054 fi
10055 else
10056 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'
10057 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'
10058 fi
10059 archive_cmds_need_lc='no'
10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10061 hardcode_libdir_separator=:
10062 inherit_rpath=yes
10063 link_all_deplibs=yes
10064 ;;
10065
10066 netbsd*)
10067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10069 else
10070 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10071 fi
10072 hardcode_libdir_flag_spec='-R$libdir'
10073 hardcode_direct=yes
10074 hardcode_shlibpath_var=no
10075 ;;
10076
10077 newsos6)
10078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079 hardcode_direct=yes
10080 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10081 hardcode_libdir_separator=:
10082 hardcode_shlibpath_var=no
10083 ;;
10084
10085 *nto* | *qnx*)
10086 ;;
10087
10088 openbsd*)
10089 if test -f /usr/libexec/ld.so; then
10090 hardcode_direct=yes
10091 hardcode_shlibpath_var=no
10092 hardcode_direct_absolute=yes
10093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10097 export_dynamic_flag_spec='${wl}-E'
10098 else
10099 case $host_os in
10100 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_libdir_flag_spec='-R$libdir'
10103 ;;
10104 *)
10105 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10107 ;;
10108 esac
10109 fi
10110 else
10111 ld_shlibs=no
10112 fi
10113 ;;
10114
10115 os2*)
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_minus_L=yes
10118 allow_undefined_flag=unsupported
10119 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'
10120 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10121 ;;
10122
10123 osf3*)
10124 if test "$GCC" = yes; then
10125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10126 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'
10127 else
10128 allow_undefined_flag=' -expect_unresolved \*'
10129 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'
10130 fi
10131 archive_cmds_need_lc='no'
10132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133 hardcode_libdir_separator=:
10134 ;;
10135
10136 osf4* | osf5*) # as osf3* with the addition of -msym flag
10137 if test "$GCC" = yes; then
10138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10139 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'
10140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10141 else
10142 allow_undefined_flag=' -expect_unresolved \*'
10143 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'
10144 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~
10145 $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'
10146
10147 # Both c and cxx compiler support -rpath directly
10148 hardcode_libdir_flag_spec='-rpath $libdir'
10149 fi
10150 archive_cmds_need_lc='no'
10151 hardcode_libdir_separator=:
10152 ;;
10153
10154 solaris*)
10155 no_undefined_flag=' -z defs'
10156 if test "$GCC" = yes; then
10157 wlarc='${wl}'
10158 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10160 $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'
10161 else
10162 case `$CC -V 2>&1` in
10163 *"Compilers 5.0"*)
10164 wlarc=''
10165 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10168 ;;
10169 *)
10170 wlarc='${wl}'
10171 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10174 ;;
10175 esac
10176 fi
10177 hardcode_libdir_flag_spec='-R$libdir'
10178 hardcode_shlibpath_var=no
10179 case $host_os in
10180 solaris2.[0-5] | solaris2.[0-5].*) ;;
10181 *)
10182 # The compiler driver will combine and reorder linker options,
10183 # but understands `-z linker_flag'. GCC discards it without `$wl',
10184 # but is careful enough not to reorder.
10185 # Supported since Solaris 2.6 (maybe 2.5.1?)
10186 if test "$GCC" = yes; then
10187 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10188 else
10189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10190 fi
10191 ;;
10192 esac
10193 link_all_deplibs=yes
10194 ;;
10195
10196 sunos4*)
10197 if test "x$host_vendor" = xsequent; then
10198 # Use $CC to link under sequent, because it throws in some extra .o
10199 # files that make .init and .fini sections work.
10200 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10201 else
10202 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10203 fi
10204 hardcode_libdir_flag_spec='-L$libdir'
10205 hardcode_direct=yes
10206 hardcode_minus_L=yes
10207 hardcode_shlibpath_var=no
10208 ;;
10209
10210 sysv4)
10211 case $host_vendor in
10212 sni)
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_direct=yes # is this really true???
10215 ;;
10216 siemens)
10217 ## LD is ld it makes a PLAMLIB
10218 ## CC just makes a GrossModule.
10219 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10220 reload_cmds='$CC -r -o $output$reload_objs'
10221 hardcode_direct=no
10222 ;;
10223 motorola)
10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10226 ;;
10227 esac
10228 runpath_var='LD_RUN_PATH'
10229 hardcode_shlibpath_var=no
10230 ;;
10231
10232 sysv4.3*)
10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234 hardcode_shlibpath_var=no
10235 export_dynamic_flag_spec='-Bexport'
10236 ;;
10237
10238 sysv4*MP*)
10239 if test -d /usr/nec; then
10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_shlibpath_var=no
10242 runpath_var=LD_RUN_PATH
10243 hardcode_runpath_var=yes
10244 ld_shlibs=yes
10245 fi
10246 ;;
10247
10248 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10249 no_undefined_flag='${wl}-z,text'
10250 archive_cmds_need_lc=no
10251 hardcode_shlibpath_var=no
10252 runpath_var='LD_RUN_PATH'
10253
10254 if test "$GCC" = yes; then
10255 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 else
10258 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 fi
10261 ;;
10262
10263 sysv5* | sco3.2v5* | sco5v6*)
10264 # Note: We can NOT use -z defs as we might desire, because we do not
10265 # link with -lc, and that would cause any symbols used from libc to
10266 # always be unresolved, which means just about no library would
10267 # ever link correctly. If we're not using GNU ld we use -z text
10268 # though, which does catch some bad symbols but isn't as heavy-handed
10269 # as -z defs.
10270 no_undefined_flag='${wl}-z,text'
10271 allow_undefined_flag='${wl}-z,nodefs'
10272 archive_cmds_need_lc=no
10273 hardcode_shlibpath_var=no
10274 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10275 hardcode_libdir_separator=':'
10276 link_all_deplibs=yes
10277 export_dynamic_flag_spec='${wl}-Bexport'
10278 runpath_var='LD_RUN_PATH'
10279
10280 if test "$GCC" = yes; then
10281 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 else
10284 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 fi
10287 ;;
10288
10289 uts4*)
10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_libdir_flag_spec='-L$libdir'
10292 hardcode_shlibpath_var=no
10293 ;;
10294
10295 *)
10296 ld_shlibs=no
10297 ;;
10298 esac
10299
10300 if test x$host_vendor = xsni; then
10301 case $host in
10302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10303 export_dynamic_flag_spec='${wl}-Blargedynsym'
10304 ;;
10305 esac
10306 fi
10307 fi
10308
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10310 $as_echo "$ld_shlibs" >&6; }
10311 test "$ld_shlibs" = no && can_build_shared=no
10312
10313 with_gnu_ld=$with_gnu_ld
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329 #
10330 # Do we need to explicitly link libc?
10331 #
10332 case "x$archive_cmds_need_lc" in
10333 x|xyes)
10334 # Assume -lc should be added
10335 archive_cmds_need_lc=yes
10336
10337 if test "$enable_shared" = yes && test "$GCC" = yes; then
10338 case $archive_cmds in
10339 *'~'*)
10340 # FIXME: we may have to deal with multi-command sequences.
10341 ;;
10342 '$CC '*)
10343 # Test whether the compiler implicitly links with -lc since on some
10344 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10345 # to ld, don't add -lc before -lgcc.
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10347 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10348 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 $RM conftest*
10352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10353
10354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10355 (eval $ac_compile) 2>&5
10356 ac_status=$?
10357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10358 test $ac_status = 0; } 2>conftest.err; then
10359 soname=conftest
10360 lib=conftest
10361 libobjs=conftest.$ac_objext
10362 deplibs=
10363 wl=$lt_prog_compiler_wl
10364 pic_flag=$lt_prog_compiler_pic
10365 compiler_flags=-v
10366 linker_flags=-v
10367 verstring=
10368 output_objdir=.
10369 libname=conftest
10370 lt_save_allow_undefined_flag=$allow_undefined_flag
10371 allow_undefined_flag=
10372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10373 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10374 ac_status=$?
10375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10376 test $ac_status = 0; }
10377 then
10378 lt_cv_archive_cmds_need_lc=no
10379 else
10380 lt_cv_archive_cmds_need_lc=yes
10381 fi
10382 allow_undefined_flag=$lt_save_allow_undefined_flag
10383 else
10384 cat conftest.err 1>&5
10385 fi
10386 $RM conftest*
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10390 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10391 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10392 ;;
10393 esac
10394 fi
10395 ;;
10396 esac
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10556
10557 if test "$GCC" = yes; then
10558 case $host_os in
10559 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10560 *) lt_awk_arg="/^libraries:/" ;;
10561 esac
10562 case $host_os in
10563 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10564 *) lt_sed_strip_eq="s,=/,/,g" ;;
10565 esac
10566 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10567 case $lt_search_path_spec in
10568 *\;*)
10569 # if the path contains ";" then we assume it to be the separator
10570 # otherwise default to the standard path separator (i.e. ":") - it is
10571 # assumed that no part of a normal pathname contains ";" but that should
10572 # okay in the real world where ";" in dirpaths is itself problematic.
10573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10574 ;;
10575 *)
10576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10577 ;;
10578 esac
10579 # Ok, now we have the path, separated by spaces, we can step through it
10580 # and add multilib dir if necessary.
10581 lt_tmp_lt_search_path_spec=
10582 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10583 for lt_sys_path in $lt_search_path_spec; do
10584 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10586 else
10587 test -d "$lt_sys_path" && \
10588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10589 fi
10590 done
10591 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10592 BEGIN {RS=" "; FS="/|\n";} {
10593 lt_foo="";
10594 lt_count=0;
10595 for (lt_i = NF; lt_i > 0; lt_i--) {
10596 if ($lt_i != "" && $lt_i != ".") {
10597 if ($lt_i == "..") {
10598 lt_count++;
10599 } else {
10600 if (lt_count == 0) {
10601 lt_foo="/" $lt_i lt_foo;
10602 } else {
10603 lt_count--;
10604 }
10605 }
10606 }
10607 }
10608 if (lt_foo != "") { lt_freq[lt_foo]++; }
10609 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10610 }'`
10611 # AWK program above erroneously prepends '/' to C:/dos/paths
10612 # for these hosts.
10613 case $host_os in
10614 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10615 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10616 esac
10617 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10618 else
10619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10620 fi
10621 library_names_spec=
10622 libname_spec='lib$name'
10623 soname_spec=
10624 shrext_cmds=".so"
10625 postinstall_cmds=
10626 postuninstall_cmds=
10627 finish_cmds=
10628 finish_eval=
10629 shlibpath_var=
10630 shlibpath_overrides_runpath=unknown
10631 version_type=none
10632 dynamic_linker="$host_os ld.so"
10633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10634 need_lib_prefix=unknown
10635 hardcode_into_libs=no
10636
10637 # when you set need_version to no, make sure it does not cause -set_version
10638 # flags to be left without arguments
10639 need_version=unknown
10640
10641 case $host_os in
10642 aix3*)
10643 version_type=linux
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10645 shlibpath_var=LIBPATH
10646
10647 # AIX 3 has no versioning support, so we append a major version to the name.
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 ;;
10650
10651 aix[4-9]*)
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 hardcode_into_libs=yes
10656 if test "$host_cpu" = ia64; then
10657 # AIX 5 supports IA64
10658 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 else
10661 # With GCC up to 2.95.x, collect2 would create an import file
10662 # for dependence libraries. The import file would start with
10663 # the line `#! .'. This would cause the generated library to
10664 # depend on `.', always an invalid library. This was fixed in
10665 # development snapshots of GCC prior to 3.0.
10666 case $host_os in
10667 aix4 | aix4.[01] | aix4.[01].*)
10668 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10669 echo ' yes '
10670 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10671 :
10672 else
10673 can_build_shared=no
10674 fi
10675 ;;
10676 esac
10677 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10678 # soname into executable. Probably we can add versioning support to
10679 # collect2, so additional links can be useful in future.
10680 if test "$aix_use_runtimelinking" = yes; then
10681 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10682 # instead of lib<name>.a to let people know that these are not
10683 # typical AIX shared libraries.
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 else
10686 # We preserve .a as extension for shared libraries through AIX4.2
10687 # and later when we are not doing run time linking.
10688 library_names_spec='${libname}${release}.a $libname.a'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 fi
10691 shlibpath_var=LIBPATH
10692 fi
10693 ;;
10694
10695 amigaos*)
10696 case $host_cpu in
10697 powerpc)
10698 # Since July 2007 AmigaOS4 officially supports .so libraries.
10699 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 ;;
10702 m68k)
10703 library_names_spec='$libname.ixlibrary $libname.a'
10704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10705 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'
10706 ;;
10707 esac
10708 ;;
10709
10710 beos*)
10711 library_names_spec='${libname}${shared_ext}'
10712 dynamic_linker="$host_os ld.so"
10713 shlibpath_var=LIBRARY_PATH
10714 ;;
10715
10716 bsdi[45]*)
10717 version_type=linux
10718 need_version=no
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10725 # the default ld.so.conf also contains /usr/contrib/lib and
10726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10727 # libtool to hard-code these into programs
10728 ;;
10729
10730 cygwin* | mingw* | pw32* | cegcc*)
10731 version_type=windows
10732 shrext_cmds=".dll"
10733 need_version=no
10734 need_lib_prefix=no
10735
10736 case $GCC,$cc_basename in
10737 yes,*)
10738 # gcc
10739 library_names_spec='$libname.dll.a'
10740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10741 postinstall_cmds='base_file=`basename \${file}`~
10742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10743 dldir=$destdir/`dirname \$dlpath`~
10744 test -d \$dldir || mkdir -p \$dldir~
10745 $install_prog $dir/$dlname \$dldir/$dlname~
10746 chmod a+x \$dldir/$dlname~
10747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10749 fi'
10750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751 dlpath=$dir/\$dldll~
10752 $RM \$dlpath'
10753 shlibpath_overrides_runpath=yes
10754
10755 case $host_os in
10756 cygwin*)
10757 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10758 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759
10760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10761 ;;
10762 mingw* | cegcc*)
10763 # MinGW DLLs use traditional 'lib' prefix
10764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765 ;;
10766 pw32*)
10767 # pw32 DLLs use 'pw' prefix rather than 'lib'
10768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10769 ;;
10770 esac
10771 dynamic_linker='Win32 ld.exe'
10772 ;;
10773
10774 *,cl*)
10775 # Native MSVC
10776 libname_spec='$name'
10777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778 library_names_spec='${libname}.dll.lib'
10779
10780 case $build_os in
10781 mingw*)
10782 sys_lib_search_path_spec=
10783 lt_save_ifs=$IFS
10784 IFS=';'
10785 for lt_path in $LIB
10786 do
10787 IFS=$lt_save_ifs
10788 # Let DOS variable expansion print the short 8.3 style file name.
10789 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10790 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10791 done
10792 IFS=$lt_save_ifs
10793 # Convert to MSYS style.
10794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10795 ;;
10796 cygwin*)
10797 # Convert to unix form, then to dos form, then back to unix form
10798 # but this time dos style (no spaces!) so that the unix form looks
10799 # like /cygdrive/c/PROGRA~1:/cygdr...
10800 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10801 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10802 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10803 ;;
10804 *)
10805 sys_lib_search_path_spec="$LIB"
10806 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10807 # It is most probably a Windows format PATH.
10808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10809 else
10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811 fi
10812 # FIXME: find the short name or the path components, as spaces are
10813 # common. (e.g. "Program Files" -> "PROGRA~1")
10814 ;;
10815 esac
10816
10817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818 postinstall_cmds='base_file=`basename \${file}`~
10819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10820 dldir=$destdir/`dirname \$dlpath`~
10821 test -d \$dldir || mkdir -p \$dldir~
10822 $install_prog $dir/$dlname \$dldir/$dlname'
10823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10824 dlpath=$dir/\$dldll~
10825 $RM \$dlpath'
10826 shlibpath_overrides_runpath=yes
10827 dynamic_linker='Win32 link.exe'
10828 ;;
10829
10830 *)
10831 # Assume MSVC wrapper
10832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10833 dynamic_linker='Win32 ld.exe'
10834 ;;
10835 esac
10836 # FIXME: first we should search . and the directory the executable is in
10837 shlibpath_var=PATH
10838 ;;
10839
10840 darwin* | rhapsody*)
10841 dynamic_linker="$host_os dyld"
10842 version_type=darwin
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846 soname_spec='${libname}${release}${major}$shared_ext'
10847 shlibpath_overrides_runpath=yes
10848 shlibpath_var=DYLD_LIBRARY_PATH
10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853 ;;
10854
10855 dgux*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 ;;
10863
10864 freebsd1*)
10865 dynamic_linker=no
10866 ;;
10867
10868 freebsd* | dragonfly*)
10869 # DragonFly does not have aout. When/if they implement a new
10870 # versioning mechanism, adjust this.
10871 if test -x /usr/bin/objformat; then
10872 objformat=`/usr/bin/objformat`
10873 else
10874 case $host_os in
10875 freebsd[123]*) objformat=aout ;;
10876 *) objformat=elf ;;
10877 esac
10878 fi
10879 version_type=freebsd-$objformat
10880 case $version_type in
10881 freebsd-elf*)
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10883 need_version=no
10884 need_lib_prefix=no
10885 ;;
10886 freebsd-*)
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10888 need_version=yes
10889 ;;
10890 esac
10891 shlibpath_var=LD_LIBRARY_PATH
10892 case $host_os in
10893 freebsd2*)
10894 shlibpath_overrides_runpath=yes
10895 ;;
10896 freebsd3.[01]* | freebsdelf3.[01]*)
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 ;;
10900 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10901 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10902 shlibpath_overrides_runpath=no
10903 hardcode_into_libs=yes
10904 ;;
10905 *) # from 4.6 on, and DragonFly
10906 shlibpath_overrides_runpath=yes
10907 hardcode_into_libs=yes
10908 ;;
10909 esac
10910 ;;
10911
10912 gnu*)
10913 version_type=linux
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 hardcode_into_libs=yes
10920 ;;
10921
10922 haiku*)
10923 version_type=linux
10924 need_lib_prefix=no
10925 need_version=no
10926 dynamic_linker="$host_os runtime_loader"
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 shlibpath_var=LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10932 hardcode_into_libs=yes
10933 ;;
10934
10935 hpux9* | hpux10* | hpux11*)
10936 # Give a soname corresponding to the major version so that dld.sl refuses to
10937 # link against other versions.
10938 version_type=sunos
10939 need_lib_prefix=no
10940 need_version=no
10941 case $host_cpu in
10942 ia64*)
10943 shrext_cmds='.so'
10944 hardcode_into_libs=yes
10945 dynamic_linker="$host_os dld.so"
10946 shlibpath_var=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 if test "X$HPUX_IA64_MODE" = X32; then
10951 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10952 else
10953 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10954 fi
10955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10956 ;;
10957 hppa*64*)
10958 shrext_cmds='.sl'
10959 hardcode_into_libs=yes
10960 dynamic_linker="$host_os dld.sl"
10961 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10967 ;;
10968 *)
10969 shrext_cmds='.sl'
10970 dynamic_linker="$host_os dld.sl"
10971 shlibpath_var=SHLIB_PATH
10972 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 ;;
10976 esac
10977 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10978 postinstall_cmds='chmod 555 $lib'
10979 # or fails outright, so override atomically:
10980 install_override_mode=555
10981 ;;
10982
10983 interix[3-9]*)
10984 version_type=linux
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10992 hardcode_into_libs=yes
10993 ;;
10994
10995 irix5* | irix6* | nonstopux*)
10996 case $host_os in
10997 nonstopux*) version_type=nonstopux ;;
10998 *)
10999 if test "$lt_cv_prog_gnu_ld" = yes; then
11000 version_type=linux
11001 else
11002 version_type=irix
11003 fi ;;
11004 esac
11005 need_lib_prefix=no
11006 need_version=no
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11009 case $host_os in
11010 irix5* | nonstopux*)
11011 libsuff= shlibsuff=
11012 ;;
11013 *)
11014 case $LD in # libtool.m4 will add one of these switches to LD
11015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11016 libsuff= shlibsuff= libmagic=32-bit;;
11017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11018 libsuff=32 shlibsuff=N32 libmagic=N32;;
11019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11021 *) libsuff= shlibsuff= libmagic=never-match;;
11022 esac
11023 ;;
11024 esac
11025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11026 shlibpath_overrides_runpath=no
11027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11029 hardcode_into_libs=yes
11030 ;;
11031
11032 # No shared lib support for Linux oldld, aout, or coff.
11033 linux*oldld* | linux*aout* | linux*coff*)
11034 dynamic_linker=no
11035 ;;
11036
11037 # This must be Linux ELF.
11038 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047
11048 # Some binutils ld are patched to set DT_RUNPATH
11049 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 lt_cv_shlibpath_overrides_runpath=no
11053 save_LDFLAGS=$LDFLAGS
11054 save_libdir=$libdir
11055 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11056 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059
11060 int
11061 main ()
11062 {
11063
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 if ac_fn_c_try_link "$LINENO"; then :
11069 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11070 lt_cv_shlibpath_overrides_runpath=yes
11071 fi
11072 fi
11073 rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LDFLAGS=$save_LDFLAGS
11076 libdir=$save_libdir
11077
11078 fi
11079
11080 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11081
11082 # This implies no fast_install, which is unacceptable.
11083 # Some rework will be needed to allow for fast_install
11084 # before this can be enabled.
11085 hardcode_into_libs=yes
11086
11087 # Append ld.so.conf contents to the search path
11088 if test -f /etc/ld.so.conf; then
11089 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' ' '`
11090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11091 fi
11092
11093 # We used to test for /lib/ld.so.1 and disable shared libraries on
11094 # powerpc, because MkLinux only supported shared libraries with the
11095 # GNU dynamic linker. Since this was broken with cross compilers,
11096 # most powerpc-linux boxes support dynamic linking these days and
11097 # people can always --disable-shared, the test was removed, and we
11098 # assume the GNU/Linux dynamic linker is in use.
11099 dynamic_linker='GNU/Linux ld.so'
11100 ;;
11101
11102 netbsd*)
11103 version_type=sunos
11104 need_lib_prefix=no
11105 need_version=no
11106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109 dynamic_linker='NetBSD (a.out) ld.so'
11110 else
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 dynamic_linker='NetBSD ld.elf_so'
11114 fi
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11118 ;;
11119
11120 newsos6)
11121 version_type=linux
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11125 ;;
11126
11127 *nto* | *qnx*)
11128 version_type=qnx
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 dynamic_linker='ldqnx.so'
11137 ;;
11138
11139 openbsd*)
11140 version_type=sunos
11141 sys_lib_dlsearch_path_spec="/usr/lib"
11142 need_lib_prefix=no
11143 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11144 case $host_os in
11145 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11146 *) need_version=no ;;
11147 esac
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11152 case $host_os in
11153 openbsd2.[89] | openbsd2.[89].*)
11154 shlibpath_overrides_runpath=no
11155 ;;
11156 *)
11157 shlibpath_overrides_runpath=yes
11158 ;;
11159 esac
11160 else
11161 shlibpath_overrides_runpath=yes
11162 fi
11163 ;;
11164
11165 os2*)
11166 libname_spec='$name'
11167 shrext_cmds=".dll"
11168 need_lib_prefix=no
11169 library_names_spec='$libname${shared_ext} $libname.a'
11170 dynamic_linker='OS/2 ld.exe'
11171 shlibpath_var=LIBPATH
11172 ;;
11173
11174 osf3* | osf4* | osf5*)
11175 version_type=osf
11176 need_lib_prefix=no
11177 need_version=no
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11182 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11183 ;;
11184
11185 rdos*)
11186 dynamic_linker=no
11187 ;;
11188
11189 solaris*)
11190 version_type=linux
11191 need_lib_prefix=no
11192 need_version=no
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 # ldd complains unless libraries are executable
11199 postinstall_cmds='chmod +x $lib'
11200 ;;
11201
11202 sunos4*)
11203 version_type=sunos
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=yes
11208 if test "$with_gnu_ld" = yes; then
11209 need_lib_prefix=no
11210 fi
11211 need_version=yes
11212 ;;
11213
11214 sysv4 | sysv4.3*)
11215 version_type=linux
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 case $host_vendor in
11220 sni)
11221 shlibpath_overrides_runpath=no
11222 need_lib_prefix=no
11223 runpath_var=LD_RUN_PATH
11224 ;;
11225 siemens)
11226 need_lib_prefix=no
11227 ;;
11228 motorola)
11229 need_lib_prefix=no
11230 need_version=no
11231 shlibpath_overrides_runpath=no
11232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11233 ;;
11234 esac
11235 ;;
11236
11237 sysv4*MP*)
11238 if test -d /usr/nec ;then
11239 version_type=linux
11240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11241 soname_spec='$libname${shared_ext}.$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 fi
11244 ;;
11245
11246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11247 version_type=freebsd-elf
11248 need_lib_prefix=no
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=yes
11254 hardcode_into_libs=yes
11255 if test "$with_gnu_ld" = yes; then
11256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11257 else
11258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11259 case $host_os in
11260 sco3.2v5*)
11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11262 ;;
11263 esac
11264 fi
11265 sys_lib_dlsearch_path_spec='/usr/lib'
11266 ;;
11267
11268 tpf*)
11269 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11270 version_type=linux
11271 need_lib_prefix=no
11272 need_version=no
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=no
11276 hardcode_into_libs=yes
11277 ;;
11278
11279 uts4*)
11280 version_type=linux
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11284 ;;
11285
11286 *)
11287 dynamic_linker=no
11288 ;;
11289 esac
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11291 $as_echo "$dynamic_linker" >&6; }
11292 test "$dynamic_linker" = no && can_build_shared=no
11293
11294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11295 if test "$GCC" = yes; then
11296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11297 fi
11298
11299 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11300 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11301 fi
11302 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11303 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11304 fi
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11399 hardcode_action=
11400 if test -n "$hardcode_libdir_flag_spec" ||
11401 test -n "$runpath_var" ||
11402 test "X$hardcode_automatic" = "Xyes" ; then
11403
11404 # We can hardcode non-existent directories.
11405 if test "$hardcode_direct" != no &&
11406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11407 # have to relink, otherwise we might link with an installed library
11408 # when we should be linking with a yet-to-be-installed one
11409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11410 test "$hardcode_minus_L" != no; then
11411 # Linking always hardcodes the temporary library directory.
11412 hardcode_action=relink
11413 else
11414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11415 hardcode_action=immediate
11416 fi
11417 else
11418 # We cannot hardcode anything, or else we can only hardcode existing
11419 # directories.
11420 hardcode_action=unsupported
11421 fi
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11423 $as_echo "$hardcode_action" >&6; }
11424
11425 if test "$hardcode_action" = relink ||
11426 test "$inherit_rpath" = yes; then
11427 # Fast installation is not supported
11428 enable_fast_install=no
11429 elif test "$shlibpath_overrides_runpath" = yes ||
11430 test "$enable_shared" = no; then
11431 # Fast installation is not necessary
11432 enable_fast_install=needless
11433 fi
11434
11435
11436
11437
11438
11439
11440 if test "x$enable_dlopen" != xyes; then
11441 enable_dlopen=unknown
11442 enable_dlopen_self=unknown
11443 enable_dlopen_self_static=unknown
11444 else
11445 lt_cv_dlopen=no
11446 lt_cv_dlopen_libs=
11447
11448 case $host_os in
11449 beos*)
11450 lt_cv_dlopen="load_add_on"
11451 lt_cv_dlopen_libs=
11452 lt_cv_dlopen_self=yes
11453 ;;
11454
11455 mingw* | pw32* | cegcc*)
11456 lt_cv_dlopen="LoadLibrary"
11457 lt_cv_dlopen_libs=
11458 ;;
11459
11460 cygwin*)
11461 lt_cv_dlopen="dlopen"
11462 lt_cv_dlopen_libs=
11463 ;;
11464
11465 darwin*)
11466 # if libdl is installed we need to link against it
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11468 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11469 if ${ac_cv_lib_dl_dlopen+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-ldl $LIBS"
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char dlopen ();
11484 int
11485 main ()
11486 {
11487 return dlopen ();
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_link "$LINENO"; then :
11493 ac_cv_lib_dl_dlopen=yes
11494 else
11495 ac_cv_lib_dl_dlopen=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11502 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11503 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11505 else
11506
11507 lt_cv_dlopen="dyld"
11508 lt_cv_dlopen_libs=
11509 lt_cv_dlopen_self=yes
11510
11511 fi
11512
11513 ;;
11514
11515 *)
11516 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11517 if test "x$ac_cv_func_shl_load" = xyes; then :
11518 lt_cv_dlopen="shl_load"
11519 else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11521 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11522 if ${ac_cv_lib_dld_shl_load+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-ldld $LIBS"
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11533 #ifdef __cplusplus
11534 extern "C"
11535 #endif
11536 char shl_load ();
11537 int
11538 main ()
11539 {
11540 return shl_load ();
11541 ;
11542 return 0;
11543 }
11544 _ACEOF
11545 if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_dld_shl_load=yes
11547 else
11548 ac_cv_lib_dld_shl_load=no
11549 fi
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11555 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11556 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11557 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11558 else
11559 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11560 if test "x$ac_cv_func_dlopen" = xyes; then :
11561 lt_cv_dlopen="dlopen"
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11564 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11565 if ${ac_cv_lib_dl_dlopen+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-ldl $LIBS"
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char dlopen ();
11580 int
11581 main ()
11582 {
11583 return dlopen ();
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_dl_dlopen=yes
11590 else
11591 ac_cv_lib_dl_dlopen=no
11592 fi
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11598 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11599 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11603 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11604 if ${ac_cv_lib_svld_dlopen+:} false; then :
11605 $as_echo_n "(cached) " >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lsvld $LIBS"
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11611
11612 /* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 char dlopen ();
11619 int
11620 main ()
11621 {
11622 return dlopen ();
11623 ;
11624 return 0;
11625 }
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_svld_dlopen=yes
11629 else
11630 ac_cv_lib_svld_dlopen=no
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11637 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11638 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11643 if ${ac_cv_lib_dld_dld_link+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-ldld $LIBS"
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11654 #ifdef __cplusplus
11655 extern "C"
11656 #endif
11657 char dld_link ();
11658 int
11659 main ()
11660 {
11661 return dld_link ();
11662 ;
11663 return 0;
11664 }
11665 _ACEOF
11666 if ac_fn_c_try_link "$LINENO"; then :
11667 ac_cv_lib_dld_dld_link=yes
11668 else
11669 ac_cv_lib_dld_dld_link=no
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11678 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11679 fi
11680
11681
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693
11694 fi
11695
11696 ;;
11697 esac
11698
11699 if test "x$lt_cv_dlopen" != xno; then
11700 enable_dlopen=yes
11701 else
11702 enable_dlopen=no
11703 fi
11704
11705 case $lt_cv_dlopen in
11706 dlopen)
11707 save_CPPFLAGS="$CPPFLAGS"
11708 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11709
11710 save_LDFLAGS="$LDFLAGS"
11711 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11712
11713 save_LIBS="$LIBS"
11714 LIBS="$lt_cv_dlopen_libs $LIBS"
11715
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11717 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11718 if ${lt_cv_dlopen_self+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 if test "$cross_compiling" = yes; then :
11722 lt_cv_dlopen_self=cross
11723 else
11724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725 lt_status=$lt_dlunknown
11726 cat > conftest.$ac_ext <<_LT_EOF
11727 #line $LINENO "configure"
11728 #include "confdefs.h"
11729
11730 #if HAVE_DLFCN_H
11731 #include <dlfcn.h>
11732 #endif
11733
11734 #include <stdio.h>
11735
11736 #ifdef RTLD_GLOBAL
11737 # define LT_DLGLOBAL RTLD_GLOBAL
11738 #else
11739 # ifdef DL_GLOBAL
11740 # define LT_DLGLOBAL DL_GLOBAL
11741 # else
11742 # define LT_DLGLOBAL 0
11743 # endif
11744 #endif
11745
11746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747 find out it does not work in some platform. */
11748 #ifndef LT_DLLAZY_OR_NOW
11749 # ifdef RTLD_LAZY
11750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11751 # else
11752 # ifdef DL_LAZY
11753 # define LT_DLLAZY_OR_NOW DL_LAZY
11754 # else
11755 # ifdef RTLD_NOW
11756 # define LT_DLLAZY_OR_NOW RTLD_NOW
11757 # else
11758 # ifdef DL_NOW
11759 # define LT_DLLAZY_OR_NOW DL_NOW
11760 # else
11761 # define LT_DLLAZY_OR_NOW 0
11762 # endif
11763 # endif
11764 # endif
11765 # endif
11766 #endif
11767
11768 /* When -fvisbility=hidden is used, assume the code has been annotated
11769 correspondingly for the symbols needed. */
11770 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11771 int fnord () __attribute__((visibility("default")));
11772 #endif
11773
11774 int fnord () { return 42; }
11775 int main ()
11776 {
11777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778 int status = $lt_dlunknown;
11779
11780 if (self)
11781 {
11782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11783 else
11784 {
11785 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11786 else puts (dlerror ());
11787 }
11788 /* dlclose (self); */
11789 }
11790 else
11791 puts (dlerror ());
11792
11793 return status;
11794 }
11795 _LT_EOF
11796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11797 (eval $ac_link) 2>&5
11798 ac_status=$?
11799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11801 (./conftest; exit; ) >&5 2>/dev/null
11802 lt_status=$?
11803 case x$lt_status in
11804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11807 esac
11808 else :
11809 # compilation failed
11810 lt_cv_dlopen_self=no
11811 fi
11812 fi
11813 rm -fr conftest*
11814
11815
11816 fi
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11818 $as_echo "$lt_cv_dlopen_self" >&6; }
11819
11820 if test "x$lt_cv_dlopen_self" = xyes; then
11821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11823 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11824 if ${lt_cv_dlopen_self_static+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 if test "$cross_compiling" = yes; then :
11828 lt_cv_dlopen_self_static=cross
11829 else
11830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11831 lt_status=$lt_dlunknown
11832 cat > conftest.$ac_ext <<_LT_EOF
11833 #line $LINENO "configure"
11834 #include "confdefs.h"
11835
11836 #if HAVE_DLFCN_H
11837 #include <dlfcn.h>
11838 #endif
11839
11840 #include <stdio.h>
11841
11842 #ifdef RTLD_GLOBAL
11843 # define LT_DLGLOBAL RTLD_GLOBAL
11844 #else
11845 # ifdef DL_GLOBAL
11846 # define LT_DLGLOBAL DL_GLOBAL
11847 # else
11848 # define LT_DLGLOBAL 0
11849 # endif
11850 #endif
11851
11852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11853 find out it does not work in some platform. */
11854 #ifndef LT_DLLAZY_OR_NOW
11855 # ifdef RTLD_LAZY
11856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11857 # else
11858 # ifdef DL_LAZY
11859 # define LT_DLLAZY_OR_NOW DL_LAZY
11860 # else
11861 # ifdef RTLD_NOW
11862 # define LT_DLLAZY_OR_NOW RTLD_NOW
11863 # else
11864 # ifdef DL_NOW
11865 # define LT_DLLAZY_OR_NOW DL_NOW
11866 # else
11867 # define LT_DLLAZY_OR_NOW 0
11868 # endif
11869 # endif
11870 # endif
11871 # endif
11872 #endif
11873
11874 /* When -fvisbility=hidden is used, assume the code has been annotated
11875 correspondingly for the symbols needed. */
11876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11877 int fnord () __attribute__((visibility("default")));
11878 #endif
11879
11880 int fnord () { return 42; }
11881 int main ()
11882 {
11883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11884 int status = $lt_dlunknown;
11885
11886 if (self)
11887 {
11888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11889 else
11890 {
11891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11892 else puts (dlerror ());
11893 }
11894 /* dlclose (self); */
11895 }
11896 else
11897 puts (dlerror ());
11898
11899 return status;
11900 }
11901 _LT_EOF
11902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11903 (eval $ac_link) 2>&5
11904 ac_status=$?
11905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11907 (./conftest; exit; ) >&5 2>/dev/null
11908 lt_status=$?
11909 case x$lt_status in
11910 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11912 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11913 esac
11914 else :
11915 # compilation failed
11916 lt_cv_dlopen_self_static=no
11917 fi
11918 fi
11919 rm -fr conftest*
11920
11921
11922 fi
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11924 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11925 fi
11926
11927 CPPFLAGS="$save_CPPFLAGS"
11928 LDFLAGS="$save_LDFLAGS"
11929 LIBS="$save_LIBS"
11930 ;;
11931 esac
11932
11933 case $lt_cv_dlopen_self in
11934 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11935 *) enable_dlopen_self=unknown ;;
11936 esac
11937
11938 case $lt_cv_dlopen_self_static in
11939 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11940 *) enable_dlopen_self_static=unknown ;;
11941 esac
11942 fi
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960 striplib=
11961 old_striplib=
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11963 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11964 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11965 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11966 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968 $as_echo "yes" >&6; }
11969 else
11970 # FIXME - insert some real tests, host_os isn't really good enough
11971 case $host_os in
11972 darwin*)
11973 if test -n "$STRIP" ; then
11974 striplib="$STRIP -x"
11975 old_striplib="$STRIP -S"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11977 $as_echo "yes" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982 ;;
11983 *)
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 ;;
11987 esac
11988 fi
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001 # Report which library types will actually be built
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12003 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12005 $as_echo "$can_build_shared" >&6; }
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12008 $as_echo_n "checking whether to build shared libraries... " >&6; }
12009 test "$can_build_shared" = "no" && enable_shared=no
12010
12011 # On AIX, shared libraries and static libraries use the same namespace, and
12012 # are all built from PIC.
12013 case $host_os in
12014 aix3*)
12015 test "$enable_shared" = yes && enable_static=no
12016 if test -n "$RANLIB"; then
12017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12018 postinstall_cmds='$RANLIB $lib'
12019 fi
12020 ;;
12021
12022 aix[4-9]*)
12023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12024 test "$enable_shared" = yes && enable_static=no
12025 fi
12026 ;;
12027 esac
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12029 $as_echo "$enable_shared" >&6; }
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12032 $as_echo_n "checking whether to build static libraries... " >&6; }
12033 # Make sure either enable_shared or enable_static is yes.
12034 test "$enable_shared" = yes || enable_static=yes
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12036 $as_echo "$enable_static" >&6; }
12037
12038
12039
12040
12041 fi
12042 ac_ext=c
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
12048 CC="$lt_save_CC"
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062 ac_config_commands="$ac_config_commands libtool"
12063
12064
12065
12066
12067 # Only expand once:
12068
12069
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12071 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12072 if ${libltdl_cv_shlibext+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075
12076 module=yes
12077 eval libltdl_cv_shlibext=$shrext_cmds
12078
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12081 $as_echo "$libltdl_cv_shlibext" >&6; }
12082 if test -n "$libltdl_cv_shlibext"; then
12083
12084 cat >>confdefs.h <<_ACEOF
12085 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12086 _ACEOF
12087
12088 fi
12089
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12091 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12092 if ${lt_cv_module_path_var+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 lt_cv_module_path_var="$shlibpath_var"
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12098 $as_echo "$lt_cv_module_path_var" >&6; }
12099 if test -n "$lt_cv_module_path_var"; then
12100
12101 cat >>confdefs.h <<_ACEOF
12102 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12103 _ACEOF
12104
12105 fi
12106
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12108 $as_echo_n "checking for the default library search path... " >&6; }
12109 if ${lt_cv_sys_dlsearch_path+:} false; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12115 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12116 if test -n "$lt_cv_sys_dlsearch_path"; then
12117 sys_dlsearch_path=
12118 for dir in $lt_cv_sys_dlsearch_path; do
12119 if test -z "$sys_dlsearch_path"; then
12120 sys_dlsearch_path="$dir"
12121 else
12122 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12123 fi
12124 done
12125
12126 cat >>confdefs.h <<_ACEOF
12127 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12128 _ACEOF
12129
12130 fi
12131
12132
12133 LT_DLLOADERS=
12134
12135
12136 ac_ext=c
12137 ac_cpp='$CPP $CPPFLAGS'
12138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12141
12142
12143 LIBADD_DLOPEN=
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12145 $as_echo_n "checking for library containing dlopen... " >&6; }
12146 if ${ac_cv_search_dlopen+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 ac_func_search_save_LIBS=$LIBS
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char dlopen ();
12160 int
12161 main ()
12162 {
12163 return dlopen ();
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 for ac_lib in '' dl; do
12169 if test -z "$ac_lib"; then
12170 ac_res="none required"
12171 else
12172 ac_res=-l$ac_lib
12173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12174 fi
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 ac_cv_search_dlopen=$ac_res
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext
12180 if ${ac_cv_search_dlopen+:} false; then :
12181 break
12182 fi
12183 done
12184 if ${ac_cv_search_dlopen+:} false; then :
12185
12186 else
12187 ac_cv_search_dlopen=no
12188 fi
12189 rm conftest.$ac_ext
12190 LIBS=$ac_func_search_save_LIBS
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12193 $as_echo "$ac_cv_search_dlopen" >&6; }
12194 ac_res=$ac_cv_search_dlopen
12195 if test "$ac_res" != no; then :
12196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12197
12198 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12199
12200 if test "$ac_cv_search_dlopen" != "none required" ; then
12201 LIBADD_DLOPEN="-ldl"
12202 fi
12203 libltdl_cv_lib_dl_dlopen="yes"
12204 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12205 else
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 #if HAVE_DLFCN_H
12209 # include <dlfcn.h>
12210 #endif
12211
12212 int
12213 main ()
12214 {
12215 dlopen(0, 0);
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221
12222 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12223
12224 libltdl_cv_func_dlopen="yes"
12225 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12228 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12229 if ${ac_cv_lib_svld_dlopen+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lsvld $LIBS"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236
12237 /* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240 #ifdef __cplusplus
12241 extern "C"
12242 #endif
12243 char dlopen ();
12244 int
12245 main ()
12246 {
12247 return dlopen ();
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253 ac_cv_lib_svld_dlopen=yes
12254 else
12255 ac_cv_lib_svld_dlopen=no
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259 LIBS=$ac_check_lib_save_LIBS
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12262 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12263 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12264
12265 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12266
12267 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12269 fi
12270
12271 fi
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274 fi
12275
12276 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12277 then
12278 lt_save_LIBS="$LIBS"
12279 LIBS="$LIBS $LIBADD_DLOPEN"
12280 for ac_func in dlerror
12281 do :
12282 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12283 if test "x$ac_cv_func_dlerror" = xyes; then :
12284 cat >>confdefs.h <<_ACEOF
12285 #define HAVE_DLERROR 1
12286 _ACEOF
12287
12288 fi
12289 done
12290
12291 LIBS="$lt_save_LIBS"
12292 fi
12293
12294
12295 LIBADD_SHL_LOAD=
12296 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12297 if test "x$ac_cv_func_shl_load" = xyes; then :
12298
12299 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12300
12301 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12304 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12305 if ${ac_cv_lib_dld_shl_load+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 ac_check_lib_save_LIBS=$LIBS
12309 LIBS="-ldld $LIBS"
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char shl_load ();
12320 int
12321 main ()
12322 {
12323 return shl_load ();
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_link "$LINENO"; then :
12329 ac_cv_lib_dld_shl_load=yes
12330 else
12331 ac_cv_lib_dld_shl_load=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12338 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12339 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12340
12341 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12342
12343 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12344 LIBADD_SHL_LOAD="-ldld"
12345 fi
12346
12347 fi
12348
12349
12350
12351 case $host_os in
12352 darwin[1567].*)
12353 # We only want this for pre-Mac OS X 10.4.
12354 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12355 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12356
12357 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12358
12359 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12360 fi
12361
12362 ;;
12363 beos*)
12364 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12365 ;;
12366 cygwin* | mingw* | os2* | pw32*)
12367 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12368 "
12369 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12370 ac_have_decl=1
12371 else
12372 ac_have_decl=0
12373 fi
12374
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12377 _ACEOF
12378
12379 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12380 ;;
12381 esac
12382
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12384 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12385 if ${ac_cv_lib_dld_dld_link+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-ldld $LIBS"
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char dld_link ();
12400 int
12401 main ()
12402 {
12403 return dld_link ();
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409 ac_cv_lib_dld_dld_link=yes
12410 else
12411 ac_cv_lib_dld_dld_link=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12418 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12419 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12420
12421 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12422
12423 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12424 fi
12425
12426
12427
12428
12429 LT_DLPREOPEN=
12430 if test -n "$LT_DLLOADERS"
12431 then
12432 for lt_loader in $LT_DLLOADERS; do
12433 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12434 done
12435
12436 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12437
12438 fi
12439
12440
12441 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12442
12443
12444 ac_ext=c
12445 ac_cpp='$CPP $CPPFLAGS'
12446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12449
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12452 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12453 if ${lt_cv_sys_symbol_underscore+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 lt_cv_sys_symbol_underscore=no
12457 cat > conftest.$ac_ext <<_LT_EOF
12458 void nm_test_func(){}
12459 int main(){nm_test_func;return 0;}
12460 _LT_EOF
12461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12462 (eval $ac_compile) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; }; then
12466 # Now try to grab the symbols.
12467 ac_nlist=conftest.nm
12468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12470 ac_status=$?
12471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472 test $ac_status = 0; } && test -s "$ac_nlist"; then
12473 # See whether the symbols have a leading underscore.
12474 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12475 lt_cv_sys_symbol_underscore=yes
12476 else
12477 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12478 :
12479 else
12480 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12481 fi
12482 fi
12483 else
12484 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12485 fi
12486 else
12487 echo "configure: failed program was:" >&5
12488 cat conftest.c >&5
12489 fi
12490 rm -rf conftest*
12491
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12494 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12495 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12496
12497
12498 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12499 if test x"$libltdl_cv_func_dlopen" = xyes ||
12500 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12502 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12503 if ${libltdl_cv_need_uscore+:} false; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 libltdl_cv_need_uscore=unknown
12507 save_LIBS="$LIBS"
12508 LIBS="$LIBS $LIBADD_DLOPEN"
12509 if test "$cross_compiling" = yes; then :
12510 libltdl_cv_need_uscore=cross
12511 else
12512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12513 lt_status=$lt_dlunknown
12514 cat > conftest.$ac_ext <<_LT_EOF
12515 #line $LINENO "configure"
12516 #include "confdefs.h"
12517
12518 #if HAVE_DLFCN_H
12519 #include <dlfcn.h>
12520 #endif
12521
12522 #include <stdio.h>
12523
12524 #ifdef RTLD_GLOBAL
12525 # define LT_DLGLOBAL RTLD_GLOBAL
12526 #else
12527 # ifdef DL_GLOBAL
12528 # define LT_DLGLOBAL DL_GLOBAL
12529 # else
12530 # define LT_DLGLOBAL 0
12531 # endif
12532 #endif
12533
12534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12535 find out it does not work in some platform. */
12536 #ifndef LT_DLLAZY_OR_NOW
12537 # ifdef RTLD_LAZY
12538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12539 # else
12540 # ifdef DL_LAZY
12541 # define LT_DLLAZY_OR_NOW DL_LAZY
12542 # else
12543 # ifdef RTLD_NOW
12544 # define LT_DLLAZY_OR_NOW RTLD_NOW
12545 # else
12546 # ifdef DL_NOW
12547 # define LT_DLLAZY_OR_NOW DL_NOW
12548 # else
12549 # define LT_DLLAZY_OR_NOW 0
12550 # endif
12551 # endif
12552 # endif
12553 # endif
12554 #endif
12555
12556 /* When -fvisbility=hidden is used, assume the code has been annotated
12557 correspondingly for the symbols needed. */
12558 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12559 int fnord () __attribute__((visibility("default")));
12560 #endif
12561
12562 int fnord () { return 42; }
12563 int main ()
12564 {
12565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12566 int status = $lt_dlunknown;
12567
12568 if (self)
12569 {
12570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12571 else
12572 {
12573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12574 else puts (dlerror ());
12575 }
12576 /* dlclose (self); */
12577 }
12578 else
12579 puts (dlerror ());
12580
12581 return status;
12582 }
12583 _LT_EOF
12584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12585 (eval $ac_link) 2>&5
12586 ac_status=$?
12587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12589 (./conftest; exit; ) >&5 2>/dev/null
12590 lt_status=$?
12591 case x$lt_status in
12592 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12593 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12594 x$lt_dlunknown|x*) ;;
12595 esac
12596 else :
12597 # compilation failed
12598
12599 fi
12600 fi
12601 rm -fr conftest*
12602
12603 LIBS="$save_LIBS"
12604
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12607 $as_echo "$libltdl_cv_need_uscore" >&6; }
12608 fi
12609 fi
12610
12611 if test x"$libltdl_cv_need_uscore" = xyes; then
12612
12613 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12614
12615 fi
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12618 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12619 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 # PORTME does your system automatically load deplibs for dlopen?
12623 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12624 # For now, we just catch OSes we know something about -- in the
12625 # future, we'll try test this programmatically.
12626 lt_cv_sys_dlopen_deplibs=unknown
12627 case $host_os in
12628 aix3*|aix4.1.*|aix4.2.*)
12629 # Unknown whether this is true for these versions of AIX, but
12630 # we want this `case' here to explicitly catch those versions.
12631 lt_cv_sys_dlopen_deplibs=unknown
12632 ;;
12633 aix[4-9]*)
12634 lt_cv_sys_dlopen_deplibs=yes
12635 ;;
12636 amigaos*)
12637 case $host_cpu in
12638 powerpc)
12639 lt_cv_sys_dlopen_deplibs=no
12640 ;;
12641 esac
12642 ;;
12643 darwin*)
12644 # Assuming the user has installed a libdl from somewhere, this is true
12645 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12646 lt_cv_sys_dlopen_deplibs=yes
12647 ;;
12648 freebsd* | dragonfly*)
12649 lt_cv_sys_dlopen_deplibs=yes
12650 ;;
12651 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12652 # GNU and its variants, using gnu ld.so (Glibc)
12653 lt_cv_sys_dlopen_deplibs=yes
12654 ;;
12655 hpux10*|hpux11*)
12656 lt_cv_sys_dlopen_deplibs=yes
12657 ;;
12658 interix*)
12659 lt_cv_sys_dlopen_deplibs=yes
12660 ;;
12661 irix[12345]*|irix6.[01]*)
12662 # Catch all versions of IRIX before 6.2, and indicate that we don't
12663 # know how it worked for any of those versions.
12664 lt_cv_sys_dlopen_deplibs=unknown
12665 ;;
12666 irix*)
12667 # The case above catches anything before 6.2, and it's known that
12668 # at 6.2 and later dlopen does load deplibs.
12669 lt_cv_sys_dlopen_deplibs=yes
12670 ;;
12671 netbsd*)
12672 lt_cv_sys_dlopen_deplibs=yes
12673 ;;
12674 openbsd*)
12675 lt_cv_sys_dlopen_deplibs=yes
12676 ;;
12677 osf[1234]*)
12678 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12679 # it did *not* use an RPATH in a shared library to find objects the
12680 # library depends on, so we explicitly say `no'.
12681 lt_cv_sys_dlopen_deplibs=no
12682 ;;
12683 osf5.0|osf5.0a|osf5.1)
12684 # dlopen *does* load deplibs and with the right loader patch applied
12685 # it even uses RPATH in a shared library to search for shared objects
12686 # that the library depends on, but there's no easy way to know if that
12687 # patch is installed. Since this is the case, all we can really
12688 # say is unknown -- it depends on the patch being installed. If
12689 # it is, this changes to `yes'. Without it, it would be `no'.
12690 lt_cv_sys_dlopen_deplibs=unknown
12691 ;;
12692 osf*)
12693 # the two cases above should catch all versions of osf <= 5.1. Read
12694 # the comments above for what we know about them.
12695 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12696 # is used to find them so we can finally say `yes'.
12697 lt_cv_sys_dlopen_deplibs=yes
12698 ;;
12699 qnx*)
12700 lt_cv_sys_dlopen_deplibs=yes
12701 ;;
12702 solaris*)
12703 lt_cv_sys_dlopen_deplibs=yes
12704 ;;
12705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12706 libltdl_cv_sys_dlopen_deplibs=yes
12707 ;;
12708 esac
12709
12710 fi
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12712 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12713 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12714
12715 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12716
12717 fi
12718
12719 :
12720
12721 for ac_header in argz.h
12722 do :
12723 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12724 "
12725 if test "x$ac_cv_header_argz_h" = xyes; then :
12726 cat >>confdefs.h <<_ACEOF
12727 #define HAVE_ARGZ_H 1
12728 _ACEOF
12729
12730 fi
12731
12732 done
12733
12734
12735 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12736 # include <argz.h>
12737 #endif
12738 "
12739 if test "x$ac_cv_type_error_t" = xyes; then :
12740
12741 cat >>confdefs.h <<_ACEOF
12742 #define HAVE_ERROR_T 1
12743 _ACEOF
12744
12745
12746 else
12747
12748 $as_echo "#define error_t int" >>confdefs.h
12749
12750
12751 $as_echo "#define __error_t_defined 1" >>confdefs.h
12752
12753 fi
12754
12755
12756 ARGZ_H=
12757 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12758 argz_next argz_stringify
12759 do :
12760 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12763 cat >>confdefs.h <<_ACEOF
12764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12765 _ACEOF
12766
12767 else
12768 ARGZ_H=argz.h;
12769
12770 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12771
12772 fi
12773 done
12774
12775
12776 if test -z "$ARGZ_H"; then :
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12778 $as_echo_n "checking if argz actually works... " >&6; }
12779 if ${lt_cv_sys_argz_works+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 case $host_os in #(
12783 *cygwin*)
12784 lt_cv_sys_argz_works=no
12785 if test "$cross_compiling" != no; then
12786 lt_cv_sys_argz_works="guessing no"
12787 else
12788 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12789 save_IFS=$IFS
12790 IFS=-.
12791 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12792 IFS=$save_IFS
12793 lt_os_major=${2-0}
12794 lt_os_minor=${3-0}
12795 lt_os_micro=${4-0}
12796 if test "$lt_os_major" -gt 1 \
12797 || { test "$lt_os_major" -eq 1 \
12798 && { test "$lt_os_minor" -gt 5 \
12799 || { test "$lt_os_minor" -eq 5 \
12800 && test "$lt_os_micro" -gt 24; }; }; }; then
12801 lt_cv_sys_argz_works=yes
12802 fi
12803 fi
12804 ;; #(
12805 *) lt_cv_sys_argz_works=yes ;;
12806 esac
12807 fi
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12809 $as_echo "$lt_cv_sys_argz_works" >&6; }
12810 if test "$lt_cv_sys_argz_works" = yes; then :
12811
12812 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12813
12814 else
12815 ARGZ_H=argz.h
12816
12817
12818 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12819
12820 fi
12821 fi
12822
12823
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12826 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12827 if ${libltdl_cv_preloaded_symbols+:} false; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12831 libltdl_cv_preloaded_symbols=yes
12832 else
12833 libltdl_cv_preloaded_symbols=no
12834 fi
12835
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12838 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12839 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12840
12841 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12842
12843 fi
12844
12845 # Set options
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857 # Check whether --with-included_ltdl was given.
12858 if test "${with_included_ltdl+set}" = set; then :
12859 withval=$with_included_ltdl;
12860 fi
12861
12862
12863 if test "x$with_included_ltdl" != xyes; then
12864 # We are not being forced to use the included libltdl sources, so
12865 # decide whether there is a useful installed version we can use.
12866 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12867
12868 "
12869 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12870 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12871 #include <ltdl.h>
12872 "
12873 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12875 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12876 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 ac_check_lib_save_LIBS=$LIBS
12880 LIBS="-lltdl $LIBS"
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12883
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char lt_dladvise_preload ();
12891 int
12892 main ()
12893 {
12894 return lt_dladvise_preload ();
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 if ac_fn_c_try_link "$LINENO"; then :
12900 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12901 else
12902 ac_cv_lib_ltdl_lt_dladvise_preload=no
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12906 LIBS=$ac_check_lib_save_LIBS
12907 fi
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12909 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12910 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12911 with_included_ltdl=no
12912 else
12913 with_included_ltdl=yes
12914 fi
12915
12916 else
12917 with_included_ltdl=yes
12918 fi
12919
12920 else
12921 with_included_ltdl=yes
12922 fi
12923
12924
12925 fi
12926
12927
12928
12929
12930 # Check whether --with-ltdl_include was given.
12931 if test "${with_ltdl_include+set}" = set; then :
12932 withval=$with_ltdl_include;
12933 fi
12934
12935
12936 if test -n "$with_ltdl_include"; then
12937 if test -f "$with_ltdl_include/ltdl.h"; then :
12938 else
12939 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12940 fi
12941 else
12942 with_ltdl_include=no
12943 fi
12944
12945
12946 # Check whether --with-ltdl_lib was given.
12947 if test "${with_ltdl_lib+set}" = set; then :
12948 withval=$with_ltdl_lib;
12949 fi
12950
12951
12952 if test -n "$with_ltdl_lib"; then
12953 if test -f "$with_ltdl_lib/libltdl.la"; then :
12954 else
12955 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12956 fi
12957 else
12958 with_ltdl_lib=no
12959 fi
12960
12961 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12962 ,yes,no,no,)
12963 case $enable_ltdl_convenience in
12964 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12965 "") enable_ltdl_convenience=yes
12966 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12967 esac
12968 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12969 LTDLDEPS=$LIBLTDL
12970 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12971
12972
12973
12974
12975
12976 # For backwards non-gettext consistent compatibility...
12977 INCLTDL="$LTDLINCL"
12978
12979
12980 ;;
12981 ,no,no,no,)
12982 # If the included ltdl is not to be used, then use the
12983 # preinstalled libltdl we found.
12984
12985 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12986
12987 LIBLTDL=-lltdl
12988 LTDLDEPS=
12989 LTDLINCL=
12990 ;;
12991 ,no*,no,*)
12992 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12993 ;;
12994 *) with_included_ltdl=no
12995 LIBLTDL="-L$with_ltdl_lib -lltdl"
12996 LTDLDEPS=
12997 LTDLINCL="-I$with_ltdl_include"
12998 ;;
12999 esac
13000 INCLTDL="$LTDLINCL"
13001
13002 # Report our decision...
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13004 $as_echo_n "checking where to find libltdl headers... " >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13006 $as_echo "$LTDLINCL" >&6; }
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13008 $as_echo_n "checking where to find libltdl library... " >&6; }
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13010 $as_echo "$LIBLTDL" >&6; }
13011
13012
13013
13014 # Check whether --enable-ltdl-install was given.
13015 if test "${enable_ltdl_install+set}" = set; then :
13016 enableval=$enable_ltdl_install;
13017 fi
13018
13019
13020 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13021 *yes*) ;;
13022 *) enable_ltdl_convenience=yes ;;
13023 esac
13024
13025 if test x"${enable_ltdl_install-no}" != xno; then
13026 INSTALL_LTDL_TRUE=
13027 INSTALL_LTDL_FALSE='#'
13028 else
13029 INSTALL_LTDL_TRUE='#'
13030 INSTALL_LTDL_FALSE=
13031 fi
13032
13033 if test x"${enable_ltdl_convenience-no}" != xno; then
13034 CONVENIENCE_LTDL_TRUE=
13035 CONVENIENCE_LTDL_FALSE='#'
13036 else
13037 CONVENIENCE_LTDL_TRUE='#'
13038 CONVENIENCE_LTDL_FALSE=
13039 fi
13040
13041
13042
13043
13044
13045
13046 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13047 # the user used. This is so that ltdl.h can pick up the parent projects
13048 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13049 # definitions required by ltdl.c.
13050 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13051
13052
13053
13054 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13055 do :
13056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13057 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13058 "
13059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13060 cat >>confdefs.h <<_ACEOF
13061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13062 _ACEOF
13063
13064 fi
13065
13066 done
13067
13068
13069 for ac_func in closedir opendir readdir
13070 do :
13071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13074 cat >>confdefs.h <<_ACEOF
13075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13076 _ACEOF
13077
13078 else
13079
13080
13081 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13082
13083 fi
13084 done
13085
13086 for ac_func in strlcat strlcpy
13087 do :
13088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13090 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13091 cat >>confdefs.h <<_ACEOF
13092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13093 _ACEOF
13094
13095 else
13096
13097
13098 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13099
13100 fi
13101 done
13102
13103
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define LT_LIBEXT "$libext"
13107 _ACEOF
13108
13109
13110 name=
13111 eval "lt_libprefix=\"$libname_spec\""
13112
13113 cat >>confdefs.h <<_ACEOF
13114 #define LT_LIBPREFIX "$lt_libprefix"
13115 _ACEOF
13116
13117
13118 name=ltdl
13119 eval "LTDLOPEN=\"$libname_spec\""
13120
13121
13122
13123
13124
13125
13126
13127
13128 # Only expand once:
13129
13130
13131 LIBTOOL="$LIBTOOL --silent"
13132
13133 # Checks for libraries.
13134
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13136 $as_echo_n "checking for library containing socket... " >&6; }
13137 if ${ac_cv_search_socket+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 ac_func_search_save_LIBS=$LIBS
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 char socket ();
13151 int
13152 main ()
13153 {
13154 return socket ();
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 for ac_lib in '' socket; do
13160 if test -z "$ac_lib"; then
13161 ac_res="none required"
13162 else
13163 ac_res=-l$ac_lib
13164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13165 fi
13166 if ac_fn_c_try_link "$LINENO"; then :
13167 ac_cv_search_socket=$ac_res
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext
13171 if ${ac_cv_search_socket+:} false; then :
13172 break
13173 fi
13174 done
13175 if ${ac_cv_search_socket+:} false; then :
13176
13177 else
13178 ac_cv_search_socket=no
13179 fi
13180 rm conftest.$ac_ext
13181 LIBS=$ac_func_search_save_LIBS
13182 fi
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13184 $as_echo "$ac_cv_search_socket" >&6; }
13185 ac_res=$ac_cv_search_socket
13186 if test "$ac_res" != no; then :
13187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13188
13189 else
13190 as_fn_error $? "socket library not found" "$LINENO" 5
13191 fi
13192
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13194 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13195 if ${ac_cv_search_inet_ntoa+:} false; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 ac_func_search_save_LIBS=$LIBS
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char inet_ntoa ();
13209 int
13210 main ()
13211 {
13212 return inet_ntoa ();
13213 ;
13214 return 0;
13215 }
13216 _ACEOF
13217 for ac_lib in '' nsl; do
13218 if test -z "$ac_lib"; then
13219 ac_res="none required"
13220 else
13221 ac_res=-l$ac_lib
13222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13223 fi
13224 if ac_fn_c_try_link "$LINENO"; then :
13225 ac_cv_search_inet_ntoa=$ac_res
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext
13229 if ${ac_cv_search_inet_ntoa+:} false; then :
13230 break
13231 fi
13232 done
13233 if ${ac_cv_search_inet_ntoa+:} false; then :
13234
13235 else
13236 ac_cv_search_inet_ntoa=no
13237 fi
13238 rm conftest.$ac_ext
13239 LIBS=$ac_func_search_save_LIBS
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13242 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13243 ac_res=$ac_cv_search_inet_ntoa
13244 if test "$ac_res" != no; then :
13245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13246
13247 fi
13248
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13250 $as_echo_n "checking for library containing inet_aton... " >&6; }
13251 if ${ac_cv_search_inet_aton+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 ac_func_search_save_LIBS=$LIBS
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261 #ifdef __cplusplus
13262 extern "C"
13263 #endif
13264 char inet_aton ();
13265 int
13266 main ()
13267 {
13268 return inet_aton ();
13269 ;
13270 return 0;
13271 }
13272 _ACEOF
13273 for ac_lib in '' resolv; do
13274 if test -z "$ac_lib"; then
13275 ac_res="none required"
13276 else
13277 ac_res=-l$ac_lib
13278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13279 fi
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_search_inet_aton=$ac_res
13282 fi
13283 rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext
13285 if ${ac_cv_search_inet_aton+:} false; then :
13286 break
13287 fi
13288 done
13289 if ${ac_cv_search_inet_aton+:} false; then :
13290
13291 else
13292 ac_cv_search_inet_aton=no
13293 fi
13294 rm conftest.$ac_ext
13295 LIBS=$ac_func_search_save_LIBS
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13298 $as_echo "$ac_cv_search_inet_aton" >&6; }
13299 ac_res=$ac_cv_search_inet_aton
13300 if test "$ac_res" != no; then :
13301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13302
13303 fi
13304
13305 for ac_func in inet_aton inet_ntop inet_pton
13306 do :
13307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13309 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13310 cat >>confdefs.h <<_ACEOF
13311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13312 _ACEOF
13313
13314 fi
13315 done
13316
13317 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13318 #include <sys/socket.h>
13319 #include <netdb.h>
13320
13321 "
13322 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13323
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_STRUCT_SOCKADDR_IN 1
13326 _ACEOF
13327
13328
13329 fi
13330 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13331 #include <sys/socket.h>
13332 #include <netdb.h>
13333
13334 "
13335 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13336
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13339 _ACEOF
13340
13341
13342 fi
13343 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13344 #include <sys/socket.h>
13345 #include <netdb.h>
13346
13347 "
13348 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13349
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_STRUCT_ADDRINFO 1
13352 _ACEOF
13353
13354
13355 fi
13356
13357 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13358 <sys/socket.h>
13359 "
13360 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13361
13362 cat >>confdefs.h <<_ACEOF
13363 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13364 _ACEOF
13365
13366
13367 fi
13368
13369
13370
13371 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
13372 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13373
13374 cat >>confdefs.h <<_ACEOF
13375 #define HAVE_STRUCT_SOCKADDR_IN6 1
13376 _ACEOF
13377
13378
13379 else
13380
13381 $as_echo "#define IPV6 1" >>confdefs.h
13382
13383 fi
13384
13385
13386
13387 # Checks for typedefs, structures, and compiler characteristics.
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13389 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13390 if ${ac_cv_c_bigendian+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 ac_cv_c_bigendian=unknown
13394 # See if we're dealing with a universal compiler.
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13397 #ifndef __APPLE_CC__
13398 not a universal capable compiler
13399 #endif
13400 typedef int dummy;
13401
13402 _ACEOF
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404
13405 # Check for potential -arch flags. It is not universal unless
13406 # there are at least two -arch flags with different values.
13407 ac_arch=
13408 ac_prev=
13409 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13410 if test -n "$ac_prev"; then
13411 case $ac_word in
13412 i?86 | x86_64 | ppc | ppc64)
13413 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13414 ac_arch=$ac_word
13415 else
13416 ac_cv_c_bigendian=universal
13417 break
13418 fi
13419 ;;
13420 esac
13421 ac_prev=
13422 elif test "x$ac_word" = "x-arch"; then
13423 ac_prev=arch
13424 fi
13425 done
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 if test $ac_cv_c_bigendian = unknown; then
13429 # See if sys/param.h defines the BYTE_ORDER macro.
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 #include <sys/types.h>
13433 #include <sys/param.h>
13434
13435 int
13436 main ()
13437 {
13438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13439 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13440 && LITTLE_ENDIAN)
13441 bogus endian macros
13442 #endif
13443
13444 ;
13445 return 0;
13446 }
13447 _ACEOF
13448 if ac_fn_c_try_compile "$LINENO"; then :
13449 # It does; now see whether it defined to BIG_ENDIAN or not.
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13452 #include <sys/types.h>
13453 #include <sys/param.h>
13454
13455 int
13456 main ()
13457 {
13458 #if BYTE_ORDER != BIG_ENDIAN
13459 not big endian
13460 #endif
13461
13462 ;
13463 return 0;
13464 }
13465 _ACEOF
13466 if ac_fn_c_try_compile "$LINENO"; then :
13467 ac_cv_c_bigendian=yes
13468 else
13469 ac_cv_c_bigendian=no
13470 fi
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 if test $ac_cv_c_bigendian = unknown; then
13476 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <limits.h>
13480
13481 int
13482 main ()
13483 {
13484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13485 bogus endian macros
13486 #endif
13487
13488 ;
13489 return 0;
13490 }
13491 _ACEOF
13492 if ac_fn_c_try_compile "$LINENO"; then :
13493 # It does; now see whether it defined to _BIG_ENDIAN or not.
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 #include <limits.h>
13497
13498 int
13499 main ()
13500 {
13501 #ifndef _BIG_ENDIAN
13502 not big endian
13503 #endif
13504
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 if ac_fn_c_try_compile "$LINENO"; then :
13510 ac_cv_c_bigendian=yes
13511 else
13512 ac_cv_c_bigendian=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 if test $ac_cv_c_bigendian = unknown; then
13519 # Compile a test program.
13520 if test "$cross_compiling" = yes; then :
13521 # Try to guess by grepping values from an object file.
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 short int ascii_mm[] =
13525 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13526 short int ascii_ii[] =
13527 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13528 int use_ascii (int i) {
13529 return ascii_mm[i] + ascii_ii[i];
13530 }
13531 short int ebcdic_ii[] =
13532 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13533 short int ebcdic_mm[] =
13534 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13535 int use_ebcdic (int i) {
13536 return ebcdic_mm[i] + ebcdic_ii[i];
13537 }
13538 extern int foo;
13539
13540 int
13541 main ()
13542 {
13543 return use_ascii (foo) == use_ebcdic (foo);
13544 ;
13545 return 0;
13546 }
13547 _ACEOF
13548 if ac_fn_c_try_compile "$LINENO"; then :
13549 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13550 ac_cv_c_bigendian=yes
13551 fi
13552 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13553 if test "$ac_cv_c_bigendian" = unknown; then
13554 ac_cv_c_bigendian=no
13555 else
13556 # finding both strings is unlikely to happen, but who knows?
13557 ac_cv_c_bigendian=unknown
13558 fi
13559 fi
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 else
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 int
13567 main ()
13568 {
13569
13570 /* Are we little or big endian? From Harbison&Steele. */
13571 union
13572 {
13573 long int l;
13574 char c[sizeof (long int)];
13575 } u;
13576 u.l = 1;
13577 return u.c[sizeof (long int) - 1] == 1;
13578
13579 ;
13580 return 0;
13581 }
13582 _ACEOF
13583 if ac_fn_c_try_run "$LINENO"; then :
13584 ac_cv_c_bigendian=no
13585 else
13586 ac_cv_c_bigendian=yes
13587 fi
13588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13589 conftest.$ac_objext conftest.beam conftest.$ac_ext
13590 fi
13591
13592 fi
13593 fi
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13595 $as_echo "$ac_cv_c_bigendian" >&6; }
13596 case $ac_cv_c_bigendian in #(
13597 yes)
13598 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13599 ;; #(
13600 no)
13601 ;; #(
13602 universal)
13603
13604 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13605
13606 ;; #(
13607 *)
13608 as_fn_error $? "unknown endianness
13609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13610 esac
13611
13612
13613 # The cast to long int works around a bug in the HP C Compiler
13614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13616 # This bug is HP SR number 8606223364.
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13618 $as_echo_n "checking size of short... " >&6; }
13619 if ${ac_cv_sizeof_short+:} false; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13623
13624 else
13625 if test "$ac_cv_type_short" = yes; then
13626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13628 as_fn_error 77 "cannot compute sizeof (short)
13629 See \`config.log' for more details" "$LINENO" 5; }
13630 else
13631 ac_cv_sizeof_short=0
13632 fi
13633 fi
13634
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13637 $as_echo "$ac_cv_sizeof_short" >&6; }
13638
13639
13640
13641 cat >>confdefs.h <<_ACEOF
13642 #define SIZEOF_SHORT $ac_cv_sizeof_short
13643 _ACEOF
13644
13645
13646 # The cast to long int works around a bug in the HP C Compiler
13647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13649 # This bug is HP SR number 8606223364.
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13651 $as_echo_n "checking size of int... " >&6; }
13652 if ${ac_cv_sizeof_int+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13656
13657 else
13658 if test "$ac_cv_type_int" = yes; then
13659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13661 as_fn_error 77 "cannot compute sizeof (int)
13662 See \`config.log' for more details" "$LINENO" 5; }
13663 else
13664 ac_cv_sizeof_int=0
13665 fi
13666 fi
13667
13668 fi
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13670 $as_echo "$ac_cv_sizeof_int" >&6; }
13671
13672
13673
13674 cat >>confdefs.h <<_ACEOF
13675 #define SIZEOF_INT $ac_cv_sizeof_int
13676 _ACEOF
13677
13678
13679 # The cast to long int works around a bug in the HP C Compiler
13680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13682 # This bug is HP SR number 8606223364.
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13684 $as_echo_n "checking size of long... " >&6; }
13685 if ${ac_cv_sizeof_long+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13689
13690 else
13691 if test "$ac_cv_type_long" = yes; then
13692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13694 as_fn_error 77 "cannot compute sizeof (long)
13695 See \`config.log' for more details" "$LINENO" 5; }
13696 else
13697 ac_cv_sizeof_long=0
13698 fi
13699 fi
13700
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13703 $as_echo "$ac_cv_sizeof_long" >&6; }
13704
13705
13706
13707 cat >>confdefs.h <<_ACEOF
13708 #define SIZEOF_LONG $ac_cv_sizeof_long
13709 _ACEOF
13710
13711
13712 # The cast to long int works around a bug in the HP C Compiler
13713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13715 # This bug is HP SR number 8606223364.
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13717 $as_echo_n "checking size of void *... " >&6; }
13718 if ${ac_cv_sizeof_void_p+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13722
13723 else
13724 if test "$ac_cv_type_void_p" = yes; then
13725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13727 as_fn_error 77 "cannot compute sizeof (void *)
13728 See \`config.log' for more details" "$LINENO" 5; }
13729 else
13730 ac_cv_sizeof_void_p=0
13731 fi
13732 fi
13733
13734 fi
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13736 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13737
13738
13739
13740 cat >>confdefs.h <<_ACEOF
13741 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13742 _ACEOF
13743
13744
13745 # The cast to long int works around a bug in the HP C Compiler
13746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13748 # This bug is HP SR number 8606223364.
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13750 $as_echo_n "checking size of int64_t... " >&6; }
13751 if ${ac_cv_sizeof_int64_t+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
13755
13756 else
13757 if test "$ac_cv_type_int64_t" = yes; then
13758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13760 as_fn_error 77 "cannot compute sizeof (int64_t)
13761 See \`config.log' for more details" "$LINENO" 5; }
13762 else
13763 ac_cv_sizeof_int64_t=0
13764 fi
13765 fi
13766
13767 fi
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13769 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
13770
13771
13772
13773 cat >>confdefs.h <<_ACEOF
13774 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
13775 _ACEOF
13776
13777
13778 # The cast to long int works around a bug in the HP C Compiler
13779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13781 # This bug is HP SR number 8606223364.
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13783 $as_echo_n "checking size of long long... " >&6; }
13784 if ${ac_cv_sizeof_long_long+:} false; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13788
13789 else
13790 if test "$ac_cv_type_long_long" = yes; then
13791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13793 as_fn_error 77 "cannot compute sizeof (long long)
13794 See \`config.log' for more details" "$LINENO" 5; }
13795 else
13796 ac_cv_sizeof_long_long=0
13797 fi
13798 fi
13799
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13802 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13803
13804
13805
13806 cat >>confdefs.h <<_ACEOF
13807 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13808 _ACEOF
13809
13810
13811
13812 # Checks for library functions.
13813
13814
13815
13816 for ac_func in $ac_func_list
13817 do :
13818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13820 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13823 _ACEOF
13824
13825 fi
13826 done
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842 # Checks for header files.
13843
13844
13845
13846 for ac_header in $ac_header_list
13847 do :
13848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13850 "
13851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13854 _ACEOF
13855
13856 fi
13857
13858 done
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886 # check for /dev/null so we can use it to hold evil fd's
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13888 $as_echo_n "checking for /dev/null... " >&6; }
13889 if test -c /dev/null; then :
13890
13891
13892 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13895 $as_echo "yes" >&6; }
13896 else
13897
13898
13899 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13902 $as_echo "no - using devnull.log" >&6; }
13903 fi
13904
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13907 $as_echo_n "checking for library containing crypt... " >&6; }
13908 if ${ac_cv_search_crypt+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 ac_func_search_save_LIBS=$LIBS
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13918 #ifdef __cplusplus
13919 extern "C"
13920 #endif
13921 char crypt ();
13922 int
13923 main ()
13924 {
13925 return crypt ();
13926 ;
13927 return 0;
13928 }
13929 _ACEOF
13930 for ac_lib in '' crypt; do
13931 if test -z "$ac_lib"; then
13932 ac_res="none required"
13933 else
13934 ac_res=-l$ac_lib
13935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13936 fi
13937 if ac_fn_c_try_link "$LINENO"; then :
13938 ac_cv_search_crypt=$ac_res
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext \
13941 conftest$ac_exeext
13942 if ${ac_cv_search_crypt+:} false; then :
13943 break
13944 fi
13945 done
13946 if ${ac_cv_search_crypt+:} false; then :
13947
13948 else
13949 ac_cv_search_crypt=no
13950 fi
13951 rm conftest.$ac_ext
13952 LIBS=$ac_func_search_save_LIBS
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13955 $as_echo "$ac_cv_search_crypt" >&6; }
13956 ac_res=$ac_cv_search_crypt
13957 if test "$ac_res" != no; then :
13958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13959
13960 fi
13961
13962
13963
13964
13965 # Check whether --with-zlib-path was given.
13966 if test "${with_zlib_path+set}" = set; then :
13967 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
13968 fi
13969
13970
13971 # Check whether --enable-zlib was given.
13972 if test "${enable_zlib+set}" = set; then :
13973 enableval=$enable_zlib; zlib=$enableval
13974 else
13975 zlib=yes
13976 fi
13977
13978
13979 if test "$zlib" = "yes"; then :
13980
13981 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13982 if test "x$ac_cv_header_zlib_h" = xyes; then :
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13984 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13985 if ${ac_cv_lib_z_zlibVersion+:} false; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 ac_check_lib_save_LIBS=$LIBS
13989 LIBS="-lz $LIBS"
13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h. */
13992
13993 /* Override any GCC internal prototype to avoid an error.
13994 Use char because int might match the return type of a GCC
13995 builtin and then its argument prototype would still apply. */
13996 #ifdef __cplusplus
13997 extern "C"
13998 #endif
13999 char zlibVersion ();
14000 int
14001 main ()
14002 {
14003 return zlibVersion ();
14004 ;
14005 return 0;
14006 }
14007 _ACEOF
14008 if ac_fn_c_try_link "$LINENO"; then :
14009 ac_cv_lib_z_zlibVersion=yes
14010 else
14011 ac_cv_lib_z_zlibVersion=no
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext conftest.$ac_ext
14015 LIBS=$ac_check_lib_save_LIBS
14016 fi
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
14018 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
14019 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
14020
14021 LIBS="-lz $LIBS"
14022
14023 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14024
14025
14026 else
14027 zlib=no
14028 fi
14029
14030
14031 else
14032 zlib=no
14033 fi
14034
14035
14036
14037 fi
14038
14039
14040 # Check whether --with-libpcre-path was given.
14041 if test "${with_libpcre_path+set}" = set; then :
14042 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
14043 fi
14044
14045
14046 # Check whether --enable-libpcre was given.
14047 if test "${enable_libpcre+set}" = set; then :
14048 enableval=$enable_libpcre; libpcre=$enableval
14049 else
14050 libpcre=yes
14051 fi
14052
14053
14054 if test "$libpcre" = "yes"; then :
14055
14056 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
14057 if test "x$ac_cv_header_pcre_h" = xyes; then :
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
14059 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
14060 if ${ac_cv_lib_pcre_pcre_study+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 ac_check_lib_save_LIBS=$LIBS
14064 LIBS="-lpcre $LIBS"
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char pcre_study ();
14075 int
14076 main ()
14077 {
14078 return pcre_study ();
14079 ;
14080 return 0;
14081 }
14082 _ACEOF
14083 if ac_fn_c_try_link "$LINENO"; then :
14084 ac_cv_lib_pcre_pcre_study=yes
14085 else
14086 ac_cv_lib_pcre_pcre_study=no
14087 fi
14088 rm -f core conftest.err conftest.$ac_objext \
14089 conftest$ac_exeext conftest.$ac_ext
14090 LIBS=$ac_check_lib_save_LIBS
14091 fi
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
14093 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
14094 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
14095
14096 LIBS="-lpcre $LIBS"
14097
14098 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14099
14100
14101 else
14102 libpcre=no
14103 fi
14104
14105
14106 else
14107 libpcre=no
14108 fi
14109
14110
14111
14112 fi
14113 if test "$libpcre" = yes; then
14114 ENABLE_PCRE_TRUE=
14115 ENABLE_PCRE_FALSE='#'
14116 else
14117 ENABLE_PCRE_TRUE='#'
14118 ENABLE_PCRE_FALSE=
14119 fi
14120
14121
14122
14123 # Check whether --enable-openssl was given.
14124 if test "${enable_openssl+set}" = set; then :
14125 enableval=$enable_openssl; cf_enable_openssl=$enableval
14126 else
14127 cf_enable_openssl="auto"
14128 fi
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14131 $as_echo_n "checking for OpenSSL... " >&6; }
14132 if test "$cf_enable_openssl" != "no"; then
14133 cf_openssl_basedir=""
14134 if test "$cf_enable_openssl" != "auto" &&
14135 test "$cf_enable_openssl" != "yes"; then
14136 cf_openssl_basedir="${cf_enable_openssl}"
14137 else
14138 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14139 /opt /opt/openssl /usr/local/openssl; do
14140 if test -f "${dirs}/include/openssl/opensslv.h"; then
14141 cf_openssl_basedir="${dirs}"
14142 break
14143 fi
14144 done
14145 unset dirs
14146 fi
14147
14148 if test ! -z "$cf_openssl_basedir"; then
14149 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14150 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14151 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14152 else
14153 cf_openssl_basedir=""
14154 fi
14155 else
14156 if test -f "/usr/include/openssl/opensslv.h"; then
14157 cf_openssl_basedir="/usr"
14158 fi
14159 fi
14160
14161 if test ! -z "$cf_openssl_basedir"; then
14162 LIBS="-lcrypto -lssl $LIBS"
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14164 $as_echo "$cf_openssl_basedir" >&6; }
14165 cf_enable_openssl="yes"
14166
14167 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14168
14169 else
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14171 $as_echo "not found. Please check your path." >&6; }
14172 cf_enable_openssl="no"
14173 fi
14174 unset cf_openssl_basedir
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14177 $as_echo "disabled" >&6; }
14178 fi
14179
14180 if test "$cf_enable_openssl" != "no"; then :
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14182 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14183 if test "$cross_compiling" = yes; then :
14184 cf_openssl_version_ok=no
14185 else
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188
14189
14190 #include <openssl/opensslv.h>
14191 #include <stdlib.h>
14192 int
14193 main ()
14194 {
14195 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
14196 ;
14197 return 0;
14198 }
14199 _ACEOF
14200 if ac_fn_c_try_run "$LINENO"; then :
14201 cf_openssl_version_ok=yes
14202 else
14203 cf_openssl_version_ok=no
14204 fi
14205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14206 conftest.$ac_objext conftest.beam conftest.$ac_ext
14207 fi
14208
14209
14210 if test "$cf_openssl_version_ok" = "yes"; then :
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14212 $as_echo "found" >&6; }
14213
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14215 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14216 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 ac_check_lib_save_LIBS=$LIBS
14220 LIBS="-lcrypto $LIBS"
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 char RSA_free ();
14231 int
14232 main ()
14233 {
14234 return RSA_free ();
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 ac_cv_lib_crypto_RSA_free=yes
14241 else
14242 ac_cv_lib_crypto_RSA_free=no
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14247 fi
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14249 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14250 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_LIBCRYPTO 1
14253 _ACEOF
14254
14255 LIBS="-lcrypto $LIBS"
14256
14257 fi
14258
14259 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14260 for ac_func in EVP_bf_cfb \
14261 EVP_cast5_cfb \
14262 EVP_idea_cfb \
14263 EVP_rc5_32_12_16_cfb \
14264 EVP_des_ede3_cfb \
14265 EVP_des_cfb
14266 do :
14267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14270 cat >>confdefs.h <<_ACEOF
14271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14272 _ACEOF
14273
14274 fi
14275 done
14276
14277 fi
14278
14279 else
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14281 $as_echo "no - OpenSSL support disabled" >&6; }
14282 cf_enable_openssl="no"
14283 fi
14284 fi
14285
14286 if test "$cf_enable_openssl" = yes; then
14287 ENABLE_SSL_TRUE=
14288 ENABLE_SSL_FALSE='#'
14289 else
14290 ENABLE_SSL_TRUE='#'
14291 ENABLE_SSL_FALSE=
14292 fi
14293
14294
14295
14296 # Check whether --enable-assert was given.
14297 if test "${enable_assert+set}" = set; then :
14298 enableval=$enable_assert; assert=$enableval
14299 else
14300 assert=no
14301 fi
14302
14303
14304 if test "$assert" = "no"; then :
14305
14306 $as_echo "#define NDEBUG 1" >>confdefs.h
14307
14308 fi
14309
14310
14311 # Check whether --enable-small-net was given.
14312 if test "${enable_small_net+set}" = set; then :
14313 enableval=$enable_small_net; small_net=$enableval
14314 else
14315 small_net=no
14316 fi
14317
14318
14319 if test "$small_net" = "yes"; then :
14320
14321
14322 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
14323
14324
14325 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
14326
14327
14328 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
14329
14330
14331 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
14332
14333
14334 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
14335
14336
14337 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
14338
14339
14340 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
14341
14342
14343 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
14344
14345
14346 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
14347
14348
14349 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
14350
14351 else
14352
14353
14354
14355 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
14356
14357
14358 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
14359
14360
14361 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
14362
14363
14364 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
14365
14366
14367 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
14368
14369
14370 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
14371
14372
14373 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
14374
14375
14376 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
14377
14378
14379 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
14380
14381
14382 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
14383
14384 fi
14385
14386
14387 # Argument processing.
14388
14389 desired_iopoll_mechanism="none"
14390 # Check whether --enable-kqueue was given.
14391 if test "${enable_kqueue+set}" = set; then :
14392 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14393 fi
14394
14395 # Check whether --enable-epoll was given.
14396 if test "${enable_epoll+set}" = set; then :
14397 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14398 fi
14399
14400 # Check whether --enable-devpoll was given.
14401 if test "${enable_devpoll+set}" = set; then :
14402 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14403 fi
14404
14405 # Check whether --enable-rtsigio was given.
14406 if test "${enable_rtsigio+set}" = set; then :
14407 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14408 fi
14409
14410 # Check whether --enable-poll was given.
14411 if test "${enable_poll+set}" = set; then :
14412 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14413 fi
14414
14415 # Check whether --enable-select was given.
14416 if test "${enable_select+set}" = set; then :
14417 enableval=$enable_select; desired_iopoll_mechanism="select"
14418 fi
14419
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14421 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14422 iopoll_mechanism_none=0
14423
14424 cat >>confdefs.h <<_ACEOF
14425 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14426 _ACEOF
14427
14428 iopoll_mechanism_kqueue=1
14429
14430 cat >>confdefs.h <<_ACEOF
14431 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14432 _ACEOF
14433
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14438 #define kevent innocuous_kevent
14439
14440 /* System header to define __stub macros and hopefully few prototypes,
14441 which can conflict with char kevent (); below.
14442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14443 <limits.h> exists even on freestanding compilers. */
14444
14445 #ifdef __STDC__
14446 # include <limits.h>
14447 #else
14448 # include <assert.h>
14449 #endif
14450
14451 #undef kevent
14452
14453 /* Override any GCC internal prototype to avoid an error.
14454 Use char because int might match the return type of a GCC
14455 builtin and then its argument prototype would still apply. */
14456 #ifdef __cplusplus
14457 extern "C"
14458 #endif
14459 char kevent ();
14460 /* The GNU C library defines this for functions which it implements
14461 to always fail with ENOSYS. Some functions are actually named
14462 something starting with __ and the normal name is an alias. */
14463 #if defined __stub_kevent || defined __stub___kevent
14464 choke me
14465 #endif
14466
14467 int
14468 main ()
14469 {
14470 return kevent ();
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 if ac_fn_c_try_link "$LINENO"; then :
14476 is_kqueue_mechanism_available="yes"
14477 else
14478 is_kqueue_mechanism_available="no"
14479 fi
14480 rm -f core conftest.err conftest.$ac_objext \
14481 conftest$ac_exeext conftest.$ac_ext
14482 iopoll_mechanism_epoll=2
14483
14484 cat >>confdefs.h <<_ACEOF
14485 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14486 _ACEOF
14487
14488 if test "$cross_compiling" = yes; then :
14489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14491 as_fn_error $? "cannot run test program while cross compiling
14492 See \`config.log' for more details" "$LINENO" 5; }
14493 else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496
14497 #include <sys/epoll.h>
14498 #include <sys/syscall.h>
14499 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14500 #if !defined(__NR_epoll_create)
14501 #if defined(__ia64__)
14502 #define __NR_epoll_create 1243
14503 #elif defined(__x86_64__)
14504 #define __NR_epoll_create 214
14505 #elif defined(__sparc64__) || defined(__sparc__)
14506 #define __NR_epoll_create 193
14507 #elif defined(__s390__) || defined(__m68k__)
14508 #define __NR_epoll_create 249
14509 #elif defined(__ppc64__) || defined(__ppc__)
14510 #define __NR_epoll_create 236
14511 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14512 #define __NR_epoll_create 224
14513 #elif defined(__alpha__)
14514 #define __NR_epoll_create 407
14515 #elif defined(__sh64__)
14516 #define __NR_epoll_create 282
14517 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14518 #define __NR_epoll_create 254
14519 #else
14520 #error No system call numbers defined for epoll family.
14521 #endif
14522 #endif
14523 _syscall1(int, epoll_create, int, size)
14524 #endif
14525
14526 int
14527 main ()
14528 {
14529 return epoll_create(256) == -1 ? 1 : 0
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_run "$LINENO"; then :
14535 is_epoll_mechanism_available="yes"
14536 else
14537 is_epoll_mechanism_available="no"
14538 fi
14539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14540 conftest.$ac_objext conftest.beam conftest.$ac_ext
14541 fi
14542
14543 iopoll_mechanism_devpoll=3
14544
14545 cat >>confdefs.h <<_ACEOF
14546 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14547 _ACEOF
14548
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 #include <devpoll.h>
14552 int
14553 main ()
14554 {
14555
14556 ;
14557 return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_compile "$LINENO"; then :
14561 is_devpoll_mechanism_available="yes"
14562 else
14563 is_devpoll_mechanism_available="no"
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 if test "$is_devpoll_mechanism_available" = "yes" ; then
14567
14568 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14569
14570 fi
14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 #include <sys/devpoll.h>
14574 int
14575 main ()
14576 {
14577
14578 ;
14579 return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583 is_devpoll_mechanism_available="yes"
14584 else
14585 is_devpoll_mechanism_available="no"
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 if test "$is_devpoll_mechanism_available" = "yes" ; then
14589
14590 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14591
14592 fi
14593 iopoll_mechanism_rtsigio=4
14594
14595 cat >>confdefs.h <<_ACEOF
14596 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14597 _ACEOF
14598
14599 if test "$cross_compiling" = yes; then :
14600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14602 as_fn_error $? "cannot run test program while cross compiling
14603 See \`config.log' for more details" "$LINENO" 5; }
14604 else
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607
14608 #define _GNU_SOURCE
14609 #include <fcntl.h>
14610 static unsigned int have_f_setsig = 0;
14611
14612 int
14613 main ()
14614 {
14615
14616 #ifdef F_SETSIG
14617 have_f_setsig = 1;
14618 #endif
14619 return have_f_setsig == 0;
14620
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 if ac_fn_c_try_run "$LINENO"; then :
14626 is_rtsigio_mechanism_available="yes"
14627 else
14628 is_rtsigio_mechanism_available="no"
14629 fi
14630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14631 conftest.$ac_objext conftest.beam conftest.$ac_ext
14632 fi
14633
14634 iopoll_mechanism_poll=5
14635
14636 cat >>confdefs.h <<_ACEOF
14637 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14638 _ACEOF
14639
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14642 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14644 #define poll innocuous_poll
14645
14646 /* System header to define __stub macros and hopefully few prototypes,
14647 which can conflict with char poll (); below.
14648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14649 <limits.h> exists even on freestanding compilers. */
14650
14651 #ifdef __STDC__
14652 # include <limits.h>
14653 #else
14654 # include <assert.h>
14655 #endif
14656
14657 #undef poll
14658
14659 /* Override any GCC internal prototype to avoid an error.
14660 Use char because int might match the return type of a GCC
14661 builtin and then its argument prototype would still apply. */
14662 #ifdef __cplusplus
14663 extern "C"
14664 #endif
14665 char poll ();
14666 /* The GNU C library defines this for functions which it implements
14667 to always fail with ENOSYS. Some functions are actually named
14668 something starting with __ and the normal name is an alias. */
14669 #if defined __stub_poll || defined __stub___poll
14670 choke me
14671 #endif
14672
14673 int
14674 main ()
14675 {
14676 return poll ();
14677 ;
14678 return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_link "$LINENO"; then :
14682 is_poll_mechanism_available="yes"
14683 else
14684 is_poll_mechanism_available="no"
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 iopoll_mechanism_select=6
14689
14690 cat >>confdefs.h <<_ACEOF
14691 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14692 _ACEOF
14693
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14695 /* end confdefs.h. */
14696 /* Define select to an innocuous variant, in case <limits.h> declares select.
14697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14698 #define select innocuous_select
14699
14700 /* System header to define __stub macros and hopefully few prototypes,
14701 which can conflict with char select (); below.
14702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14703 <limits.h> exists even on freestanding compilers. */
14704
14705 #ifdef __STDC__
14706 # include <limits.h>
14707 #else
14708 # include <assert.h>
14709 #endif
14710
14711 #undef select
14712
14713 /* Override any GCC internal prototype to avoid an error.
14714 Use char because int might match the return type of a GCC
14715 builtin and then its argument prototype would still apply. */
14716 #ifdef __cplusplus
14717 extern "C"
14718 #endif
14719 char select ();
14720 /* The GNU C library defines this for functions which it implements
14721 to always fail with ENOSYS. Some functions are actually named
14722 something starting with __ and the normal name is an alias. */
14723 #if defined __stub_select || defined __stub___select
14724 choke me
14725 #endif
14726
14727 int
14728 main ()
14729 {
14730 return select ();
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 if ac_fn_c_try_link "$LINENO"; then :
14736 is_select_mechanism_available="yes"
14737 else
14738 is_select_mechanism_available="no"
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742 optimal_iopoll_mechanism="none"
14743 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14744 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14745 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14746 optimal_iopoll_mechanism="$mechanism"
14747 break
14748 fi
14749 done
14750 if test "$desired_iopoll_mechanism" = "none" ; then
14751 if test "$optimal_iopoll_mechanism" = "none" ; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14753 $as_echo "none" >&6; }
14754 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14755 else
14756 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14758 $as_echo "$selected_iopoll_mechanism" >&6; }
14759 fi
14760 else
14761 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14762 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14763 selected_iopoll_mechanism=$desired_iopoll_mechanism
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14765 $as_echo "$selected_iopoll_mechanism" >&6; }
14766 else
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14768 $as_echo "none" >&6; }
14769 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14770 fi
14771 fi
14772 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14773
14774 cat >>confdefs.h <<_ACEOF
14775 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14776 _ACEOF
14777
14778
14779
14780
14781 # Check whether --with-nicklen was given.
14782 if test "${with_nicklen+set}" = set; then :
14783 withval=$with_nicklen; nicklen="$withval"
14784 else
14785 nicklen="9"
14786 fi
14787
14788
14789 cat >>confdefs.h <<_ACEOF
14790 #define NICKLEN ($nicklen+1)
14791 _ACEOF
14792
14793
14794
14795
14796 # Check whether --with-topiclen was given.
14797 if test "${with_topiclen+set}" = set; then :
14798 withval=$with_topiclen; topiclen="$withval"
14799 else
14800 topiclen="160"
14801 fi
14802
14803
14804 cat >>confdefs.h <<_ACEOF
14805 #define TOPICLEN ($topiclen)
14806 _ACEOF
14807
14808
14809
14810
14811 # Check whether --with-syslog-facility was given.
14812 if test "${with_syslog_facility+set}" = set; then :
14813 withval=$with_syslog_facility; syslog_facility="$withval"
14814 else
14815 syslog_facility="LOG_LOCAL4"
14816 fi
14817
14818
14819 cat >>confdefs.h <<_ACEOF
14820 #define LOG_FACILITY $syslog_facility
14821 _ACEOF
14822
14823
14824
14825 # Check whether --enable-efnet was given.
14826 if test "${enable_efnet+set}" = set; then :
14827 enableval=$enable_efnet; efnet="$enableval"
14828 else
14829 efnet="no"
14830 fi
14831
14832 if test "$efnet" = "yes" ; then
14833 use_efnet="yes"
14834
14835 $as_echo "#define EFNET 1" >>confdefs.h
14836
14837
14838 $as_echo "#define TS5_ONLY 1" >>confdefs.h
14839
14840 else
14841 use_efnet="no"
14842 fi
14843 if test "$use_efnet" = "yes"; then
14844 EFNET_TRUE=
14845 EFNET_FALSE='#'
14846 else
14847 EFNET_TRUE='#'
14848 EFNET_FALSE=
14849 fi
14850
14851
14852
14853 # Check whether --enable-halfops was given.
14854 if test "${enable_halfops+set}" = set; then :
14855 enableval=$enable_halfops; halfops="$enableval"
14856 else
14857 halfops="no"
14858 fi
14859
14860 if test "$halfops" = "yes" ; then
14861
14862 $as_echo "#define HALFOPS 1" >>confdefs.h
14863
14864 fi
14865
14866
14867 # Check whether --enable-debugging was given.
14868 if test "${enable_debugging+set}" = set; then :
14869 enableval=$enable_debugging; debugging="$enableval"
14870 else
14871 debugging="no"
14872 fi
14873
14874 if test "$debugging" = "yes" ; then
14875
14876 $as_echo "#define DEBUG 1" >>confdefs.h
14877
14878 CFLAGS="-Wall -g -O0"
14879 else
14880
14881 $as_echo "#define NDEBUG 1" >>confdefs.h
14882
14883 fi
14884
14885
14886 # Check whether --enable-warnings was given.
14887 if test "${enable_warnings+set}" = set; then :
14888 enableval=$enable_warnings; warnings="$enableval"
14889 else
14890 warnings="no"
14891 fi
14892
14893 if test "$warnings" = "yes" ; then
14894 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14895 fi
14896
14897
14898 for ac_header in syslog.h sys/syslog.h
14899 do :
14900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14901 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14905 _ACEOF
14906
14907 fi
14908
14909 done
14910
14911 # Check whether --enable-syslog was given.
14912 if test "${enable_syslog+set}" = set; then :
14913 enableval=$enable_syslog; syslog="$enableval"
14914 else
14915 syslog="no"
14916 fi
14917
14918 if test "$enableval" != "no" ; then
14919 for option in $enableval ; do
14920 case "$option" in
14921 users)
14922 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
14923 ;;
14924 oper)
14925 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
14926 ;;
14927 yes) : ;;
14928 *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
14929 esac
14930 done
14931
14932 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
14933
14934 fi
14935
14936
14937
14938 prefix_NONE=
14939 exec_prefix_NONE=
14940 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14941 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14942 eval ac_define_dir="\"$prefix\""
14943 eval ac_define_dir="\"$ac_define_dir\""
14944 PREFIX="$ac_define_dir"
14945
14946
14947 cat >>confdefs.h <<_ACEOF
14948 #define PREFIX "$ac_define_dir"
14949 _ACEOF
14950
14951 test "$prefix_NONE" && prefix=NONE
14952 test "$exec_prefix_NONE" && exec_prefix=NONE
14953
14954
14955 prefix_NONE=
14956 exec_prefix_NONE=
14957 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14958 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14959 eval ac_define_dir="\"$sysconfdir\""
14960 eval ac_define_dir="\"$ac_define_dir\""
14961 SYSCONFDIR="$ac_define_dir"
14962
14963
14964 cat >>confdefs.h <<_ACEOF
14965 #define SYSCONFDIR "$ac_define_dir"
14966 _ACEOF
14967
14968 test "$prefix_NONE" && prefix=NONE
14969 test "$exec_prefix_NONE" && exec_prefix=NONE
14970
14971
14972 prefix_NONE=
14973 exec_prefix_NONE=
14974 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14975 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14976 eval ac_define_dir="\"$libdir\""
14977 eval ac_define_dir="\"$ac_define_dir\""
14978 LIBDIR="$ac_define_dir"
14979
14980
14981 cat >>confdefs.h <<_ACEOF
14982 #define LIBDIR "$ac_define_dir"
14983 _ACEOF
14984
14985 test "$prefix_NONE" && prefix=NONE
14986 test "$exec_prefix_NONE" && exec_prefix=NONE
14987
14988
14989 prefix_NONE=
14990 exec_prefix_NONE=
14991 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14992 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14993 eval ac_define_dir="\"$datadir\""
14994 eval ac_define_dir="\"$ac_define_dir\""
14995 DATADIR="$ac_define_dir"
14996
14997
14998 cat >>confdefs.h <<_ACEOF
14999 #define DATADIR "$ac_define_dir"
15000 _ACEOF
15001
15002 test "$prefix_NONE" && prefix=NONE
15003 test "$exec_prefix_NONE" && exec_prefix=NONE
15004
15005
15006 prefix_NONE=
15007 exec_prefix_NONE=
15008 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15009 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15010 eval ac_define_dir="\"$localstatedir\""
15011 eval ac_define_dir="\"$ac_define_dir\""
15012 LOCALSTATEDIR="$ac_define_dir"
15013
15014
15015 cat >>confdefs.h <<_ACEOF
15016 #define LOCALSTATEDIR "$ac_define_dir"
15017 _ACEOF
15018
15019 test "$prefix_NONE" && prefix=NONE
15020 test "$exec_prefix_NONE" && exec_prefix=NONE
15021
15022
15023 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
15024
15025
15026 cat >confcache <<\_ACEOF
15027 # This file is a shell script that caches the results of configure
15028 # tests run on this system so they can be shared between configure
15029 # scripts and configure runs, see configure's option --config-cache.
15030 # It is not useful on other systems. If it contains results you don't
15031 # want to keep, you may remove or edit it.
15032 #
15033 # config.status only pays attention to the cache file if you give it
15034 # the --recheck option to rerun configure.
15035 #
15036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15038 # following values.
15039
15040 _ACEOF
15041
15042 # The following way of writing the cache mishandles newlines in values,
15043 # but we know of no workaround that is simple, portable, and efficient.
15044 # So, we kill variables containing newlines.
15045 # Ultrix sh set writes to stderr and can't be redirected directly,
15046 # and sets the high bit in the cache file unless we assign to the vars.
15047 (
15048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15049 eval ac_val=\$$ac_var
15050 case $ac_val in #(
15051 *${as_nl}*)
15052 case $ac_var in #(
15053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15055 esac
15056 case $ac_var in #(
15057 _ | IFS | as_nl) ;; #(
15058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15059 *) { eval $ac_var=; unset $ac_var;} ;;
15060 esac ;;
15061 esac
15062 done
15063
15064 (set) 2>&1 |
15065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15066 *${as_nl}ac_space=\ *)
15067 # `set' does not quote correctly, so add quotes: double-quote
15068 # substitution turns \\\\ into \\, and sed turns \\ into \.
15069 sed -n \
15070 "s/'/'\\\\''/g;
15071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15072 ;; #(
15073 *)
15074 # `set' quotes correctly as required by POSIX, so do not add quotes.
15075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15076 ;;
15077 esac |
15078 sort
15079 ) |
15080 sed '
15081 /^ac_cv_env_/b end
15082 t clear
15083 :clear
15084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15085 t end
15086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15087 :end' >>confcache
15088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15089 if test -w "$cache_file"; then
15090 if test "x$cache_file" != "x/dev/null"; then
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15092 $as_echo "$as_me: updating cache $cache_file" >&6;}
15093 if test ! -f "$cache_file" || test -h "$cache_file"; then
15094 cat confcache >"$cache_file"
15095 else
15096 case $cache_file in #(
15097 */* | ?:*)
15098 mv -f confcache "$cache_file"$$ &&
15099 mv -f "$cache_file"$$ "$cache_file" ;; #(
15100 *)
15101 mv -f confcache "$cache_file" ;;
15102 esac
15103 fi
15104 fi
15105 else
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15108 fi
15109 fi
15110 rm -f confcache
15111
15112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15113 # Let make expand exec_prefix.
15114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15115
15116 DEFS=-DHAVE_CONFIG_H
15117
15118 ac_libobjs=
15119 ac_ltlibobjs=
15120 U=
15121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15122 # 1. Remove the extension, and $U if already installed.
15123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15126 # will be set to the directory where LIBOBJS objects are built.
15127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15129 done
15130 LIBOBJS=$ac_libobjs
15131
15132 LTLIBOBJS=$ac_ltlibobjs
15133
15134
15135 if test -n "$EXEEXT"; then
15136 am__EXEEXT_TRUE=
15137 am__EXEEXT_FALSE='#'
15138 else
15139 am__EXEEXT_TRUE='#'
15140 am__EXEEXT_FALSE=
15141 fi
15142
15143 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15144 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146 fi
15147 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15148 as_fn_error $? "conditional \"AMDEP\" was never defined.
15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150 fi
15151 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15152 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154 fi
15155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15156 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15158 fi
15159 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15160 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162 fi
15163 LT_CONFIG_H=config.h
15164
15165 _ltdl_libobjs=
15166 _ltdl_ltlibobjs=
15167 if test -n "$_LT_LIBOBJS"; then
15168 # Remove the extension.
15169 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15170 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15171 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15172 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15173 done
15174 fi
15175 ltdl_LIBOBJS=$_ltdl_libobjs
15176
15177 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15178
15179
15180
15181 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
15182 as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
15183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184 fi
15185 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15186 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188 fi
15189 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
15190 as_fn_error $? "conditional \"EFNET\" was never defined.
15191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192 fi
15193
15194 : "${CONFIG_STATUS=./config.status}"
15195 ac_write_fail=0
15196 ac_clean_files_save=$ac_clean_files
15197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15199 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15200 as_write_fail=0
15201 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15202 #! $SHELL
15203 # Generated by $as_me.
15204 # Run this file to recreate the current configuration.
15205 # Compiler output produced by configure, useful for debugging
15206 # configure, is in config.log if it exists.
15207
15208 debug=false
15209 ac_cs_recheck=false
15210 ac_cs_silent=false
15211
15212 SHELL=\${CONFIG_SHELL-$SHELL}
15213 export SHELL
15214 _ASEOF
15215 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15216 ## -------------------- ##
15217 ## M4sh Initialization. ##
15218 ## -------------------- ##
15219
15220 # Be more Bourne compatible
15221 DUALCASE=1; export DUALCASE # for MKS sh
15222 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15223 emulate sh
15224 NULLCMD=:
15225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15226 # is contrary to our usage. Disable this feature.
15227 alias -g '${1+"$@"}'='"$@"'
15228 setopt NO_GLOB_SUBST
15229 else
15230 case `(set -o) 2>/dev/null` in #(
15231 *posix*) :
15232 set -o posix ;; #(
15233 *) :
15234 ;;
15235 esac
15236 fi
15237
15238
15239 as_nl='
15240 '
15241 export as_nl
15242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15243 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15246 # Prefer a ksh shell builtin over an external printf program on Solaris,
15247 # but without wasting forks for bash or zsh.
15248 if test -z "$BASH_VERSION$ZSH_VERSION" \
15249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15250 as_echo='print -r --'
15251 as_echo_n='print -rn --'
15252 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15253 as_echo='printf %s\n'
15254 as_echo_n='printf %s'
15255 else
15256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15258 as_echo_n='/usr/ucb/echo -n'
15259 else
15260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15261 as_echo_n_body='eval
15262 arg=$1;
15263 case $arg in #(
15264 *"$as_nl"*)
15265 expr "X$arg" : "X\\(.*\\)$as_nl";
15266 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15267 esac;
15268 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15269 '
15270 export as_echo_n_body
15271 as_echo_n='sh -c $as_echo_n_body as_echo'
15272 fi
15273 export as_echo_body
15274 as_echo='sh -c $as_echo_body as_echo'
15275 fi
15276
15277 # The user is always right.
15278 if test "${PATH_SEPARATOR+set}" != set; then
15279 PATH_SEPARATOR=:
15280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15282 PATH_SEPARATOR=';'
15283 }
15284 fi
15285
15286
15287 # IFS
15288 # We need space, tab and new line, in precisely that order. Quoting is
15289 # there to prevent editors from complaining about space-tab.
15290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15291 # splitting by setting IFS to empty value.)
15292 IFS=" "" $as_nl"
15293
15294 # Find who we are. Look in the path if we contain no directory separator.
15295 as_myself=
15296 case $0 in #((
15297 *[\\/]* ) as_myself=$0 ;;
15298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15299 for as_dir in $PATH
15300 do
15301 IFS=$as_save_IFS
15302 test -z "$as_dir" && as_dir=.
15303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15304 done
15305 IFS=$as_save_IFS
15306
15307 ;;
15308 esac
15309 # We did not find ourselves, most probably we were run as `sh COMMAND'
15310 # in which case we are not to be found in the path.
15311 if test "x$as_myself" = x; then
15312 as_myself=$0
15313 fi
15314 if test ! -f "$as_myself"; then
15315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15316 exit 1
15317 fi
15318
15319 # Unset variables that we do not need and which cause bugs (e.g. in
15320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15321 # suppresses any "Segmentation fault" message there. '((' could
15322 # trigger a bug in pdksh 5.2.14.
15323 for as_var in BASH_ENV ENV MAIL MAILPATH
15324 do eval test x\${$as_var+set} = xset \
15325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15326 done
15327 PS1='$ '
15328 PS2='> '
15329 PS4='+ '
15330
15331 # NLS nuisances.
15332 LC_ALL=C
15333 export LC_ALL
15334 LANGUAGE=C
15335 export LANGUAGE
15336
15337 # CDPATH.
15338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15339
15340
15341 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15342 # ----------------------------------------
15343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15345 # script with STATUS, using 1 if that was 0.
15346 as_fn_error ()
15347 {
15348 as_status=$1; test $as_status -eq 0 && as_status=1
15349 if test "$4"; then
15350 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15352 fi
15353 $as_echo "$as_me: error: $2" >&2
15354 as_fn_exit $as_status
15355 } # as_fn_error
15356
15357
15358 # as_fn_set_status STATUS
15359 # -----------------------
15360 # Set $? to STATUS, without forking.
15361 as_fn_set_status ()
15362 {
15363 return $1
15364 } # as_fn_set_status
15365
15366 # as_fn_exit STATUS
15367 # -----------------
15368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15369 as_fn_exit ()
15370 {
15371 set +e
15372 as_fn_set_status $1
15373 exit $1
15374 } # as_fn_exit
15375
15376 # as_fn_unset VAR
15377 # ---------------
15378 # Portably unset VAR.
15379 as_fn_unset ()
15380 {
15381 { eval $1=; unset $1;}
15382 }
15383 as_unset=as_fn_unset
15384 # as_fn_append VAR VALUE
15385 # ----------------------
15386 # Append the text in VALUE to the end of the definition contained in VAR. Take
15387 # advantage of any shell optimizations that allow amortized linear growth over
15388 # repeated appends, instead of the typical quadratic growth present in naive
15389 # implementations.
15390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15391 eval 'as_fn_append ()
15392 {
15393 eval $1+=\$2
15394 }'
15395 else
15396 as_fn_append ()
15397 {
15398 eval $1=\$$1\$2
15399 }
15400 fi # as_fn_append
15401
15402 # as_fn_arith ARG...
15403 # ------------------
15404 # Perform arithmetic evaluation on the ARGs, and store the result in the
15405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15406 # must be portable across $(()) and expr.
15407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15408 eval 'as_fn_arith ()
15409 {
15410 as_val=$(( $* ))
15411 }'
15412 else
15413 as_fn_arith ()
15414 {
15415 as_val=`expr "$@" || test $? -eq 1`
15416 }
15417 fi # as_fn_arith
15418
15419
15420 if expr a : '\(a\)' >/dev/null 2>&1 &&
15421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15422 as_expr=expr
15423 else
15424 as_expr=false
15425 fi
15426
15427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15428 as_basename=basename
15429 else
15430 as_basename=false
15431 fi
15432
15433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15434 as_dirname=dirname
15435 else
15436 as_dirname=false
15437 fi
15438
15439 as_me=`$as_basename -- "$0" ||
15440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15441 X"$0" : 'X\(//\)$' \| \
15442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15443 $as_echo X/"$0" |
15444 sed '/^.*\/\([^/][^/]*\)\/*$/{
15445 s//\1/
15446 q
15447 }
15448 /^X\/\(\/\/\)$/{
15449 s//\1/
15450 q
15451 }
15452 /^X\/\(\/\).*/{
15453 s//\1/
15454 q
15455 }
15456 s/.*/./; q'`
15457
15458 # Avoid depending upon Character Ranges.
15459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15462 as_cr_digits='0123456789'
15463 as_cr_alnum=$as_cr_Letters$as_cr_digits
15464
15465 ECHO_C= ECHO_N= ECHO_T=
15466 case `echo -n x` in #(((((
15467 -n*)
15468 case `echo 'xy\c'` in
15469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15470 xy) ECHO_C='\c';;
15471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15472 ECHO_T=' ';;
15473 esac;;
15474 *)
15475 ECHO_N='-n';;
15476 esac
15477
15478 rm -f conf$$ conf$$.exe conf$$.file
15479 if test -d conf$$.dir; then
15480 rm -f conf$$.dir/conf$$.file
15481 else
15482 rm -f conf$$.dir
15483 mkdir conf$$.dir 2>/dev/null
15484 fi
15485 if (echo >conf$$.file) 2>/dev/null; then
15486 if ln -s conf$$.file conf$$ 2>/dev/null; then
15487 as_ln_s='ln -s'
15488 # ... but there are two gotchas:
15489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15491 # In both cases, we have to default to `cp -p'.
15492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15493 as_ln_s='cp -p'
15494 elif ln conf$$.file conf$$ 2>/dev/null; then
15495 as_ln_s=ln
15496 else
15497 as_ln_s='cp -p'
15498 fi
15499 else
15500 as_ln_s='cp -p'
15501 fi
15502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15503 rmdir conf$$.dir 2>/dev/null
15504
15505
15506 # as_fn_mkdir_p
15507 # -------------
15508 # Create "$as_dir" as a directory, including parents if necessary.
15509 as_fn_mkdir_p ()
15510 {
15511
15512 case $as_dir in #(
15513 -*) as_dir=./$as_dir;;
15514 esac
15515 test -d "$as_dir" || eval $as_mkdir_p || {
15516 as_dirs=
15517 while :; do
15518 case $as_dir in #(
15519 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15520 *) as_qdir=$as_dir;;
15521 esac
15522 as_dirs="'$as_qdir' $as_dirs"
15523 as_dir=`$as_dirname -- "$as_dir" ||
15524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15525 X"$as_dir" : 'X\(//\)[^/]' \| \
15526 X"$as_dir" : 'X\(//\)$' \| \
15527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15528 $as_echo X"$as_dir" |
15529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15530 s//\1/
15531 q
15532 }
15533 /^X\(\/\/\)[^/].*/{
15534 s//\1/
15535 q
15536 }
15537 /^X\(\/\/\)$/{
15538 s//\1/
15539 q
15540 }
15541 /^X\(\/\).*/{
15542 s//\1/
15543 q
15544 }
15545 s/.*/./; q'`
15546 test -d "$as_dir" && break
15547 done
15548 test -z "$as_dirs" || eval "mkdir $as_dirs"
15549 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15550
15551
15552 } # as_fn_mkdir_p
15553 if mkdir -p . 2>/dev/null; then
15554 as_mkdir_p='mkdir -p "$as_dir"'
15555 else
15556 test -d ./-p && rmdir ./-p
15557 as_mkdir_p=false
15558 fi
15559
15560 if test -x / >/dev/null 2>&1; then
15561 as_test_x='test -x'
15562 else
15563 if ls -dL / >/dev/null 2>&1; then
15564 as_ls_L_option=L
15565 else
15566 as_ls_L_option=
15567 fi
15568 as_test_x='
15569 eval sh -c '\''
15570 if test -d "$1"; then
15571 test -d "$1/.";
15572 else
15573 case $1 in #(
15574 -*)set "./$1";;
15575 esac;
15576 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15577 ???[sx]*):;;*)false;;esac;fi
15578 '\'' sh
15579 '
15580 fi
15581 as_executable_p=$as_test_x
15582
15583 # Sed expression to map a string onto a valid CPP name.
15584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15585
15586 # Sed expression to map a string onto a valid variable name.
15587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15588
15589
15590 exec 6>&1
15591 ## ----------------------------------- ##
15592 ## Main body of $CONFIG_STATUS script. ##
15593 ## ----------------------------------- ##
15594 _ASEOF
15595 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15596
15597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15598 # Save the log message, to keep $0 and so on meaningful, and to
15599 # report actual input values of CONFIG_FILES etc. instead of their
15600 # values after options handling.
15601 ac_log="
15602 This file was extended by ircd-hybrid $as_me 7.4, which was
15603 generated by GNU Autoconf 2.68. Invocation command line was
15604
15605 CONFIG_FILES = $CONFIG_FILES
15606 CONFIG_HEADERS = $CONFIG_HEADERS
15607 CONFIG_LINKS = $CONFIG_LINKS
15608 CONFIG_COMMANDS = $CONFIG_COMMANDS
15609 $ $0 $@
15610
15611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15612 "
15613
15614 _ACEOF
15615
15616 case $ac_config_files in *"
15617 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15618 esac
15619
15620 case $ac_config_headers in *"
15621 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15622 esac
15623
15624
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626 # Files that config.status was made for.
15627 config_files="$ac_config_files"
15628 config_headers="$ac_config_headers"
15629 config_commands="$ac_config_commands"
15630
15631 _ACEOF
15632
15633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634 ac_cs_usage="\
15635 \`$as_me' instantiates files and other configuration actions
15636 from templates according to the current configuration. Unless the files
15637 and actions are specified as TAGs, all are instantiated by default.
15638
15639 Usage: $0 [OPTION]... [TAG]...
15640
15641 -h, --help print this help, then exit
15642 -V, --version print version number and configuration settings, then exit
15643 --config print configuration, then exit
15644 -q, --quiet, --silent
15645 do not print progress messages
15646 -d, --debug don't remove temporary files
15647 --recheck update $as_me by reconfiguring in the same conditions
15648 --file=FILE[:TEMPLATE]
15649 instantiate the configuration file FILE
15650 --header=FILE[:TEMPLATE]
15651 instantiate the configuration header FILE
15652
15653 Configuration files:
15654 $config_files
15655
15656 Configuration headers:
15657 $config_headers
15658
15659 Configuration commands:
15660 $config_commands
15661
15662 Report bugs to <bugs@ircd-hybrid.org>."
15663
15664 _ACEOF
15665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15667 ac_cs_version="\\
15668 ircd-hybrid config.status 7.4
15669 configured by $0, generated by GNU Autoconf 2.68,
15670 with options \\"\$ac_cs_config\\"
15671
15672 Copyright (C) 2010 Free Software Foundation, Inc.
15673 This config.status script is free software; the Free Software Foundation
15674 gives unlimited permission to copy, distribute and modify it."
15675
15676 ac_pwd='$ac_pwd'
15677 srcdir='$srcdir'
15678 INSTALL='$INSTALL'
15679 MKDIR_P='$MKDIR_P'
15680 AWK='$AWK'
15681 test -n "\$AWK" || AWK=awk
15682 _ACEOF
15683
15684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 # The default lists apply if the user does not specify any file.
15686 ac_need_defaults=:
15687 while test $# != 0
15688 do
15689 case $1 in
15690 --*=?*)
15691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15692 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15693 ac_shift=:
15694 ;;
15695 --*=)
15696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15697 ac_optarg=
15698 ac_shift=:
15699 ;;
15700 *)
15701 ac_option=$1
15702 ac_optarg=$2
15703 ac_shift=shift
15704 ;;
15705 esac
15706
15707 case $ac_option in
15708 # Handling of the options.
15709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15710 ac_cs_recheck=: ;;
15711 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15712 $as_echo "$ac_cs_version"; exit ;;
15713 --config | --confi | --conf | --con | --co | --c )
15714 $as_echo "$ac_cs_config"; exit ;;
15715 --debug | --debu | --deb | --de | --d | -d )
15716 debug=: ;;
15717 --file | --fil | --fi | --f )
15718 $ac_shift
15719 case $ac_optarg in
15720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15721 '') as_fn_error $? "missing file argument" ;;
15722 esac
15723 as_fn_append CONFIG_FILES " '$ac_optarg'"
15724 ac_need_defaults=false;;
15725 --header | --heade | --head | --hea )
15726 $ac_shift
15727 case $ac_optarg in
15728 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15729 esac
15730 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15731 ac_need_defaults=false;;
15732 --he | --h)
15733 # Conflict between --help and --header
15734 as_fn_error $? "ambiguous option: \`$1'
15735 Try \`$0 --help' for more information.";;
15736 --help | --hel | -h )
15737 $as_echo "$ac_cs_usage"; exit ;;
15738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15739 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15740 ac_cs_silent=: ;;
15741
15742 # This is an error.
15743 -*) as_fn_error $? "unrecognized option: \`$1'
15744 Try \`$0 --help' for more information." ;;
15745
15746 *) as_fn_append ac_config_targets " $1"
15747 ac_need_defaults=false ;;
15748
15749 esac
15750 shift
15751 done
15752
15753 ac_configure_extra_args=
15754
15755 if $ac_cs_silent; then
15756 exec 6>/dev/null
15757 ac_configure_extra_args="$ac_configure_extra_args --silent"
15758 fi
15759
15760 _ACEOF
15761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15762 if \$ac_cs_recheck; then
15763 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15764 shift
15765 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15766 CONFIG_SHELL='$SHELL'
15767 export CONFIG_SHELL
15768 exec "\$@"
15769 fi
15770
15771 _ACEOF
15772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15773 exec 5>>config.log
15774 {
15775 echo
15776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15777 ## Running $as_me. ##
15778 _ASBOX
15779 $as_echo "$ac_log"
15780 } >&5
15781
15782 _ACEOF
15783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15784 #
15785 # INIT-COMMANDS
15786 #
15787 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15788
15789
15790 # The HP-UX ksh and POSIX shell print the target directory to stdout
15791 # if CDPATH is set.
15792 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15793
15794 sed_quote_subst='$sed_quote_subst'
15795 double_quote_subst='$double_quote_subst'
15796 delay_variable_subst='$delay_variable_subst'
15797 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15798 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15799 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15800 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15801 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15802 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15803 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15804 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15805 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15806 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15807 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15808 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15809 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15810 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15811 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15812 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15813 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15814 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15815 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15816 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15817 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15818 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15819 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15820 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15821 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15822 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15823 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15824 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15825 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15826 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15827 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15828 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15829 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15830 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15831 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15832 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15833 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15834 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15835 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15836 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15837 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15838 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15839 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15840 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15841 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15842 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15843 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15844 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15845 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15846 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15847 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15848 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15849 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15851 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15852 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"`'
15853 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15854 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15855 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15856 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15857 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15858 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15859 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15860 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15861 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15862 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15863 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15864 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15865 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15866 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15867 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15868 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15869 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15870 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15871 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15872 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15873 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15874 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15875 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15876 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15877 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15878 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15879 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15880 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15881 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15882 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15883 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15884 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15885 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15886 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15887 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15888 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15889 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15890 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15891 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15892 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15893 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15894 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15895 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15896 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15897 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15898 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15899 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15900 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15901 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15902 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15903 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15904 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15905 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15906 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15907 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15908 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15909 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15910 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15911 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15912 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15913 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15914 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15915 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15916 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15917 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15918 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15919 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15920 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15921 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15922 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15923 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15924 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15925 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15926 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15927
15928 LTCC='$LTCC'
15929 LTCFLAGS='$LTCFLAGS'
15930 compiler='$compiler_DEFAULT'
15931
15932 # A function that is used when there is no print builtin or printf.
15933 func_fallback_echo ()
15934 {
15935 eval 'cat <<_LTECHO_EOF
15936 \$1
15937 _LTECHO_EOF'
15938 }
15939
15940 # Quote evaled strings.
15941 for var in SHELL \
15942 ECHO \
15943 SED \
15944 GREP \
15945 EGREP \
15946 FGREP \
15947 LD \
15948 NM \
15949 LN_S \
15950 lt_SP2NL \
15951 lt_NL2SP \
15952 reload_flag \
15953 OBJDUMP \
15954 deplibs_check_method \
15955 file_magic_cmd \
15956 file_magic_glob \
15957 want_nocaseglob \
15958 DLLTOOL \
15959 sharedlib_from_linklib_cmd \
15960 AR \
15961 AR_FLAGS \
15962 archiver_list_spec \
15963 STRIP \
15964 RANLIB \
15965 CC \
15966 CFLAGS \
15967 compiler \
15968 lt_cv_sys_global_symbol_pipe \
15969 lt_cv_sys_global_symbol_to_cdecl \
15970 lt_cv_sys_global_symbol_to_c_name_address \
15971 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15972 nm_file_list_spec \
15973 lt_prog_compiler_no_builtin_flag \
15974 lt_prog_compiler_pic \
15975 lt_prog_compiler_wl \
15976 lt_prog_compiler_static \
15977 lt_cv_prog_compiler_c_o \
15978 need_locks \
15979 MANIFEST_TOOL \
15980 DSYMUTIL \
15981 NMEDIT \
15982 LIPO \
15983 OTOOL \
15984 OTOOL64 \
15985 shrext_cmds \
15986 export_dynamic_flag_spec \
15987 whole_archive_flag_spec \
15988 compiler_needs_object \
15989 with_gnu_ld \
15990 allow_undefined_flag \
15991 no_undefined_flag \
15992 hardcode_libdir_flag_spec \
15993 hardcode_libdir_flag_spec_ld \
15994 hardcode_libdir_separator \
15995 exclude_expsyms \
15996 include_expsyms \
15997 file_list_spec \
15998 variables_saved_for_relink \
15999 libname_spec \
16000 library_names_spec \
16001 soname_spec \
16002 install_override_mode \
16003 finish_eval \
16004 old_striplib \
16005 striplib; do
16006 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16007 *[\\\\\\\`\\"\\\$]*)
16008 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16009 ;;
16010 *)
16011 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16012 ;;
16013 esac
16014 done
16015
16016 # Double-quote double-evaled strings.
16017 for var in reload_cmds \
16018 old_postinstall_cmds \
16019 old_postuninstall_cmds \
16020 old_archive_cmds \
16021 extract_expsyms_cmds \
16022 old_archive_from_new_cmds \
16023 old_archive_from_expsyms_cmds \
16024 archive_cmds \
16025 archive_expsym_cmds \
16026 module_cmds \
16027 module_expsym_cmds \
16028 export_symbols_cmds \
16029 prelink_cmds \
16030 postlink_cmds \
16031 postinstall_cmds \
16032 postuninstall_cmds \
16033 finish_cmds \
16034 sys_lib_search_path_spec \
16035 sys_lib_dlsearch_path_spec; do
16036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16037 *[\\\\\\\`\\"\\\$]*)
16038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16039 ;;
16040 *)
16041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16042 ;;
16043 esac
16044 done
16045
16046 ac_aux_dir='$ac_aux_dir'
16047 xsi_shell='$xsi_shell'
16048 lt_shell_append='$lt_shell_append'
16049
16050 # See if we are running on zsh, and set the options which allow our
16051 # commands through without removal of \ escapes INIT.
16052 if test -n "\${ZSH_VERSION+set}" ; then
16053 setopt NO_GLOB_SUBST
16054 fi
16055
16056
16057 PACKAGE='$PACKAGE'
16058 VERSION='$VERSION'
16059 TIMESTAMP='$TIMESTAMP'
16060 RM='$RM'
16061 ofile='$ofile'
16062
16063
16064
16065
16066 _ACEOF
16067
16068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16069
16070 # Handling of arguments.
16071 for ac_config_target in $ac_config_targets
16072 do
16073 case $ac_config_target in
16074 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16075 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16076 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16077 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16078 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
16079 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
16080 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16081 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
16082 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16083 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16084 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
16085 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16086 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16087 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16088 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16089 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
16090 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
16091 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16092
16093 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16094 esac
16095 done
16096
16097
16098 # If the user did not use the arguments to specify the items to instantiate,
16099 # then the envvar interface is used. Set only those that are not.
16100 # We use the long form for the default assignment because of an extremely
16101 # bizarre bug on SunOS 4.1.3.
16102 if $ac_need_defaults; then
16103 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16104 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16105 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16106 fi
16107
16108 # Have a temporary directory for convenience. Make it in the build tree
16109 # simply because there is no reason against having it here, and in addition,
16110 # creating and moving files from /tmp can sometimes cause problems.
16111 # Hook for its removal unless debugging.
16112 # Note that there is a small window in which the directory will not be cleaned:
16113 # after its creation but before its name has been assigned to `$tmp'.
16114 $debug ||
16115 {
16116 tmp= ac_tmp=
16117 trap 'exit_status=$?
16118 : "${ac_tmp:=$tmp}"
16119 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16120 ' 0
16121 trap 'as_fn_exit 1' 1 2 13 15
16122 }
16123 # Create a (secure) tmp directory for tmp files.
16124
16125 {
16126 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16127 test -d "$tmp"
16128 } ||
16129 {
16130 tmp=./conf$$-$RANDOM
16131 (umask 077 && mkdir "$tmp")
16132 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16133 ac_tmp=$tmp
16134
16135 # Set up the scripts for CONFIG_FILES section.
16136 # No need to generate them if there are no CONFIG_FILES.
16137 # This happens for instance with `./config.status config.h'.
16138 if test -n "$CONFIG_FILES"; then
16139
16140
16141 ac_cr=`echo X | tr X '\015'`
16142 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16143 # But we know of no other shell where ac_cr would be empty at this
16144 # point, so we can use a bashism as a fallback.
16145 if test "x$ac_cr" = x; then
16146 eval ac_cr=\$\'\\r\'
16147 fi
16148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16150 ac_cs_awk_cr='\\r'
16151 else
16152 ac_cs_awk_cr=$ac_cr
16153 fi
16154
16155 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16156 _ACEOF
16157
16158
16159 {
16160 echo "cat >conf$$subs.awk <<_ACEOF" &&
16161 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16162 echo "_ACEOF"
16163 } >conf$$subs.sh ||
16164 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16165 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16166 ac_delim='%!_!# '
16167 for ac_last_try in false false false false false :; do
16168 . ./conf$$subs.sh ||
16169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16170
16171 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16172 if test $ac_delim_n = $ac_delim_num; then
16173 break
16174 elif $ac_last_try; then
16175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16176 else
16177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16178 fi
16179 done
16180 rm -f conf$$subs.sh
16181
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16184 _ACEOF
16185 sed -n '
16186 h
16187 s/^/S["/; s/!.*/"]=/
16188 p
16189 g
16190 s/^[^!]*!//
16191 :repl
16192 t repl
16193 s/'"$ac_delim"'$//
16194 t delim
16195 :nl
16196 h
16197 s/\(.\{148\}\)..*/\1/
16198 t more1
16199 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16200 p
16201 n
16202 b repl
16203 :more1
16204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16205 p
16206 g
16207 s/.\{148\}//
16208 t nl
16209 :delim
16210 h
16211 s/\(.\{148\}\)..*/\1/
16212 t more2
16213 s/["\\]/\\&/g; s/^/"/; s/$/"/
16214 p
16215 b
16216 :more2
16217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16218 p
16219 g
16220 s/.\{148\}//
16221 t delim
16222 ' <conf$$subs.awk | sed '
16223 /^[^""]/{
16224 N
16225 s/\n//
16226 }
16227 ' >>$CONFIG_STATUS || ac_write_fail=1
16228 rm -f conf$$subs.awk
16229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16230 _ACAWK
16231 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16232 for (key in S) S_is_set[key] = 1
16233 FS = ""
16234
16235 }
16236 {
16237 line = $ 0
16238 nfields = split(line, field, "@")
16239 substed = 0
16240 len = length(field[1])
16241 for (i = 2; i < nfields; i++) {
16242 key = field[i]
16243 keylen = length(key)
16244 if (S_is_set[key]) {
16245 value = S[key]
16246 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16247 len += length(value) + length(field[++i])
16248 substed = 1
16249 } else
16250 len += 1 + keylen
16251 }
16252
16253 print line
16254 }
16255
16256 _ACAWK
16257 _ACEOF
16258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16260 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16261 else
16262 cat
16263 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16264 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16265 _ACEOF
16266
16267 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16268 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16269 # trailing colons and then remove the whole line if VPATH becomes empty
16270 # (actually we leave an empty line to preserve line numbers).
16271 if test "x$srcdir" = x.; then
16272 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16273 h
16274 s///
16275 s/^/:/
16276 s/[ ]*$/:/
16277 s/:\$(srcdir):/:/g
16278 s/:\${srcdir}:/:/g
16279 s/:@srcdir@:/:/g
16280 s/^:*//
16281 s/:*$//
16282 x
16283 s/\(=[ ]*\).*/\1/
16284 G
16285 s/\n//
16286 s/^[^=]*=[ ]*$//
16287 }'
16288 fi
16289
16290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16291 fi # test -n "$CONFIG_FILES"
16292
16293 # Set up the scripts for CONFIG_HEADERS section.
16294 # No need to generate them if there are no CONFIG_HEADERS.
16295 # This happens for instance with `./config.status Makefile'.
16296 if test -n "$CONFIG_HEADERS"; then
16297 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16298 BEGIN {
16299 _ACEOF
16300
16301 # Transform confdefs.h into an awk script `defines.awk', embedded as
16302 # here-document in config.status, that substitutes the proper values into
16303 # config.h.in to produce config.h.
16304
16305 # Create a delimiter string that does not exist in confdefs.h, to ease
16306 # handling of long lines.
16307 ac_delim='%!_!# '
16308 for ac_last_try in false false :; do
16309 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16310 if test -z "$ac_tt"; then
16311 break
16312 elif $ac_last_try; then
16313 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16314 else
16315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16316 fi
16317 done
16318
16319 # For the awk script, D is an array of macro values keyed by name,
16320 # likewise P contains macro parameters if any. Preserve backslash
16321 # newline sequences.
16322
16323 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16324 sed -n '
16325 s/.\{148\}/&'"$ac_delim"'/g
16326 t rset
16327 :rset
16328 s/^[ ]*#[ ]*define[ ][ ]*/ /
16329 t def
16330 d
16331 :def
16332 s/\\$//
16333 t bsnl
16334 s/["\\]/\\&/g
16335 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16336 D["\1"]=" \3"/p
16337 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16338 d
16339 :bsnl
16340 s/["\\]/\\&/g
16341 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16342 D["\1"]=" \3\\\\\\n"\\/p
16343 t cont
16344 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16345 t cont
16346 d
16347 :cont
16348 n
16349 s/.\{148\}/&'"$ac_delim"'/g
16350 t clear
16351 :clear
16352 s/\\$//
16353 t bsnlc
16354 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16355 d
16356 :bsnlc
16357 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16358 b cont
16359 ' <confdefs.h | sed '
16360 s/'"$ac_delim"'/"\\\
16361 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16362
16363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16364 for (key in D) D_is_set[key] = 1
16365 FS = ""
16366 }
16367 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16368 line = \$ 0
16369 split(line, arg, " ")
16370 if (arg[1] == "#") {
16371 defundef = arg[2]
16372 mac1 = arg[3]
16373 } else {
16374 defundef = substr(arg[1], 2)
16375 mac1 = arg[2]
16376 }
16377 split(mac1, mac2, "(") #)
16378 macro = mac2[1]
16379 prefix = substr(line, 1, index(line, defundef) - 1)
16380 if (D_is_set[macro]) {
16381 # Preserve the white space surrounding the "#".
16382 print prefix "define", macro P[macro] D[macro]
16383 next
16384 } else {
16385 # Replace #undef with comments. This is necessary, for example,
16386 # in the case of _POSIX_SOURCE, which is predefined and required
16387 # on some systems where configure will not decide to define it.
16388 if (defundef == "undef") {
16389 print "/*", prefix defundef, macro, "*/"
16390 next
16391 }
16392 }
16393 }
16394 { print }
16395 _ACAWK
16396 _ACEOF
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16399 fi # test -n "$CONFIG_HEADERS"
16400
16401
16402 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16403 shift
16404 for ac_tag
16405 do
16406 case $ac_tag in
16407 :[FHLC]) ac_mode=$ac_tag; continue;;
16408 esac
16409 case $ac_mode$ac_tag in
16410 :[FHL]*:*);;
16411 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16412 :[FH]-) ac_tag=-:-;;
16413 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16414 esac
16415 ac_save_IFS=$IFS
16416 IFS=:
16417 set x $ac_tag
16418 IFS=$ac_save_IFS
16419 shift
16420 ac_file=$1
16421 shift
16422
16423 case $ac_mode in
16424 :L) ac_source=$1;;
16425 :[FH])
16426 ac_file_inputs=
16427 for ac_f
16428 do
16429 case $ac_f in
16430 -) ac_f="$ac_tmp/stdin";;
16431 *) # Look for the file first in the build tree, then in the source tree
16432 # (if the path is not absolute). The absolute path cannot be DOS-style,
16433 # because $ac_f cannot contain `:'.
16434 test -f "$ac_f" ||
16435 case $ac_f in
16436 [\\/$]*) false;;
16437 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16438 esac ||
16439 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16440 esac
16441 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16442 as_fn_append ac_file_inputs " '$ac_f'"
16443 done
16444
16445 # Let's still pretend it is `configure' which instantiates (i.e., don't
16446 # use $as_me), people would be surprised to read:
16447 # /* config.h. Generated by config.status. */
16448 configure_input='Generated from '`
16449 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16450 `' by configure.'
16451 if test x"$ac_file" != x-; then
16452 configure_input="$ac_file. $configure_input"
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16454 $as_echo "$as_me: creating $ac_file" >&6;}
16455 fi
16456 # Neutralize special characters interpreted by sed in replacement strings.
16457 case $configure_input in #(
16458 *\&* | *\|* | *\\* )
16459 ac_sed_conf_input=`$as_echo "$configure_input" |
16460 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16461 *) ac_sed_conf_input=$configure_input;;
16462 esac
16463
16464 case $ac_tag in
16465 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16467 esac
16468 ;;
16469 esac
16470
16471 ac_dir=`$as_dirname -- "$ac_file" ||
16472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16473 X"$ac_file" : 'X\(//\)[^/]' \| \
16474 X"$ac_file" : 'X\(//\)$' \| \
16475 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16476 $as_echo X"$ac_file" |
16477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16478 s//\1/
16479 q
16480 }
16481 /^X\(\/\/\)[^/].*/{
16482 s//\1/
16483 q
16484 }
16485 /^X\(\/\/\)$/{
16486 s//\1/
16487 q
16488 }
16489 /^X\(\/\).*/{
16490 s//\1/
16491 q
16492 }
16493 s/.*/./; q'`
16494 as_dir="$ac_dir"; as_fn_mkdir_p
16495 ac_builddir=.
16496
16497 case "$ac_dir" in
16498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16499 *)
16500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16501 # A ".." for each directory in $ac_dir_suffix.
16502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16503 case $ac_top_builddir_sub in
16504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16506 esac ;;
16507 esac
16508 ac_abs_top_builddir=$ac_pwd
16509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16510 # for backward compatibility:
16511 ac_top_builddir=$ac_top_build_prefix
16512
16513 case $srcdir in
16514 .) # We are building in place.
16515 ac_srcdir=.
16516 ac_top_srcdir=$ac_top_builddir_sub
16517 ac_abs_top_srcdir=$ac_pwd ;;
16518 [\\/]* | ?:[\\/]* ) # Absolute name.
16519 ac_srcdir=$srcdir$ac_dir_suffix;
16520 ac_top_srcdir=$srcdir
16521 ac_abs_top_srcdir=$srcdir ;;
16522 *) # Relative name.
16523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16524 ac_top_srcdir=$ac_top_build_prefix$srcdir
16525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16526 esac
16527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16528
16529
16530 case $ac_mode in
16531 :F)
16532 #
16533 # CONFIG_FILE
16534 #
16535
16536 case $INSTALL in
16537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16538 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16539 esac
16540 ac_MKDIR_P=$MKDIR_P
16541 case $MKDIR_P in
16542 [\\/$]* | ?:[\\/]* ) ;;
16543 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16544 esac
16545 _ACEOF
16546
16547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16548 # If the template does not know about datarootdir, expand it.
16549 # FIXME: This hack should be removed a few years after 2.60.
16550 ac_datarootdir_hack=; ac_datarootdir_seen=
16551 ac_sed_dataroot='
16552 /datarootdir/ {
16553 p
16554 q
16555 }
16556 /@datadir@/p
16557 /@docdir@/p
16558 /@infodir@/p
16559 /@localedir@/p
16560 /@mandir@/p'
16561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16562 *datarootdir*) ac_datarootdir_seen=yes;;
16563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16566 _ACEOF
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16568 ac_datarootdir_hack='
16569 s&@datadir@&$datadir&g
16570 s&@docdir@&$docdir&g
16571 s&@infodir@&$infodir&g
16572 s&@localedir@&$localedir&g
16573 s&@mandir@&$mandir&g
16574 s&\\\${datarootdir}&$datarootdir&g' ;;
16575 esac
16576 _ACEOF
16577
16578 # Neutralize VPATH when `$srcdir' = `.'.
16579 # Shell code in configure.ac might set extrasub.
16580 # FIXME: do we really want to maintain this feature?
16581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16582 ac_sed_extra="$ac_vpsub
16583 $extrasub
16584 _ACEOF
16585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16586 :t
16587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16588 s|@configure_input@|$ac_sed_conf_input|;t t
16589 s&@top_builddir@&$ac_top_builddir_sub&;t t
16590 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16591 s&@srcdir@&$ac_srcdir&;t t
16592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16593 s&@top_srcdir@&$ac_top_srcdir&;t t
16594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16595 s&@builddir@&$ac_builddir&;t t
16596 s&@abs_builddir@&$ac_abs_builddir&;t t
16597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16598 s&@INSTALL@&$ac_INSTALL&;t t
16599 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16600 $ac_datarootdir_hack
16601 "
16602 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16603 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16604
16605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16606 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16608 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16610 which seems to be undefined. Please make sure it is defined" >&5
16611 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16612 which seems to be undefined. Please make sure it is defined" >&2;}
16613
16614 rm -f "$ac_tmp/stdin"
16615 case $ac_file in
16616 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16617 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16618 esac \
16619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16620 ;;
16621 :H)
16622 #
16623 # CONFIG_HEADER
16624 #
16625 if test x"$ac_file" != x-; then
16626 {
16627 $as_echo "/* $configure_input */" \
16628 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16629 } >"$ac_tmp/config.h" \
16630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16631 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16633 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16634 else
16635 rm -f "$ac_file"
16636 mv "$ac_tmp/config.h" "$ac_file" \
16637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16638 fi
16639 else
16640 $as_echo "/* $configure_input */" \
16641 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16642 || as_fn_error $? "could not create -" "$LINENO" 5
16643 fi
16644 # Compute "$ac_file"'s index in $config_headers.
16645 _am_arg="$ac_file"
16646 _am_stamp_count=1
16647 for _am_header in $config_headers :; do
16648 case $_am_header in
16649 $_am_arg | $_am_arg:* )
16650 break ;;
16651 * )
16652 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16653 esac
16654 done
16655 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16656 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16657 X"$_am_arg" : 'X\(//\)[^/]' \| \
16658 X"$_am_arg" : 'X\(//\)$' \| \
16659 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16660 $as_echo X"$_am_arg" |
16661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16662 s//\1/
16663 q
16664 }
16665 /^X\(\/\/\)[^/].*/{
16666 s//\1/
16667 q
16668 }
16669 /^X\(\/\/\)$/{
16670 s//\1/
16671 q
16672 }
16673 /^X\(\/\).*/{
16674 s//\1/
16675 q
16676 }
16677 s/.*/./; q'`/stamp-h$_am_stamp_count
16678 ;;
16679
16680 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16681 $as_echo "$as_me: executing $ac_file commands" >&6;}
16682 ;;
16683 esac
16684
16685
16686 case $ac_file$ac_mode in
16687 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16688 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16689 # are listed without --file. Let's play safe and only enable the eval
16690 # if we detect the quoting.
16691 case $CONFIG_FILES in
16692 *\'*) eval set x "$CONFIG_FILES" ;;
16693 *) set x $CONFIG_FILES ;;
16694 esac
16695 shift
16696 for mf
16697 do
16698 # Strip MF so we end up with the name of the file.
16699 mf=`echo "$mf" | sed -e 's/:.*$//'`
16700 # Check whether this is an Automake generated Makefile or not.
16701 # We used to match only the files named `Makefile.in', but
16702 # some people rename them; so instead we look at the file content.
16703 # Grep'ing the first line is not enough: some people post-process
16704 # each Makefile.in and add a new line on top of each file to say so.
16705 # Grep'ing the whole file is not good either: AIX grep has a line
16706 # limit of 2048, but all sed's we know have understand at least 4000.
16707 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16708 dirpart=`$as_dirname -- "$mf" ||
16709 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16710 X"$mf" : 'X\(//\)[^/]' \| \
16711 X"$mf" : 'X\(//\)$' \| \
16712 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16713 $as_echo X"$mf" |
16714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16715 s//\1/
16716 q
16717 }
16718 /^X\(\/\/\)[^/].*/{
16719 s//\1/
16720 q
16721 }
16722 /^X\(\/\/\)$/{
16723 s//\1/
16724 q
16725 }
16726 /^X\(\/\).*/{
16727 s//\1/
16728 q
16729 }
16730 s/.*/./; q'`
16731 else
16732 continue
16733 fi
16734 # Extract the definition of DEPDIR, am__include, and am__quote
16735 # from the Makefile without running `make'.
16736 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16737 test -z "$DEPDIR" && continue
16738 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16739 test -z "am__include" && continue
16740 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16741 # When using ansi2knr, U may be empty or an underscore; expand it
16742 U=`sed -n 's/^U = //p' < "$mf"`
16743 # Find all dependency output files, they are included files with
16744 # $(DEPDIR) in their names. We invoke sed twice because it is the
16745 # simplest approach to changing $(DEPDIR) to its actual value in the
16746 # expansion.
16747 for file in `sed -n "
16748 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16749 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16750 # Make sure the directory exists.
16751 test -f "$dirpart/$file" && continue
16752 fdir=`$as_dirname -- "$file" ||
16753 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16754 X"$file" : 'X\(//\)[^/]' \| \
16755 X"$file" : 'X\(//\)$' \| \
16756 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16757 $as_echo X"$file" |
16758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16759 s//\1/
16760 q
16761 }
16762 /^X\(\/\/\)[^/].*/{
16763 s//\1/
16764 q
16765 }
16766 /^X\(\/\/\)$/{
16767 s//\1/
16768 q
16769 }
16770 /^X\(\/\).*/{
16771 s//\1/
16772 q
16773 }
16774 s/.*/./; q'`
16775 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16776 # echo "creating $dirpart/$file"
16777 echo '# dummy' > "$dirpart/$file"
16778 done
16779 done
16780 }
16781 ;;
16782 "libtool":C)
16783
16784 # See if we are running on zsh, and set the options which allow our
16785 # commands through without removal of \ escapes.
16786 if test -n "${ZSH_VERSION+set}" ; then
16787 setopt NO_GLOB_SUBST
16788 fi
16789
16790 cfgfile="${ofile}T"
16791 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16792 $RM "$cfgfile"
16793
16794 cat <<_LT_EOF >> "$cfgfile"
16795 #! $SHELL
16796
16797 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16798 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16800 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16801 #
16802 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16803 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16804 # Inc.
16805 # Written by Gordon Matzigkeit, 1996
16806 #
16807 # This file is part of GNU Libtool.
16808 #
16809 # GNU Libtool is free software; you can redistribute it and/or
16810 # modify it under the terms of the GNU General Public License as
16811 # published by the Free Software Foundation; either version 2 of
16812 # the License, or (at your option) any later version.
16813 #
16814 # As a special exception to the GNU General Public License,
16815 # if you distribute this file as part of a program or library that
16816 # is built using GNU Libtool, you may include this file under the
16817 # same distribution terms that you use for the rest of that program.
16818 #
16819 # GNU Libtool is distributed in the hope that it will be useful,
16820 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16822 # GNU General Public License for more details.
16823 #
16824 # You should have received a copy of the GNU General Public License
16825 # along with GNU Libtool; see the file COPYING. If not, a copy
16826 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16827 # obtained by writing to the Free Software Foundation, Inc.,
16828 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16829
16830
16831 # The names of the tagged configurations supported by this script.
16832 available_tags=""
16833
16834 # ### BEGIN LIBTOOL CONFIG
16835
16836 # Which release of libtool.m4 was used?
16837 macro_version=$macro_version
16838 macro_revision=$macro_revision
16839
16840 # Whether or not to build static libraries.
16841 build_old_libs=$enable_static
16842
16843 # Whether or not to build shared libraries.
16844 build_libtool_libs=$enable_shared
16845
16846 # What type of objects to build.
16847 pic_mode=$pic_mode
16848
16849 # Whether or not to optimize for fast installation.
16850 fast_install=$enable_fast_install
16851
16852 # Shell to use when invoking shell scripts.
16853 SHELL=$lt_SHELL
16854
16855 # An echo program that protects backslashes.
16856 ECHO=$lt_ECHO
16857
16858 # The host system.
16859 host_alias=$host_alias
16860 host=$host
16861 host_os=$host_os
16862
16863 # The build system.
16864 build_alias=$build_alias
16865 build=$build
16866 build_os=$build_os
16867
16868 # A sed program that does not truncate output.
16869 SED=$lt_SED
16870
16871 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16872 Xsed="\$SED -e 1s/^X//"
16873
16874 # A grep program that handles long lines.
16875 GREP=$lt_GREP
16876
16877 # An ERE matcher.
16878 EGREP=$lt_EGREP
16879
16880 # A literal string matcher.
16881 FGREP=$lt_FGREP
16882
16883 # A BSD- or MS-compatible name lister.
16884 NM=$lt_NM
16885
16886 # Whether we need soft or hard links.
16887 LN_S=$lt_LN_S
16888
16889 # What is the maximum length of a command?
16890 max_cmd_len=$max_cmd_len
16891
16892 # Object file suffix (normally "o").
16893 objext=$ac_objext
16894
16895 # Executable file suffix (normally "").
16896 exeext=$exeext
16897
16898 # whether the shell understands "unset".
16899 lt_unset=$lt_unset
16900
16901 # turn spaces into newlines.
16902 SP2NL=$lt_lt_SP2NL
16903
16904 # turn newlines into spaces.
16905 NL2SP=$lt_lt_NL2SP
16906
16907 # convert \$build file names to \$host format.
16908 to_host_file_cmd=$lt_cv_to_host_file_cmd
16909
16910 # convert \$build files to toolchain format.
16911 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16912
16913 # An object symbol dumper.
16914 OBJDUMP=$lt_OBJDUMP
16915
16916 # Method to check whether dependent libraries are shared objects.
16917 deplibs_check_method=$lt_deplibs_check_method
16918
16919 # Command to use when deplibs_check_method = "file_magic".
16920 file_magic_cmd=$lt_file_magic_cmd
16921
16922 # How to find potential files when deplibs_check_method = "file_magic".
16923 file_magic_glob=$lt_file_magic_glob
16924
16925 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16926 want_nocaseglob=$lt_want_nocaseglob
16927
16928 # DLL creation program.
16929 DLLTOOL=$lt_DLLTOOL
16930
16931 # Command to associate shared and link libraries.
16932 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16933
16934 # The archiver.
16935 AR=$lt_AR
16936
16937 # Flags to create an archive.
16938 AR_FLAGS=$lt_AR_FLAGS
16939
16940 # How to feed a file listing to the archiver.
16941 archiver_list_spec=$lt_archiver_list_spec
16942
16943 # A symbol stripping program.
16944 STRIP=$lt_STRIP
16945
16946 # Commands used to install an old-style archive.
16947 RANLIB=$lt_RANLIB
16948 old_postinstall_cmds=$lt_old_postinstall_cmds
16949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16950
16951 # Whether to use a lock for old archive extraction.
16952 lock_old_archive_extraction=$lock_old_archive_extraction
16953
16954 # A C compiler.
16955 LTCC=$lt_CC
16956
16957 # LTCC compiler flags.
16958 LTCFLAGS=$lt_CFLAGS
16959
16960 # Take the output of nm and produce a listing of raw symbols and C names.
16961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16962
16963 # Transform the output of nm in a proper C declaration.
16964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16965
16966 # Transform the output of nm in a C name address pair.
16967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16968
16969 # Transform the output of nm in a C name address pair when lib prefix is needed.
16970 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16971
16972 # Specify filename containing input files for \$NM.
16973 nm_file_list_spec=$lt_nm_file_list_spec
16974
16975 # The root where to search for dependent libraries,and in which our libraries should be installed.
16976 lt_sysroot=$lt_sysroot
16977
16978 # The name of the directory that contains temporary libtool files.
16979 objdir=$objdir
16980
16981 # Used to examine libraries when file_magic_cmd begins with "file".
16982 MAGIC_CMD=$MAGIC_CMD
16983
16984 # Must we lock files when doing compilation?
16985 need_locks=$lt_need_locks
16986
16987 # Manifest tool.
16988 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16989
16990 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16991 DSYMUTIL=$lt_DSYMUTIL
16992
16993 # Tool to change global to local symbols on Mac OS X.
16994 NMEDIT=$lt_NMEDIT
16995
16996 # Tool to manipulate fat objects and archives on Mac OS X.
16997 LIPO=$lt_LIPO
16998
16999 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17000 OTOOL=$lt_OTOOL
17001
17002 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17003 OTOOL64=$lt_OTOOL64
17004
17005 # Old archive suffix (normally "a").
17006 libext=$libext
17007
17008 # Shared library suffix (normally ".so").
17009 shrext_cmds=$lt_shrext_cmds
17010
17011 # The commands to extract the exported symbol list from a shared archive.
17012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17013
17014 # Variables whose values should be saved in libtool wrapper scripts and
17015 # restored at link time.
17016 variables_saved_for_relink=$lt_variables_saved_for_relink
17017
17018 # Do we need the "lib" prefix for modules?
17019 need_lib_prefix=$need_lib_prefix
17020
17021 # Do we need a version for libraries?
17022 need_version=$need_version
17023
17024 # Library versioning type.
17025 version_type=$version_type
17026
17027 # Shared library runtime path variable.
17028 runpath_var=$runpath_var
17029
17030 # Shared library path variable.
17031 shlibpath_var=$shlibpath_var
17032
17033 # Is shlibpath searched before the hard-coded library search path?
17034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17035
17036 # Format of library name prefix.
17037 libname_spec=$lt_libname_spec
17038
17039 # List of archive names. First name is the real one, the rest are links.
17040 # The last name is the one that the linker finds with -lNAME
17041 library_names_spec=$lt_library_names_spec
17042
17043 # The coded name of the library, if different from the real name.
17044 soname_spec=$lt_soname_spec
17045
17046 # Permission mode override for installation of shared libraries.
17047 install_override_mode=$lt_install_override_mode
17048
17049 # Command to use after installation of a shared archive.
17050 postinstall_cmds=$lt_postinstall_cmds
17051
17052 # Command to use after uninstallation of a shared archive.
17053 postuninstall_cmds=$lt_postuninstall_cmds
17054
17055 # Commands used to finish a libtool library installation in a directory.
17056 finish_cmds=$lt_finish_cmds
17057
17058 # As "finish_cmds", except a single script fragment to be evaled but
17059 # not shown.
17060 finish_eval=$lt_finish_eval
17061
17062 # Whether we should hardcode library paths into libraries.
17063 hardcode_into_libs=$hardcode_into_libs
17064
17065 # Compile-time system search path for libraries.
17066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17067
17068 # Run-time system search path for libraries.
17069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17070
17071 # Whether dlopen is supported.
17072 dlopen_support=$enable_dlopen
17073
17074 # Whether dlopen of programs is supported.
17075 dlopen_self=$enable_dlopen_self
17076
17077 # Whether dlopen of statically linked programs is supported.
17078 dlopen_self_static=$enable_dlopen_self_static
17079
17080 # Commands to strip libraries.
17081 old_striplib=$lt_old_striplib
17082 striplib=$lt_striplib
17083
17084
17085 # The linker used to build libraries.
17086 LD=$lt_LD
17087
17088 # How to create reloadable object files.
17089 reload_flag=$lt_reload_flag
17090 reload_cmds=$lt_reload_cmds
17091
17092 # Commands used to build an old-style archive.
17093 old_archive_cmds=$lt_old_archive_cmds
17094
17095 # A language specific compiler.
17096 CC=$lt_compiler
17097
17098 # Is the compiler the GNU compiler?
17099 with_gcc=$GCC
17100
17101 # Compiler flag to turn off builtin functions.
17102 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17103
17104 # Additional compiler flags for building library objects.
17105 pic_flag=$lt_lt_prog_compiler_pic
17106
17107 # How to pass a linker flag through the compiler.
17108 wl=$lt_lt_prog_compiler_wl
17109
17110 # Compiler flag to prevent dynamic linking.
17111 link_static_flag=$lt_lt_prog_compiler_static
17112
17113 # Does compiler simultaneously support -c and -o options?
17114 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17115
17116 # Whether or not to add -lc for building shared libraries.
17117 build_libtool_need_lc=$archive_cmds_need_lc
17118
17119 # Whether or not to disallow shared libs when runtime libs are static.
17120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17121
17122 # Compiler flag to allow reflexive dlopens.
17123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17124
17125 # Compiler flag to generate shared objects directly from archives.
17126 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17127
17128 # Whether the compiler copes with passing no objects directly.
17129 compiler_needs_object=$lt_compiler_needs_object
17130
17131 # Create an old-style archive from a shared archive.
17132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17133
17134 # Create a temporary old-style archive to link instead of a shared archive.
17135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17136
17137 # Commands used to build a shared archive.
17138 archive_cmds=$lt_archive_cmds
17139 archive_expsym_cmds=$lt_archive_expsym_cmds
17140
17141 # Commands used to build a loadable module if different from building
17142 # a shared archive.
17143 module_cmds=$lt_module_cmds
17144 module_expsym_cmds=$lt_module_expsym_cmds
17145
17146 # Whether we are building with GNU ld or not.
17147 with_gnu_ld=$lt_with_gnu_ld
17148
17149 # Flag that allows shared libraries with undefined symbols to be built.
17150 allow_undefined_flag=$lt_allow_undefined_flag
17151
17152 # Flag that enforces no undefined symbols.
17153 no_undefined_flag=$lt_no_undefined_flag
17154
17155 # Flag to hardcode \$libdir into a binary during linking.
17156 # This must work even if \$libdir does not exist
17157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17158
17159 # If ld is used when linking, flag to hardcode \$libdir into a binary
17160 # during linking. This must work even if \$libdir does not exist.
17161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17162
17163 # Whether we need a single "-rpath" flag with a separated argument.
17164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17165
17166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17167 # DIR into the resulting binary.
17168 hardcode_direct=$hardcode_direct
17169
17170 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17171 # DIR into the resulting binary and the resulting library dependency is
17172 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17173 # library is relocated.
17174 hardcode_direct_absolute=$hardcode_direct_absolute
17175
17176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17177 # into the resulting binary.
17178 hardcode_minus_L=$hardcode_minus_L
17179
17180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17181 # into the resulting binary.
17182 hardcode_shlibpath_var=$hardcode_shlibpath_var
17183
17184 # Set to "yes" if building a shared library automatically hardcodes DIR
17185 # into the library and all subsequent libraries and executables linked
17186 # against it.
17187 hardcode_automatic=$hardcode_automatic
17188
17189 # Set to yes if linker adds runtime paths of dependent libraries
17190 # to runtime path list.
17191 inherit_rpath=$inherit_rpath
17192
17193 # Whether libtool must link a program against all its dependency libraries.
17194 link_all_deplibs=$link_all_deplibs
17195
17196 # Set to "yes" if exported symbols are required.
17197 always_export_symbols=$always_export_symbols
17198
17199 # The commands to list exported symbols.
17200 export_symbols_cmds=$lt_export_symbols_cmds
17201
17202 # Symbols that should not be listed in the preloaded symbols.
17203 exclude_expsyms=$lt_exclude_expsyms
17204
17205 # Symbols that must always be exported.
17206 include_expsyms=$lt_include_expsyms
17207
17208 # Commands necessary for linking programs (against libraries) with templates.
17209 prelink_cmds=$lt_prelink_cmds
17210
17211 # Commands necessary for finishing linking programs.
17212 postlink_cmds=$lt_postlink_cmds
17213
17214 # Specify filename containing input files.
17215 file_list_spec=$lt_file_list_spec
17216
17217 # How to hardcode a shared library path into an executable.
17218 hardcode_action=$hardcode_action
17219
17220 # ### END LIBTOOL CONFIG
17221
17222 _LT_EOF
17223
17224 case $host_os in
17225 aix3*)
17226 cat <<\_LT_EOF >> "$cfgfile"
17227 # AIX sometimes has problems with the GCC collect2 program. For some
17228 # reason, if we set the COLLECT_NAMES environment variable, the problems
17229 # vanish in a puff of smoke.
17230 if test "X${COLLECT_NAMES+set}" != Xset; then
17231 COLLECT_NAMES=
17232 export COLLECT_NAMES
17233 fi
17234 _LT_EOF
17235 ;;
17236 esac
17237
17238
17239 ltmain="$ac_aux_dir/ltmain.sh"
17240
17241
17242 # We use sed instead of cat because bash on DJGPP gets confused if
17243 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17244 # text mode, it properly converts lines to CR/LF. This bash problem
17245 # is reportedly fixed, but why not run on old versions too?
17246 sed '$q' "$ltmain" >> "$cfgfile" \
17247 || (rm -f "$cfgfile"; exit 1)
17248
17249 if test x"$xsi_shell" = xyes; then
17250 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17251 func_dirname ()\
17252 {\
17253 \ case ${1} in\
17254 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17255 \ * ) func_dirname_result="${3}" ;;\
17256 \ esac\
17257 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17258 && mv -f "$cfgfile.tmp" "$cfgfile" \
17259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17260 test 0 -eq $? || _lt_function_replace_fail=:
17261
17262
17263 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17264 func_basename ()\
17265 {\
17266 \ func_basename_result="${1##*/}"\
17267 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17268 && mv -f "$cfgfile.tmp" "$cfgfile" \
17269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17270 test 0 -eq $? || _lt_function_replace_fail=:
17271
17272
17273 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17274 func_dirname_and_basename ()\
17275 {\
17276 \ case ${1} in\
17277 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17278 \ * ) func_dirname_result="${3}" ;;\
17279 \ esac\
17280 \ func_basename_result="${1##*/}"\
17281 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17282 && mv -f "$cfgfile.tmp" "$cfgfile" \
17283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17284 test 0 -eq $? || _lt_function_replace_fail=:
17285
17286
17287 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17288 func_stripname ()\
17289 {\
17290 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17291 \ # positional parameters, so assign one to ordinary parameter first.\
17292 \ func_stripname_result=${3}\
17293 \ func_stripname_result=${func_stripname_result#"${1}"}\
17294 \ func_stripname_result=${func_stripname_result%"${2}"}\
17295 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17296 && mv -f "$cfgfile.tmp" "$cfgfile" \
17297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17298 test 0 -eq $? || _lt_function_replace_fail=:
17299
17300
17301 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17302 func_split_long_opt ()\
17303 {\
17304 \ func_split_long_opt_name=${1%%=*}\
17305 \ func_split_long_opt_arg=${1#*=}\
17306 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17307 && mv -f "$cfgfile.tmp" "$cfgfile" \
17308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309 test 0 -eq $? || _lt_function_replace_fail=:
17310
17311
17312 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17313 func_split_short_opt ()\
17314 {\
17315 \ func_split_short_opt_arg=${1#??}\
17316 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17317 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17318 && mv -f "$cfgfile.tmp" "$cfgfile" \
17319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17321
17322
17323 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17324 func_lo2o ()\
17325 {\
17326 \ case ${1} in\
17327 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17328 \ *) func_lo2o_result=${1} ;;\
17329 \ esac\
17330 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17331 && mv -f "$cfgfile.tmp" "$cfgfile" \
17332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17333 test 0 -eq $? || _lt_function_replace_fail=:
17334
17335
17336 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17337 func_xform ()\
17338 {\
17339 func_xform_result=${1%.*}.lo\
17340 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17341 && mv -f "$cfgfile.tmp" "$cfgfile" \
17342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17343 test 0 -eq $? || _lt_function_replace_fail=:
17344
17345
17346 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17347 func_arith ()\
17348 {\
17349 func_arith_result=$(( $* ))\
17350 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17351 && mv -f "$cfgfile.tmp" "$cfgfile" \
17352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17353 test 0 -eq $? || _lt_function_replace_fail=:
17354
17355
17356 sed -e '/^func_len ()$/,/^} # func_len /c\
17357 func_len ()\
17358 {\
17359 func_len_result=${#1}\
17360 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17361 && mv -f "$cfgfile.tmp" "$cfgfile" \
17362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17363 test 0 -eq $? || _lt_function_replace_fail=:
17364
17365 fi
17366
17367 if test x"$lt_shell_append" = xyes; then
17368 sed -e '/^func_append ()$/,/^} # func_append /c\
17369 func_append ()\
17370 {\
17371 eval "${1}+=\\${2}"\
17372 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17373 && mv -f "$cfgfile.tmp" "$cfgfile" \
17374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17375 test 0 -eq $? || _lt_function_replace_fail=:
17376
17377
17378 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17379 func_append_quoted ()\
17380 {\
17381 \ func_quote_for_eval "${2}"\
17382 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17383 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17384 && mv -f "$cfgfile.tmp" "$cfgfile" \
17385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17386 test 0 -eq $? || _lt_function_replace_fail=:
17387
17388
17389 # Save a `func_append' function call where possible by direct use of '+='
17390 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17391 && mv -f "$cfgfile.tmp" "$cfgfile" \
17392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17393 test 0 -eq $? || _lt_function_replace_fail=:
17394 else
17395 # Save a `func_append' function call even when '+=' is not available
17396 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17397 && mv -f "$cfgfile.tmp" "$cfgfile" \
17398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17399 test 0 -eq $? || _lt_function_replace_fail=:
17400 fi
17401
17402 if test x"$_lt_function_replace_fail" = x":"; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17404 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17405 fi
17406
17407
17408 mv -f "$cfgfile" "$ofile" ||
17409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17410 chmod +x "$ofile"
17411
17412 ;;
17413
17414 esac
17415 done # for ac_tag
17416
17417
17418 as_fn_exit 0
17419 _ACEOF
17420 ac_clean_files=$ac_clean_files_save
17421
17422 test $ac_write_fail = 0 ||
17423 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17424
17425
17426 # configure is writing to config.log, and then calls config.status.
17427 # config.status does its own redirection, appending to config.log.
17428 # Unfortunately, on DOS this fails, as config.log is still kept open
17429 # by configure, so config.status won't be able to write to it; its
17430 # output is simply discarded. So we exec the FD to /dev/null,
17431 # effectively closing config.log, so it can be properly (re)opened and
17432 # appended to by config.status. When coming back to configure, we
17433 # need to make the FD available again.
17434 if test "$no_create" != yes; then
17435 ac_cs_success=:
17436 ac_config_status_args=
17437 test "$silent" = yes &&
17438 ac_config_status_args="$ac_config_status_args --quiet"
17439 exec 5>/dev/null
17440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17441 exec 5>>config.log
17442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17443 # would make configure fail if this is the last instruction.
17444 $ac_cs_success || as_fn_exit 1
17445 fi
17446 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17448 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17449 fi
17450

Properties

Name Value
svn:executable *