ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
Revision: 1349
Committed: Wed Apr 11 18:45:51 2012 UTC (14 years, 4 months ago) by michael
Original Path: ircd-hybrid-8/configure
File size: 491179 byte(s)
Log Message:
- cleanup pcre library test

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1348 2012-04-11 17:04:22Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for ircd-hybrid 8beta1.
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='8beta1'
577 PACKAGE_STRING='ircd-hybrid 8beta1'
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 LTDLOPEN
636 LT_CONFIG_H
637 CONVENIENCE_LTDL_FALSE
638 CONVENIENCE_LTDL_TRUE
639 INSTALL_LTDL_FALSE
640 INSTALL_LTDL_TRUE
641 ARGZ_H
642 sys_symbol_underscore
643 LIBADD_DL
644 LT_DLPREOPEN
645 LIBADD_DLD_LINK
646 LIBADD_SHL_LOAD
647 LIBADD_DLOPEN
648 LT_DLLOADERS
649 INCLTDL
650 LTDLINCL
651 LTDLDEPS
652 LIBLTDL
653 CPP
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 MANIFEST_TOOL
660 RANLIB
661 ac_ct_AR
662 AR
663 DLLTOOL
664 OBJDUMP
665 LN_S
666 NM
667 ac_ct_DUMPBIN
668 DUMPBIN
669 LD
670 FGREP
671 EGREP
672 GREP
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 LIBTOOL
683 LEXLIB
684 LEX_OUTPUT_ROOT
685 LEX
686 YFLAGS
687 YACC
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_maintainer_mode
773 enable_dependency_tracking
774 enable_static
775 enable_shared
776 with_pic
777 enable_fast_install
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 with_included_ltdl
782 with_ltdl_include
783 with_ltdl_lib
784 enable_ltdl_install
785 enable_libpcre
786 enable_openssl
787 enable_assert
788 enable_small_net
789 enable_kqueue
790 enable_epoll
791 enable_devpoll
792 enable_rtsigio
793 enable_poll
794 enable_select
795 with_nicklen
796 with_topiclen
797 enable_efnet
798 enable_halfops
799 enable_debugging
800 enable_warnings
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 YACC
811 YFLAGS
812 CPP'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used" >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1272 fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)$/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\).*/{
1312 s//\1/
1313 q
1314 }
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1319 fi
1320 else
1321 ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 fi
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-maintainer-mode enable make rules and dependencies not useful
1434 (and sometimes confusing) to the casual installer
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
1437 --enable-static[=PKGS] build static libraries [default=no]
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-ltdl-install install libltdl
1443 --disable-libpcre Disable PCRE support
1444 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1445 --disable-openssl Disable OpenSSL support.
1446 --enable-assert Enable assert() statements
1447 --enable-small-net Enable small network support.
1448 --enable-kqueue Force kqueue usage.
1449 --enable-epoll Force epoll usage.
1450 --enable-devpoll Force devpoll usage.
1451 --enable-rtsigio Force rtsigio usage.
1452 --enable-poll Force poll usage.
1453 --enable-select Force select usage.
1454 --enable-efnet For IRCDs running on EFnet.
1455 --enable-halfops Enable halfops support.
1456 --enable-debugging Enable debugging.
1457 --enable-warnings Enable compiler warnings.
1458
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot=DIR Search for dependent libraries within DIR
1466 (or the compiler's sysroot if not specified).
1467 --with-included-ltdl use the GNU ltdl sources included here
1468 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1469 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1470 --with-nicklen=<value> Set nickname length (default 9).
1471 --with-topiclen=<value> Set topic length (default 160).
1472
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 YACC The `Yet Another Compiler Compiler' implementation to use.
1482 Defaults to the first program found out of: `bison -y', `byacc',
1483 `yacc'.
1484 YFLAGS The list of arguments that will be passed by default to $YACC.
1485 This script will default YFLAGS to the empty string to avoid a
1486 default value of `-d' given by some make applications.
1487 CPP C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <bugs@ircd-hybrid.org>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 ircd-hybrid configure 8beta1
1556 generated by GNU Autoconf 2.68
1557
1558 Copyright (C) 2010 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 $as_test_x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_link
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1831 # ---------------------------------------------
1832 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1833 # accordingly.
1834 ac_fn_c_check_decl ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 as_decl_name=`echo $2|sed 's/ *(.*//'`
1838 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1840 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 $4
1847 int
1848 main ()
1849 {
1850 #ifndef $as_decl_name
1851 #ifdef __cplusplus
1852 (void) $as_decl_use;
1853 #else
1854 (void) $as_decl_name;
1855 #endif
1856 #endif
1857
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_decl
1875
1876 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1877 # -------------------------------------------
1878 # Tests whether TYPE exists after having included INCLUDES, setting cache
1879 # variable VAR accordingly.
1880 ac_fn_c_check_type ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=no"
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 int
1893 main ()
1894 {
1895 if (sizeof ($2))
1896 return 0;
1897 ;
1898 return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 if (sizeof (($2)))
1909 return 0;
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915
1916 else
1917 eval "$3=yes"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_type
1929
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if eval \${$4+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $5
1945 int
1946 main ()
1947 {
1948 static $2 ac_aggr;
1949 if (ac_aggr.$3)
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (sizeof ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 eval "$4=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_member
1986
1987 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1990 # the include files in INCLUDES and setting the cache variable VAR
1991 # accordingly.
1992 ac_fn_c_check_header_mongrel ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if eval \${$3+:} false; then :
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 fi
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 else
2005 # Is the header compilable?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2007 $as_echo_n "checking $2 usability... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $4
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_header_compiler=yes
2015 else
2016 ac_header_compiler=no
2017 fi
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2020 $as_echo "$ac_header_compiler" >&6; }
2021
2022 # Is the header present?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2024 $as_echo_n "checking $2 presence... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_cpp "$LINENO"; then :
2030 ac_header_preproc=yes
2031 else
2032 ac_header_preproc=no
2033 fi
2034 rm -f conftest.err conftest.i conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2036 $as_echo "$ac_header_preproc" >&6; }
2037
2038 # So? What about this header?
2039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 yes:no: )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2042 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 ;;
2046 no:yes:* )
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2048 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2050 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2052 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2054 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057 ( $as_echo "## ----------------------------------- ##
2058 ## Report this to bugs@ircd-hybrid.org ##
2059 ## ----------------------------------- ##"
2060 ) | sed "s/^/$as_me: WARNING: /" >&2
2061 ;;
2062 esac
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=\$ac_header_compiler"
2069 fi
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 fi
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076 } # ac_fn_c_check_header_mongrel
2077 cat >config.log <<_ACEOF
2078 This file contains any messages produced by compilers while
2079 running configure, to aid debugging if configure makes a mistake.
2080
2081 It was created by ircd-hybrid $as_me 8beta1, which was
2082 generated by GNU Autoconf 2.68. Invocation command line was
2083
2084 $ $0 $@
2085
2086 _ACEOF
2087 exec 5>>config.log
2088 {
2089 cat <<_ASUNAME
2090 ## --------- ##
2091 ## Platform. ##
2092 ## --------- ##
2093
2094 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2095 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2096 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2097 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2098 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2099
2100 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2101 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2102
2103 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2104 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2105 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2106 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2107 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2108 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2109 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110
2111 _ASUNAME
2112
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 $as_echo "PATH: $as_dir"
2119 done
2120 IFS=$as_save_IFS
2121
2122 } >&5
2123
2124 cat >&5 <<_ACEOF
2125
2126
2127 ## ----------- ##
2128 ## Core tests. ##
2129 ## ----------- ##
2130
2131 _ACEOF
2132
2133
2134 # Keep a trace of the command line.
2135 # Strip out --no-create and --no-recursion so they do not pile up.
2136 # Strip out --silent because we don't want to record it for future runs.
2137 # Also quote any args containing shell meta-characters.
2138 # Make two passes to allow for proper duplicate-argument suppression.
2139 ac_configure_args=
2140 ac_configure_args0=
2141 ac_configure_args1=
2142 ac_must_keep_next=false
2143 for ac_pass in 1 2
2144 do
2145 for ac_arg
2146 do
2147 case $ac_arg in
2148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2150 | -silent | --silent | --silen | --sile | --sil)
2151 continue ;;
2152 *\'*)
2153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 esac
2155 case $ac_pass in
2156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2157 2)
2158 as_fn_append ac_configure_args1 " '$ac_arg'"
2159 if test $ac_must_keep_next = true; then
2160 ac_must_keep_next=false # Got value, back to normal.
2161 else
2162 case $ac_arg in
2163 *=* | --config-cache | -C | -disable-* | --disable-* \
2164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2166 | -with-* | --with-* | -without-* | --without-* | --x)
2167 case "$ac_configure_args0 " in
2168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 esac
2170 ;;
2171 -* ) ac_must_keep_next=true ;;
2172 esac
2173 fi
2174 as_fn_append ac_configure_args " '$ac_arg'"
2175 ;;
2176 esac
2177 done
2178 done
2179 { ac_configure_args0=; unset ac_configure_args0;}
2180 { ac_configure_args1=; unset ac_configure_args1;}
2181
2182 # When interrupted or exit'd, cleanup temporary files, and complete
2183 # config.log. We remove comments because anyway the quotes in there
2184 # would cause problems or look ugly.
2185 # WARNING: Use '\'' to represent an apostrophe within the trap.
2186 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2187 trap 'exit_status=$?
2188 # Save into config.log some information that might help in debugging.
2189 {
2190 echo
2191
2192 $as_echo "## ---------------- ##
2193 ## Cache variables. ##
2194 ## ---------------- ##"
2195 echo
2196 # The following way of writing the cache mishandles newlines in values,
2197 (
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2210 esac ;;
2211 esac
2212 done
2213 (set) 2>&1 |
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
2216 sed -n \
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
2220 *)
2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2222 ;;
2223 esac |
2224 sort
2225 )
2226 echo
2227
2228 $as_echo "## ----------------- ##
2229 ## Output variables. ##
2230 ## ----------------- ##"
2231 echo
2232 for ac_var in $ac_subst_vars
2233 do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
2239 done | sort
2240 echo
2241
2242 if test -n "$ac_subst_files"; then
2243 $as_echo "## ------------------- ##
2244 ## File substitutions. ##
2245 ## ------------------- ##"
2246 echo
2247 for ac_var in $ac_subst_files
2248 do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2256 fi
2257
2258 if test -s confdefs.h; then
2259 $as_echo "## ----------- ##
2260 ## confdefs.h. ##
2261 ## ----------- ##"
2262 echo
2263 cat confdefs.h
2264 echo
2265 fi
2266 test "$ac_signal" != 0 &&
2267 $as_echo "$as_me: caught signal $ac_signal"
2268 $as_echo "$as_me: exit $exit_status"
2269 } >&5
2270 rm -f core *.core core.conftest.* &&
2271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2272 exit $exit_status
2273 ' 0
2274 for ac_signal in 1 2 13 15; do
2275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2276 done
2277 ac_signal=0
2278
2279 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2280 rm -f -r conftest* confdefs.h
2281
2282 $as_echo "/* confdefs.h */" > confdefs.h
2283
2284 # Predefined preprocessor variables.
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_NAME "$PACKAGE_NAME"
2288 _ACEOF
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2292 _ACEOF
2293
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2296 _ACEOF
2297
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_STRING "$PACKAGE_STRING"
2300 _ACEOF
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_URL "$PACKAGE_URL"
2308 _ACEOF
2309
2310
2311 # Let the site file select an alternate cache file if it wants to.
2312 # Prefer an explicitly selected file to automatically selected ones.
2313 ac_site_file1=NONE
2314 ac_site_file2=NONE
2315 if test -n "$CONFIG_SITE"; then
2316 # We do not want a PATH search for config.site.
2317 case $CONFIG_SITE in #((
2318 -*) ac_site_file1=./$CONFIG_SITE;;
2319 */*) ac_site_file1=$CONFIG_SITE;;
2320 *) ac_site_file1=./$CONFIG_SITE;;
2321 esac
2322 elif test "x$prefix" != xNONE; then
2323 ac_site_file1=$prefix/share/config.site
2324 ac_site_file2=$prefix/etc/config.site
2325 else
2326 ac_site_file1=$ac_default_prefix/share/config.site
2327 ac_site_file2=$ac_default_prefix/etc/config.site
2328 fi
2329 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2330 do
2331 test "x$ac_site_file" = xNONE && continue
2332 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2334 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2335 sed 's/^/| /' "$ac_site_file" >&5
2336 . "$ac_site_file" \
2337 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339 as_fn_error $? "failed to load site script $ac_site_file
2340 See \`config.log' for more details" "$LINENO" 5; }
2341 fi
2342 done
2343
2344 if test -r "$cache_file"; then
2345 # Some versions of bash will fail to source /dev/null (special files
2346 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2349 $as_echo "$as_me: loading cache $cache_file" >&6;}
2350 case $cache_file in
2351 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2352 *) . "./$cache_file";;
2353 esac
2354 fi
2355 else
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2357 $as_echo "$as_me: creating cache $cache_file" >&6;}
2358 >$cache_file
2359 fi
2360
2361 as_fn_append ac_func_list " mmap"
2362 as_fn_append ac_func_list " strtok_r"
2363 as_fn_append ac_func_list " usleep"
2364 as_fn_append ac_func_list " strlcat"
2365 as_fn_append ac_func_list " strlcpy"
2366 as_fn_append ac_header_list " crypt.h"
2367 as_fn_append ac_header_list " sys/resource.h"
2368 as_fn_append ac_header_list " sys/param.h"
2369 as_fn_append ac_header_list " types.h"
2370 as_fn_append ac_header_list " socket.h"
2371 as_fn_append ac_header_list " sys/wait.h"
2372 as_fn_append ac_header_list " wait.h"
2373 # Check that the precious variables saved in the cache have kept the same
2374 # value.
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378 eval ac_new_set=\$ac_env_${ac_var}_set
2379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380 eval ac_new_val=\$ac_env_${ac_var}_value
2381 case $ac_old_set,$ac_new_set in
2382 set,)
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385 ac_cache_corrupted=: ;;
2386 ,set)
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389 ac_cache_corrupted=: ;;
2390 ,);;
2391 *)
2392 if test "x$ac_old_val" != "x$ac_new_val"; then
2393 # differences in whitespace do not lead to failure.
2394 ac_old_val_w=`echo x $ac_old_val`
2395 ac_new_val_w=`echo x $ac_new_val`
2396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399 ac_cache_corrupted=:
2400 else
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403 eval $ac_var=\$ac_old_val
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2409 fi;;
2410 esac
2411 # Pass precious variables to config.status.
2412 if test "$ac_new_set" = set; then
2413 case $ac_new_val in
2414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 *) ac_arg=$ac_var=$ac_new_val ;;
2416 esac
2417 case " $ac_configure_args " in
2418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2419 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2420 esac
2421 fi
2422 done
2423 if $ac_cache_corrupted; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2429 fi
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439
2440
2441 am__api_version='1.11'
2442
2443 ac_aux_dir=
2444 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2445 if test -f "$ac_dir/install-sh"; then
2446 ac_aux_dir=$ac_dir
2447 ac_install_sh="$ac_aux_dir/install-sh -c"
2448 break
2449 elif test -f "$ac_dir/install.sh"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/install.sh -c"
2452 break
2453 elif test -f "$ac_dir/shtool"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/shtool install -c"
2456 break
2457 fi
2458 done
2459 if test -z "$ac_aux_dir"; then
2460 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2461 fi
2462
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
2471
2472 # Find a good install program. We prefer a C program (faster),
2473 # so one script is as good as another. But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if ${ac_cv_path_install+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499 ./ | .// | /[cC]/* | \
2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502 /usr/ucb/* ) ;;
2503 *)
2504 # OSF1 and SCO ODT 3.0 have their own names for install.
2505 # Don't use installbsd from OSF since it installs stuff as root
2506 # by default.
2507 for ac_prog in ginstall scoinst install; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510 if test $ac_prog = install &&
2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512 # AIX install. It has an incompatible calling convention.
2513 :
2514 elif test $ac_prog = install &&
2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516 # program-specific install script used by HP pwplus--don't use.
2517 :
2518 else
2519 rm -rf conftest.one conftest.two conftest.dir
2520 echo one > conftest.one
2521 echo two > conftest.two
2522 mkdir conftest.dir
2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524 test -s conftest.one && test -s conftest.two &&
2525 test -s conftest.dir/conftest.one &&
2526 test -s conftest.dir/conftest.two
2527 then
2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529 break 3
2530 fi
2531 fi
2532 fi
2533 done
2534 done
2535 ;;
2536 esac
2537
2538 done
2539 IFS=$as_save_IFS
2540
2541 rm -rf conftest.one conftest.two conftest.dir
2542
2543 fi
2544 if test "${ac_cv_path_install+set}" = set; then
2545 INSTALL=$ac_cv_path_install
2546 else
2547 # As a last resort, use the slow shell script. Don't cache a
2548 # value for INSTALL within a source directory, because that will
2549 # break other packages using the cache if that directory is
2550 # removed, or if the value is a relative name.
2551 INSTALL=$ac_install_sh
2552 fi
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2556
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Just in case
2568 sleep 1
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name. Accept space and tab only in the latter.
2572 am_lf='
2573 '
2574 case `pwd` in
2575 *[\\\"\#\$\&\'\`$am_lf]*)
2576 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2577 esac
2578 case $srcdir in
2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2580 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2581 esac
2582
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments. Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590 if test "$*" = "X"; then
2591 # -L didn't work.
2592 set X `ls -t "$srcdir/configure" conftest.file`
2593 fi
2594 rm -f conftest.file
2595 if test "$*" != "X $srcdir/configure conftest.file" \
2596 && test "$*" != "X conftest.file $srcdir/configure"; then
2597
2598 # If neither matched, then we have a broken ls. This can happen
2599 # if, for instance, CONFIG_SHELL is bash and it inherits a
2600 # broken ls alias from the environment. This has actually
2601 # happened. Such a system could not be considered "sane".
2602 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2604 fi
2605
2606 test "$2" = conftest.file
2607 )
2608 then
2609 # Ok.
2610 :
2611 else
2612 as_fn_error $? "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE &&
2618 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630 if test x"${MISSING+set}" != xset; then
2631 case $am_aux_dir in
2632 *\ * | *\ *)
2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634 *)
2635 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636 esac
2637 fi
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640 am_missing_run="$MISSING --run "
2641 else
2642 am_missing_run=
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 fi
2646
2647 if test x"${install_sh}" != xset; then
2648 case $am_aux_dir in
2649 *\ * | *\ *)
2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651 *)
2652 install_sh="\${SHELL} $am_aux_dir/install-sh"
2653 esac
2654 fi
2655
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'. However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_STRIP+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$STRIP"; then
2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701 ac_ct_STRIP=$STRIP
2702 # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_STRIP"; then
2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_ac_ct_STRIP="strip"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738 if test "x$ac_ct_STRIP" = x; then
2739 STRIP=":"
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 STRIP=$ac_ct_STRIP
2748 fi
2749 else
2750 STRIP="$ac_cv_prog_STRIP"
2751 fi
2752
2753 fi
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759 if ${ac_cv_path_mkdir+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_prog in mkdir gmkdir; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771 'mkdir (GNU coreutils) '* | \
2772 'mkdir (coreutils) '* | \
2773 'mkdir (fileutils) '4.1*)
2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775 break 3;;
2776 esac
2777 done
2778 done
2779 done
2780 IFS=$as_save_IFS
2781
2782 fi
2783
2784 test -d ./--version && rmdir ./--version
2785 if test "${ac_cv_path_mkdir+set}" = set; then
2786 MKDIR_P="$ac_cv_path_mkdir -p"
2787 else
2788 # As a last resort, use the slow shell script. Don't cache a
2789 # value for MKDIR_P within a source directory, because that will
2790 # break other packages using the cache if that directory is
2791 # removed, or if the value is a relative name.
2792 MKDIR_P="$ac_install_sh -d"
2793 fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2797
2798 mkdir_p="$MKDIR_P"
2799 case $mkdir_p in
2800 [\\/$]* | ?:[\\/]*) ;;
2801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802 esac
2803
2804 for ac_prog in gawk mawk nawk awk
2805 do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_AWK+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$AWK"; then
2814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_AWK="$ac_prog"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 AWK=$ac_cv_prog_AWK
2834 if test -n "$AWK"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843 test -n "$AWK" && break
2844 done
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 set x ${MAKE-make}
2849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 cat >conftest.make <<\_ACEOF
2854 SHELL = /bin/sh
2855 all:
2856 @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 _ACEOF
2858 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860 *@@@%%%=?*=@@@%%%*)
2861 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 *)
2863 eval ac_cv_prog_make_${ac_make}_set=no;;
2864 esac
2865 rm -f conftest.make
2866 fi
2867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 SET_MAKE=
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874 SET_MAKE="MAKE=${MAKE-make}"
2875 fi
2876
2877 rm -rf .tst 2>/dev/null
2878 mkdir .tst 2>/dev/null
2879 if test -d .tst; then
2880 am__leading_dot=.
2881 else
2882 am__leading_dot=_
2883 fi
2884 rmdir .tst 2>/dev/null
2885
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888 # is not polluted with repeated "-I."
2889 am__isrc=' -I$(srcdir)'
2890 # test to see if srcdir already configured
2891 if test -f $srcdir/config.status; then
2892 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2893 fi
2894 fi
2895
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898 if (cygpath --version) >/dev/null 2>/dev/null; then
2899 CYGPATH_W='cygpath -w'
2900 else
2901 CYGPATH_W=echo
2902 fi
2903 fi
2904
2905
2906 # Define the identity of the package.
2907 PACKAGE='ircd-hybrid'
2908 VERSION='8beta1'
2909
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2913 _ACEOF
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define VERSION "$VERSION"
2918 _ACEOF
2919
2920 # Some tools Automake needs.
2921
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
2936 # We need awk for the "check" target. The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility. Yes, it's still used
2939 # in the wild :-( We should find a proper way to deprecate it ...
2940 AMTAR='$${TAR-tar}'
2941
2942 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2943
2944
2945
2946
2947
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2950 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2951 # Check whether --enable-maintainer-mode was given.
2952 if test "${enable_maintainer_mode+set}" = set; then :
2953 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2954 else
2955 USE_MAINTAINER_MODE=no
2956 fi
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2959 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2960 if test $USE_MAINTAINER_MODE = yes; then
2961 MAINTAINER_MODE_TRUE=
2962 MAINTAINER_MODE_FALSE='#'
2963 else
2964 MAINTAINER_MODE_TRUE='#'
2965 MAINTAINER_MODE_FALSE=
2966 fi
2967
2968 MAINT=$MAINTAINER_MODE_TRUE
2969
2970
2971 ac_config_headers="$ac_config_headers config.h"
2972
2973
2974
2975 # Checks for programs.
2976 DEPDIR="${am__leading_dot}deps"
2977
2978 ac_config_commands="$ac_config_commands depfiles"
2979
2980
2981 am_make=${MAKE-make}
2982 cat > confinc << 'END'
2983 am__doit:
2984 @echo this is the am__doit target
2985 .PHONY: am__doit
2986 END
2987 # If we don't find an include directive, just comment out the code.
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2989 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2990 am__include="#"
2991 am__quote=
2992 _am_result=none
2993 # First try GNU make style include.
2994 echo "include confinc" > confmf
2995 # Ignore all kinds of additional output from `make'.
2996 case `$am_make -s -f confmf 2> /dev/null` in #(
2997 *the\ am__doit\ target*)
2998 am__include=include
2999 am__quote=
3000 _am_result=GNU
3001 ;;
3002 esac
3003 # Now try BSD make style include.
3004 if test "$am__include" = "#"; then
3005 echo '.include "confinc"' > confmf
3006 case `$am_make -s -f confmf 2> /dev/null` in #(
3007 *the\ am__doit\ target*)
3008 am__include=.include
3009 am__quote="\""
3010 _am_result=BSD
3011 ;;
3012 esac
3013 fi
3014
3015
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3017 $as_echo "$_am_result" >&6; }
3018 rm -f confinc confmf
3019
3020 # Check whether --enable-dependency-tracking was given.
3021 if test "${enable_dependency_tracking+set}" = set; then :
3022 enableval=$enable_dependency_tracking;
3023 fi
3024
3025 if test "x$enable_dependency_tracking" != xno; then
3026 am_depcomp="$ac_aux_dir/depcomp"
3027 AMDEPBACKSLASH='\'
3028 am__nodep='_no'
3029 fi
3030 if test "x$enable_dependency_tracking" != xno; then
3031 AMDEP_TRUE=
3032 AMDEP_FALSE='#'
3033 else
3034 AMDEP_TRUE='#'
3035 AMDEP_FALSE=
3036 fi
3037
3038
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_CC+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_CC"; then
3084 ac_ct_CC=$CC
3085 # Extract the first word of "gcc", so it can be a program name with args.
3086 set dummy gcc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_CC="gcc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 else
3133 CC="$ac_cv_prog_CC"
3134 fi
3135
3136 if test -z "$CC"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}cc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="${ac_tool_prefix}cc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 fi
3177 if test -z "$CC"; then
3178 # Extract the first word of "cc", so it can be a program name with args.
3179 set dummy cc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 ac_prog_rejected=no
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3197 ac_prog_rejected=yes
3198 continue
3199 fi
3200 ac_cv_prog_CC="cc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 if test $ac_prog_rejected = yes; then
3209 # We found a bogon in the path, so make sure we never use it.
3210 set dummy $ac_cv_prog_CC
3211 shift
3212 if test $# != 0; then
3213 # We chose a different compiler from the bogus one.
3214 # However, it has the same basename, so the bogon will be chosen
3215 # first if we set CC to just the basename; use the full file name.
3216 shift
3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3218 fi
3219 fi
3220 fi
3221 fi
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232 fi
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 for ac_prog in cl.exe
3236 do
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 test -n "$CC" && break
3275 done
3276 fi
3277 if test -z "$CC"; then
3278 ac_ct_CC=$CC
3279 for ac_prog in cl.exe
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_ac_ct_CC="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$ac_ct_CC" && break
3319 done
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3331 fi
3332 fi
3333
3334 fi
3335
3336
3337 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details" "$LINENO" 5; }
3341
3342 # Provide some information about the compiler.
3343 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3344 set X $ac_compile
3345 ac_compiler=$2
3346 for ac_option in --version -v -V -qversion; do
3347 { { ac_try="$ac_compiler $ac_option >&5"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3355 ac_status=$?
3356 if test -s conftest.err; then
3357 sed '10a\
3358 ... rest of stderr output deleted ...
3359 10q' conftest.err >conftest.er1
3360 cat conftest.er1 >&5
3361 fi
3362 rm -f conftest.er1 conftest.err
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }
3365 done
3366
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main ()
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files_save=$ac_clean_files
3379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3380 # Try to create an executable without -o first, disregard a.out.
3381 # It will help us diagnose broken compilers, and finding out an intuition
3382 # of exeext.
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3384 $as_echo_n "checking whether the C compiler works... " >&6; }
3385 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3386
3387 # The possible output files:
3388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3389
3390 ac_rmfiles=
3391 for ac_file in $ac_files
3392 do
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3396 esac
3397 done
3398 rm -f $ac_rmfiles
3399
3400 if { { ac_try="$ac_link_default"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_link_default") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; then :
3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3412 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3413 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3414 # so that the user can short-circuit this test for compilers unknown to
3415 # Autoconf.
3416 for ac_file in $ac_files ''
3417 do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3421 ;;
3422 [ab].out )
3423 # We found the default executable, but exeext='' is most
3424 # certainly right.
3425 break;;
3426 *.* )
3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3428 then :; else
3429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 fi
3431 # We set ac_cv_exeext here because the later test for it is not
3432 # safe: cross compilers may not add the suffix if given an `-o'
3433 # argument, so we may need to know it at that point already.
3434 # Even if this section looks crufty: it has the advantage of
3435 # actually working.
3436 break;;
3437 * )
3438 break;;
3439 esac
3440 done
3441 test "$ac_cv_exeext" = no && ac_cv_exeext=
3442
3443 else
3444 ac_file=''
3445 fi
3446 if test -z "$ac_file"; then :
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error 77 "C compiler cannot create executables
3455 See \`config.log' for more details" "$LINENO" 5; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3461 $as_echo_n "checking for C compiler default output file name... " >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 ac_exeext=$ac_cv_exeext
3465
3466 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3467 ac_clean_files=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3469 $as_echo_n "checking for suffix of executables... " >&6; }
3470 if { { ac_try="$ac_link"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_link") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3482 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3483 # work properly (i.e., refer to `conftest.exe'), while it won't with
3484 # `rm'.
3485 for ac_file in conftest.exe conftest conftest.*; do
3486 test -f "$ac_file" || continue
3487 case $ac_file in
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3490 break;;
3491 * ) break;;
3492 esac
3493 done
3494 else
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3498 See \`config.log' for more details" "$LINENO" 5; }
3499 fi
3500 rm -f conftest conftest$ac_cv_exeext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3502 $as_echo "$ac_cv_exeext" >&6; }
3503
3504 rm -f conftest.$ac_ext
3505 EXEEXT=$ac_cv_exeext
3506 ac_exeext=$EXEEXT
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509 #include <stdio.h>
3510 int
3511 main ()
3512 {
3513 FILE *f = fopen ("conftest.out", "w");
3514 return ferror (f) || fclose (f) != 0;
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 ac_clean_files="$ac_clean_files conftest.out"
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 if test "$cross_compiling" != yes; then
3526 { { ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3537 if { ac_try='./conftest$ac_cv_exeext'
3538 { { case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_try") 2>&5
3545 ac_status=$?
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; }; then
3548 cross_compiling=no
3549 else
3550 if test "$cross_compiling" = maybe; then
3551 cross_compiling=yes
3552 else
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error $? "cannot run C compiled programs.
3556 If you meant to cross compile, use \`--host'.
3557 See \`config.log' for more details" "$LINENO" 5; }
3558 fi
3559 fi
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3562 $as_echo "$cross_compiling" >&6; }
3563
3564 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3565 ac_clean_files=$ac_clean_files_save
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3567 $as_echo_n "checking for suffix of object files... " >&6; }
3568 if ${ac_cv_objext+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3573
3574 int
3575 main ()
3576 {
3577
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 rm -f conftest.o conftest.obj
3583 if { { ac_try="$ac_compile"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_compile") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 for ac_file in conftest.o conftest.obj conftest.*; do
3595 test -f "$ac_file" || continue;
3596 case $ac_file in
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3599 break;;
3600 esac
3601 done
3602 else
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot compute suffix of object files: cannot compile
3609 See \`config.log' for more details" "$LINENO" 5; }
3610 fi
3611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3614 $as_echo "$ac_cv_objext" >&6; }
3615 OBJEXT=$ac_cv_objext
3616 ac_objext=$OBJEXT
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3618 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3619 if ${ac_cv_c_compiler_gnu+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624
3625 int
3626 main ()
3627 {
3628 #ifndef __GNUC__
3629 choke me
3630 #endif
3631
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 if ac_fn_c_try_compile "$LINENO"; then :
3637 ac_compiler_gnu=yes
3638 else
3639 ac_compiler_gnu=no
3640 fi
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3643
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3647 if test $ac_compiler_gnu = yes; then
3648 GCC=yes
3649 else
3650 GCC=
3651 fi
3652 ac_test_CFLAGS=${CFLAGS+set}
3653 ac_save_CFLAGS=$CFLAGS
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3656 if ${ac_cv_prog_cc_g+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 ac_save_c_werror_flag=$ac_c_werror_flag
3660 ac_c_werror_flag=yes
3661 ac_cv_prog_cc_g=no
3662 CFLAGS="-g"
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_g=yes
3676 else
3677 CFLAGS=""
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680
3681 int
3682 main ()
3683 {
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690
3691 else
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3693 CFLAGS="-g"
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696
3697 int
3698 main ()
3699 {
3700
3701 ;
3702 return 0;
3703 }
3704 _ACEOF
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_g=yes
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3716 $as_echo "$ac_cv_prog_cc_g" >&6; }
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3721 CFLAGS="-g -O2"
3722 else
3723 CFLAGS="-g"
3724 fi
3725 else
3726 if test "$GCC" = yes; then
3727 CFLAGS="-O2"
3728 else
3729 CFLAGS=
3730 fi
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3734 if ${ac_cv_prog_cc_c89+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_cv_prog_cc_c89=no
3738 ac_save_CC=$CC
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <stdarg.h>
3742 #include <stdio.h>
3743 #include <sys/types.h>
3744 #include <sys/stat.h>
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3749 char **p;
3750 int i;
3751 {
3752 return p[i];
3753 }
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3755 {
3756 char *s;
3757 va_list v;
3758 va_start (v,p);
3759 s = g (p, va_arg (v,int));
3760 va_end (v);
3761 return s;
3762 }
3763
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3772
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3775 #define FOO(x) 'x'
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3777
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782 int argc;
3783 char **argv;
3784 int
3785 main ()
3786 {
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3794 do
3795 CC="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_c89=$ac_arg
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3801 done
3802 rm -f conftest.$ac_ext
3803 CC=$ac_save_CC
3804
3805 fi
3806 # AC_CACHE_VAL
3807 case "x$ac_cv_prog_cc_c89" in
3808 x)
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3811 xno)
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3814 *)
3815 CC="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3818 esac
3819 if test "x$ac_cv_prog_cc_c89" != xno; then :
3820
3821 fi
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828
3829 depcc="$CC" am_compiler_list=
3830
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3832 $as_echo_n "checking dependency style of $depcc... " >&6; }
3833 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3837 # We make a subdir and do the tests there. Otherwise we can end up
3838 # making bogus files that we don't know about and never remove. For
3839 # instance it was reported that on HP-UX the gcc test will end up
3840 # making a dummy file named `D' -- because `-MD' means `put the output
3841 # in D'.
3842 rm -rf conftest.dir
3843 mkdir conftest.dir
3844 # Copy depcomp to subdir because otherwise we won't find it if we're
3845 # using a relative directory.
3846 cp "$am_depcomp" conftest.dir
3847 cd conftest.dir
3848 # We will build objects and dependencies in a subdirectory because
3849 # it helps to detect inapplicable dependency modes. For instance
3850 # both Tru64's cc and ICC support -MD to output dependencies as a
3851 # side effect of compilation, but ICC will put the dependencies in
3852 # the current directory while Tru64 will put them in the object
3853 # directory.
3854 mkdir sub
3855
3856 am_cv_CC_dependencies_compiler_type=none
3857 if test "$am_compiler_list" = ""; then
3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3859 fi
3860 am__universal=false
3861 case " $depcc " in #(
3862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3863 esac
3864
3865 for depmode in $am_compiler_list; do
3866 # Setup a source with many dependencies, because some compilers
3867 # like to wrap large dependency lists on column 80 (with \), and
3868 # we should not choose a depcomp mode which is confused by this.
3869 #
3870 # We need to recreate these files for each test, as the compiler may
3871 # overwrite some of them when testing with obscure command lines.
3872 # This happens at least with the AIX C compiler.
3873 : > sub/conftest.c
3874 for i in 1 2 3 4 5 6; do
3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3877 # Solaris 8's {/usr,}/bin/sh.
3878 touch sub/conftst$i.h
3879 done
3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3883 # mode. It turns out that the SunPro C++ compiler does not properly
3884 # handle `-M -o', and we need to detect this. Also, some Intel
3885 # versions had trouble with output in subdirs
3886 am__obj=sub/conftest.${OBJEXT-o}
3887 am__minus_obj="-o $am__obj"
3888 case $depmode in
3889 gcc)
3890 # This depmode causes a compiler race in universal mode.
3891 test "$am__universal" = false || continue
3892 ;;
3893 nosideeffect)
3894 # after this tag, mechanisms are not by side-effect, so they'll
3895 # only be used when explicitly requested
3896 if test "x$enable_dependency_tracking" = xyes; then
3897 continue
3898 else
3899 break
3900 fi
3901 ;;
3902 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3903 # This compiler won't grok `-c -o', but also, the minuso test has
3904 # not run yet. These depmodes are late enough in the game, and
3905 # so weak that their functioning should not be impacted.
3906 am__obj=conftest.${OBJEXT-o}
3907 am__minus_obj=
3908 ;;
3909 none) break ;;
3910 esac
3911 if depmode=$depmode \
3912 source=sub/conftest.c object=$am__obj \
3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3915 >/dev/null 2>conftest.err &&
3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3920 # icc doesn't choke on unknown options, it will just issue warnings
3921 # or remarks (even with -Werror). So we grep stderr for any message
3922 # that says an option was ignored or not supported.
3923 # When given -MP, icc 7.0 and 7.1 complain thusly:
3924 # icc: Command line warning: ignoring option '-M'; no argument required
3925 # The diagnosis changed in icc 8.0:
3926 # icc: Command line remark: option '-MP' not supported
3927 if (grep 'ignoring option' conftest.err ||
3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3929 am_cv_CC_dependencies_compiler_type=$depmode
3930 break
3931 fi
3932 fi
3933 done
3934
3935 cd ..
3936 rm -rf conftest.dir
3937 else
3938 am_cv_CC_dependencies_compiler_type=none
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3943 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3945
3946 if
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCC_TRUE=
3950 am__fastdepCC_FALSE='#'
3951 else
3952 am__fastdepCC_TRUE='#'
3953 am__fastdepCC_FALSE=
3954 fi
3955
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3958 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3959 if ${ac_cv_prog_cc_c99+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 ac_cv_prog_cc_c99=no
3963 ac_save_CC=$CC
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <stdarg.h>
3967 #include <stdbool.h>
3968 #include <stdlib.h>
3969 #include <wchar.h>
3970 #include <stdio.h>
3971
3972 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3973 #define debug(...) fprintf (stderr, __VA_ARGS__)
3974 #define showlist(...) puts (#__VA_ARGS__)
3975 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3976 static void
3977 test_varargs_macros (void)
3978 {
3979 int x = 1234;
3980 int y = 5678;
3981 debug ("Flag");
3982 debug ("X = %d\n", x);
3983 showlist (The first, second, and third items.);
3984 report (x>y, "x is %d but y is %d", x, y);
3985 }
3986
3987 // Check long long types.
3988 #define BIG64 18446744073709551615ull
3989 #define BIG32 4294967295ul
3990 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3991 #if !BIG_OK
3992 your preprocessor is broken;
3993 #endif
3994 #if BIG_OK
3995 #else
3996 your preprocessor is broken;
3997 #endif
3998 static long long int bignum = -9223372036854775807LL;
3999 static unsigned long long int ubignum = BIG64;
4000
4001 struct incomplete_array
4002 {
4003 int datasize;
4004 double data[];
4005 };
4006
4007 struct named_init {
4008 int number;
4009 const wchar_t *name;
4010 double average;
4011 };
4012
4013 typedef const char *ccp;
4014
4015 static inline int
4016 test_restrict (ccp restrict text)
4017 {
4018 // See if C++-style comments work.
4019 // Iterate through items via the restricted pointer.
4020 // Also check for declarations in for loops.
4021 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4022 continue;
4023 return 0;
4024 }
4025
4026 // Check varargs and va_copy.
4027 static void
4028 test_varargs (const char *format, ...)
4029 {
4030 va_list args;
4031 va_start (args, format);
4032 va_list args_copy;
4033 va_copy (args_copy, args);
4034
4035 const char *str;
4036 int number;
4037 float fnumber;
4038
4039 while (*format)
4040 {
4041 switch (*format++)
4042 {
4043 case 's': // string
4044 str = va_arg (args_copy, const char *);
4045 break;
4046 case 'd': // int
4047 number = va_arg (args_copy, int);
4048 break;
4049 case 'f': // float
4050 fnumber = va_arg (args_copy, double);
4051 break;
4052 default:
4053 break;
4054 }
4055 }
4056 va_end (args_copy);
4057 va_end (args);
4058 }
4059
4060 int
4061 main ()
4062 {
4063
4064 // Check bool.
4065 _Bool success = false;
4066
4067 // Check restrict.
4068 if (test_restrict ("String literal") == 0)
4069 success = true;
4070 char *restrict newvar = "Another string";
4071
4072 // Check varargs.
4073 test_varargs ("s, d' f .", "string", 65, 34.234);
4074 test_varargs_macros ();
4075
4076 // Check flexible array members.
4077 struct incomplete_array *ia =
4078 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4079 ia->datasize = 10;
4080 for (int i = 0; i < ia->datasize; ++i)
4081 ia->data[i] = i * 1.234;
4082
4083 // Check named initializers.
4084 struct named_init ni = {
4085 .number = 34,
4086 .name = L"Test wide string",
4087 .average = 543.34343,
4088 };
4089
4090 ni.number = 58;
4091
4092 int dynamic_array[ni.number];
4093 dynamic_array[ni.number - 1] = 543;
4094
4095 // work around unused variable warnings
4096 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4097 || dynamic_array[ni.number - 1] != 543);
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4104 do
4105 CC="$ac_save_CC $ac_arg"
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_prog_cc_c99=$ac_arg
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext
4110 test "x$ac_cv_prog_cc_c99" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC
4114
4115 fi
4116 # AC_CACHE_VAL
4117 case "x$ac_cv_prog_cc_c99" in
4118 x)
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4120 $as_echo "none needed" >&6; } ;;
4121 xno)
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4123 $as_echo "unsupported" >&6; } ;;
4124 *)
4125 CC="$CC $ac_cv_prog_cc_c99"
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4127 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4128 esac
4129 if test "x$ac_cv_prog_cc_c99" != xno; then :
4130
4131 fi
4132
4133
4134 if test "$ac_cv_prog_cc_c99" = "no"; then :
4135 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4136 fi
4137 for ac_prog in 'bison -y' byacc
4138 do
4139 # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_YACC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -n "$YACC"; then
4147 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_YACC="$ac_prog"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160 done
4161 done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 YACC=$ac_cv_prog_YACC
4167 if test -n "$YACC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4169 $as_echo "$YACC" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176 test -n "$YACC" && break
4177 done
4178 test -n "$YACC" || YACC="yacc"
4179
4180
4181 for ac_prog in flex lex
4182 do
4183 # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_LEX+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if test -n "$LEX"; then
4191 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4200 ac_cv_prog_LEX="$ac_prog"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204 done
4205 done
4206 IFS=$as_save_IFS
4207
4208 fi
4209 fi
4210 LEX=$ac_cv_prog_LEX
4211 if test -n "$LEX"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4213 $as_echo "$LEX" >&6; }
4214 else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218
4219
4220 test -n "$LEX" && break
4221 done
4222 test -n "$LEX" || LEX=":"
4223
4224 if test "x$LEX" != "x:"; then
4225 cat >conftest.l <<_ACEOF
4226 %%
4227 a { ECHO; }
4228 b { REJECT; }
4229 c { yymore (); }
4230 d { yyless (1); }
4231 e { yyless (input () != 0); }
4232 f { unput (yytext[0]); }
4233 . { BEGIN INITIAL; }
4234 %%
4235 #ifdef YYTEXT_POINTER
4236 extern char *yytext;
4237 #endif
4238 int
4239 main (void)
4240 {
4241 return ! yylex () + ! yywrap ();
4242 }
4243 _ACEOF
4244 { { ac_try="$LEX conftest.l"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$LEX conftest.l") 2>&5
4252 ac_status=$?
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4256 $as_echo_n "checking lex output file root... " >&6; }
4257 if ${ac_cv_prog_lex_root+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260
4261 if test -f lex.yy.c; then
4262 ac_cv_prog_lex_root=lex.yy
4263 elif test -f lexyy.c; then
4264 ac_cv_prog_lex_root=lexyy
4265 else
4266 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4267 fi
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4270 $as_echo "$ac_cv_prog_lex_root" >&6; }
4271 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4272
4273 if test -z "${LEXLIB+set}"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4275 $as_echo_n "checking lex library... " >&6; }
4276 if ${ac_cv_lib_lex+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279
4280 ac_save_LIBS=$LIBS
4281 ac_cv_lib_lex='none needed'
4282 for ac_lib in '' -lfl -ll; do
4283 LIBS="$ac_lib $ac_save_LIBS"
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 `cat $LEX_OUTPUT_ROOT.c`
4287 _ACEOF
4288 if ac_fn_c_try_link "$LINENO"; then :
4289 ac_cv_lib_lex=$ac_lib
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext \
4292 conftest$ac_exeext conftest.$ac_ext
4293 test "$ac_cv_lib_lex" != 'none needed' && break
4294 done
4295 LIBS=$ac_save_LIBS
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4299 $as_echo "$ac_cv_lib_lex" >&6; }
4300 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4301 fi
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4305 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4306 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 # POSIX says lex can declare yytext either as a pointer or an array; the
4310 # default is implementation-dependent. Figure out which it is, since
4311 # not all implementations provide the %pointer and %array declarations.
4312 ac_cv_prog_lex_yytext_pointer=no
4313 ac_save_LIBS=$LIBS
4314 LIBS="$LEXLIB $ac_save_LIBS"
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317
4318 #define YYTEXT_POINTER 1
4319 `cat $LEX_OUTPUT_ROOT.c`
4320 _ACEOF
4321 if ac_fn_c_try_link "$LINENO"; then :
4322 ac_cv_prog_lex_yytext_pointer=yes
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext \
4325 conftest$ac_exeext conftest.$ac_ext
4326 LIBS=$ac_save_LIBS
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4330 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4331 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4332
4333 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4334
4335 fi
4336 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4337
4338 fi
4339 if test "$LEX" = :; then
4340 LEX=${am_missing_run}flex
4341 fi
4342
4343
4344 # Initializing libtool.
4345
4346
4347
4348
4349
4350
4351
4352 case `pwd` in
4353 *\ * | *\ *)
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4355 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4356 esac
4357
4358
4359
4360 macro_version='2.4.2'
4361 macro_revision='1.3337'
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375 ltmain="$ac_aux_dir/ltmain.sh"
4376
4377 # Make sure we can run config.sub.
4378 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4382 $as_echo_n "checking build system type... " >&6; }
4383 if ${ac_cv_build+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 ac_build_alias=$build_alias
4387 test "x$ac_build_alias" = x &&
4388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4389 test "x$ac_build_alias" = x &&
4390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4393
4394 fi
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4396 $as_echo "$ac_cv_build" >&6; }
4397 case $ac_cv_build in
4398 *-*-*) ;;
4399 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4400 esac
4401 build=$ac_cv_build
4402 ac_save_IFS=$IFS; IFS='-'
4403 set x $ac_cv_build
4404 shift
4405 build_cpu=$1
4406 build_vendor=$2
4407 shift; shift
4408 # Remember, the first character of IFS is used to create $*,
4409 # except with old shells:
4410 build_os=$*
4411 IFS=$ac_save_IFS
4412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4413
4414
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4416 $as_echo_n "checking host system type... " >&6; }
4417 if ${ac_cv_host+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test "x$host_alias" = x; then
4421 ac_cv_host=$ac_cv_build
4422 else
4423 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4424 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4425 fi
4426
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4429 $as_echo "$ac_cv_host" >&6; }
4430 case $ac_cv_host in
4431 *-*-*) ;;
4432 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4433 esac
4434 host=$ac_cv_host
4435 ac_save_IFS=$IFS; IFS='-'
4436 set x $ac_cv_host
4437 shift
4438 host_cpu=$1
4439 host_vendor=$2
4440 shift; shift
4441 # Remember, the first character of IFS is used to create $*,
4442 # except with old shells:
4443 host_os=$*
4444 IFS=$ac_save_IFS
4445 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4446
4447
4448 # Backslashify metacharacters that are still active within
4449 # double-quoted strings.
4450 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4451
4452 # Same as above, but do not quote variable references.
4453 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4454
4455 # Sed substitution to delay expansion of an escaped shell variable in a
4456 # double_quote_subst'ed string.
4457 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4458
4459 # Sed substitution to delay expansion of an escaped single quote.
4460 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4461
4462 # Sed substitution to avoid accidental globbing in evaled expressions
4463 no_glob_subst='s/\*/\\\*/g'
4464
4465 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4467 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4470 $as_echo_n "checking how to print strings... " >&6; }
4471 # Test print first, because it will be a builtin if present.
4472 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4473 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4474 ECHO='print -r --'
4475 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4476 ECHO='printf %s\n'
4477 else
4478 # Use this function as a fallback that always works.
4479 func_fallback_echo ()
4480 {
4481 eval 'cat <<_LTECHO_EOF
4482 $1
4483 _LTECHO_EOF'
4484 }
4485 ECHO='func_fallback_echo'
4486 fi
4487
4488 # func_echo_all arg...
4489 # Invoke $ECHO with all args, space-separated.
4490 func_echo_all ()
4491 {
4492 $ECHO ""
4493 }
4494
4495 case "$ECHO" in
4496 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4497 $as_echo "printf" >&6; } ;;
4498 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4499 $as_echo "print -r" >&6; } ;;
4500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4501 $as_echo "cat" >&6; } ;;
4502 esac
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4518 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4519 if ${ac_cv_path_SED+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4523 for ac_i in 1 2 3 4 5 6 7; do
4524 ac_script="$ac_script$as_nl$ac_script"
4525 done
4526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4527 { ac_script=; unset ac_script;}
4528 if test -z "$SED"; then
4529 ac_path_SED_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_prog in sed gsed; do
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4539 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4540 # Check for GNU ac_path_SED and select it if it is found.
4541 # Check for GNU $ac_path_SED
4542 case `"$ac_path_SED" --version 2>&1` in
4543 *GNU*)
4544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4545 *)
4546 ac_count=0
4547 $as_echo_n 0123456789 >"conftest.in"
4548 while :
4549 do
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 $as_echo '' >> "conftest.nl"
4554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556 as_fn_arith $ac_count + 1 && ac_count=$as_val
4557 if test $ac_count -gt ${ac_path_SED_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_SED="$ac_path_SED"
4560 ac_path_SED_max=$ac_count
4561 fi
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
4564 done
4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4566 esac
4567
4568 $ac_path_SED_found && break 3
4569 done
4570 done
4571 done
4572 IFS=$as_save_IFS
4573 if test -z "$ac_cv_path_SED"; then
4574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4575 fi
4576 else
4577 ac_cv_path_SED=$SED
4578 fi
4579
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4582 $as_echo "$ac_cv_path_SED" >&6; }
4583 SED="$ac_cv_path_SED"
4584 rm -f conftest.sed
4585
4586 test -z "$SED" && SED=sed
4587 Xsed="$SED -e 1s/^X//"
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4601 if ${ac_cv_path_GREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$GREP"; then
4605 ac_path_GREP_found=false
4606 # Loop through the user's path and test for each of PROGNAME-LIST
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_prog in grep ggrep; do
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4616 # Check for GNU ac_path_GREP and select it if it is found.
4617 # Check for GNU $ac_path_GREP
4618 case `"$ac_path_GREP" --version 2>&1` in
4619 *GNU*)
4620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621 *)
4622 ac_count=0
4623 $as_echo_n 0123456789 >"conftest.in"
4624 while :
4625 do
4626 cat "conftest.in" "conftest.in" >"conftest.tmp"
4627 mv "conftest.tmp" "conftest.in"
4628 cp "conftest.in" "conftest.nl"
4629 $as_echo 'GREP' >> "conftest.nl"
4630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632 as_fn_arith $ac_count + 1 && ac_count=$as_val
4633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634 # Best one so far, save it but keep looking for a better one
4635 ac_cv_path_GREP="$ac_path_GREP"
4636 ac_path_GREP_max=$ac_count
4637 fi
4638 # 10*(2^10) chars as input seems more than enough
4639 test $ac_count -gt 10 && break
4640 done
4641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4643
4644 $ac_path_GREP_found && break 3
4645 done
4646 done
4647 done
4648 IFS=$as_save_IFS
4649 if test -z "$ac_cv_path_GREP"; then
4650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651 fi
4652 else
4653 ac_cv_path_GREP=$GREP
4654 fi
4655
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4658 $as_echo "$ac_cv_path_GREP" >&6; }
4659 GREP="$ac_cv_path_GREP"
4660
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4663 $as_echo_n "checking for egrep... " >&6; }
4664 if ${ac_cv_path_EGREP+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4668 then ac_cv_path_EGREP="$GREP -E"
4669 else
4670 if test -z "$EGREP"; then
4671 ac_path_EGREP_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in egrep; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4682 # Check for GNU ac_path_EGREP and select it if it is found.
4683 # Check for GNU $ac_path_EGREP
4684 case `"$ac_path_EGREP" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687 *)
4688 ac_count=0
4689 $as_echo_n 0123456789 >"conftest.in"
4690 while :
4691 do
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 $as_echo 'EGREP' >> "conftest.nl"
4696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_EGREP="$ac_path_EGREP"
4702 ac_path_EGREP_max=$ac_count
4703 fi
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4709
4710 $ac_path_EGREP_found && break 3
4711 done
4712 done
4713 done
4714 IFS=$as_save_IFS
4715 if test -z "$ac_cv_path_EGREP"; then
4716 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4717 fi
4718 else
4719 ac_cv_path_EGREP=$EGREP
4720 fi
4721
4722 fi
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4725 $as_echo "$ac_cv_path_EGREP" >&6; }
4726 EGREP="$ac_cv_path_EGREP"
4727
4728
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4730 $as_echo_n "checking for fgrep... " >&6; }
4731 if ${ac_cv_path_FGREP+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4735 then ac_cv_path_FGREP="$GREP -F"
4736 else
4737 if test -z "$FGREP"; then
4738 ac_path_FGREP_found=false
4739 # Loop through the user's path and test for each of PROGNAME-LIST
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_prog in fgrep; do
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4748 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4749 # Check for GNU ac_path_FGREP and select it if it is found.
4750 # Check for GNU $ac_path_FGREP
4751 case `"$ac_path_FGREP" --version 2>&1` in
4752 *GNU*)
4753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4754 *)
4755 ac_count=0
4756 $as_echo_n 0123456789 >"conftest.in"
4757 while :
4758 do
4759 cat "conftest.in" "conftest.in" >"conftest.tmp"
4760 mv "conftest.tmp" "conftest.in"
4761 cp "conftest.in" "conftest.nl"
4762 $as_echo 'FGREP' >> "conftest.nl"
4763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4765 as_fn_arith $ac_count + 1 && ac_count=$as_val
4766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4767 # Best one so far, save it but keep looking for a better one
4768 ac_cv_path_FGREP="$ac_path_FGREP"
4769 ac_path_FGREP_max=$ac_count
4770 fi
4771 # 10*(2^10) chars as input seems more than enough
4772 test $ac_count -gt 10 && break
4773 done
4774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4775 esac
4776
4777 $ac_path_FGREP_found && break 3
4778 done
4779 done
4780 done
4781 IFS=$as_save_IFS
4782 if test -z "$ac_cv_path_FGREP"; then
4783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4784 fi
4785 else
4786 ac_cv_path_FGREP=$FGREP
4787 fi
4788
4789 fi
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4792 $as_echo "$ac_cv_path_FGREP" >&6; }
4793 FGREP="$ac_cv_path_FGREP"
4794
4795
4796 test -z "$GREP" && GREP=grep
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 # Check whether --with-gnu-ld was given.
4817 if test "${with_gnu_ld+set}" = set; then :
4818 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4819 else
4820 with_gnu_ld=no
4821 fi
4822
4823 ac_prog=ld
4824 if test "$GCC" = yes; then
4825 # Check if gcc -print-prog-name=ld gives a path.
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4827 $as_echo_n "checking for ld used by $CC... " >&6; }
4828 case $host in
4829 *-*-mingw*)
4830 # gcc leaves a trailing carriage return which upsets mingw
4831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4832 *)
4833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4834 esac
4835 case $ac_prog in
4836 # Accept absolute paths.
4837 [\\/]* | ?:[\\/]*)
4838 re_direlt='/[^/][^/]*/\.\./'
4839 # Canonicalize the pathname of ld
4840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4843 done
4844 test -z "$LD" && LD="$ac_prog"
4845 ;;
4846 "")
4847 # If it fails, then pretend we aren't using GCC.
4848 ac_prog=ld
4849 ;;
4850 *)
4851 # If it is relative, then search for the first ld in PATH.
4852 with_gnu_ld=unknown
4853 ;;
4854 esac
4855 elif test "$with_gnu_ld" = yes; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4857 $as_echo_n "checking for GNU ld... " >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4860 $as_echo_n "checking for non-GNU ld... " >&6; }
4861 fi
4862 if ${lt_cv_path_LD+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -z "$LD"; then
4866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4867 for ac_dir in $PATH; do
4868 IFS="$lt_save_ifs"
4869 test -z "$ac_dir" && ac_dir=.
4870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4871 lt_cv_path_LD="$ac_dir/$ac_prog"
4872 # Check to see if the program is GNU ld. I'd rather use --version,
4873 # but apparently some variants of GNU ld only accept -v.
4874 # Break only if it was the GNU/non-GNU ld that we prefer.
4875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4876 *GNU* | *'with BFD'*)
4877 test "$with_gnu_ld" != no && break
4878 ;;
4879 *)
4880 test "$with_gnu_ld" != yes && break
4881 ;;
4882 esac
4883 fi
4884 done
4885 IFS="$lt_save_ifs"
4886 else
4887 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4888 fi
4889 fi
4890
4891 LD="$lt_cv_path_LD"
4892 if test -n "$LD"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4894 $as_echo "$LD" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4902 if ${lt_cv_prog_gnu_ld+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4906 case `$LD -v 2>&1 </dev/null` in
4907 *GNU* | *'with BFD'*)
4908 lt_cv_prog_gnu_ld=yes
4909 ;;
4910 *)
4911 lt_cv_prog_gnu_ld=no
4912 ;;
4913 esac
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4917 with_gnu_ld=$lt_cv_prog_gnu_ld
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4929 if ${lt_cv_path_NM+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$NM"; then
4933 # Let the user override the test.
4934 lt_cv_path_NM="$NM"
4935 else
4936 lt_nm_to_check="${ac_tool_prefix}nm"
4937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4938 lt_nm_to_check="$lt_nm_to_check nm"
4939 fi
4940 for lt_tmp_nm in $lt_nm_to_check; do
4941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4943 IFS="$lt_save_ifs"
4944 test -z "$ac_dir" && ac_dir=.
4945 tmp_nm="$ac_dir/$lt_tmp_nm"
4946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4947 # Check to see if the nm accepts a BSD-compat flag.
4948 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4949 # nm: unknown option "B" ignored
4950 # Tru64's nm complains that /dev/null is an invalid object file
4951 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4952 */dev/null* | *'Invalid file or object type'*)
4953 lt_cv_path_NM="$tmp_nm -B"
4954 break
4955 ;;
4956 *)
4957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4958 */dev/null*)
4959 lt_cv_path_NM="$tmp_nm -p"
4960 break
4961 ;;
4962 *)
4963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4964 continue # so that we can try to find one that supports BSD flags
4965 ;;
4966 esac
4967 ;;
4968 esac
4969 fi
4970 done
4971 IFS="$lt_save_ifs"
4972 done
4973 : ${lt_cv_path_NM=no}
4974 fi
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4977 $as_echo "$lt_cv_path_NM" >&6; }
4978 if test "$lt_cv_path_NM" != "no"; then
4979 NM="$lt_cv_path_NM"
4980 else
4981 # Didn't find any BSD compatible name lister, look for dumpbin.
4982 if test -n "$DUMPBIN"; then :
4983 # Let the user override the test.
4984 else
4985 if test -n "$ac_tool_prefix"; then
4986 for ac_prog in dumpbin "link -dump"
4987 do
4988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_DUMPBIN+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$DUMPBIN"; then
4996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 DUMPBIN=$ac_cv_prog_DUMPBIN
5016 if test -n "$DUMPBIN"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5018 $as_echo "$DUMPBIN" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5022 fi
5023
5024
5025 test -n "$DUMPBIN" && break
5026 done
5027 fi
5028 if test -z "$DUMPBIN"; then
5029 ac_ct_DUMPBIN=$DUMPBIN
5030 for ac_prog in dumpbin "link -dump"
5031 do
5032 # Extract the first word of "$ac_prog", so it can be a program name with args.
5033 set dummy $ac_prog; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -n "$ac_ct_DUMPBIN"; then
5040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5060 if test -n "$ac_ct_DUMPBIN"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5062 $as_echo "$ac_ct_DUMPBIN" >&6; }
5063 else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 test -n "$ac_ct_DUMPBIN" && break
5070 done
5071
5072 if test "x$ac_ct_DUMPBIN" = x; then
5073 DUMPBIN=":"
5074 else
5075 case $cross_compiling:$ac_tool_warned in
5076 yes:)
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5079 ac_tool_warned=yes ;;
5080 esac
5081 DUMPBIN=$ac_ct_DUMPBIN
5082 fi
5083 fi
5084
5085 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5086 *COFF*)
5087 DUMPBIN="$DUMPBIN -symbols"
5088 ;;
5089 *)
5090 DUMPBIN=:
5091 ;;
5092 esac
5093 fi
5094
5095 if test "$DUMPBIN" != ":"; then
5096 NM="$DUMPBIN"
5097 fi
5098 fi
5099 test -z "$NM" && NM=nm
5100
5101
5102
5103
5104
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5107 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5108 if ${lt_cv_nm_interface+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 lt_cv_nm_interface="BSD nm"
5112 echo "int some_variable = 0;" > conftest.$ac_ext
5113 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5114 (eval "$ac_compile" 2>conftest.err)
5115 cat conftest.err >&5
5116 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5118 cat conftest.err >&5
5119 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5120 cat conftest.out >&5
5121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5122 lt_cv_nm_interface="MS dumpbin"
5123 fi
5124 rm -f conftest*
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5127 $as_echo "$lt_cv_nm_interface" >&6; }
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5130 $as_echo_n "checking whether ln -s works... " >&6; }
5131 LN_S=$as_ln_s
5132 if test "$LN_S" = "ln -s"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134 $as_echo "yes" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5137 $as_echo "no, using $LN_S" >&6; }
5138 fi
5139
5140 # find the maximum length of command line arguments
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5142 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5143 if ${lt_cv_sys_max_cmd_len+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 i=0
5147 teststring="ABCD"
5148
5149 case $build_os in
5150 msdosdjgpp*)
5151 # On DJGPP, this test can blow up pretty badly due to problems in libc
5152 # (any single argument exceeding 2000 bytes causes a buffer overrun
5153 # during glob expansion). Even if it were fixed, the result of this
5154 # check would be larger than it should be.
5155 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5156 ;;
5157
5158 gnu*)
5159 # Under GNU Hurd, this test is not required because there is
5160 # no limit to the length of command line arguments.
5161 # Libtool will interpret -1 as no limit whatsoever
5162 lt_cv_sys_max_cmd_len=-1;
5163 ;;
5164
5165 cygwin* | mingw* | cegcc*)
5166 # On Win9x/ME, this test blows up -- it succeeds, but takes
5167 # about 5 minutes as the teststring grows exponentially.
5168 # Worse, since 9x/ME are not pre-emptively multitasking,
5169 # you end up with a "frozen" computer, even though with patience
5170 # the test eventually succeeds (with a max line length of 256k).
5171 # Instead, let's just punt: use the minimum linelength reported by
5172 # all of the supported platforms: 8192 (on NT/2K/XP).
5173 lt_cv_sys_max_cmd_len=8192;
5174 ;;
5175
5176 mint*)
5177 # On MiNT this can take a long time and run out of memory.
5178 lt_cv_sys_max_cmd_len=8192;
5179 ;;
5180
5181 amigaos*)
5182 # On AmigaOS with pdksh, this test takes hours, literally.
5183 # So we just punt and use a minimum line length of 8192.
5184 lt_cv_sys_max_cmd_len=8192;
5185 ;;
5186
5187 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5188 # This has been around since 386BSD, at least. Likely further.
5189 if test -x /sbin/sysctl; then
5190 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5191 elif test -x /usr/sbin/sysctl; then
5192 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5193 else
5194 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5195 fi
5196 # And add a safety zone
5197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5199 ;;
5200
5201 interix*)
5202 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5203 lt_cv_sys_max_cmd_len=196608
5204 ;;
5205
5206 os2*)
5207 # The test takes a long time on OS/2.
5208 lt_cv_sys_max_cmd_len=8192
5209 ;;
5210
5211 osf*)
5212 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5213 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5214 # nice to cause kernel panics so lets avoid the loop below.
5215 # First set a reasonable default.
5216 lt_cv_sys_max_cmd_len=16384
5217 #
5218 if test -x /sbin/sysconfig; then
5219 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5220 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5221 esac
5222 fi
5223 ;;
5224 sco3.2v5*)
5225 lt_cv_sys_max_cmd_len=102400
5226 ;;
5227 sysv5* | sco5v6* | sysv4.2uw2*)
5228 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5229 if test -n "$kargmax"; then
5230 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5231 else
5232 lt_cv_sys_max_cmd_len=32768
5233 fi
5234 ;;
5235 *)
5236 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5237 if test -n "$lt_cv_sys_max_cmd_len"; then
5238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5240 else
5241 # Make teststring a little bigger before we do anything with it.
5242 # a 1K string should be a reasonable start.
5243 for i in 1 2 3 4 5 6 7 8 ; do
5244 teststring=$teststring$teststring
5245 done
5246 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5247 # If test is not a shell built-in, we'll probably end up computing a
5248 # maximum length that is only half of the actual maximum length, but
5249 # we can't tell.
5250 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5251 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5252 test $i != 17 # 1/2 MB should be enough
5253 do
5254 i=`expr $i + 1`
5255 teststring=$teststring$teststring
5256 done
5257 # Only check the string length outside the loop.
5258 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5259 teststring=
5260 # Add a significant safety factor because C++ compilers can tack on
5261 # massive amounts of additional arguments before passing them to the
5262 # linker. It appears as though 1/2 is a usable value.
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5264 fi
5265 ;;
5266 esac
5267
5268 fi
5269
5270 if test -n $lt_cv_sys_max_cmd_len ; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5272 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5275 $as_echo "none" >&6; }
5276 fi
5277 max_cmd_len=$lt_cv_sys_max_cmd_len
5278
5279
5280
5281
5282
5283
5284 : ${CP="cp -f"}
5285 : ${MV="mv -f"}
5286 : ${RM="rm -f"}
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5289 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5290 # Try some XSI features
5291 xsi_shell=no
5292 ( _lt_dummy="a/b/c"
5293 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5294 = c,a/b,b/c, \
5295 && eval 'test $(( 1 + 1 )) -eq 2 \
5296 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5297 && xsi_shell=yes
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5299 $as_echo "$xsi_shell" >&6; }
5300
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5303 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5304 lt_shell_append=no
5305 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5306 >/dev/null 2>&1 \
5307 && lt_shell_append=yes
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5309 $as_echo "$lt_shell_append" >&6; }
5310
5311
5312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5313 lt_unset=unset
5314 else
5315 lt_unset=false
5316 fi
5317
5318
5319
5320
5321
5322 # test EBCDIC or ASCII
5323 case `echo X|tr X '\101'` in
5324 A) # ASCII based system
5325 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5326 lt_SP2NL='tr \040 \012'
5327 lt_NL2SP='tr \015\012 \040\040'
5328 ;;
5329 *) # EBCDIC based system
5330 lt_SP2NL='tr \100 \n'
5331 lt_NL2SP='tr \r\n \100\100'
5332 ;;
5333 esac
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5344 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5345 if ${lt_cv_to_host_file_cmd+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 case $host in
5349 *-*-mingw* )
5350 case $build in
5351 *-*-mingw* ) # actually msys
5352 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5353 ;;
5354 *-*-cygwin* )
5355 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5356 ;;
5357 * ) # otherwise, assume *nix
5358 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5359 ;;
5360 esac
5361 ;;
5362 *-*-cygwin* )
5363 case $build in
5364 *-*-mingw* ) # actually msys
5365 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5366 ;;
5367 *-*-cygwin* )
5368 lt_cv_to_host_file_cmd=func_convert_file_noop
5369 ;;
5370 * ) # otherwise, assume *nix
5371 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5372 ;;
5373 esac
5374 ;;
5375 * ) # unhandled hosts (and "normal" native builds)
5376 lt_cv_to_host_file_cmd=func_convert_file_noop
5377 ;;
5378 esac
5379
5380 fi
5381
5382 to_host_file_cmd=$lt_cv_to_host_file_cmd
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5384 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5385
5386
5387
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5391 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5392 if ${lt_cv_to_tool_file_cmd+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 #assume ordinary cross tools, or native build.
5396 lt_cv_to_tool_file_cmd=func_convert_file_noop
5397 case $host in
5398 *-*-mingw* )
5399 case $build in
5400 *-*-mingw* ) # actually msys
5401 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5402 ;;
5403 esac
5404 ;;
5405 esac
5406
5407 fi
5408
5409 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5411 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5418 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5419 if ${lt_cv_ld_reload_flag+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 lt_cv_ld_reload_flag='-r'
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5425 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5426 reload_flag=$lt_cv_ld_reload_flag
5427 case $reload_flag in
5428 "" | " "*) ;;
5429 *) reload_flag=" $reload_flag" ;;
5430 esac
5431 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5432 case $host_os in
5433 cygwin* | mingw* | pw32* | cegcc*)
5434 if test "$GCC" != yes; then
5435 reload_cmds=false
5436 fi
5437 ;;
5438 darwin*)
5439 if test "$GCC" = yes; then
5440 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5441 else
5442 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5443 fi
5444 ;;
5445 esac
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5457 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_OBJDUMP+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$OBJDUMP"; then
5464 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477 done
5478 done
5479 IFS=$as_save_IFS
5480
5481 fi
5482 fi
5483 OBJDUMP=$ac_cv_prog_OBJDUMP
5484 if test -n "$OBJDUMP"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5486 $as_echo "$OBJDUMP" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5490 fi
5491
5492
5493 fi
5494 if test -z "$ac_cv_prog_OBJDUMP"; then
5495 ac_ct_OBJDUMP=$OBJDUMP
5496 # Extract the first word of "objdump", so it can be a program name with args.
5497 set dummy objdump; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$ac_ct_OBJDUMP"; then
5504 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5524 if test -n "$ac_ct_OBJDUMP"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5526 $as_echo "$ac_ct_OBJDUMP" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532 if test "x$ac_ct_OBJDUMP" = x; then
5533 OBJDUMP="false"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536 yes:)
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 OBJDUMP=$ac_ct_OBJDUMP
5542 fi
5543 else
5544 OBJDUMP="$ac_cv_prog_OBJDUMP"
5545 fi
5546
5547 test -z "$OBJDUMP" && OBJDUMP=objdump
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5558 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5559 if ${lt_cv_deplibs_check_method+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 lt_cv_file_magic_cmd='$MAGIC_CMD'
5563 lt_cv_file_magic_test_file=
5564 lt_cv_deplibs_check_method='unknown'
5565 # Need to set the preceding variable on all platforms that support
5566 # interlibrary dependencies.
5567 # 'none' -- dependencies not supported.
5568 # `unknown' -- same as none, but documents that we really don't know.
5569 # 'pass_all' -- all dependencies passed with no checks.
5570 # 'test_compile' -- check by making test program.
5571 # 'file_magic [[regex]]' -- check by looking for files in library path
5572 # which responds to the $file_magic_cmd with a given extended regex.
5573 # If you have `file' or equivalent on your system and you're not sure
5574 # whether `pass_all' will *always* work, you probably want this one.
5575
5576 case $host_os in
5577 aix[4-9]*)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580
5581 beos*)
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5584
5585 bsdi[45]*)
5586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5587 lt_cv_file_magic_cmd='/usr/bin/file -L'
5588 lt_cv_file_magic_test_file=/shlib/libc.so
5589 ;;
5590
5591 cygwin*)
5592 # func_win32_libid is a shell function defined in ltmain.sh
5593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5594 lt_cv_file_magic_cmd='func_win32_libid'
5595 ;;
5596
5597 mingw* | pw32*)
5598 # Base MSYS/MinGW do not provide the 'file' command needed by
5599 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5600 # unless we find 'file', for example because we are cross-compiling.
5601 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5602 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5604 lt_cv_file_magic_cmd='func_win32_libid'
5605 else
5606 # Keep this pattern in sync with the one in func_win32_libid.
5607 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5608 lt_cv_file_magic_cmd='$OBJDUMP -f'
5609 fi
5610 ;;
5611
5612 cegcc*)
5613 # use the weaker test based on 'objdump'. See mingw*.
5614 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5615 lt_cv_file_magic_cmd='$OBJDUMP -f'
5616 ;;
5617
5618 darwin* | rhapsody*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622 freebsd* | dragonfly*)
5623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5624 case $host_cpu in
5625 i*86 )
5626 # Not sure whether the presence of OpenBSD here was a mistake.
5627 # Let's accept both of them until this is cleared up.
5628 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5629 lt_cv_file_magic_cmd=/usr/bin/file
5630 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5631 ;;
5632 esac
5633 else
5634 lt_cv_deplibs_check_method=pass_all
5635 fi
5636 ;;
5637
5638 gnu*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641
5642 haiku*)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645
5646 hpux10.20* | hpux11*)
5647 lt_cv_file_magic_cmd=/usr/bin/file
5648 case $host_cpu in
5649 ia64*)
5650 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5651 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5652 ;;
5653 hppa*64*)
5654 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]'
5655 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5656 ;;
5657 *)
5658 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5659 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5660 ;;
5661 esac
5662 ;;
5663
5664 interix[3-9]*)
5665 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5667 ;;
5668
5669 irix5* | irix6* | nonstopux*)
5670 case $LD in
5671 *-32|*"-32 ") libmagic=32-bit;;
5672 *-n32|*"-n32 ") libmagic=N32;;
5673 *-64|*"-64 ") libmagic=64-bit;;
5674 *) libmagic=never-match;;
5675 esac
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678
5679 # This must be glibc/ELF.
5680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683
5684 netbsd*)
5685 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5687 else
5688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5689 fi
5690 ;;
5691
5692 newos6*)
5693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5694 lt_cv_file_magic_cmd=/usr/bin/file
5695 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5696 ;;
5697
5698 *nto* | *qnx*)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701
5702 openbsd*)
5703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5705 else
5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5707 fi
5708 ;;
5709
5710 osf3* | osf4* | osf5*)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 rdos*)
5715 lt_cv_deplibs_check_method=pass_all
5716 ;;
5717
5718 solaris*)
5719 lt_cv_deplibs_check_method=pass_all
5720 ;;
5721
5722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5723 lt_cv_deplibs_check_method=pass_all
5724 ;;
5725
5726 sysv4 | sysv4.3*)
5727 case $host_vendor in
5728 motorola)
5729 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]'
5730 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5731 ;;
5732 ncr)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735 sequent)
5736 lt_cv_file_magic_cmd='/bin/file'
5737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5738 ;;
5739 sni)
5740 lt_cv_file_magic_cmd='/bin/file'
5741 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5742 lt_cv_file_magic_test_file=/lib/libc.so
5743 ;;
5744 siemens)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747 pc)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750 esac
5751 ;;
5752
5753 tpf*)
5754 lt_cv_deplibs_check_method=pass_all
5755 ;;
5756 esac
5757
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5760 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5761
5762 file_magic_glob=
5763 want_nocaseglob=no
5764 if test "$build" = "$host"; then
5765 case $host_os in
5766 mingw* | pw32*)
5767 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5768 want_nocaseglob=yes
5769 else
5770 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5771 fi
5772 ;;
5773 esac
5774 fi
5775
5776 file_magic_cmd=$lt_cv_file_magic_cmd
5777 deplibs_check_method=$lt_cv_deplibs_check_method
5778 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5803 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_DLLTOOL+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$DLLTOOL"; then
5810 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 DLLTOOL=$ac_cv_prog_DLLTOOL
5830 if test -n "$DLLTOOL"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5832 $as_echo "$DLLTOOL" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838
5839 fi
5840 if test -z "$ac_cv_prog_DLLTOOL"; then
5841 ac_ct_DLLTOOL=$DLLTOOL
5842 # Extract the first word of "dlltool", so it can be a program name with args.
5843 set dummy dlltool; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$ac_ct_DLLTOOL"; then
5850 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867 fi
5868 fi
5869 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5870 if test -n "$ac_ct_DLLTOOL"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5872 $as_echo "$ac_ct_DLLTOOL" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5876 fi
5877
5878 if test "x$ac_ct_DLLTOOL" = x; then
5879 DLLTOOL="false"
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 DLLTOOL=$ac_ct_DLLTOOL
5888 fi
5889 else
5890 DLLTOOL="$ac_cv_prog_DLLTOOL"
5891 fi
5892
5893 test -z "$DLLTOOL" && DLLTOOL=dlltool
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5905 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5906 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 lt_cv_sharedlib_from_linklib_cmd='unknown'
5910
5911 case $host_os in
5912 cygwin* | mingw* | pw32* | cegcc*)
5913 # two different shell functions defined in ltmain.sh
5914 # decide which to use based on capabilities of $DLLTOOL
5915 case `$DLLTOOL --help 2>&1` in
5916 *--identify-strict*)
5917 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5918 ;;
5919 *)
5920 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5921 ;;
5922 esac
5923 ;;
5924 *)
5925 # fallback: assume linklib IS sharedlib
5926 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5927 ;;
5928 esac
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5932 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5933 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5934 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5935
5936
5937
5938
5939
5940
5941
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in ar
5944 do
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_AR+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test -n "$AR"; then
5953 ac_cv_prog_AR="$AR" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 AR=$ac_cv_prog_AR
5973 if test -n "$AR"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5975 $as_echo "$AR" >&6; }
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981
5982 test -n "$AR" && break
5983 done
5984 fi
5985 if test -z "$AR"; then
5986 ac_ct_AR=$AR
5987 for ac_prog in ar
5988 do
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990 set dummy $ac_prog; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test -n "$ac_ct_AR"; then
5997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_ac_ct_AR="$ac_prog"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6017 if test -n "$ac_ct_AR"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6019 $as_echo "$ac_ct_AR" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6023 fi
6024
6025
6026 test -n "$ac_ct_AR" && break
6027 done
6028
6029 if test "x$ac_ct_AR" = x; then
6030 AR="false"
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033 yes:)
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6036 ac_tool_warned=yes ;;
6037 esac
6038 AR=$ac_ct_AR
6039 fi
6040 fi
6041
6042 : ${AR=ar}
6043 : ${AR_FLAGS=cru}
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6056 $as_echo_n "checking for archiver @FILE support... " >&6; }
6057 if ${lt_cv_ar_at_file+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 lt_cv_ar_at_file=no
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063
6064 int
6065 main ()
6066 {
6067
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073 echo conftest.$ac_objext > conftest.lst
6074 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6076 (eval $lt_ar_try) 2>&5
6077 ac_status=$?
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }
6080 if test "$ac_status" -eq 0; then
6081 # Ensure the archiver fails upon bogus file names.
6082 rm -f conftest.$ac_objext libconftest.a
6083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6084 (eval $lt_ar_try) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; }
6088 if test "$ac_status" -ne 0; then
6089 lt_cv_ar_at_file=@
6090 fi
6091 fi
6092 rm -f conftest.* libconftest.a
6093
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6099 $as_echo "$lt_cv_ar_at_file" >&6; }
6100
6101 if test "x$lt_cv_ar_at_file" = xno; then
6102 archiver_list_spec=
6103 else
6104 archiver_list_spec=$lt_cv_ar_at_file
6105 fi
6106
6107
6108
6109
6110
6111
6112
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}strip; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_STRIP+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$STRIP"; then
6122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 STRIP=$ac_cv_prog_STRIP
6142 if test -n "$STRIP"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6144 $as_echo "$STRIP" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149
6150
6151 fi
6152 if test -z "$ac_cv_prog_STRIP"; then
6153 ac_ct_STRIP=$STRIP
6154 # Extract the first word of "strip", so it can be a program name with args.
6155 set dummy strip; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$ac_ct_STRIP"; then
6162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_STRIP="strip"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6178
6179 fi
6180 fi
6181 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6182 if test -n "$ac_ct_STRIP"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6184 $as_echo "$ac_ct_STRIP" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_STRIP" = x; then
6191 STRIP=":"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 STRIP=$ac_ct_STRIP
6200 fi
6201 else
6202 STRIP="$ac_cv_prog_STRIP"
6203 fi
6204
6205 test -z "$STRIP" && STRIP=:
6206
6207
6208
6209
6210
6211
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_RANLIB+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$RANLIB"; then
6221 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 RANLIB=$ac_cv_prog_RANLIB
6241 if test -n "$RANLIB"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6243 $as_echo "$RANLIB" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_RANLIB"; then
6252 ac_ct_RANLIB=$RANLIB
6253 # Extract the first word of "ranlib", so it can be a program name with args.
6254 set dummy ranlib; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$ac_ct_RANLIB"; then
6261 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_RANLIB="ranlib"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6281 if test -n "$ac_ct_RANLIB"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6283 $as_echo "$ac_ct_RANLIB" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_RANLIB" = x; then
6290 RANLIB=":"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 RANLIB=$ac_ct_RANLIB
6299 fi
6300 else
6301 RANLIB="$ac_cv_prog_RANLIB"
6302 fi
6303
6304 test -z "$RANLIB" && RANLIB=:
6305
6306
6307
6308
6309
6310
6311 # Determine commands to create old-style static archives.
6312 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6313 old_postinstall_cmds='chmod 644 $oldlib'
6314 old_postuninstall_cmds=
6315
6316 if test -n "$RANLIB"; then
6317 case $host_os in
6318 openbsd*)
6319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6320 ;;
6321 *)
6322 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6323 ;;
6324 esac
6325 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6326 fi
6327
6328 case $host_os in
6329 darwin*)
6330 lock_old_archive_extraction=yes ;;
6331 *)
6332 lock_old_archive_extraction=no ;;
6333 esac
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373 # If no C compiler was specified, use CC.
6374 LTCC=${LTCC-"$CC"}
6375
6376 # If no C compiler flags were specified, use CFLAGS.
6377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6378
6379 # Allow CC to be a program name with arguments.
6380 compiler=$CC
6381
6382
6383 # Check for command to grab the raw symbol name followed by C symbol from nm.
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6385 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6386 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389
6390 # These are sane defaults that work on at least a few old systems.
6391 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6392
6393 # Character class describing NM global symbol codes.
6394 symcode='[BCDEGRST]'
6395
6396 # Regexp to match symbols that can be accessed directly from C.
6397 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6398
6399 # Define system-specific variables.
6400 case $host_os in
6401 aix*)
6402 symcode='[BCDT]'
6403 ;;
6404 cygwin* | mingw* | pw32* | cegcc*)
6405 symcode='[ABCDGISTW]'
6406 ;;
6407 hpux*)
6408 if test "$host_cpu" = ia64; then
6409 symcode='[ABCDEGRST]'
6410 fi
6411 ;;
6412 irix* | nonstopux*)
6413 symcode='[BCDEGRST]'
6414 ;;
6415 osf*)
6416 symcode='[BCDEGQRST]'
6417 ;;
6418 solaris*)
6419 symcode='[BDRT]'
6420 ;;
6421 sco3.2v5*)
6422 symcode='[DT]'
6423 ;;
6424 sysv4.2uw2*)
6425 symcode='[DT]'
6426 ;;
6427 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6428 symcode='[ABDT]'
6429 ;;
6430 sysv4)
6431 symcode='[DFNSTU]'
6432 ;;
6433 esac
6434
6435 # If we're using GNU nm, then use its standard symbol codes.
6436 case `$NM -V 2>&1` in
6437 *GNU* | *'with BFD'*)
6438 symcode='[ABCDGIRSTW]' ;;
6439 esac
6440
6441 # Transform an extracted symbol line into a proper C declaration.
6442 # Some systems (esp. on ia64) link data and code symbols differently,
6443 # so use this general approach.
6444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6445
6446 # Transform an extracted symbol line into symbol name and symbol address
6447 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6448 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'"
6449
6450 # Handle CRLF in mingw tool chain
6451 opt_cr=
6452 case $build_os in
6453 mingw*)
6454 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6455 ;;
6456 esac
6457
6458 # Try without a prefix underscore, then with it.
6459 for ac_symprfx in "" "_"; do
6460
6461 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6462 symxfrm="\\1 $ac_symprfx\\2 \\2"
6463
6464 # Write the raw and C identifiers.
6465 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6466 # Fake it for dumpbin and say T for any non-static function
6467 # and D for any global variable.
6468 # Also find C++ and __fastcall symbols from MSVC++,
6469 # which start with @ or ?.
6470 lt_cv_sys_global_symbol_pipe="$AWK '"\
6471 " {last_section=section; section=\$ 3};"\
6472 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6473 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6474 " \$ 0!~/External *\|/{next};"\
6475 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6476 " {if(hide[section]) next};"\
6477 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6478 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6479 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6480 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6481 " ' prfx=^$ac_symprfx"
6482 else
6483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6484 fi
6485 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6486
6487 # Check to see that the pipe works correctly.
6488 pipe_works=no
6489
6490 rm -f conftest*
6491 cat > conftest.$ac_ext <<_LT_EOF
6492 #ifdef __cplusplus
6493 extern "C" {
6494 #endif
6495 char nm_test_var;
6496 void nm_test_func(void);
6497 void nm_test_func(void){}
6498 #ifdef __cplusplus
6499 }
6500 #endif
6501 int main(){nm_test_var='a';nm_test_func();return(0);}
6502 _LT_EOF
6503
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505 (eval $ac_compile) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; then
6509 # Now try to grab the symbols.
6510 nlist=conftest.nm
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6512 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6513 ac_status=$?
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; } && test -s "$nlist"; then
6516 # Try sorting and uniquifying the output.
6517 if sort "$nlist" | uniq > "$nlist"T; then
6518 mv -f "$nlist"T "$nlist"
6519 else
6520 rm -f "$nlist"T
6521 fi
6522
6523 # Make sure that we snagged all the symbols we need.
6524 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6525 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6526 cat <<_LT_EOF > conftest.$ac_ext
6527 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6528 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6529 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6530 relocations are performed -- see ld's documentation on pseudo-relocs. */
6531 # define LT_DLSYM_CONST
6532 #elif defined(__osf__)
6533 /* This system does not cope well with relocations in const data. */
6534 # define LT_DLSYM_CONST
6535 #else
6536 # define LT_DLSYM_CONST const
6537 #endif
6538
6539 #ifdef __cplusplus
6540 extern "C" {
6541 #endif
6542
6543 _LT_EOF
6544 # Now generate the symbol file.
6545 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6546
6547 cat <<_LT_EOF >> conftest.$ac_ext
6548
6549 /* The mapping between symbol names and symbols. */
6550 LT_DLSYM_CONST struct {
6551 const char *name;
6552 void *address;
6553 }
6554 lt__PROGRAM__LTX_preloaded_symbols[] =
6555 {
6556 { "@PROGRAM@", (void *) 0 },
6557 _LT_EOF
6558 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6559 cat <<\_LT_EOF >> conftest.$ac_ext
6560 {0, (void *) 0}
6561 };
6562
6563 /* This works around a problem in FreeBSD linker */
6564 #ifdef FREEBSD_WORKAROUND
6565 static const void *lt_preloaded_setup() {
6566 return lt__PROGRAM__LTX_preloaded_symbols;
6567 }
6568 #endif
6569
6570 #ifdef __cplusplus
6571 }
6572 #endif
6573 _LT_EOF
6574 # Now try linking the two files.
6575 mv conftest.$ac_objext conftstm.$ac_objext
6576 lt_globsym_save_LIBS=$LIBS
6577 lt_globsym_save_CFLAGS=$CFLAGS
6578 LIBS="conftstm.$ac_objext"
6579 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6581 (eval $ac_link) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6585 pipe_works=yes
6586 fi
6587 LIBS=$lt_globsym_save_LIBS
6588 CFLAGS=$lt_globsym_save_CFLAGS
6589 else
6590 echo "cannot find nm_test_func in $nlist" >&5
6591 fi
6592 else
6593 echo "cannot find nm_test_var in $nlist" >&5
6594 fi
6595 else
6596 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6597 fi
6598 else
6599 echo "$progname: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6601 fi
6602 rm -rf conftest* conftst*
6603
6604 # Do not use the global_symbol_pipe unless it works.
6605 if test "$pipe_works" = yes; then
6606 break
6607 else
6608 lt_cv_sys_global_symbol_pipe=
6609 fi
6610 done
6611
6612 fi
6613
6614 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6615 lt_cv_sys_global_symbol_to_cdecl=
6616 fi
6617 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6619 $as_echo "failed" >&6; }
6620 else
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6622 $as_echo "ok" >&6; }
6623 fi
6624
6625 # Response file support.
6626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6627 nm_file_list_spec='@'
6628 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6629 nm_file_list_spec='@'
6630 fi
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6659 $as_echo_n "checking for sysroot... " >&6; }
6660
6661 # Check whether --with-sysroot was given.
6662 if test "${with_sysroot+set}" = set; then :
6663 withval=$with_sysroot;
6664 else
6665 with_sysroot=no
6666 fi
6667
6668
6669 lt_sysroot=
6670 case ${with_sysroot} in #(
6671 yes)
6672 if test "$GCC" = yes; then
6673 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6674 fi
6675 ;; #(
6676 /*)
6677 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6678 ;; #(
6679 no|'')
6680 ;; #(
6681 *)
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6683 $as_echo "${with_sysroot}" >&6; }
6684 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6685 ;;
6686 esac
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6689 $as_echo "${lt_sysroot:-no}" >&6; }
6690
6691
6692
6693
6694
6695 # Check whether --enable-libtool-lock was given.
6696 if test "${enable_libtool_lock+set}" = set; then :
6697 enableval=$enable_libtool_lock;
6698 fi
6699
6700 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6701
6702 # Some flags need to be propagated to the compiler or linker for good
6703 # libtool support.
6704 case $host in
6705 ia64-*-hpux*)
6706 # Find out which ABI we are using.
6707 echo 'int i;' > conftest.$ac_ext
6708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6709 (eval $ac_compile) 2>&5
6710 ac_status=$?
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; }; then
6713 case `/usr/bin/file conftest.$ac_objext` in
6714 *ELF-32*)
6715 HPUX_IA64_MODE="32"
6716 ;;
6717 *ELF-64*)
6718 HPUX_IA64_MODE="64"
6719 ;;
6720 esac
6721 fi
6722 rm -rf conftest*
6723 ;;
6724 *-*-irix6*)
6725 # Find out which ABI we are using.
6726 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6728 (eval $ac_compile) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; }; then
6732 if test "$lt_cv_prog_gnu_ld" = yes; then
6733 case `/usr/bin/file conftest.$ac_objext` in
6734 *32-bit*)
6735 LD="${LD-ld} -melf32bsmip"
6736 ;;
6737 *N32*)
6738 LD="${LD-ld} -melf32bmipn32"
6739 ;;
6740 *64-bit*)
6741 LD="${LD-ld} -melf64bmip"
6742 ;;
6743 esac
6744 else
6745 case `/usr/bin/file conftest.$ac_objext` in
6746 *32-bit*)
6747 LD="${LD-ld} -32"
6748 ;;
6749 *N32*)
6750 LD="${LD-ld} -n32"
6751 ;;
6752 *64-bit*)
6753 LD="${LD-ld} -64"
6754 ;;
6755 esac
6756 fi
6757 fi
6758 rm -rf conftest*
6759 ;;
6760
6761 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6762 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6763 # Find out which ABI we are using.
6764 echo 'int i;' > conftest.$ac_ext
6765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6766 (eval $ac_compile) 2>&5
6767 ac_status=$?
6768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6769 test $ac_status = 0; }; then
6770 case `/usr/bin/file conftest.o` in
6771 *32-bit*)
6772 case $host in
6773 x86_64-*kfreebsd*-gnu)
6774 LD="${LD-ld} -m elf_i386_fbsd"
6775 ;;
6776 x86_64-*linux*)
6777 LD="${LD-ld} -m elf_i386"
6778 ;;
6779 ppc64-*linux*|powerpc64-*linux*)
6780 LD="${LD-ld} -m elf32ppclinux"
6781 ;;
6782 s390x-*linux*)
6783 LD="${LD-ld} -m elf_s390"
6784 ;;
6785 sparc64-*linux*)
6786 LD="${LD-ld} -m elf32_sparc"
6787 ;;
6788 esac
6789 ;;
6790 *64-bit*)
6791 case $host in
6792 x86_64-*kfreebsd*-gnu)
6793 LD="${LD-ld} -m elf_x86_64_fbsd"
6794 ;;
6795 x86_64-*linux*)
6796 LD="${LD-ld} -m elf_x86_64"
6797 ;;
6798 ppc*-*linux*|powerpc*-*linux*)
6799 LD="${LD-ld} -m elf64ppc"
6800 ;;
6801 s390*-*linux*|s390*-*tpf*)
6802 LD="${LD-ld} -m elf64_s390"
6803 ;;
6804 sparc*-*linux*)
6805 LD="${LD-ld} -m elf64_sparc"
6806 ;;
6807 esac
6808 ;;
6809 esac
6810 fi
6811 rm -rf conftest*
6812 ;;
6813
6814 *-*-sco3.2v5*)
6815 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6816 SAVE_CFLAGS="$CFLAGS"
6817 CFLAGS="$CFLAGS -belf"
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6819 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6820 if ${lt_cv_cc_needs_belf+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 ac_ext=c
6824 ac_cpp='$CPP $CPPFLAGS'
6825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831
6832 int
6833 main ()
6834 {
6835
6836 ;
6837 return 0;
6838 }
6839 _ACEOF
6840 if ac_fn_c_try_link "$LINENO"; then :
6841 lt_cv_cc_needs_belf=yes
6842 else
6843 lt_cv_cc_needs_belf=no
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 ac_ext=c
6848 ac_cpp='$CPP $CPPFLAGS'
6849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6852
6853 fi
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6855 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6858 CFLAGS="$SAVE_CFLAGS"
6859 fi
6860 ;;
6861 *-*solaris*)
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.o` in
6870 *64-bit*)
6871 case $lt_cv_prog_gnu_ld in
6872 yes*)
6873 case $host in
6874 i?86-*-solaris*)
6875 LD="${LD-ld} -m elf_x86_64"
6876 ;;
6877 sparc*-*-solaris*)
6878 LD="${LD-ld} -m elf64_sparc"
6879 ;;
6880 esac
6881 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6882 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6883 LD="${LD-ld}_sol2"
6884 fi
6885 ;;
6886 *)
6887 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6888 LD="${LD-ld} -64"
6889 fi
6890 ;;
6891 esac
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 esac
6898
6899 need_locks="$enable_libtool_lock"
6900
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}mt; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$MANIFEST_TOOL"; then
6910 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6930 if test -n "$MANIFEST_TOOL"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6932 $as_echo "$MANIFEST_TOOL" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939 fi
6940 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6941 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6942 # Extract the first word of "mt", so it can be a program name with args.
6943 set dummy mt; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_MANIFEST_TOOL"; then
6950 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6970 if test -n "$ac_ct_MANIFEST_TOOL"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6972 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6979 MANIFEST_TOOL=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6988 fi
6989 else
6990 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6991 fi
6992
6993 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6995 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6996 if ${lt_cv_path_mainfest_tool+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 lt_cv_path_mainfest_tool=no
7000 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7001 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7002 cat conftest.err >&5
7003 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7004 lt_cv_path_mainfest_tool=yes
7005 fi
7006 rm -f conftest*
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7009 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7010 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7011 MANIFEST_TOOL=:
7012 fi
7013
7014
7015
7016
7017
7018
7019 case $host_os in
7020 rhapsody* | darwin*)
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$DSYMUTIL"; then
7030 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7050 if test -n "$DSYMUTIL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7052 $as_echo "$DSYMUTIL" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058
7059 fi
7060 if test -z "$ac_cv_prog_DSYMUTIL"; then
7061 ac_ct_DSYMUTIL=$DSYMUTIL
7062 # Extract the first word of "dsymutil", so it can be a program name with args.
7063 set dummy dsymutil; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_DSYMUTIL"; then
7070 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7090 if test -n "$ac_ct_DSYMUTIL"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7092 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097
7098 if test "x$ac_ct_DSYMUTIL" = x; then
7099 DSYMUTIL=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 DSYMUTIL=$ac_ct_DSYMUTIL
7108 fi
7109 else
7110 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7111 fi
7112
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_NMEDIT+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 if test -n "$NMEDIT"; then
7122 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 NMEDIT=$ac_cv_prog_NMEDIT
7142 if test -n "$NMEDIT"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7144 $as_echo "$NMEDIT" >&6; }
7145 else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_NMEDIT"; then
7153 ac_ct_NMEDIT=$NMEDIT
7154 # Extract the first word of "nmedit", so it can be a program name with args.
7155 set dummy nmedit; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if test -n "$ac_ct_NMEDIT"; then
7162 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7182 if test -n "$ac_ct_NMEDIT"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7184 $as_echo "$ac_ct_NMEDIT" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190 if test "x$ac_ct_NMEDIT" = x; then
7191 NMEDIT=":"
7192 else
7193 case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199 NMEDIT=$ac_ct_NMEDIT
7200 fi
7201 else
7202 NMEDIT="$ac_cv_prog_NMEDIT"
7203 fi
7204
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_LIPO+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$LIPO"; then
7214 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 LIPO=$ac_cv_prog_LIPO
7234 if test -n "$LIPO"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7236 $as_echo "$LIPO" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_LIPO"; then
7245 ac_ct_LIPO=$LIPO
7246 # Extract the first word of "lipo", so it can be a program name with args.
7247 set dummy lipo; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_LIPO"; then
7254 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_ac_ct_LIPO="lipo"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7274 if test -n "$ac_ct_LIPO"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7276 $as_echo "$ac_ct_LIPO" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282 if test "x$ac_ct_LIPO" = x; then
7283 LIPO=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 LIPO=$ac_ct_LIPO
7292 fi
7293 else
7294 LIPO="$ac_cv_prog_LIPO"
7295 fi
7296
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}otool; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_OTOOL+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if test -n "$OTOOL"; then
7306 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 OTOOL=$ac_cv_prog_OTOOL
7326 if test -n "$OTOOL"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7328 $as_echo "$OTOOL" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_OTOOL"; then
7337 ac_ct_OTOOL=$OTOOL
7338 # Extract the first word of "otool", so it can be a program name with args.
7339 set dummy otool; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$ac_ct_OTOOL"; then
7346 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_prog_ac_ct_OTOOL="otool"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7366 if test -n "$ac_ct_OTOOL"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7368 $as_echo "$ac_ct_OTOOL" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374 if test "x$ac_ct_OTOOL" = x; then
7375 OTOOL=":"
7376 else
7377 case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383 OTOOL=$ac_ct_OTOOL
7384 fi
7385 else
7386 OTOOL="$ac_cv_prog_OTOOL"
7387 fi
7388
7389 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_OTOOL64+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 if test -n "$OTOOL64"; then
7398 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 OTOOL64=$ac_cv_prog_OTOOL64
7418 if test -n "$OTOOL64"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7420 $as_echo "$OTOOL64" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_OTOOL64"; then
7429 ac_ct_OTOOL64=$OTOOL64
7430 # Extract the first word of "otool64", so it can be a program name with args.
7431 set dummy otool64; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 if test -n "$ac_ct_OTOOL64"; then
7438 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_ac_ct_OTOOL64="otool64"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7458 if test -n "$ac_ct_OTOOL64"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7460 $as_echo "$ac_ct_OTOOL64" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466 if test "x$ac_ct_OTOOL64" = x; then
7467 OTOOL64=":"
7468 else
7469 case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475 OTOOL64=$ac_ct_OTOOL64
7476 fi
7477 else
7478 OTOOL64="$ac_cv_prog_OTOOL64"
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7508 $as_echo_n "checking for -single_module linker flag... " >&6; }
7509 if ${lt_cv_apple_cc_single_mod+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_apple_cc_single_mod=no
7513 if test -z "${LT_MULTI_MODULE}"; then
7514 # By default we will add the -single_module flag. You can override
7515 # by either setting the environment variable LT_MULTI_MODULE
7516 # non-empty at configure time, or by adding -multi_module to the
7517 # link flags.
7518 rm -rf libconftest.dylib*
7519 echo "int foo(void){return 1;}" > conftest.c
7520 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c" >&5
7522 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7523 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7524 _lt_result=$?
7525 # If there is a non-empty error log, and "single_module"
7526 # appears in it, assume the flag caused a linker warning
7527 if test -s conftest.err && $GREP single_module conftest.err; then
7528 cat conftest.err >&5
7529 # Otherwise, if the output was created with a 0 exit code from
7530 # the compiler, it worked.
7531 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7532 lt_cv_apple_cc_single_mod=yes
7533 else
7534 cat conftest.err >&5
7535 fi
7536 rm -rf libconftest.dylib*
7537 rm -f conftest.*
7538 fi
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7545 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 lt_cv_ld_exported_symbols_list=no
7549 save_LDFLAGS=$LDFLAGS
7550 echo "_main" > conftest.sym
7551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554
7555 int
7556 main ()
7557 {
7558
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_link "$LINENO"; then :
7564 lt_cv_ld_exported_symbols_list=yes
7565 else
7566 lt_cv_ld_exported_symbols_list=no
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 LDFLAGS="$save_LDFLAGS"
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7575
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7577 $as_echo_n "checking for -force_load linker flag... " >&6; }
7578 if ${lt_cv_ld_force_load+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7581 lt_cv_ld_force_load=no
7582 cat > conftest.c << _LT_EOF
7583 int forced_loaded() { return 2;}
7584 _LT_EOF
7585 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7586 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7587 echo "$AR cru libconftest.a conftest.o" >&5
7588 $AR cru libconftest.a conftest.o 2>&5
7589 echo "$RANLIB libconftest.a" >&5
7590 $RANLIB libconftest.a 2>&5
7591 cat > conftest.c << _LT_EOF
7592 int main() { return 0;}
7593 _LT_EOF
7594 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7595 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7596 _lt_result=$?
7597 if test -s conftest.err && $GREP force_load conftest.err; then
7598 cat conftest.err >&5
7599 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7600 lt_cv_ld_force_load=yes
7601 else
7602 cat conftest.err >&5
7603 fi
7604 rm -f conftest.err libconftest.a conftest conftest.c
7605 rm -rf conftest.dSYM
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7609 $as_echo "$lt_cv_ld_force_load" >&6; }
7610 case $host_os in
7611 rhapsody* | darwin1.[012])
7612 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7613 darwin1.*)
7614 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7615 darwin*) # darwin 5.x on
7616 # if running on 10.5 or later, the deployment target defaults
7617 # to the OS version, if on x86, and 10.4, the deployment
7618 # target defaults to 10.4. Don't you love it?
7619 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7620 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7621 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7622 10.[012]*)
7623 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7624 10.*)
7625 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7626 esac
7627 ;;
7628 esac
7629 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7630 _lt_dar_single_mod='$single_module'
7631 fi
7632 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7633 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7634 else
7635 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7636 fi
7637 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7638 _lt_dsymutil='~$DSYMUTIL $lib || :'
7639 else
7640 _lt_dsymutil=
7641 fi
7642 ;;
7643 esac
7644
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7652 # On Suns, sometimes $CPP names a directory.
7653 if test -n "$CPP" && test -d "$CPP"; then
7654 CPP=
7655 fi
7656 if test -z "$CPP"; then
7657 if ${ac_cv_prog_CPP+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 # Double quotes because CPP needs to be expanded
7661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7662 do
7663 ac_preproc_ok=false
7664 for ac_c_preproc_warn_flag in '' yes
7665 do
7666 # Use a header file that comes with gcc, so configuring glibc
7667 # with a fresh cross-compiler works.
7668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669 # <limits.h> exists even on freestanding compilers.
7670 # On the NeXT, cc -E runs the code through the compiler's parser,
7671 # not just through cpp. "Syntax error" is here to catch this case.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #ifdef __STDC__
7675 # include <limits.h>
7676 #else
7677 # include <assert.h>
7678 #endif
7679 Syntax error
7680 _ACEOF
7681 if ac_fn_c_try_cpp "$LINENO"; then :
7682
7683 else
7684 # Broken: fails on valid input.
7685 continue
7686 fi
7687 rm -f conftest.err conftest.i conftest.$ac_ext
7688
7689 # OK, works on sane cases. Now check whether nonexistent headers
7690 # can be detected and how.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <ac_nonexistent.h>
7694 _ACEOF
7695 if ac_fn_c_try_cpp "$LINENO"; then :
7696 # Broken: success on invalid input.
7697 continue
7698 else
7699 # Passes both tests.
7700 ac_preproc_ok=:
7701 break
7702 fi
7703 rm -f conftest.err conftest.i conftest.$ac_ext
7704
7705 done
7706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7707 rm -f conftest.i conftest.err conftest.$ac_ext
7708 if $ac_preproc_ok; then :
7709 break
7710 fi
7711
7712 done
7713 ac_cv_prog_CPP=$CPP
7714
7715 fi
7716 CPP=$ac_cv_prog_CPP
7717 else
7718 ac_cv_prog_CPP=$CPP
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7721 $as_echo "$CPP" >&6; }
7722 ac_preproc_ok=false
7723 for ac_c_preproc_warn_flag in '' yes
7724 do
7725 # Use a header file that comes with gcc, so configuring glibc
7726 # with a fresh cross-compiler works.
7727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7728 # <limits.h> exists even on freestanding compilers.
7729 # On the NeXT, cc -E runs the code through the compiler's parser,
7730 # not just through cpp. "Syntax error" is here to catch this case.
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 #ifdef __STDC__
7734 # include <limits.h>
7735 #else
7736 # include <assert.h>
7737 #endif
7738 Syntax error
7739 _ACEOF
7740 if ac_fn_c_try_cpp "$LINENO"; then :
7741
7742 else
7743 # Broken: fails on valid input.
7744 continue
7745 fi
7746 rm -f conftest.err conftest.i conftest.$ac_ext
7747
7748 # OK, works on sane cases. Now check whether nonexistent headers
7749 # can be detected and how.
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #include <ac_nonexistent.h>
7753 _ACEOF
7754 if ac_fn_c_try_cpp "$LINENO"; then :
7755 # Broken: success on invalid input.
7756 continue
7757 else
7758 # Passes both tests.
7759 ac_preproc_ok=:
7760 break
7761 fi
7762 rm -f conftest.err conftest.i conftest.$ac_ext
7763
7764 done
7765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7766 rm -f conftest.i conftest.err conftest.$ac_ext
7767 if $ac_preproc_ok; then :
7768
7769 else
7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7772 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7773 See \`config.log' for more details" "$LINENO" 5; }
7774 fi
7775
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7784 $as_echo_n "checking for ANSI C header files... " >&6; }
7785 if ${ac_cv_header_stdc+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <stdlib.h>
7791 #include <stdarg.h>
7792 #include <string.h>
7793 #include <float.h>
7794
7795 int
7796 main ()
7797 {
7798
7799 ;
7800 return 0;
7801 }
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804 ac_cv_header_stdc=yes
7805 else
7806 ac_cv_header_stdc=no
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809
7810 if test $ac_cv_header_stdc = yes; then
7811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <string.h>
7815
7816 _ACEOF
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "memchr" >/dev/null 2>&1; then :
7819
7820 else
7821 ac_cv_header_stdc=no
7822 fi
7823 rm -f conftest*
7824
7825 fi
7826
7827 if test $ac_cv_header_stdc = yes; then
7828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <stdlib.h>
7832
7833 _ACEOF
7834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7835 $EGREP "free" >/dev/null 2>&1; then :
7836
7837 else
7838 ac_cv_header_stdc=no
7839 fi
7840 rm -f conftest*
7841
7842 fi
7843
7844 if test $ac_cv_header_stdc = yes; then
7845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7846 if test "$cross_compiling" = yes; then :
7847 :
7848 else
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7851 #include <ctype.h>
7852 #include <stdlib.h>
7853 #if ((' ' & 0x0FF) == 0x020)
7854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7856 #else
7857 # define ISLOWER(c) \
7858 (('a' <= (c) && (c) <= 'i') \
7859 || ('j' <= (c) && (c) <= 'r') \
7860 || ('s' <= (c) && (c) <= 'z'))
7861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7862 #endif
7863
7864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7865 int
7866 main ()
7867 {
7868 int i;
7869 for (i = 0; i < 256; i++)
7870 if (XOR (islower (i), ISLOWER (i))
7871 || toupper (i) != TOUPPER (i))
7872 return 2;
7873 return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_run "$LINENO"; then :
7877
7878 else
7879 ac_cv_header_stdc=no
7880 fi
7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7882 conftest.$ac_objext conftest.beam conftest.$ac_ext
7883 fi
7884
7885 fi
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7888 $as_echo "$ac_cv_header_stdc" >&6; }
7889 if test $ac_cv_header_stdc = yes; then
7890
7891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7892
7893 fi
7894
7895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7896 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7897 inttypes.h stdint.h unistd.h
7898 do :
7899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7901 "
7902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7903 cat >>confdefs.h <<_ACEOF
7904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 _ACEOF
7906
7907 fi
7908
7909 done
7910
7911
7912 for ac_header in dlfcn.h
7913 do :
7914 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7915 "
7916 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_DLFCN_H 1
7919 _ACEOF
7920
7921 fi
7922
7923 done
7924
7925
7926
7927
7928
7929 # Set options
7930 enable_dlopen=yes
7931 # Check whether --enable-static was given.
7932 if test "${enable_static+set}" = set; then :
7933 enableval=$enable_static; p=${PACKAGE-default}
7934 case $enableval in
7935 yes) enable_static=yes ;;
7936 no) enable_static=no ;;
7937 *)
7938 enable_static=no
7939 # Look at the argument we got. We use all the common list separators.
7940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7941 for pkg in $enableval; do
7942 IFS="$lt_save_ifs"
7943 if test "X$pkg" = "X$p"; then
7944 enable_static=yes
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 ;;
7949 esac
7950 else
7951 enable_static=no
7952 fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 enable_win32_dll=no
7965
7966
7967 # Check whether --enable-shared was given.
7968 if test "${enable_shared+set}" = set; then :
7969 enableval=$enable_shared; p=${PACKAGE-default}
7970 case $enableval in
7971 yes) enable_shared=yes ;;
7972 no) enable_shared=no ;;
7973 *)
7974 enable_shared=no
7975 # Look at the argument we got. We use all the common list separators.
7976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7977 for pkg in $enableval; do
7978 IFS="$lt_save_ifs"
7979 if test "X$pkg" = "X$p"; then
7980 enable_shared=yes
7981 fi
7982 done
7983 IFS="$lt_save_ifs"
7984 ;;
7985 esac
7986 else
7987 enable_shared=yes
7988 fi
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 # Check whether --with-pic was given.
8001 if test "${with_pic+set}" = set; then :
8002 withval=$with_pic; lt_p=${PACKAGE-default}
8003 case $withval in
8004 yes|no) pic_mode=$withval ;;
8005 *)
8006 pic_mode=default
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for lt_pkg in $withval; do
8010 IFS="$lt_save_ifs"
8011 if test "X$lt_pkg" = "X$lt_p"; then
8012 pic_mode=yes
8013 fi
8014 done
8015 IFS="$lt_save_ifs"
8016 ;;
8017 esac
8018 else
8019 pic_mode=default
8020 fi
8021
8022
8023 test -z "$pic_mode" && pic_mode=default
8024
8025
8026
8027
8028
8029
8030
8031 # Check whether --enable-fast-install was given.
8032 if test "${enable_fast_install+set}" = set; then :
8033 enableval=$enable_fast_install; p=${PACKAGE-default}
8034 case $enableval in
8035 yes) enable_fast_install=yes ;;
8036 no) enable_fast_install=no ;;
8037 *)
8038 enable_fast_install=no
8039 # Look at the argument we got. We use all the common list separators.
8040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8041 for pkg in $enableval; do
8042 IFS="$lt_save_ifs"
8043 if test "X$pkg" = "X$p"; then
8044 enable_fast_install=yes
8045 fi
8046 done
8047 IFS="$lt_save_ifs"
8048 ;;
8049 esac
8050 else
8051 enable_fast_install=yes
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064 # This can be used to rebuild libtool when needed
8065 LIBTOOL_DEPS="$ltmain"
8066
8067 # Always use our own libtool.
8068 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099 test -z "$LN_S" && LN_S="ln -s"
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114 if test -n "${ZSH_VERSION+set}" ; then
8115 setopt NO_GLOB_SUBST
8116 fi
8117
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8119 $as_echo_n "checking for objdir... " >&6; }
8120 if ${lt_cv_objdir+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 rm -f .libs 2>/dev/null
8124 mkdir .libs 2>/dev/null
8125 if test -d .libs; then
8126 lt_cv_objdir=.libs
8127 else
8128 # MS-DOS does not allow filenames that begin with a dot.
8129 lt_cv_objdir=_libs
8130 fi
8131 rmdir .libs 2>/dev/null
8132 fi
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8134 $as_echo "$lt_cv_objdir" >&6; }
8135 objdir=$lt_cv_objdir
8136
8137
8138
8139
8140
8141 cat >>confdefs.h <<_ACEOF
8142 #define LT_OBJDIR "$lt_cv_objdir/"
8143 _ACEOF
8144
8145
8146
8147
8148 case $host_os in
8149 aix3*)
8150 # AIX sometimes has problems with the GCC collect2 program. For some
8151 # reason, if we set the COLLECT_NAMES environment variable, the problems
8152 # vanish in a puff of smoke.
8153 if test "X${COLLECT_NAMES+set}" != Xset; then
8154 COLLECT_NAMES=
8155 export COLLECT_NAMES
8156 fi
8157 ;;
8158 esac
8159
8160 # Global variables:
8161 ofile=libtool
8162 can_build_shared=yes
8163
8164 # All known linkers require a `.a' archive for static linking (except MSVC,
8165 # which needs '.lib').
8166 libext=a
8167
8168 with_gnu_ld="$lt_cv_prog_gnu_ld"
8169
8170 old_CC="$CC"
8171 old_CFLAGS="$CFLAGS"
8172
8173 # Set sane defaults for various variables
8174 test -z "$CC" && CC=cc
8175 test -z "$LTCC" && LTCC=$CC
8176 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8177 test -z "$LD" && LD=ld
8178 test -z "$ac_objext" && ac_objext=o
8179
8180 for cc_temp in $compiler""; do
8181 case $cc_temp in
8182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8184 \-*) ;;
8185 *) break;;
8186 esac
8187 done
8188 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8189
8190
8191 # Only perform the check for file, if the check method requires it
8192 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8193 case $deplibs_check_method in
8194 file_magic*)
8195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8197 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8198 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 case $MAGIC_CMD in
8202 [\\/*] | ?:[\\/]*)
8203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8204 ;;
8205 *)
8206 lt_save_MAGIC_CMD="$MAGIC_CMD"
8207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8209 for ac_dir in $ac_dummy; do
8210 IFS="$lt_save_ifs"
8211 test -z "$ac_dir" && ac_dir=.
8212 if test -f $ac_dir/${ac_tool_prefix}file; then
8213 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8214 if test -n "$file_magic_test_file"; then
8215 case $deplibs_check_method in
8216 "file_magic "*)
8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8220 $EGREP "$file_magic_regex" > /dev/null; then
8221 :
8222 else
8223 cat <<_LT_EOF 1>&2
8224
8225 *** Warning: the command libtool uses to detect shared libraries,
8226 *** $file_magic_cmd, produces output that libtool cannot recognize.
8227 *** The result is that libtool may fail to recognize shared libraries
8228 *** as such. This will affect the creation of libtool libraries that
8229 *** depend on shared libraries, but programs linked with such libtool
8230 *** libraries will work regardless of this problem. Nevertheless, you
8231 *** may want to report the problem to your system manager and/or to
8232 *** bug-libtool@gnu.org
8233
8234 _LT_EOF
8235 fi ;;
8236 esac
8237 fi
8238 break
8239 fi
8240 done
8241 IFS="$lt_save_ifs"
8242 MAGIC_CMD="$lt_save_MAGIC_CMD"
8243 ;;
8244 esac
8245 fi
8246
8247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8248 if test -n "$MAGIC_CMD"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8250 $as_echo "$MAGIC_CMD" >&6; }
8251 else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8254 fi
8255
8256
8257
8258
8259
8260 if test -z "$lt_cv_path_MAGIC_CMD"; then
8261 if test -n "$ac_tool_prefix"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8263 $as_echo_n "checking for file... " >&6; }
8264 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 case $MAGIC_CMD in
8268 [\\/*] | ?:[\\/]*)
8269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8270 ;;
8271 *)
8272 lt_save_MAGIC_CMD="$MAGIC_CMD"
8273 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8275 for ac_dir in $ac_dummy; do
8276 IFS="$lt_save_ifs"
8277 test -z "$ac_dir" && ac_dir=.
8278 if test -f $ac_dir/file; then
8279 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8280 if test -n "$file_magic_test_file"; then
8281 case $deplibs_check_method in
8282 "file_magic "*)
8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8286 $EGREP "$file_magic_regex" > /dev/null; then
8287 :
8288 else
8289 cat <<_LT_EOF 1>&2
8290
8291 *** Warning: the command libtool uses to detect shared libraries,
8292 *** $file_magic_cmd, produces output that libtool cannot recognize.
8293 *** The result is that libtool may fail to recognize shared libraries
8294 *** as such. This will affect the creation of libtool libraries that
8295 *** depend on shared libraries, but programs linked with such libtool
8296 *** libraries will work regardless of this problem. Nevertheless, you
8297 *** may want to report the problem to your system manager and/or to
8298 *** bug-libtool@gnu.org
8299
8300 _LT_EOF
8301 fi ;;
8302 esac
8303 fi
8304 break
8305 fi
8306 done
8307 IFS="$lt_save_ifs"
8308 MAGIC_CMD="$lt_save_MAGIC_CMD"
8309 ;;
8310 esac
8311 fi
8312
8313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8314 if test -n "$MAGIC_CMD"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8316 $as_echo "$MAGIC_CMD" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 else
8324 MAGIC_CMD=:
8325 fi
8326 fi
8327
8328 fi
8329 ;;
8330 esac
8331
8332 # Use C for the default configuration in the libtool script
8333
8334 lt_save_CC="$CC"
8335 ac_ext=c
8336 ac_cpp='$CPP $CPPFLAGS'
8337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8340
8341
8342 # Source file extension for C test sources.
8343 ac_ext=c
8344
8345 # Object file extension for compiled C test sources.
8346 objext=o
8347 objext=$objext
8348
8349 # Code to be used in simple compile tests
8350 lt_simple_compile_test_code="int some_variable = 0;"
8351
8352 # Code to be used in simple link tests
8353 lt_simple_link_test_code='int main(){return(0);}'
8354
8355
8356
8357
8358
8359
8360
8361 # If no C compiler was specified, use CC.
8362 LTCC=${LTCC-"$CC"}
8363
8364 # If no C compiler flags were specified, use CFLAGS.
8365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8366
8367 # Allow CC to be a program name with arguments.
8368 compiler=$CC
8369
8370 # Save the default compiler, since it gets overwritten when the other
8371 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8372 compiler_DEFAULT=$CC
8373
8374 # save warnings/boilerplate of simple test code
8375 ac_outfile=conftest.$ac_objext
8376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8378 _lt_compiler_boilerplate=`cat conftest.err`
8379 $RM conftest*
8380
8381 ac_outfile=conftest.$ac_objext
8382 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8384 _lt_linker_boilerplate=`cat conftest.err`
8385 $RM -r conftest*
8386
8387
8388 if test -n "$compiler"; then
8389
8390 lt_prog_compiler_no_builtin_flag=
8391
8392 if test "$GCC" = yes; then
8393 case $cc_basename in
8394 nvcc*)
8395 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8396 *)
8397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8398 esac
8399
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8401 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8402 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 lt_cv_prog_compiler_rtti_exceptions=no
8406 ac_outfile=conftest.$ac_objext
8407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8408 lt_compiler_flag="-fno-rtti -fno-exceptions"
8409 # Insert the option either (1) after the last *FLAGS variable, or
8410 # (2) before a word containing "conftest.", or (3) at the end.
8411 # Note that $ac_compile itself does not contain backslashes and begins
8412 # with a dollar sign (not a hyphen), so the echo should work correctly.
8413 # The option is referenced via a variable to avoid confusing sed.
8414 lt_compile=`echo "$ac_compile" | $SED \
8415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417 -e 's:$: $lt_compiler_flag:'`
8418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8419 (eval "$lt_compile" 2>conftest.err)
8420 ac_status=$?
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 if (exit $ac_status) && test -s "$ac_outfile"; then
8424 # The compiler can only warn and ignore the option if not recognized
8425 # So say no if there are warnings other than the usual output.
8426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8429 lt_cv_prog_compiler_rtti_exceptions=yes
8430 fi
8431 fi
8432 $RM conftest*
8433
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8436 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8437
8438 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8440 else
8441 :
8442 fi
8443
8444 fi
8445
8446
8447
8448
8449
8450
8451 lt_prog_compiler_wl=
8452 lt_prog_compiler_pic=
8453 lt_prog_compiler_static=
8454
8455
8456 if test "$GCC" = yes; then
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_static='-static'
8459
8460 case $host_os in
8461 aix*)
8462 # All AIX code is PIC.
8463 if test "$host_cpu" = ia64; then
8464 # AIX 5 now supports IA64 processor
8465 lt_prog_compiler_static='-Bstatic'
8466 fi
8467 ;;
8468
8469 amigaos*)
8470 case $host_cpu in
8471 powerpc)
8472 # see comment about AmigaOS4 .so support
8473 lt_prog_compiler_pic='-fPIC'
8474 ;;
8475 m68k)
8476 # FIXME: we need at least 68020 code to build shared libraries, but
8477 # adding the `-m68020' flag to GCC prevents building anything better,
8478 # like `-m68040'.
8479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8480 ;;
8481 esac
8482 ;;
8483
8484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8485 # PIC is the default for these OSes.
8486 ;;
8487
8488 mingw* | cygwin* | pw32* | os2* | cegcc*)
8489 # This hack is so that the source file can tell whether it is being
8490 # built for inclusion in a dll (and should export symbols for example).
8491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8492 # (--disable-auto-import) libraries
8493 lt_prog_compiler_pic='-DDLL_EXPORT'
8494 ;;
8495
8496 darwin* | rhapsody*)
8497 # PIC is the default on this platform
8498 # Common symbols not allowed in MH_DYLIB files
8499 lt_prog_compiler_pic='-fno-common'
8500 ;;
8501
8502 haiku*)
8503 # PIC is the default for Haiku.
8504 # The "-static" flag exists, but is broken.
8505 lt_prog_compiler_static=
8506 ;;
8507
8508 hpux*)
8509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8511 # sets the default TLS model and affects inlining.
8512 case $host_cpu in
8513 hppa*64*)
8514 # +Z the default
8515 ;;
8516 *)
8517 lt_prog_compiler_pic='-fPIC'
8518 ;;
8519 esac
8520 ;;
8521
8522 interix[3-9]*)
8523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8524 # Instead, we relocate shared libraries at runtime.
8525 ;;
8526
8527 msdosdjgpp*)
8528 # Just because we use GCC doesn't mean we suddenly get shared libraries
8529 # on systems that don't support them.
8530 lt_prog_compiler_can_build_shared=no
8531 enable_shared=no
8532 ;;
8533
8534 *nto* | *qnx*)
8535 # QNX uses GNU C++, but need to define -shared option too, otherwise
8536 # it will coredump.
8537 lt_prog_compiler_pic='-fPIC -shared'
8538 ;;
8539
8540 sysv4*MP*)
8541 if test -d /usr/nec; then
8542 lt_prog_compiler_pic=-Kconform_pic
8543 fi
8544 ;;
8545
8546 *)
8547 lt_prog_compiler_pic='-fPIC'
8548 ;;
8549 esac
8550
8551 case $cc_basename in
8552 nvcc*) # Cuda Compiler Driver 2.2
8553 lt_prog_compiler_wl='-Xlinker '
8554 if test -n "$lt_prog_compiler_pic"; then
8555 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8556 fi
8557 ;;
8558 esac
8559 else
8560 # PORTME Check for flag to pass linker flags through the system compiler.
8561 case $host_os in
8562 aix*)
8563 lt_prog_compiler_wl='-Wl,'
8564 if test "$host_cpu" = ia64; then
8565 # AIX 5 now supports IA64 processor
8566 lt_prog_compiler_static='-Bstatic'
8567 else
8568 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8569 fi
8570 ;;
8571
8572 mingw* | cygwin* | pw32* | os2* | cegcc*)
8573 # This hack is so that the source file can tell whether it is being
8574 # built for inclusion in a dll (and should export symbols for example).
8575 lt_prog_compiler_pic='-DDLL_EXPORT'
8576 ;;
8577
8578 hpux9* | hpux10* | hpux11*)
8579 lt_prog_compiler_wl='-Wl,'
8580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8581 # not for PA HP-UX.
8582 case $host_cpu in
8583 hppa*64*|ia64*)
8584 # +Z the default
8585 ;;
8586 *)
8587 lt_prog_compiler_pic='+Z'
8588 ;;
8589 esac
8590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8591 lt_prog_compiler_static='${wl}-a ${wl}archive'
8592 ;;
8593
8594 irix5* | irix6* | nonstopux*)
8595 lt_prog_compiler_wl='-Wl,'
8596 # PIC (with -KPIC) is the default.
8597 lt_prog_compiler_static='-non_shared'
8598 ;;
8599
8600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8601 case $cc_basename in
8602 # old Intel for x86_64 which still supported -KPIC.
8603 ecc*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-KPIC'
8606 lt_prog_compiler_static='-static'
8607 ;;
8608 # icc used to be incompatible with GCC.
8609 # ICC 10 doesn't accept -KPIC any more.
8610 icc* | ifort*)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-fPIC'
8613 lt_prog_compiler_static='-static'
8614 ;;
8615 # Lahey Fortran 8.1.
8616 lf95*)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='--shared'
8619 lt_prog_compiler_static='--static'
8620 ;;
8621 nagfor*)
8622 # NAG Fortran compiler
8623 lt_prog_compiler_wl='-Wl,-Wl,,'
8624 lt_prog_compiler_pic='-PIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8628 # Portland Group compilers (*not* the Pentium gcc compiler,
8629 # which looks to be a dead project)
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='-fpic'
8632 lt_prog_compiler_static='-Bstatic'
8633 ;;
8634 ccc*)
8635 lt_prog_compiler_wl='-Wl,'
8636 # All Alpha code is PIC.
8637 lt_prog_compiler_static='-non_shared'
8638 ;;
8639 xl* | bgxl* | bgf* | mpixl*)
8640 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-qpic'
8643 lt_prog_compiler_static='-qstaticlink'
8644 ;;
8645 *)
8646 case `$CC -V 2>&1 | sed 5q` in
8647 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8648 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8649 lt_prog_compiler_pic='-KPIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 lt_prog_compiler_wl=''
8652 ;;
8653 *Sun\ F* | *Sun*Fortran*)
8654 lt_prog_compiler_pic='-KPIC'
8655 lt_prog_compiler_static='-Bstatic'
8656 lt_prog_compiler_wl='-Qoption ld '
8657 ;;
8658 *Sun\ C*)
8659 # Sun C 5.9
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 lt_prog_compiler_wl='-Wl,'
8663 ;;
8664 *Intel*\ [CF]*Compiler*)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-fPIC'
8667 lt_prog_compiler_static='-static'
8668 ;;
8669 *Portland\ Group*)
8670 lt_prog_compiler_wl='-Wl,'
8671 lt_prog_compiler_pic='-fpic'
8672 lt_prog_compiler_static='-Bstatic'
8673 ;;
8674 esac
8675 ;;
8676 esac
8677 ;;
8678
8679 newsos6)
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8682 ;;
8683
8684 *nto* | *qnx*)
8685 # QNX uses GNU C++, but need to define -shared option too, otherwise
8686 # it will coredump.
8687 lt_prog_compiler_pic='-fPIC -shared'
8688 ;;
8689
8690 osf3* | osf4* | osf5*)
8691 lt_prog_compiler_wl='-Wl,'
8692 # All OSF/1 code is PIC.
8693 lt_prog_compiler_static='-non_shared'
8694 ;;
8695
8696 rdos*)
8697 lt_prog_compiler_static='-non_shared'
8698 ;;
8699
8700 solaris*)
8701 lt_prog_compiler_pic='-KPIC'
8702 lt_prog_compiler_static='-Bstatic'
8703 case $cc_basename in
8704 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8705 lt_prog_compiler_wl='-Qoption ld ';;
8706 *)
8707 lt_prog_compiler_wl='-Wl,';;
8708 esac
8709 ;;
8710
8711 sunos4*)
8712 lt_prog_compiler_wl='-Qoption ld '
8713 lt_prog_compiler_pic='-PIC'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716
8717 sysv4 | sysv4.2uw2* | sysv4.3*)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-KPIC'
8720 lt_prog_compiler_static='-Bstatic'
8721 ;;
8722
8723 sysv4*MP*)
8724 if test -d /usr/nec ;then
8725 lt_prog_compiler_pic='-Kconform_pic'
8726 lt_prog_compiler_static='-Bstatic'
8727 fi
8728 ;;
8729
8730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8734 ;;
8735
8736 unicos*)
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_can_build_shared=no
8739 ;;
8740
8741 uts4*)
8742 lt_prog_compiler_pic='-pic'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745
8746 *)
8747 lt_prog_compiler_can_build_shared=no
8748 ;;
8749 esac
8750 fi
8751
8752 case $host_os in
8753 # For platforms which do not support PIC, -DPIC is meaningless:
8754 *djgpp*)
8755 lt_prog_compiler_pic=
8756 ;;
8757 *)
8758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8759 ;;
8760 esac
8761
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8763 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8764 if ${lt_cv_prog_compiler_pic+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8770 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8771 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8772
8773 #
8774 # Check to make sure the PIC flag actually works.
8775 #
8776 if test -n "$lt_prog_compiler_pic"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8778 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8779 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_prog_compiler_pic_works=no
8783 ac_outfile=conftest.$ac_objext
8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8786 # Insert the option either (1) after the last *FLAGS variable, or
8787 # (2) before a word containing "conftest.", or (3) at the end.
8788 # Note that $ac_compile itself does not contain backslashes and begins
8789 # with a dollar sign (not a hyphen), so the echo should work correctly.
8790 # The option is referenced via a variable to avoid confusing sed.
8791 lt_compile=`echo "$ac_compile" | $SED \
8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794 -e 's:$: $lt_compiler_flag:'`
8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796 (eval "$lt_compile" 2>conftest.err)
8797 ac_status=$?
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 if (exit $ac_status) && test -s "$ac_outfile"; then
8801 # The compiler can only warn and ignore the option if not recognized
8802 # So say no if there are warnings other than the usual output.
8803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8806 lt_cv_prog_compiler_pic_works=yes
8807 fi
8808 fi
8809 $RM conftest*
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8813 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8814
8815 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8816 case $lt_prog_compiler_pic in
8817 "" | " "*) ;;
8818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8819 esac
8820 else
8821 lt_prog_compiler_pic=
8822 lt_prog_compiler_can_build_shared=no
8823 fi
8824
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 #
8838 # Check to make sure the static flag actually works.
8839 #
8840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8842 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8843 if ${lt_cv_prog_compiler_static_works+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 lt_cv_prog_compiler_static_works=no
8847 save_LDFLAGS="$LDFLAGS"
8848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8851 # The linker can only warn and ignore the option if not recognized
8852 # So say no if there are warnings
8853 if test -s conftest.err; then
8854 # Append any errors to the config.log.
8855 cat conftest.err 1>&5
8856 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8858 if diff conftest.exp conftest.er2 >/dev/null; then
8859 lt_cv_prog_compiler_static_works=yes
8860 fi
8861 else
8862 lt_cv_prog_compiler_static_works=yes
8863 fi
8864 fi
8865 $RM -r conftest*
8866 LDFLAGS="$save_LDFLAGS"
8867
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8870 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8871
8872 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8873 :
8874 else
8875 lt_prog_compiler_static=
8876 fi
8877
8878
8879
8880
8881
8882
8883
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8886 if ${lt_cv_prog_compiler_c_o+:} false; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 lt_cv_prog_compiler_c_o=no
8890 $RM -r conftest 2>/dev/null
8891 mkdir conftest
8892 cd conftest
8893 mkdir out
8894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8895
8896 lt_compiler_flag="-o out/conftest2.$ac_objext"
8897 # Insert the option either (1) after the last *FLAGS variable, or
8898 # (2) before a word containing "conftest.", or (3) at the end.
8899 # Note that $ac_compile itself does not contain backslashes and begins
8900 # with a dollar sign (not a hyphen), so the echo should work correctly.
8901 lt_compile=`echo "$ac_compile" | $SED \
8902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8904 -e 's:$: $lt_compiler_flag:'`
8905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8906 (eval "$lt_compile" 2>out/conftest.err)
8907 ac_status=$?
8908 cat out/conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8911 then
8912 # The compiler can only warn and ignore the option if not recognized
8913 # So say no if there are warnings
8914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8917 lt_cv_prog_compiler_c_o=yes
8918 fi
8919 fi
8920 chmod u+w . 2>&5
8921 $RM conftest*
8922 # SGI C++ compiler will create directory out/ii_files/ for
8923 # template instantiation
8924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8925 $RM out/* && rmdir out
8926 cd ..
8927 $RM -r conftest
8928 $RM conftest*
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8932 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8933
8934
8935
8936
8937
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8941 if ${lt_cv_prog_compiler_c_o+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler_c_o=no
8945 $RM -r conftest 2>/dev/null
8946 mkdir conftest
8947 cd conftest
8948 mkdir out
8949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8950
8951 lt_compiler_flag="-o out/conftest2.$ac_objext"
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 lt_compile=`echo "$ac_compile" | $SED \
8957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959 -e 's:$: $lt_compiler_flag:'`
8960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8961 (eval "$lt_compile" 2>out/conftest.err)
8962 ac_status=$?
8963 cat out/conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8966 then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_c_o=yes
8973 fi
8974 fi
8975 chmod u+w . 2>&5
8976 $RM conftest*
8977 # SGI C++ compiler will create directory out/ii_files/ for
8978 # template instantiation
8979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8980 $RM out/* && rmdir out
8981 cd ..
8982 $RM -r conftest
8983 $RM conftest*
8984
8985 fi
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8988
8989
8990
8991
8992 hard_links="nottested"
8993 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8994 # do not overwrite the value of need_locks provided by the user
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8996 $as_echo_n "checking if we can lock with hard links... " >&6; }
8997 hard_links=yes
8998 $RM conftest*
8999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9000 touch conftest.a
9001 ln conftest.a conftest.b 2>&5 || hard_links=no
9002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9004 $as_echo "$hard_links" >&6; }
9005 if test "$hard_links" = no; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9007 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9008 need_locks=warn
9009 fi
9010 else
9011 need_locks=no
9012 fi
9013
9014
9015
9016
9017
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9021
9022 runpath_var=
9023 allow_undefined_flag=
9024 always_export_symbols=no
9025 archive_cmds=
9026 archive_expsym_cmds=
9027 compiler_needs_object=no
9028 enable_shared_with_static_runtimes=no
9029 export_dynamic_flag_spec=
9030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9031 hardcode_automatic=no
9032 hardcode_direct=no
9033 hardcode_direct_absolute=no
9034 hardcode_libdir_flag_spec=
9035 hardcode_libdir_separator=
9036 hardcode_minus_L=no
9037 hardcode_shlibpath_var=unsupported
9038 inherit_rpath=no
9039 link_all_deplibs=unknown
9040 module_cmds=
9041 module_expsym_cmds=
9042 old_archive_from_new_cmds=
9043 old_archive_from_expsyms_cmds=
9044 thread_safe_flag_spec=
9045 whole_archive_flag_spec=
9046 # include_expsyms should be a list of space-separated symbols to be *always*
9047 # included in the symbol list
9048 include_expsyms=
9049 # exclude_expsyms can be an extended regexp of symbols to exclude
9050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9052 # as well as any symbol that contains `d'.
9053 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9055 # platforms (ab)use it in PIC code, but their linkers get confused if
9056 # the symbol is explicitly referenced. Since portable code cannot
9057 # rely on this symbol name, it's probably fine to never include it in
9058 # preloaded symbol tables.
9059 # Exclude shared library initialization/finalization symbols.
9060 extract_expsyms_cmds=
9061
9062 case $host_os in
9063 cygwin* | mingw* | pw32* | cegcc*)
9064 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9065 # When not using gcc, we currently assume that we are using
9066 # Microsoft Visual C++.
9067 if test "$GCC" != yes; then
9068 with_gnu_ld=no
9069 fi
9070 ;;
9071 interix*)
9072 # we just hope/assume this is gcc and not c89 (= MSVC++)
9073 with_gnu_ld=yes
9074 ;;
9075 openbsd*)
9076 with_gnu_ld=no
9077 ;;
9078 esac
9079
9080 ld_shlibs=yes
9081
9082 # On some targets, GNU ld is compatible enough with the native linker
9083 # that we're better off using the native interface for both.
9084 lt_use_gnu_ld_interface=no
9085 if test "$with_gnu_ld" = yes; then
9086 case $host_os in
9087 aix*)
9088 # The AIX port of GNU ld has always aspired to compatibility
9089 # with the native linker. However, as the warning in the GNU ld
9090 # block says, versions before 2.19.5* couldn't really create working
9091 # shared libraries, regardless of the interface used.
9092 case `$LD -v 2>&1` in
9093 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9094 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9095 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9096 *)
9097 lt_use_gnu_ld_interface=yes
9098 ;;
9099 esac
9100 ;;
9101 *)
9102 lt_use_gnu_ld_interface=yes
9103 ;;
9104 esac
9105 fi
9106
9107 if test "$lt_use_gnu_ld_interface" = yes; then
9108 # If archive_cmds runs LD, not CC, wlarc should be empty
9109 wlarc='${wl}'
9110
9111 # Set some defaults for GNU ld with shared library support. These
9112 # are reset later if shared libraries are not supported. Putting them
9113 # here allows them to be overridden if necessary.
9114 runpath_var=LD_RUN_PATH
9115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9116 export_dynamic_flag_spec='${wl}--export-dynamic'
9117 # ancient GNU ld didn't support --whole-archive et. al.
9118 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9119 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9120 else
9121 whole_archive_flag_spec=
9122 fi
9123 supports_anon_versioning=no
9124 case `$LD -v 2>&1` in
9125 *GNU\ gold*) supports_anon_versioning=yes ;;
9126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9129 *\ 2.11.*) ;; # other 2.11 versions
9130 *) supports_anon_versioning=yes ;;
9131 esac
9132
9133 # See if GNU ld supports shared libraries.
9134 case $host_os in
9135 aix[3-9]*)
9136 # On AIX/PPC, the GNU linker is very broken
9137 if test "$host_cpu" != ia64; then
9138 ld_shlibs=no
9139 cat <<_LT_EOF 1>&2
9140
9141 *** Warning: the GNU linker, at least up to release 2.19, is reported
9142 *** to be unable to reliably create shared libraries on AIX.
9143 *** Therefore, libtool is disabling shared libraries support. If you
9144 *** really care for shared libraries, you may want to install binutils
9145 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9146 *** You will then need to restart the configuration process.
9147
9148 _LT_EOF
9149 fi
9150 ;;
9151
9152 amigaos*)
9153 case $host_cpu in
9154 powerpc)
9155 # see comment about AmigaOS4 .so support
9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 archive_expsym_cmds=''
9158 ;;
9159 m68k)
9160 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)'
9161 hardcode_libdir_flag_spec='-L$libdir'
9162 hardcode_minus_L=yes
9163 ;;
9164 esac
9165 ;;
9166
9167 beos*)
9168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9169 allow_undefined_flag=unsupported
9170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9171 # support --undefined. This deserves some investigation. FIXME
9172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173 else
9174 ld_shlibs=no
9175 fi
9176 ;;
9177
9178 cygwin* | mingw* | pw32* | cegcc*)
9179 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9180 # as there is no search path for DLLs.
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 export_dynamic_flag_spec='${wl}--export-all-symbols'
9183 allow_undefined_flag=unsupported
9184 always_export_symbols=no
9185 enable_shared_with_static_runtimes=yes
9186 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'
9187 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9188
9189 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9191 # If the export-symbols file already is a .def file (1st line
9192 # is EXPORTS), use it as is; otherwise, prepend...
9193 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9194 cp $export_symbols $output_objdir/$soname.def;
9195 else
9196 echo EXPORTS > $output_objdir/$soname.def;
9197 cat $export_symbols >> $output_objdir/$soname.def;
9198 fi~
9199 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9200 else
9201 ld_shlibs=no
9202 fi
9203 ;;
9204
9205 haiku*)
9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207 link_all_deplibs=yes
9208 ;;
9209
9210 interix[3-9]*)
9211 hardcode_direct=no
9212 hardcode_shlibpath_var=no
9213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214 export_dynamic_flag_spec='${wl}-E'
9215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9216 # Instead, shared libraries are loaded at an image base (0x10000000 by
9217 # default) and relocated if they conflict, which is a slow very memory
9218 # consuming and fragmenting process. To avoid this, we pick a random,
9219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9222 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'
9223 ;;
9224
9225 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9226 tmp_diet=no
9227 if test "$host_os" = linux-dietlibc; then
9228 case $cc_basename in
9229 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9230 esac
9231 fi
9232 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9233 && test "$tmp_diet" = no
9234 then
9235 tmp_addflag=' $pic_flag'
9236 tmp_sharedflag='-shared'
9237 case $cc_basename,$host_cpu in
9238 pgcc*) # Portland Group C compiler
9239 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'
9240 tmp_addflag=' $pic_flag'
9241 ;;
9242 pgf77* | pgf90* | pgf95* | pgfortran*)
9243 # Portland Group f77 and f90 compilers
9244 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'
9245 tmp_addflag=' $pic_flag -Mnomain' ;;
9246 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9247 tmp_addflag=' -i_dynamic' ;;
9248 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9249 tmp_addflag=' -i_dynamic -nofor_main' ;;
9250 ifc* | ifort*) # Intel Fortran compiler
9251 tmp_addflag=' -nofor_main' ;;
9252 lf95*) # Lahey Fortran 8.1
9253 whole_archive_flag_spec=
9254 tmp_sharedflag='--shared' ;;
9255 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9256 tmp_sharedflag='-qmkshrobj'
9257 tmp_addflag= ;;
9258 nvcc*) # Cuda Compiler Driver 2.2
9259 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'
9260 compiler_needs_object=yes
9261 ;;
9262 esac
9263 case `$CC -V 2>&1 | sed 5q` in
9264 *Sun\ C*) # Sun C 5.9
9265 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'
9266 compiler_needs_object=yes
9267 tmp_sharedflag='-G' ;;
9268 *Sun\ F*) # Sun Fortran 8.3
9269 tmp_sharedflag='-G' ;;
9270 esac
9271 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272
9273 if test "x$supports_anon_versioning" = xyes; then
9274 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276 echo "local: *; };" >> $output_objdir/$libname.ver~
9277 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9278 fi
9279
9280 case $cc_basename in
9281 xlf* | bgf* | bgxlf* | mpixlf*)
9282 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9283 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9286 if test "x$supports_anon_versioning" = xyes; then
9287 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9288 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9289 echo "local: *; };" >> $output_objdir/$libname.ver~
9290 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9291 fi
9292 ;;
9293 esac
9294 else
9295 ld_shlibs=no
9296 fi
9297 ;;
9298
9299 netbsd*)
9300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9301 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9302 wlarc=
9303 else
9304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9306 fi
9307 ;;
9308
9309 solaris*)
9310 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9311 ld_shlibs=no
9312 cat <<_LT_EOF 1>&2
9313
9314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9315 *** create shared libraries on Solaris systems. Therefore, libtool
9316 *** is disabling shared libraries support. We urge you to upgrade GNU
9317 *** binutils to release 2.9.1 or newer. Another option is to modify
9318 *** your PATH or compiler configuration so that the native linker is
9319 *** used, and then restart.
9320
9321 _LT_EOF
9322 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9327 fi
9328 ;;
9329
9330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9331 case `$LD -v 2>&1` in
9332 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9333 ld_shlibs=no
9334 cat <<_LT_EOF 1>&2
9335
9336 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9337 *** reliably create shared libraries on SCO systems. Therefore, libtool
9338 *** is disabling shared libraries support. We urge you to upgrade GNU
9339 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9340 *** your PATH or compiler configuration so that the native linker is
9341 *** used, and then restart.
9342
9343 _LT_EOF
9344 ;;
9345 *)
9346 # For security reasons, it is highly recommended that you always
9347 # use absolute paths for naming shared libraries, and exclude the
9348 # DT_RUNPATH tag from executables and libraries. But doing so
9349 # requires that you compile everything twice, which is a pain.
9350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358 esac
9359 ;;
9360
9361 sunos4*)
9362 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 wlarc=
9364 hardcode_direct=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 *)
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9372 else
9373 ld_shlibs=no
9374 fi
9375 ;;
9376 esac
9377
9378 if test "$ld_shlibs" = no; then
9379 runpath_var=
9380 hardcode_libdir_flag_spec=
9381 export_dynamic_flag_spec=
9382 whole_archive_flag_spec=
9383 fi
9384 else
9385 # PORTME fill in a description of your system's linker (not GNU ld)
9386 case $host_os in
9387 aix3*)
9388 allow_undefined_flag=unsupported
9389 always_export_symbols=yes
9390 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'
9391 # Note: this linker hardcodes the directories in LIBPATH if there
9392 # are no directories specified by -L.
9393 hardcode_minus_L=yes
9394 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9395 # Neither direct hardcoding nor static linking is supported with a
9396 # broken collect2.
9397 hardcode_direct=unsupported
9398 fi
9399 ;;
9400
9401 aix[4-9]*)
9402 if test "$host_cpu" = ia64; then
9403 # On IA64, the linker does run time linking by default, so we don't
9404 # have to do anything special.
9405 aix_use_runtimelinking=no
9406 exp_sym_flag='-Bexport'
9407 no_entry_flag=""
9408 else
9409 # If we're using GNU nm, then we don't want the "-C" option.
9410 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9411 # Also, AIX nm treats weak defined symbols like other global
9412 # defined symbols, whereas GNU nm marks them as "W".
9413 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9414 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'
9415 else
9416 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'
9417 fi
9418 aix_use_runtimelinking=no
9419
9420 # Test if we are trying to use run time linking or normal
9421 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9422 # need to do runtime linking.
9423 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9424 for ld_flag in $LDFLAGS; do
9425 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9426 aix_use_runtimelinking=yes
9427 break
9428 fi
9429 done
9430 ;;
9431 esac
9432
9433 exp_sym_flag='-bexport'
9434 no_entry_flag='-bnoentry'
9435 fi
9436
9437 # When large executables or shared objects are built, AIX ld can
9438 # have problems creating the table of contents. If linking a library
9439 # or program results in "error TOC overflow" add -mminimal-toc to
9440 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9441 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9442
9443 archive_cmds=''
9444 hardcode_direct=yes
9445 hardcode_direct_absolute=yes
9446 hardcode_libdir_separator=':'
9447 link_all_deplibs=yes
9448 file_list_spec='${wl}-f,'
9449
9450 if test "$GCC" = yes; then
9451 case $host_os in aix4.[012]|aix4.[012].*)
9452 # We only want to do this on AIX 4.2 and lower, the check
9453 # below for broken collect2 doesn't work under 4.3+
9454 collect2name=`${CC} -print-prog-name=collect2`
9455 if test -f "$collect2name" &&
9456 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9457 then
9458 # We have reworked collect2
9459 :
9460 else
9461 # We have old collect2
9462 hardcode_direct=unsupported
9463 # It fails to find uninstalled libraries when the uninstalled
9464 # path is not listed in the libpath. Setting hardcode_minus_L
9465 # to unsupported forces relinking
9466 hardcode_minus_L=yes
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_libdir_separator=
9469 fi
9470 ;;
9471 esac
9472 shared_flag='-shared'
9473 if test "$aix_use_runtimelinking" = yes; then
9474 shared_flag="$shared_flag "'${wl}-G'
9475 fi
9476 else
9477 # not using gcc
9478 if test "$host_cpu" = ia64; then
9479 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9480 # chokes on -Wl,-G. The following line is correct:
9481 shared_flag='-G'
9482 else
9483 if test "$aix_use_runtimelinking" = yes; then
9484 shared_flag='${wl}-G'
9485 else
9486 shared_flag='${wl}-bM:SRE'
9487 fi
9488 fi
9489 fi
9490
9491 export_dynamic_flag_spec='${wl}-bexpall'
9492 # It seems that -bexpall does not export symbols beginning with
9493 # underscore (_), so it is better to generate a list of symbols to export.
9494 always_export_symbols=yes
9495 if test "$aix_use_runtimelinking" = yes; then
9496 # Warning - without using the other runtime loading flags (-brtl),
9497 # -berok will link without error, but may produce a broken library.
9498 allow_undefined_flag='-berok'
9499 # Determine the default libpath from the value encoded in an
9500 # empty executable.
9501 if test "${lt_cv_aix_libpath+set}" = set; then
9502 aix_libpath=$lt_cv_aix_libpath
9503 else
9504 if ${lt_cv_aix_libpath_+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509
9510 int
9511 main ()
9512 {
9513
9514 ;
9515 return 0;
9516 }
9517 _ACEOF
9518 if ac_fn_c_try_link "$LINENO"; then :
9519
9520 lt_aix_libpath_sed='
9521 /Import File Strings/,/^$/ {
9522 /^0/ {
9523 s/^0 *\([^ ]*\) *$/\1/
9524 p
9525 }
9526 }'
9527 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9528 # Check for a 64-bit object if we didn't find anything.
9529 if test -z "$lt_cv_aix_libpath_"; then
9530 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531 fi
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 if test -z "$lt_cv_aix_libpath_"; then
9536 lt_cv_aix_libpath_="/usr/lib:/lib"
9537 fi
9538
9539 fi
9540
9541 aix_libpath=$lt_cv_aix_libpath_
9542 fi
9543
9544 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9545 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"
9546 else
9547 if test "$host_cpu" = ia64; then
9548 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9549 allow_undefined_flag="-z nodefs"
9550 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"
9551 else
9552 # Determine the default libpath from the value encoded in an
9553 # empty executable.
9554 if test "${lt_cv_aix_libpath+set}" = set; then
9555 aix_libpath=$lt_cv_aix_libpath
9556 else
9557 if ${lt_cv_aix_libpath_+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562
9563 int
9564 main ()
9565 {
9566
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572
9573 lt_aix_libpath_sed='
9574 /Import File Strings/,/^$/ {
9575 /^0/ {
9576 s/^0 *\([^ ]*\) *$/\1/
9577 p
9578 }
9579 }'
9580 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581 # Check for a 64-bit object if we didn't find anything.
9582 if test -z "$lt_cv_aix_libpath_"; then
9583 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584 fi
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 if test -z "$lt_cv_aix_libpath_"; then
9589 lt_cv_aix_libpath_="/usr/lib:/lib"
9590 fi
9591
9592 fi
9593
9594 aix_libpath=$lt_cv_aix_libpath_
9595 fi
9596
9597 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9598 # Warning - without using the other run time loading flags,
9599 # -berok will link without error, but may produce a broken library.
9600 no_undefined_flag=' ${wl}-bernotok'
9601 allow_undefined_flag=' ${wl}-berok'
9602 if test "$with_gnu_ld" = yes; then
9603 # We only use this code for GNU lds that support --whole-archive.
9604 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9605 else
9606 # Exported symbols can be pulled into shared objects from archives
9607 whole_archive_flag_spec='$convenience'
9608 fi
9609 archive_cmds_need_lc=yes
9610 # This is similar to how AIX traditionally builds its shared libraries.
9611 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'
9612 fi
9613 fi
9614 ;;
9615
9616 amigaos*)
9617 case $host_cpu in
9618 powerpc)
9619 # see comment about AmigaOS4 .so support
9620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621 archive_expsym_cmds=''
9622 ;;
9623 m68k)
9624 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)'
9625 hardcode_libdir_flag_spec='-L$libdir'
9626 hardcode_minus_L=yes
9627 ;;
9628 esac
9629 ;;
9630
9631 bsdi[45]*)
9632 export_dynamic_flag_spec=-rdynamic
9633 ;;
9634
9635 cygwin* | mingw* | pw32* | cegcc*)
9636 # When not using gcc, we currently assume that we are using
9637 # Microsoft Visual C++.
9638 # hardcode_libdir_flag_spec is actually meaningless, as there is
9639 # no search path for DLLs.
9640 case $cc_basename in
9641 cl*)
9642 # Native MSVC
9643 hardcode_libdir_flag_spec=' '
9644 allow_undefined_flag=unsupported
9645 always_export_symbols=yes
9646 file_list_spec='@'
9647 # Tell ltmain to make .lib files, not .a files.
9648 libext=lib
9649 # Tell ltmain to make .dll files, not .so files.
9650 shrext_cmds=".dll"
9651 # FIXME: Setting linknames here is a bad hack.
9652 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9653 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9654 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9655 else
9656 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9657 fi~
9658 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9659 linknames='
9660 # The linker will not automatically build a static lib if we build a DLL.
9661 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9662 enable_shared_with_static_runtimes=yes
9663 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9665 # Don't use ranlib
9666 old_postinstall_cmds='chmod 644 $oldlib'
9667 postlink_cmds='lt_outputfile="@OUTPUT@"~
9668 lt_tool_outputfile="@TOOL_OUTPUT@"~
9669 case $lt_outputfile in
9670 *.exe|*.EXE) ;;
9671 *)
9672 lt_outputfile="$lt_outputfile.exe"
9673 lt_tool_outputfile="$lt_tool_outputfile.exe"
9674 ;;
9675 esac~
9676 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9677 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9678 $RM "$lt_outputfile.manifest";
9679 fi'
9680 ;;
9681 *)
9682 # Assume MSVC wrapper
9683 hardcode_libdir_flag_spec=' '
9684 allow_undefined_flag=unsupported
9685 # Tell ltmain to make .lib files, not .a files.
9686 libext=lib
9687 # Tell ltmain to make .dll files, not .so files.
9688 shrext_cmds=".dll"
9689 # FIXME: Setting linknames here is a bad hack.
9690 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9691 # The linker will automatically build a .lib file if we build a DLL.
9692 old_archive_from_new_cmds='true'
9693 # FIXME: Should let the user specify the lib program.
9694 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9695 enable_shared_with_static_runtimes=yes
9696 ;;
9697 esac
9698 ;;
9699
9700 darwin* | rhapsody*)
9701
9702
9703 archive_cmds_need_lc=no
9704 hardcode_direct=no
9705 hardcode_automatic=yes
9706 hardcode_shlibpath_var=unsupported
9707 if test "$lt_cv_ld_force_load" = "yes"; then
9708 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\"`'
9709
9710 else
9711 whole_archive_flag_spec=''
9712 fi
9713 link_all_deplibs=yes
9714 allow_undefined_flag="$_lt_dar_allow_undefined"
9715 case $cc_basename in
9716 ifort*) _lt_dar_can_shared=yes ;;
9717 *) _lt_dar_can_shared=$GCC ;;
9718 esac
9719 if test "$_lt_dar_can_shared" = "yes"; then
9720 output_verbose_link_cmd=func_echo_all
9721 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9722 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9723 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}"
9724 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}"
9725
9726 else
9727 ld_shlibs=no
9728 fi
9729
9730 ;;
9731
9732 dgux*)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9739 # support. Future versions do this automatically, but an explicit c++rt0.o
9740 # does not break anything, and helps significantly (at the cost of a little
9741 # extra space).
9742 freebsd2.2*)
9743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9744 hardcode_libdir_flag_spec='-R$libdir'
9745 hardcode_direct=yes
9746 hardcode_shlibpath_var=no
9747 ;;
9748
9749 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9750 freebsd2.*)
9751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_direct=yes
9753 hardcode_minus_L=yes
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9758 freebsd* | dragonfly*)
9759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9760 hardcode_libdir_flag_spec='-R$libdir'
9761 hardcode_direct=yes
9762 hardcode_shlibpath_var=no
9763 ;;
9764
9765 hpux9*)
9766 if test "$GCC" = yes; then
9767 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'
9768 else
9769 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'
9770 fi
9771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9772 hardcode_libdir_separator=:
9773 hardcode_direct=yes
9774
9775 # hardcode_minus_L: Not really in the search PATH,
9776 # but as the default location of the library.
9777 hardcode_minus_L=yes
9778 export_dynamic_flag_spec='${wl}-E'
9779 ;;
9780
9781 hpux10*)
9782 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9783 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9784 else
9785 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9786 fi
9787 if test "$with_gnu_ld" = no; then
9788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9789 hardcode_libdir_separator=:
9790 hardcode_direct=yes
9791 hardcode_direct_absolute=yes
9792 export_dynamic_flag_spec='${wl}-E'
9793 # hardcode_minus_L: Not really in the search PATH,
9794 # but as the default location of the library.
9795 hardcode_minus_L=yes
9796 fi
9797 ;;
9798
9799 hpux11*)
9800 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9801 case $host_cpu in
9802 hppa*64*)
9803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 ia64*)
9806 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807 ;;
9808 *)
9809 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810 ;;
9811 esac
9812 else
9813 case $host_cpu in
9814 hppa*64*)
9815 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 ;;
9817 ia64*)
9818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9819 ;;
9820 *)
9821
9822 # Older versions of the 11.00 compiler do not understand -b yet
9823 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9825 $as_echo_n "checking if $CC understands -b... " >&6; }
9826 if ${lt_cv_prog_compiler__b+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 lt_cv_prog_compiler__b=no
9830 save_LDFLAGS="$LDFLAGS"
9831 LDFLAGS="$LDFLAGS -b"
9832 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9834 # The linker can only warn and ignore the option if not recognized
9835 # So say no if there are warnings
9836 if test -s conftest.err; then
9837 # Append any errors to the config.log.
9838 cat conftest.err 1>&5
9839 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9841 if diff conftest.exp conftest.er2 >/dev/null; then
9842 lt_cv_prog_compiler__b=yes
9843 fi
9844 else
9845 lt_cv_prog_compiler__b=yes
9846 fi
9847 fi
9848 $RM -r conftest*
9849 LDFLAGS="$save_LDFLAGS"
9850
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9853 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9854
9855 if test x"$lt_cv_prog_compiler__b" = xyes; then
9856 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857 else
9858 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9859 fi
9860
9861 ;;
9862 esac
9863 fi
9864 if test "$with_gnu_ld" = no; then
9865 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9866 hardcode_libdir_separator=:
9867
9868 case $host_cpu in
9869 hppa*64*|ia64*)
9870 hardcode_direct=no
9871 hardcode_shlibpath_var=no
9872 ;;
9873 *)
9874 hardcode_direct=yes
9875 hardcode_direct_absolute=yes
9876 export_dynamic_flag_spec='${wl}-E'
9877
9878 # hardcode_minus_L: Not really in the search PATH,
9879 # but as the default location of the library.
9880 hardcode_minus_L=yes
9881 ;;
9882 esac
9883 fi
9884 ;;
9885
9886 irix5* | irix6* | nonstopux*)
9887 if test "$GCC" = yes; then
9888 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'
9889 # Try to use the -exported_symbol ld option, if it does not
9890 # work, assume that -exports_file does not work either and
9891 # implicitly export all symbols.
9892 # This should be the same for all languages, so no per-tag cache variable.
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9894 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9895 if ${lt_cv_irix_exported_symbol+:} false; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 save_LDFLAGS="$LDFLAGS"
9899 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 int foo (void) { return 0; }
9903 _ACEOF
9904 if ac_fn_c_try_link "$LINENO"; then :
9905 lt_cv_irix_exported_symbol=yes
9906 else
9907 lt_cv_irix_exported_symbol=no
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LDFLAGS="$save_LDFLAGS"
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9914 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9915 if test "$lt_cv_irix_exported_symbol" = yes; then
9916 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'
9917 fi
9918 else
9919 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'
9920 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'
9921 fi
9922 archive_cmds_need_lc='no'
9923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9924 hardcode_libdir_separator=:
9925 inherit_rpath=yes
9926 link_all_deplibs=yes
9927 ;;
9928
9929 netbsd*)
9930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9932 else
9933 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9934 fi
9935 hardcode_libdir_flag_spec='-R$libdir'
9936 hardcode_direct=yes
9937 hardcode_shlibpath_var=no
9938 ;;
9939
9940 newsos6)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_direct=yes
9943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9944 hardcode_libdir_separator=:
9945 hardcode_shlibpath_var=no
9946 ;;
9947
9948 *nto* | *qnx*)
9949 ;;
9950
9951 openbsd*)
9952 if test -f /usr/libexec/ld.so; then
9953 hardcode_direct=yes
9954 hardcode_shlibpath_var=no
9955 hardcode_direct_absolute=yes
9956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9960 export_dynamic_flag_spec='${wl}-E'
9961 else
9962 case $host_os in
9963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 ;;
9967 *)
9968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970 ;;
9971 esac
9972 fi
9973 else
9974 ld_shlibs=no
9975 fi
9976 ;;
9977
9978 os2*)
9979 hardcode_libdir_flag_spec='-L$libdir'
9980 hardcode_minus_L=yes
9981 allow_undefined_flag=unsupported
9982 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'
9983 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9984 ;;
9985
9986 osf3*)
9987 if test "$GCC" = yes; then
9988 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9989 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'
9990 else
9991 allow_undefined_flag=' -expect_unresolved \*'
9992 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'
9993 fi
9994 archive_cmds_need_lc='no'
9995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9996 hardcode_libdir_separator=:
9997 ;;
9998
9999 osf4* | osf5*) # as osf3* with the addition of -msym flag
10000 if test "$GCC" = yes; then
10001 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10002 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'
10003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10004 else
10005 allow_undefined_flag=' -expect_unresolved \*'
10006 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'
10007 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~
10008 $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'
10009
10010 # Both c and cxx compiler support -rpath directly
10011 hardcode_libdir_flag_spec='-rpath $libdir'
10012 fi
10013 archive_cmds_need_lc='no'
10014 hardcode_libdir_separator=:
10015 ;;
10016
10017 solaris*)
10018 no_undefined_flag=' -z defs'
10019 if test "$GCC" = yes; then
10020 wlarc='${wl}'
10021 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10023 $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'
10024 else
10025 case `$CC -V 2>&1` in
10026 *"Compilers 5.0"*)
10027 wlarc=''
10028 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10030 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10031 ;;
10032 *)
10033 wlarc='${wl}'
10034 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10036 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10037 ;;
10038 esac
10039 fi
10040 hardcode_libdir_flag_spec='-R$libdir'
10041 hardcode_shlibpath_var=no
10042 case $host_os in
10043 solaris2.[0-5] | solaris2.[0-5].*) ;;
10044 *)
10045 # The compiler driver will combine and reorder linker options,
10046 # but understands `-z linker_flag'. GCC discards it without `$wl',
10047 # but is careful enough not to reorder.
10048 # Supported since Solaris 2.6 (maybe 2.5.1?)
10049 if test "$GCC" = yes; then
10050 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10051 else
10052 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10053 fi
10054 ;;
10055 esac
10056 link_all_deplibs=yes
10057 ;;
10058
10059 sunos4*)
10060 if test "x$host_vendor" = xsequent; then
10061 # Use $CC to link under sequent, because it throws in some extra .o
10062 # files that make .init and .fini sections work.
10063 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10064 else
10065 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10066 fi
10067 hardcode_libdir_flag_spec='-L$libdir'
10068 hardcode_direct=yes
10069 hardcode_minus_L=yes
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 sysv4)
10074 case $host_vendor in
10075 sni)
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_direct=yes # is this really true???
10078 ;;
10079 siemens)
10080 ## LD is ld it makes a PLAMLIB
10081 ## CC just makes a GrossModule.
10082 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10083 reload_cmds='$CC -r -o $output$reload_objs'
10084 hardcode_direct=no
10085 ;;
10086 motorola)
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10089 ;;
10090 esac
10091 runpath_var='LD_RUN_PATH'
10092 hardcode_shlibpath_var=no
10093 ;;
10094
10095 sysv4.3*)
10096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097 hardcode_shlibpath_var=no
10098 export_dynamic_flag_spec='-Bexport'
10099 ;;
10100
10101 sysv4*MP*)
10102 if test -d /usr/nec; then
10103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_shlibpath_var=no
10105 runpath_var=LD_RUN_PATH
10106 hardcode_runpath_var=yes
10107 ld_shlibs=yes
10108 fi
10109 ;;
10110
10111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10112 no_undefined_flag='${wl}-z,text'
10113 archive_cmds_need_lc=no
10114 hardcode_shlibpath_var=no
10115 runpath_var='LD_RUN_PATH'
10116
10117 if test "$GCC" = yes; then
10118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 else
10121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 fi
10124 ;;
10125
10126 sysv5* | sco3.2v5* | sco5v6*)
10127 # Note: We can NOT use -z defs as we might desire, because we do not
10128 # link with -lc, and that would cause any symbols used from libc to
10129 # always be unresolved, which means just about no library would
10130 # ever link correctly. If we're not using GNU ld we use -z text
10131 # though, which does catch some bad symbols but isn't as heavy-handed
10132 # as -z defs.
10133 no_undefined_flag='${wl}-z,text'
10134 allow_undefined_flag='${wl}-z,nodefs'
10135 archive_cmds_need_lc=no
10136 hardcode_shlibpath_var=no
10137 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10138 hardcode_libdir_separator=':'
10139 link_all_deplibs=yes
10140 export_dynamic_flag_spec='${wl}-Bexport'
10141 runpath_var='LD_RUN_PATH'
10142
10143 if test "$GCC" = yes; then
10144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 else
10147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 fi
10150 ;;
10151
10152 uts4*)
10153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154 hardcode_libdir_flag_spec='-L$libdir'
10155 hardcode_shlibpath_var=no
10156 ;;
10157
10158 *)
10159 ld_shlibs=no
10160 ;;
10161 esac
10162
10163 if test x$host_vendor = xsni; then
10164 case $host in
10165 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10166 export_dynamic_flag_spec='${wl}-Blargedynsym'
10167 ;;
10168 esac
10169 fi
10170 fi
10171
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10173 $as_echo "$ld_shlibs" >&6; }
10174 test "$ld_shlibs" = no && can_build_shared=no
10175
10176 with_gnu_ld=$with_gnu_ld
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192 #
10193 # Do we need to explicitly link libc?
10194 #
10195 case "x$archive_cmds_need_lc" in
10196 x|xyes)
10197 # Assume -lc should be added
10198 archive_cmds_need_lc=yes
10199
10200 if test "$enable_shared" = yes && test "$GCC" = yes; then
10201 case $archive_cmds in
10202 *'~'*)
10203 # FIXME: we may have to deal with multi-command sequences.
10204 ;;
10205 '$CC '*)
10206 # Test whether the compiler implicitly links with -lc since on some
10207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10208 # to ld, don't add -lc before -lgcc.
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10210 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10211 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 $RM conftest*
10215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10216
10217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10218 (eval $ac_compile) 2>&5
10219 ac_status=$?
10220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10221 test $ac_status = 0; } 2>conftest.err; then
10222 soname=conftest
10223 lib=conftest
10224 libobjs=conftest.$ac_objext
10225 deplibs=
10226 wl=$lt_prog_compiler_wl
10227 pic_flag=$lt_prog_compiler_pic
10228 compiler_flags=-v
10229 linker_flags=-v
10230 verstring=
10231 output_objdir=.
10232 libname=conftest
10233 lt_save_allow_undefined_flag=$allow_undefined_flag
10234 allow_undefined_flag=
10235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10236 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10237 ac_status=$?
10238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10239 test $ac_status = 0; }
10240 then
10241 lt_cv_archive_cmds_need_lc=no
10242 else
10243 lt_cv_archive_cmds_need_lc=yes
10244 fi
10245 allow_undefined_flag=$lt_save_allow_undefined_flag
10246 else
10247 cat conftest.err 1>&5
10248 fi
10249 $RM conftest*
10250
10251 fi
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10253 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10254 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10255 ;;
10256 esac
10257 fi
10258 ;;
10259 esac
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10413 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10414
10415 if test "$GCC" = yes; then
10416 case $host_os in
10417 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10418 *) lt_awk_arg="/^libraries:/" ;;
10419 esac
10420 case $host_os in
10421 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10422 *) lt_sed_strip_eq="s,=/,/,g" ;;
10423 esac
10424 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10425 case $lt_search_path_spec in
10426 *\;*)
10427 # if the path contains ";" then we assume it to be the separator
10428 # otherwise default to the standard path separator (i.e. ":") - it is
10429 # assumed that no part of a normal pathname contains ";" but that should
10430 # okay in the real world where ";" in dirpaths is itself problematic.
10431 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10432 ;;
10433 *)
10434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10435 ;;
10436 esac
10437 # Ok, now we have the path, separated by spaces, we can step through it
10438 # and add multilib dir if necessary.
10439 lt_tmp_lt_search_path_spec=
10440 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10441 for lt_sys_path in $lt_search_path_spec; do
10442 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10443 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10444 else
10445 test -d "$lt_sys_path" && \
10446 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10447 fi
10448 done
10449 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10450 BEGIN {RS=" "; FS="/|\n";} {
10451 lt_foo="";
10452 lt_count=0;
10453 for (lt_i = NF; lt_i > 0; lt_i--) {
10454 if ($lt_i != "" && $lt_i != ".") {
10455 if ($lt_i == "..") {
10456 lt_count++;
10457 } else {
10458 if (lt_count == 0) {
10459 lt_foo="/" $lt_i lt_foo;
10460 } else {
10461 lt_count--;
10462 }
10463 }
10464 }
10465 }
10466 if (lt_foo != "") { lt_freq[lt_foo]++; }
10467 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10468 }'`
10469 # AWK program above erroneously prepends '/' to C:/dos/paths
10470 # for these hosts.
10471 case $host_os in
10472 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10473 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10474 esac
10475 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10476 else
10477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10478 fi
10479 library_names_spec=
10480 libname_spec='lib$name'
10481 soname_spec=
10482 shrext_cmds=".so"
10483 postinstall_cmds=
10484 postuninstall_cmds=
10485 finish_cmds=
10486 finish_eval=
10487 shlibpath_var=
10488 shlibpath_overrides_runpath=unknown
10489 version_type=none
10490 dynamic_linker="$host_os ld.so"
10491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10492 need_lib_prefix=unknown
10493 hardcode_into_libs=no
10494
10495 # when you set need_version to no, make sure it does not cause -set_version
10496 # flags to be left without arguments
10497 need_version=unknown
10498
10499 case $host_os in
10500 aix3*)
10501 version_type=linux # correct to gnu/linux during the next big refactor
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10503 shlibpath_var=LIBPATH
10504
10505 # AIX 3 has no versioning support, so we append a major version to the name.
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 ;;
10508
10509 aix[4-9]*)
10510 version_type=linux # correct to gnu/linux during the next big refactor
10511 need_lib_prefix=no
10512 need_version=no
10513 hardcode_into_libs=yes
10514 if test "$host_cpu" = ia64; then
10515 # AIX 5 supports IA64
10516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 else
10519 # With GCC up to 2.95.x, collect2 would create an import file
10520 # for dependence libraries. The import file would start with
10521 # the line `#! .'. This would cause the generated library to
10522 # depend on `.', always an invalid library. This was fixed in
10523 # development snapshots of GCC prior to 3.0.
10524 case $host_os in
10525 aix4 | aix4.[01] | aix4.[01].*)
10526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10527 echo ' yes '
10528 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10529 :
10530 else
10531 can_build_shared=no
10532 fi
10533 ;;
10534 esac
10535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10536 # soname into executable. Probably we can add versioning support to
10537 # collect2, so additional links can be useful in future.
10538 if test "$aix_use_runtimelinking" = yes; then
10539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10540 # instead of lib<name>.a to let people know that these are not
10541 # typical AIX shared libraries.
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 else
10544 # We preserve .a as extension for shared libraries through AIX4.2
10545 # and later when we are not doing run time linking.
10546 library_names_spec='${libname}${release}.a $libname.a'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 fi
10549 shlibpath_var=LIBPATH
10550 fi
10551 ;;
10552
10553 amigaos*)
10554 case $host_cpu in
10555 powerpc)
10556 # Since July 2007 AmigaOS4 officially supports .so libraries.
10557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 ;;
10560 m68k)
10561 library_names_spec='$libname.ixlibrary $libname.a'
10562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10563 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'
10564 ;;
10565 esac
10566 ;;
10567
10568 beos*)
10569 library_names_spec='${libname}${shared_ext}'
10570 dynamic_linker="$host_os ld.so"
10571 shlibpath_var=LIBRARY_PATH
10572 ;;
10573
10574 bsdi[45]*)
10575 version_type=linux # correct to gnu/linux during the next big refactor
10576 need_version=no
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10583 # the default ld.so.conf also contains /usr/contrib/lib and
10584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10585 # libtool to hard-code these into programs
10586 ;;
10587
10588 cygwin* | mingw* | pw32* | cegcc*)
10589 version_type=windows
10590 shrext_cmds=".dll"
10591 need_version=no
10592 need_lib_prefix=no
10593
10594 case $GCC,$cc_basename in
10595 yes,*)
10596 # gcc
10597 library_names_spec='$libname.dll.a'
10598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10599 postinstall_cmds='base_file=`basename \${file}`~
10600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10601 dldir=$destdir/`dirname \$dlpath`~
10602 test -d \$dldir || mkdir -p \$dldir~
10603 $install_prog $dir/$dlname \$dldir/$dlname~
10604 chmod a+x \$dldir/$dlname~
10605 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10606 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10607 fi'
10608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10609 dlpath=$dir/\$dldll~
10610 $RM \$dlpath'
10611 shlibpath_overrides_runpath=yes
10612
10613 case $host_os in
10614 cygwin*)
10615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10617
10618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10619 ;;
10620 mingw* | cegcc*)
10621 # MinGW DLLs use traditional 'lib' prefix
10622 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10623 ;;
10624 pw32*)
10625 # pw32 DLLs use 'pw' prefix rather than 'lib'
10626 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10627 ;;
10628 esac
10629 dynamic_linker='Win32 ld.exe'
10630 ;;
10631
10632 *,cl*)
10633 # Native MSVC
10634 libname_spec='$name'
10635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10636 library_names_spec='${libname}.dll.lib'
10637
10638 case $build_os in
10639 mingw*)
10640 sys_lib_search_path_spec=
10641 lt_save_ifs=$IFS
10642 IFS=';'
10643 for lt_path in $LIB
10644 do
10645 IFS=$lt_save_ifs
10646 # Let DOS variable expansion print the short 8.3 style file name.
10647 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10649 done
10650 IFS=$lt_save_ifs
10651 # Convert to MSYS style.
10652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10653 ;;
10654 cygwin*)
10655 # Convert to unix form, then to dos form, then back to unix form
10656 # but this time dos style (no spaces!) so that the unix form looks
10657 # like /cygdrive/c/PROGRA~1:/cygdr...
10658 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10659 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10660 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10661 ;;
10662 *)
10663 sys_lib_search_path_spec="$LIB"
10664 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10665 # It is most probably a Windows format PATH.
10666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10667 else
10668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10669 fi
10670 # FIXME: find the short name or the path components, as spaces are
10671 # common. (e.g. "Program Files" -> "PROGRA~1")
10672 ;;
10673 esac
10674
10675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10676 postinstall_cmds='base_file=`basename \${file}`~
10677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10678 dldir=$destdir/`dirname \$dlpath`~
10679 test -d \$dldir || mkdir -p \$dldir~
10680 $install_prog $dir/$dlname \$dldir/$dlname'
10681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10682 dlpath=$dir/\$dldll~
10683 $RM \$dlpath'
10684 shlibpath_overrides_runpath=yes
10685 dynamic_linker='Win32 link.exe'
10686 ;;
10687
10688 *)
10689 # Assume MSVC wrapper
10690 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10691 dynamic_linker='Win32 ld.exe'
10692 ;;
10693 esac
10694 # FIXME: first we should search . and the directory the executable is in
10695 shlibpath_var=PATH
10696 ;;
10697
10698 darwin* | rhapsody*)
10699 dynamic_linker="$host_os dyld"
10700 version_type=darwin
10701 need_lib_prefix=no
10702 need_version=no
10703 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10704 soname_spec='${libname}${release}${major}$shared_ext'
10705 shlibpath_overrides_runpath=yes
10706 shlibpath_var=DYLD_LIBRARY_PATH
10707 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10708
10709 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10710 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10711 ;;
10712
10713 dgux*)
10714 version_type=linux # correct to gnu/linux during the next big refactor
10715 need_lib_prefix=no
10716 need_version=no
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 ;;
10721
10722 freebsd* | dragonfly*)
10723 # DragonFly does not have aout. When/if they implement a new
10724 # versioning mechanism, adjust this.
10725 if test -x /usr/bin/objformat; then
10726 objformat=`/usr/bin/objformat`
10727 else
10728 case $host_os in
10729 freebsd[23].*) objformat=aout ;;
10730 *) objformat=elf ;;
10731 esac
10732 fi
10733 version_type=freebsd-$objformat
10734 case $version_type in
10735 freebsd-elf*)
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10737 need_version=no
10738 need_lib_prefix=no
10739 ;;
10740 freebsd-*)
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10742 need_version=yes
10743 ;;
10744 esac
10745 shlibpath_var=LD_LIBRARY_PATH
10746 case $host_os in
10747 freebsd2.*)
10748 shlibpath_overrides_runpath=yes
10749 ;;
10750 freebsd3.[01]* | freebsdelf3.[01]*)
10751 shlibpath_overrides_runpath=yes
10752 hardcode_into_libs=yes
10753 ;;
10754 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10755 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10756 shlibpath_overrides_runpath=no
10757 hardcode_into_libs=yes
10758 ;;
10759 *) # from 4.6 on, and DragonFly
10760 shlibpath_overrides_runpath=yes
10761 hardcode_into_libs=yes
10762 ;;
10763 esac
10764 ;;
10765
10766 gnu*)
10767 version_type=linux # correct to gnu/linux during the next big refactor
10768 need_lib_prefix=no
10769 need_version=no
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=no
10774 hardcode_into_libs=yes
10775 ;;
10776
10777 haiku*)
10778 version_type=linux # correct to gnu/linux during the next big refactor
10779 need_lib_prefix=no
10780 need_version=no
10781 dynamic_linker="$host_os runtime_loader"
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes
10786 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10787 hardcode_into_libs=yes
10788 ;;
10789
10790 hpux9* | hpux10* | hpux11*)
10791 # Give a soname corresponding to the major version so that dld.sl refuses to
10792 # link against other versions.
10793 version_type=sunos
10794 need_lib_prefix=no
10795 need_version=no
10796 case $host_cpu in
10797 ia64*)
10798 shrext_cmds='.so'
10799 hardcode_into_libs=yes
10800 dynamic_linker="$host_os dld.so"
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 if test "X$HPUX_IA64_MODE" = X32; then
10806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10807 else
10808 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10809 fi
10810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10811 ;;
10812 hppa*64*)
10813 shrext_cmds='.sl'
10814 hardcode_into_libs=yes
10815 dynamic_linker="$host_os dld.sl"
10816 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10821 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10822 ;;
10823 *)
10824 shrext_cmds='.sl'
10825 dynamic_linker="$host_os dld.sl"
10826 shlibpath_var=SHLIB_PATH
10827 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 ;;
10831 esac
10832 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10833 postinstall_cmds='chmod 555 $lib'
10834 # or fails outright, so override atomically:
10835 install_override_mode=555
10836 ;;
10837
10838 interix[3-9]*)
10839 version_type=linux # correct to gnu/linux during the next big refactor
10840 need_lib_prefix=no
10841 need_version=no
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 irix5* | irix6* | nonstopux*)
10851 case $host_os in
10852 nonstopux*) version_type=nonstopux ;;
10853 *)
10854 if test "$lt_cv_prog_gnu_ld" = yes; then
10855 version_type=linux # correct to gnu/linux during the next big refactor
10856 else
10857 version_type=irix
10858 fi ;;
10859 esac
10860 need_lib_prefix=no
10861 need_version=no
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10864 case $host_os in
10865 irix5* | nonstopux*)
10866 libsuff= shlibsuff=
10867 ;;
10868 *)
10869 case $LD in # libtool.m4 will add one of these switches to LD
10870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10871 libsuff= shlibsuff= libmagic=32-bit;;
10872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10873 libsuff=32 shlibsuff=N32 libmagic=N32;;
10874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10876 *) libsuff= shlibsuff= libmagic=never-match;;
10877 esac
10878 ;;
10879 esac
10880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10881 shlibpath_overrides_runpath=no
10882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10884 hardcode_into_libs=yes
10885 ;;
10886
10887 # No shared lib support for Linux oldld, aout, or coff.
10888 linux*oldld* | linux*aout* | linux*coff*)
10889 dynamic_linker=no
10890 ;;
10891
10892 # This must be glibc/ELF.
10893 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=no
10902
10903 # Some binutils ld are patched to set DT_RUNPATH
10904 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 lt_cv_shlibpath_overrides_runpath=no
10908 save_LDFLAGS=$LDFLAGS
10909 save_libdir=$libdir
10910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914
10915 int
10916 main ()
10917 {
10918
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10925 lt_cv_shlibpath_overrides_runpath=yes
10926 fi
10927 fi
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LDFLAGS=$save_LDFLAGS
10931 libdir=$save_libdir
10932
10933 fi
10934
10935 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10936
10937 # This implies no fast_install, which is unacceptable.
10938 # Some rework will be needed to allow for fast_install
10939 # before this can be enabled.
10940 hardcode_into_libs=yes
10941
10942 # Append ld.so.conf contents to the search path
10943 if test -f /etc/ld.so.conf; then
10944 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' ' '`
10945 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10946 fi
10947
10948 # We used to test for /lib/ld.so.1 and disable shared libraries on
10949 # powerpc, because MkLinux only supported shared libraries with the
10950 # GNU dynamic linker. Since this was broken with cross compilers,
10951 # most powerpc-linux boxes support dynamic linking these days and
10952 # people can always --disable-shared, the test was removed, and we
10953 # assume the GNU/Linux dynamic linker is in use.
10954 dynamic_linker='GNU/Linux ld.so'
10955 ;;
10956
10957 netbsd*)
10958 version_type=sunos
10959 need_lib_prefix=no
10960 need_version=no
10961 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10964 dynamic_linker='NetBSD (a.out) ld.so'
10965 else
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 dynamic_linker='NetBSD ld.elf_so'
10969 fi
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 ;;
10974
10975 newsos6)
10976 version_type=linux # correct to gnu/linux during the next big refactor
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes
10980 ;;
10981
10982 *nto* | *qnx*)
10983 version_type=qnx
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=no
10990 hardcode_into_libs=yes
10991 dynamic_linker='ldqnx.so'
10992 ;;
10993
10994 openbsd*)
10995 version_type=sunos
10996 sys_lib_dlsearch_path_spec="/usr/lib"
10997 need_lib_prefix=no
10998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10999 case $host_os in
11000 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11001 *) need_version=no ;;
11002 esac
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11007 case $host_os in
11008 openbsd2.[89] | openbsd2.[89].*)
11009 shlibpath_overrides_runpath=no
11010 ;;
11011 *)
11012 shlibpath_overrides_runpath=yes
11013 ;;
11014 esac
11015 else
11016 shlibpath_overrides_runpath=yes
11017 fi
11018 ;;
11019
11020 os2*)
11021 libname_spec='$name'
11022 shrext_cmds=".dll"
11023 need_lib_prefix=no
11024 library_names_spec='$libname${shared_ext} $libname.a'
11025 dynamic_linker='OS/2 ld.exe'
11026 shlibpath_var=LIBPATH
11027 ;;
11028
11029 osf3* | osf4* | osf5*)
11030 version_type=osf
11031 need_lib_prefix=no
11032 need_version=no
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11038 ;;
11039
11040 rdos*)
11041 dynamic_linker=no
11042 ;;
11043
11044 solaris*)
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=yes
11052 hardcode_into_libs=yes
11053 # ldd complains unless libraries are executable
11054 postinstall_cmds='chmod +x $lib'
11055 ;;
11056
11057 sunos4*)
11058 version_type=sunos
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11063 if test "$with_gnu_ld" = yes; then
11064 need_lib_prefix=no
11065 fi
11066 need_version=yes
11067 ;;
11068
11069 sysv4 | sysv4.3*)
11070 version_type=linux # correct to gnu/linux during the next big refactor
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 shlibpath_var=LD_LIBRARY_PATH
11074 case $host_vendor in
11075 sni)
11076 shlibpath_overrides_runpath=no
11077 need_lib_prefix=no
11078 runpath_var=LD_RUN_PATH
11079 ;;
11080 siemens)
11081 need_lib_prefix=no
11082 ;;
11083 motorola)
11084 need_lib_prefix=no
11085 need_version=no
11086 shlibpath_overrides_runpath=no
11087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11088 ;;
11089 esac
11090 ;;
11091
11092 sysv4*MP*)
11093 if test -d /usr/nec ;then
11094 version_type=linux # correct to gnu/linux during the next big refactor
11095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11096 soname_spec='$libname${shared_ext}.$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 fi
11099 ;;
11100
11101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11102 version_type=freebsd-elf
11103 need_lib_prefix=no
11104 need_version=no
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11110 if test "$with_gnu_ld" = yes; then
11111 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11112 else
11113 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11114 case $host_os in
11115 sco3.2v5*)
11116 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11117 ;;
11118 esac
11119 fi
11120 sys_lib_dlsearch_path_spec='/usr/lib'
11121 ;;
11122
11123 tpf*)
11124 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11125 version_type=linux # correct to gnu/linux during the next big refactor
11126 need_lib_prefix=no
11127 need_version=no
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 ;;
11133
11134 uts4*)
11135 version_type=linux # correct to gnu/linux during the next big refactor
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 soname_spec='${libname}${release}${shared_ext}$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 ;;
11140
11141 *)
11142 dynamic_linker=no
11143 ;;
11144 esac
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11146 $as_echo "$dynamic_linker" >&6; }
11147 test "$dynamic_linker" = no && can_build_shared=no
11148
11149 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11150 if test "$GCC" = yes; then
11151 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11152 fi
11153
11154 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11155 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11156 fi
11157 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11158 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11159 fi
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11253 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11254 hardcode_action=
11255 if test -n "$hardcode_libdir_flag_spec" ||
11256 test -n "$runpath_var" ||
11257 test "X$hardcode_automatic" = "Xyes" ; then
11258
11259 # We can hardcode non-existent directories.
11260 if test "$hardcode_direct" != no &&
11261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11262 # have to relink, otherwise we might link with an installed library
11263 # when we should be linking with a yet-to-be-installed one
11264 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11265 test "$hardcode_minus_L" != no; then
11266 # Linking always hardcodes the temporary library directory.
11267 hardcode_action=relink
11268 else
11269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11270 hardcode_action=immediate
11271 fi
11272 else
11273 # We cannot hardcode anything, or else we can only hardcode existing
11274 # directories.
11275 hardcode_action=unsupported
11276 fi
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11278 $as_echo "$hardcode_action" >&6; }
11279
11280 if test "$hardcode_action" = relink ||
11281 test "$inherit_rpath" = yes; then
11282 # Fast installation is not supported
11283 enable_fast_install=no
11284 elif test "$shlibpath_overrides_runpath" = yes ||
11285 test "$enable_shared" = no; then
11286 # Fast installation is not necessary
11287 enable_fast_install=needless
11288 fi
11289
11290
11291
11292
11293
11294
11295 if test "x$enable_dlopen" != xyes; then
11296 enable_dlopen=unknown
11297 enable_dlopen_self=unknown
11298 enable_dlopen_self_static=unknown
11299 else
11300 lt_cv_dlopen=no
11301 lt_cv_dlopen_libs=
11302
11303 case $host_os in
11304 beos*)
11305 lt_cv_dlopen="load_add_on"
11306 lt_cv_dlopen_libs=
11307 lt_cv_dlopen_self=yes
11308 ;;
11309
11310 mingw* | pw32* | cegcc*)
11311 lt_cv_dlopen="LoadLibrary"
11312 lt_cv_dlopen_libs=
11313 ;;
11314
11315 cygwin*)
11316 lt_cv_dlopen="dlopen"
11317 lt_cv_dlopen_libs=
11318 ;;
11319
11320 darwin*)
11321 # if libdl is installed we need to link against it
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11324 if ${ac_cv_lib_dl_dlopen+:} false; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldl $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dlopen ();
11339 int
11340 main ()
11341 {
11342 return dlopen ();
11343 ;
11344 return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 ac_cv_lib_dl_dlopen=yes
11349 else
11350 ac_cv_lib_dl_dlopen=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11360 else
11361
11362 lt_cv_dlopen="dyld"
11363 lt_cv_dlopen_libs=
11364 lt_cv_dlopen_self=yes
11365
11366 fi
11367
11368 ;;
11369
11370 *)
11371 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11372 if test "x$ac_cv_func_shl_load" = xyes; then :
11373 lt_cv_dlopen="shl_load"
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11376 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11377 if ${ac_cv_lib_dld_shl_load+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldld $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char shl_load ();
11392 int
11393 main ()
11394 {
11395 return shl_load ();
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_dld_shl_load=yes
11402 else
11403 ac_cv_lib_dld_shl_load=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11410 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11411 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11412 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11413 else
11414 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11415 if test "x$ac_cv_func_dlopen" = xyes; then :
11416 lt_cv_dlopen="dlopen"
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11419 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11420 if ${ac_cv_lib_dl_dlopen+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-ldl $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char dlopen ();
11435 int
11436 main ()
11437 {
11438 return dlopen ();
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_dl_dlopen=yes
11445 else
11446 ac_cv_lib_dl_dlopen=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11453 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11454 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11458 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11459 if ${ac_cv_lib_svld_dlopen+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-lsvld $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dlopen ();
11474 int
11475 main ()
11476 {
11477 return dlopen ();
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_lib_svld_dlopen=yes
11484 else
11485 ac_cv_lib_svld_dlopen=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11492 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11493 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11497 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11498 if ${ac_cv_lib_dld_dld_link+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 ac_check_lib_save_LIBS=$LIBS
11502 LIBS="-ldld $LIBS"
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 char dld_link ();
11513 int
11514 main ()
11515 {
11516 return dld_link ();
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_lib_dld_dld_link=yes
11523 else
11524 ac_cv_lib_dld_dld_link=no
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11529 fi
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11531 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11532 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11533 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11534 fi
11535
11536
11537 fi
11538
11539
11540 fi
11541
11542
11543 fi
11544
11545
11546 fi
11547
11548
11549 fi
11550
11551 ;;
11552 esac
11553
11554 if test "x$lt_cv_dlopen" != xno; then
11555 enable_dlopen=yes
11556 else
11557 enable_dlopen=no
11558 fi
11559
11560 case $lt_cv_dlopen in
11561 dlopen)
11562 save_CPPFLAGS="$CPPFLAGS"
11563 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11564
11565 save_LDFLAGS="$LDFLAGS"
11566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11567
11568 save_LIBS="$LIBS"
11569 LIBS="$lt_cv_dlopen_libs $LIBS"
11570
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11572 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11573 if ${lt_cv_dlopen_self+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test "$cross_compiling" = yes; then :
11577 lt_cv_dlopen_self=cross
11578 else
11579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11580 lt_status=$lt_dlunknown
11581 cat > conftest.$ac_ext <<_LT_EOF
11582 #line $LINENO "configure"
11583 #include "confdefs.h"
11584
11585 #if HAVE_DLFCN_H
11586 #include <dlfcn.h>
11587 #endif
11588
11589 #include <stdio.h>
11590
11591 #ifdef RTLD_GLOBAL
11592 # define LT_DLGLOBAL RTLD_GLOBAL
11593 #else
11594 # ifdef DL_GLOBAL
11595 # define LT_DLGLOBAL DL_GLOBAL
11596 # else
11597 # define LT_DLGLOBAL 0
11598 # endif
11599 #endif
11600
11601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11602 find out it does not work in some platform. */
11603 #ifndef LT_DLLAZY_OR_NOW
11604 # ifdef RTLD_LAZY
11605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11606 # else
11607 # ifdef DL_LAZY
11608 # define LT_DLLAZY_OR_NOW DL_LAZY
11609 # else
11610 # ifdef RTLD_NOW
11611 # define LT_DLLAZY_OR_NOW RTLD_NOW
11612 # else
11613 # ifdef DL_NOW
11614 # define LT_DLLAZY_OR_NOW DL_NOW
11615 # else
11616 # define LT_DLLAZY_OR_NOW 0
11617 # endif
11618 # endif
11619 # endif
11620 # endif
11621 #endif
11622
11623 /* When -fvisbility=hidden is used, assume the code has been annotated
11624 correspondingly for the symbols needed. */
11625 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11626 int fnord () __attribute__((visibility("default")));
11627 #endif
11628
11629 int fnord () { return 42; }
11630 int main ()
11631 {
11632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11633 int status = $lt_dlunknown;
11634
11635 if (self)
11636 {
11637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11638 else
11639 {
11640 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11641 else puts (dlerror ());
11642 }
11643 /* dlclose (self); */
11644 }
11645 else
11646 puts (dlerror ());
11647
11648 return status;
11649 }
11650 _LT_EOF
11651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11652 (eval $ac_link) 2>&5
11653 ac_status=$?
11654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11656 (./conftest; exit; ) >&5 2>/dev/null
11657 lt_status=$?
11658 case x$lt_status in
11659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11661 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11662 esac
11663 else :
11664 # compilation failed
11665 lt_cv_dlopen_self=no
11666 fi
11667 fi
11668 rm -fr conftest*
11669
11670
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11673 $as_echo "$lt_cv_dlopen_self" >&6; }
11674
11675 if test "x$lt_cv_dlopen_self" = xyes; then
11676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11678 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11679 if ${lt_cv_dlopen_self_static+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test "$cross_compiling" = yes; then :
11683 lt_cv_dlopen_self_static=cross
11684 else
11685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11686 lt_status=$lt_dlunknown
11687 cat > conftest.$ac_ext <<_LT_EOF
11688 #line $LINENO "configure"
11689 #include "confdefs.h"
11690
11691 #if HAVE_DLFCN_H
11692 #include <dlfcn.h>
11693 #endif
11694
11695 #include <stdio.h>
11696
11697 #ifdef RTLD_GLOBAL
11698 # define LT_DLGLOBAL RTLD_GLOBAL
11699 #else
11700 # ifdef DL_GLOBAL
11701 # define LT_DLGLOBAL DL_GLOBAL
11702 # else
11703 # define LT_DLGLOBAL 0
11704 # endif
11705 #endif
11706
11707 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11708 find out it does not work in some platform. */
11709 #ifndef LT_DLLAZY_OR_NOW
11710 # ifdef RTLD_LAZY
11711 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11712 # else
11713 # ifdef DL_LAZY
11714 # define LT_DLLAZY_OR_NOW DL_LAZY
11715 # else
11716 # ifdef RTLD_NOW
11717 # define LT_DLLAZY_OR_NOW RTLD_NOW
11718 # else
11719 # ifdef DL_NOW
11720 # define LT_DLLAZY_OR_NOW DL_NOW
11721 # else
11722 # define LT_DLLAZY_OR_NOW 0
11723 # endif
11724 # endif
11725 # endif
11726 # endif
11727 #endif
11728
11729 /* When -fvisbility=hidden is used, assume the code has been annotated
11730 correspondingly for the symbols needed. */
11731 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11732 int fnord () __attribute__((visibility("default")));
11733 #endif
11734
11735 int fnord () { return 42; }
11736 int main ()
11737 {
11738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11739 int status = $lt_dlunknown;
11740
11741 if (self)
11742 {
11743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11744 else
11745 {
11746 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11747 else puts (dlerror ());
11748 }
11749 /* dlclose (self); */
11750 }
11751 else
11752 puts (dlerror ());
11753
11754 return status;
11755 }
11756 _LT_EOF
11757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11758 (eval $ac_link) 2>&5
11759 ac_status=$?
11760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11761 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11762 (./conftest; exit; ) >&5 2>/dev/null
11763 lt_status=$?
11764 case x$lt_status in
11765 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11766 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11767 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11768 esac
11769 else :
11770 # compilation failed
11771 lt_cv_dlopen_self_static=no
11772 fi
11773 fi
11774 rm -fr conftest*
11775
11776
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11779 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11780 fi
11781
11782 CPPFLAGS="$save_CPPFLAGS"
11783 LDFLAGS="$save_LDFLAGS"
11784 LIBS="$save_LIBS"
11785 ;;
11786 esac
11787
11788 case $lt_cv_dlopen_self in
11789 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11790 *) enable_dlopen_self=unknown ;;
11791 esac
11792
11793 case $lt_cv_dlopen_self_static in
11794 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11795 *) enable_dlopen_self_static=unknown ;;
11796 esac
11797 fi
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815 striplib=
11816 old_striplib=
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11818 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11819 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11821 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824 else
11825 # FIXME - insert some real tests, host_os isn't really good enough
11826 case $host_os in
11827 darwin*)
11828 if test -n "$STRIP" ; then
11829 striplib="$STRIP -x"
11830 old_striplib="$STRIP -S"
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11832 $as_echo "yes" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837 ;;
11838 *)
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 ;;
11842 esac
11843 fi
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 # Report which library types will actually be built
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11858 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11860 $as_echo "$can_build_shared" >&6; }
11861
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11863 $as_echo_n "checking whether to build shared libraries... " >&6; }
11864 test "$can_build_shared" = "no" && enable_shared=no
11865
11866 # On AIX, shared libraries and static libraries use the same namespace, and
11867 # are all built from PIC.
11868 case $host_os in
11869 aix3*)
11870 test "$enable_shared" = yes && enable_static=no
11871 if test -n "$RANLIB"; then
11872 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11873 postinstall_cmds='$RANLIB $lib'
11874 fi
11875 ;;
11876
11877 aix[4-9]*)
11878 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11879 test "$enable_shared" = yes && enable_static=no
11880 fi
11881 ;;
11882 esac
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11884 $as_echo "$enable_shared" >&6; }
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11887 $as_echo_n "checking whether to build static libraries... " >&6; }
11888 # Make sure either enable_shared or enable_static is yes.
11889 test "$enable_shared" = yes || enable_static=yes
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11891 $as_echo "$enable_static" >&6; }
11892
11893
11894
11895
11896 fi
11897 ac_ext=c
11898 ac_cpp='$CPP $CPPFLAGS'
11899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11902
11903 CC="$lt_save_CC"
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919 ac_config_commands="$ac_config_commands libtool"
11920
11921
11922
11923
11924 # Only expand once:
11925
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11928 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11929 if ${libltdl_cv_shlibext+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932
11933 module=yes
11934 eval libltdl_cv_shlibext=$shrext_cmds
11935 module=no
11936 eval libltdl_cv_shrext=$shrext_cmds
11937
11938 fi
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11940 $as_echo "$libltdl_cv_shlibext" >&6; }
11941 if test -n "$libltdl_cv_shlibext"; then
11942
11943 cat >>confdefs.h <<_ACEOF
11944 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11945 _ACEOF
11946
11947 fi
11948 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11949
11950 cat >>confdefs.h <<_ACEOF
11951 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11952 _ACEOF
11953
11954 fi
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11957 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11958 if ${lt_cv_module_path_var+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 lt_cv_module_path_var="$shlibpath_var"
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11964 $as_echo "$lt_cv_module_path_var" >&6; }
11965 if test -n "$lt_cv_module_path_var"; then
11966
11967 cat >>confdefs.h <<_ACEOF
11968 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11969 _ACEOF
11970
11971 fi
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11974 $as_echo_n "checking for the default library search path... " >&6; }
11975 if ${lt_cv_sys_dlsearch_path+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11981 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11982 if test -n "$lt_cv_sys_dlsearch_path"; then
11983 sys_dlsearch_path=
11984 for dir in $lt_cv_sys_dlsearch_path; do
11985 if test -z "$sys_dlsearch_path"; then
11986 sys_dlsearch_path="$dir"
11987 else
11988 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11989 fi
11990 done
11991
11992 cat >>confdefs.h <<_ACEOF
11993 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11994 _ACEOF
11995
11996 fi
11997
11998
11999 LT_DLLOADERS=
12000
12001
12002 ac_ext=c
12003 ac_cpp='$CPP $CPPFLAGS'
12004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12007
12008
12009 LIBADD_DLOPEN=
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12011 $as_echo_n "checking for library containing dlopen... " >&6; }
12012 if ${ac_cv_search_dlopen+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 ac_func_search_save_LIBS=$LIBS
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018
12019 /* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12022 #ifdef __cplusplus
12023 extern "C"
12024 #endif
12025 char dlopen ();
12026 int
12027 main ()
12028 {
12029 return dlopen ();
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 for ac_lib in '' dl; do
12035 if test -z "$ac_lib"; then
12036 ac_res="none required"
12037 else
12038 ac_res=-l$ac_lib
12039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12040 fi
12041 if ac_fn_c_try_link "$LINENO"; then :
12042 ac_cv_search_dlopen=$ac_res
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext
12046 if ${ac_cv_search_dlopen+:} false; then :
12047 break
12048 fi
12049 done
12050 if ${ac_cv_search_dlopen+:} false; then :
12051
12052 else
12053 ac_cv_search_dlopen=no
12054 fi
12055 rm conftest.$ac_ext
12056 LIBS=$ac_func_search_save_LIBS
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12059 $as_echo "$ac_cv_search_dlopen" >&6; }
12060 ac_res=$ac_cv_search_dlopen
12061 if test "$ac_res" != no; then :
12062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12063
12064 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12065
12066 if test "$ac_cv_search_dlopen" != "none required" ; then
12067 LIBADD_DLOPEN="-ldl"
12068 fi
12069 libltdl_cv_lib_dl_dlopen="yes"
12070 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #if HAVE_DLFCN_H
12075 # include <dlfcn.h>
12076 #endif
12077
12078 int
12079 main ()
12080 {
12081 dlopen(0, 0);
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087
12088 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12089
12090 libltdl_cv_func_dlopen="yes"
12091 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12092 else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12094 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12095 if ${ac_cv_lib_svld_dlopen+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 ac_check_lib_save_LIBS=$LIBS
12099 LIBS="-lsvld $LIBS"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char dlopen ();
12110 int
12111 main ()
12112 {
12113 return dlopen ();
12114 ;
12115 return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"; then :
12119 ac_cv_lib_svld_dlopen=yes
12120 else
12121 ac_cv_lib_svld_dlopen=no
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12128 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12129 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12130
12131 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12132
12133 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12135 fi
12136
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 fi
12141
12142 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12143 then
12144 lt_save_LIBS="$LIBS"
12145 LIBS="$LIBS $LIBADD_DLOPEN"
12146 for ac_func in dlerror
12147 do :
12148 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12149 if test "x$ac_cv_func_dlerror" = xyes; then :
12150 cat >>confdefs.h <<_ACEOF
12151 #define HAVE_DLERROR 1
12152 _ACEOF
12153
12154 fi
12155 done
12156
12157 LIBS="$lt_save_LIBS"
12158 fi
12159
12160
12161 LIBADD_SHL_LOAD=
12162 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12163 if test "x$ac_cv_func_shl_load" = xyes; then :
12164
12165 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12166
12167 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12170 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12171 if ${ac_cv_lib_dld_shl_load+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-ldld $LIBS"
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12178
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char shl_load ();
12186 int
12187 main ()
12188 {
12189 return shl_load ();
12190 ;
12191 return 0;
12192 }
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"; then :
12195 ac_cv_lib_dld_shl_load=yes
12196 else
12197 ac_cv_lib_dld_shl_load=no
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12204 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12205 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12206
12207 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12208
12209 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12210 LIBADD_SHL_LOAD="-ldld"
12211 fi
12212
12213 fi
12214
12215
12216
12217 case $host_os in
12218 darwin[1567].*)
12219 # We only want this for pre-Mac OS X 10.4.
12220 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12221 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12222
12223 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12224
12225 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12226 fi
12227
12228 ;;
12229 beos*)
12230 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12231 ;;
12232 cygwin* | mingw* | os2* | pw32*)
12233 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12234 "
12235 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12236 ac_have_decl=1
12237 else
12238 ac_have_decl=0
12239 fi
12240
12241 cat >>confdefs.h <<_ACEOF
12242 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12243 _ACEOF
12244
12245 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12246 ;;
12247 esac
12248
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12250 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12251 if ${ac_cv_lib_dld_dld_link+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-ldld $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char dld_link ();
12266 int
12267 main ()
12268 {
12269 return dld_link ();
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_dld_dld_link=yes
12276 else
12277 ac_cv_lib_dld_dld_link=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12284 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12285 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12286
12287 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12288
12289 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12290 fi
12291
12292
12293
12294
12295 LT_DLPREOPEN=
12296 if test -n "$LT_DLLOADERS"
12297 then
12298 for lt_loader in $LT_DLLOADERS; do
12299 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12300 done
12301
12302 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12303
12304 fi
12305
12306
12307 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12308
12309
12310 ac_ext=c
12311 ac_cpp='$CPP $CPPFLAGS'
12312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12315
12316
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12318 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12319 if ${lt_cv_sys_symbol_underscore+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 lt_cv_sys_symbol_underscore=no
12323 cat > conftest.$ac_ext <<_LT_EOF
12324 void nm_test_func(){}
12325 int main(){nm_test_func;return 0;}
12326 _LT_EOF
12327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12328 (eval $ac_compile) 2>&5
12329 ac_status=$?
12330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12331 test $ac_status = 0; }; then
12332 # Now try to grab the symbols.
12333 ac_nlist=conftest.nm
12334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12336 ac_status=$?
12337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12338 test $ac_status = 0; } && test -s "$ac_nlist"; then
12339 # See whether the symbols have a leading underscore.
12340 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12341 lt_cv_sys_symbol_underscore=yes
12342 else
12343 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12344 :
12345 else
12346 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12347 fi
12348 fi
12349 else
12350 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12351 fi
12352 else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.c >&5
12355 fi
12356 rm -rf conftest*
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12360 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12361 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12362
12363
12364 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12365 if test x"$libltdl_cv_func_dlopen" = xyes ||
12366 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12368 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12369 if ${libltdl_cv_need_uscore+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 libltdl_cv_need_uscore=unknown
12373 save_LIBS="$LIBS"
12374 LIBS="$LIBS $LIBADD_DLOPEN"
12375 if test "$cross_compiling" = yes; then :
12376 libltdl_cv_need_uscore=cross
12377 else
12378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12379 lt_status=$lt_dlunknown
12380 cat > conftest.$ac_ext <<_LT_EOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383
12384 #if HAVE_DLFCN_H
12385 #include <dlfcn.h>
12386 #endif
12387
12388 #include <stdio.h>
12389
12390 #ifdef RTLD_GLOBAL
12391 # define LT_DLGLOBAL RTLD_GLOBAL
12392 #else
12393 # ifdef DL_GLOBAL
12394 # define LT_DLGLOBAL DL_GLOBAL
12395 # else
12396 # define LT_DLGLOBAL 0
12397 # endif
12398 #endif
12399
12400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12401 find out it does not work in some platform. */
12402 #ifndef LT_DLLAZY_OR_NOW
12403 # ifdef RTLD_LAZY
12404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12405 # else
12406 # ifdef DL_LAZY
12407 # define LT_DLLAZY_OR_NOW DL_LAZY
12408 # else
12409 # ifdef RTLD_NOW
12410 # define LT_DLLAZY_OR_NOW RTLD_NOW
12411 # else
12412 # ifdef DL_NOW
12413 # define LT_DLLAZY_OR_NOW DL_NOW
12414 # else
12415 # define LT_DLLAZY_OR_NOW 0
12416 # endif
12417 # endif
12418 # endif
12419 # endif
12420 #endif
12421
12422 /* When -fvisbility=hidden is used, assume the code has been annotated
12423 correspondingly for the symbols needed. */
12424 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12425 int fnord () __attribute__((visibility("default")));
12426 #endif
12427
12428 int fnord () { return 42; }
12429 int main ()
12430 {
12431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432 int status = $lt_dlunknown;
12433
12434 if (self)
12435 {
12436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12437 else
12438 {
12439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12440 else puts (dlerror ());
12441 }
12442 /* dlclose (self); */
12443 }
12444 else
12445 puts (dlerror ());
12446
12447 return status;
12448 }
12449 _LT_EOF
12450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12451 (eval $ac_link) 2>&5
12452 ac_status=$?
12453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12454 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12455 (./conftest; exit; ) >&5 2>/dev/null
12456 lt_status=$?
12457 case x$lt_status in
12458 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12459 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12460 x$lt_dlunknown|x*) ;;
12461 esac
12462 else :
12463 # compilation failed
12464
12465 fi
12466 fi
12467 rm -fr conftest*
12468
12469 LIBS="$save_LIBS"
12470
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12473 $as_echo "$libltdl_cv_need_uscore" >&6; }
12474 fi
12475 fi
12476
12477 if test x"$libltdl_cv_need_uscore" = xyes; then
12478
12479 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12480
12481 fi
12482
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12484 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12485 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 # PORTME does your system automatically load deplibs for dlopen?
12489 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12490 # For now, we just catch OSes we know something about -- in the
12491 # future, we'll try test this programmatically.
12492 lt_cv_sys_dlopen_deplibs=unknown
12493 case $host_os in
12494 aix3*|aix4.1.*|aix4.2.*)
12495 # Unknown whether this is true for these versions of AIX, but
12496 # we want this `case' here to explicitly catch those versions.
12497 lt_cv_sys_dlopen_deplibs=unknown
12498 ;;
12499 aix[4-9]*)
12500 lt_cv_sys_dlopen_deplibs=yes
12501 ;;
12502 amigaos*)
12503 case $host_cpu in
12504 powerpc)
12505 lt_cv_sys_dlopen_deplibs=no
12506 ;;
12507 esac
12508 ;;
12509 darwin*)
12510 # Assuming the user has installed a libdl from somewhere, this is true
12511 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12512 lt_cv_sys_dlopen_deplibs=yes
12513 ;;
12514 freebsd* | dragonfly*)
12515 lt_cv_sys_dlopen_deplibs=yes
12516 ;;
12517 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12518 # GNU and its variants, using gnu ld.so (Glibc)
12519 lt_cv_sys_dlopen_deplibs=yes
12520 ;;
12521 hpux10*|hpux11*)
12522 lt_cv_sys_dlopen_deplibs=yes
12523 ;;
12524 interix*)
12525 lt_cv_sys_dlopen_deplibs=yes
12526 ;;
12527 irix[12345]*|irix6.[01]*)
12528 # Catch all versions of IRIX before 6.2, and indicate that we don't
12529 # know how it worked for any of those versions.
12530 lt_cv_sys_dlopen_deplibs=unknown
12531 ;;
12532 irix*)
12533 # The case above catches anything before 6.2, and it's known that
12534 # at 6.2 and later dlopen does load deplibs.
12535 lt_cv_sys_dlopen_deplibs=yes
12536 ;;
12537 netbsd*)
12538 lt_cv_sys_dlopen_deplibs=yes
12539 ;;
12540 openbsd*)
12541 lt_cv_sys_dlopen_deplibs=yes
12542 ;;
12543 osf[1234]*)
12544 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12545 # it did *not* use an RPATH in a shared library to find objects the
12546 # library depends on, so we explicitly say `no'.
12547 lt_cv_sys_dlopen_deplibs=no
12548 ;;
12549 osf5.0|osf5.0a|osf5.1)
12550 # dlopen *does* load deplibs and with the right loader patch applied
12551 # it even uses RPATH in a shared library to search for shared objects
12552 # that the library depends on, but there's no easy way to know if that
12553 # patch is installed. Since this is the case, all we can really
12554 # say is unknown -- it depends on the patch being installed. If
12555 # it is, this changes to `yes'. Without it, it would be `no'.
12556 lt_cv_sys_dlopen_deplibs=unknown
12557 ;;
12558 osf*)
12559 # the two cases above should catch all versions of osf <= 5.1. Read
12560 # the comments above for what we know about them.
12561 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12562 # is used to find them so we can finally say `yes'.
12563 lt_cv_sys_dlopen_deplibs=yes
12564 ;;
12565 qnx*)
12566 lt_cv_sys_dlopen_deplibs=yes
12567 ;;
12568 solaris*)
12569 lt_cv_sys_dlopen_deplibs=yes
12570 ;;
12571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12572 libltdl_cv_sys_dlopen_deplibs=yes
12573 ;;
12574 esac
12575
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12578 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12579 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12580
12581 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12582
12583 fi
12584
12585 :
12586
12587 for ac_header in argz.h
12588 do :
12589 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12590 "
12591 if test "x$ac_cv_header_argz_h" = xyes; then :
12592 cat >>confdefs.h <<_ACEOF
12593 #define HAVE_ARGZ_H 1
12594 _ACEOF
12595
12596 fi
12597
12598 done
12599
12600
12601 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12602 # include <argz.h>
12603 #endif
12604 "
12605 if test "x$ac_cv_type_error_t" = xyes; then :
12606
12607 cat >>confdefs.h <<_ACEOF
12608 #define HAVE_ERROR_T 1
12609 _ACEOF
12610
12611
12612 else
12613
12614 $as_echo "#define error_t int" >>confdefs.h
12615
12616
12617 $as_echo "#define __error_t_defined 1" >>confdefs.h
12618
12619 fi
12620
12621
12622 ARGZ_H=
12623 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12624 argz_next argz_stringify
12625 do :
12626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12629 cat >>confdefs.h <<_ACEOF
12630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12631 _ACEOF
12632
12633 else
12634 ARGZ_H=argz.h;
12635
12636 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12637
12638 fi
12639 done
12640
12641
12642 if test -z "$ARGZ_H"; then :
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12644 $as_echo_n "checking if argz actually works... " >&6; }
12645 if ${lt_cv_sys_argz_works+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 case $host_os in #(
12649 *cygwin*)
12650 lt_cv_sys_argz_works=no
12651 if test "$cross_compiling" != no; then
12652 lt_cv_sys_argz_works="guessing no"
12653 else
12654 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12655 save_IFS=$IFS
12656 IFS=-.
12657 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12658 IFS=$save_IFS
12659 lt_os_major=${2-0}
12660 lt_os_minor=${3-0}
12661 lt_os_micro=${4-0}
12662 if test "$lt_os_major" -gt 1 \
12663 || { test "$lt_os_major" -eq 1 \
12664 && { test "$lt_os_minor" -gt 5 \
12665 || { test "$lt_os_minor" -eq 5 \
12666 && test "$lt_os_micro" -gt 24; }; }; }; then
12667 lt_cv_sys_argz_works=yes
12668 fi
12669 fi
12670 ;; #(
12671 *) lt_cv_sys_argz_works=yes ;;
12672 esac
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12675 $as_echo "$lt_cv_sys_argz_works" >&6; }
12676 if test "$lt_cv_sys_argz_works" = yes; then :
12677
12678 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12679
12680 else
12681 ARGZ_H=argz.h
12682
12683
12684 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12685
12686 fi
12687 fi
12688
12689
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12692 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12693 if ${libltdl_cv_preloaded_symbols+:} false; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12697 libltdl_cv_preloaded_symbols=yes
12698 else
12699 libltdl_cv_preloaded_symbols=no
12700 fi
12701
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12704 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12705 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12706
12707 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12708
12709 fi
12710
12711 # Set options
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 # Check whether --with-included_ltdl was given.
12724 if test "${with_included_ltdl+set}" = set; then :
12725 withval=$with_included_ltdl;
12726 fi
12727
12728
12729 if test "x$with_included_ltdl" != xyes; then
12730 # We are not being forced to use the included libltdl sources, so
12731 # decide whether there is a useful installed version we can use.
12732 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12733
12734 "
12735 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12736 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12737 #include <ltdl.h>
12738 "
12739 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12741 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12742 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 ac_check_lib_save_LIBS=$LIBS
12746 LIBS="-lltdl $LIBS"
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char lt_dladvise_preload ();
12757 int
12758 main ()
12759 {
12760 return lt_dladvise_preload ();
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12767 else
12768 ac_cv_lib_ltdl_lt_dladvise_preload=no
12769 fi
12770 rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772 LIBS=$ac_check_lib_save_LIBS
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12775 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12776 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12777 with_included_ltdl=no
12778 else
12779 with_included_ltdl=yes
12780 fi
12781
12782 else
12783 with_included_ltdl=yes
12784 fi
12785
12786 else
12787 with_included_ltdl=yes
12788 fi
12789
12790
12791 fi
12792
12793
12794
12795
12796 # Check whether --with-ltdl_include was given.
12797 if test "${with_ltdl_include+set}" = set; then :
12798 withval=$with_ltdl_include;
12799 fi
12800
12801
12802 if test -n "$with_ltdl_include"; then
12803 if test -f "$with_ltdl_include/ltdl.h"; then :
12804 else
12805 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12806 fi
12807 else
12808 with_ltdl_include=no
12809 fi
12810
12811
12812 # Check whether --with-ltdl_lib was given.
12813 if test "${with_ltdl_lib+set}" = set; then :
12814 withval=$with_ltdl_lib;
12815 fi
12816
12817
12818 if test -n "$with_ltdl_lib"; then
12819 if test -f "$with_ltdl_lib/libltdl.la"; then :
12820 else
12821 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12822 fi
12823 else
12824 with_ltdl_lib=no
12825 fi
12826
12827 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12828 ,yes,no,no,)
12829 case $enable_ltdl_convenience in
12830 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12831 "") enable_ltdl_convenience=yes
12832 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12833 esac
12834 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12835 LTDLDEPS=$LIBLTDL
12836 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12837
12838
12839
12840
12841
12842 # For backwards non-gettext consistent compatibility...
12843 INCLTDL="$LTDLINCL"
12844
12845
12846 ;;
12847 ,no,no,no,)
12848 # If the included ltdl is not to be used, then use the
12849 # preinstalled libltdl we found.
12850
12851 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12852
12853 LIBLTDL=-lltdl
12854 LTDLDEPS=
12855 LTDLINCL=
12856 ;;
12857 ,no*,no,*)
12858 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12859 ;;
12860 *) with_included_ltdl=no
12861 LIBLTDL="-L$with_ltdl_lib -lltdl"
12862 LTDLDEPS=
12863 LTDLINCL="-I$with_ltdl_include"
12864 ;;
12865 esac
12866 INCLTDL="$LTDLINCL"
12867
12868 # Report our decision...
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12870 $as_echo_n "checking where to find libltdl headers... " >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12872 $as_echo "$LTDLINCL" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12874 $as_echo_n "checking where to find libltdl library... " >&6; }
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12876 $as_echo "$LIBLTDL" >&6; }
12877
12878
12879
12880 # Check whether --enable-ltdl-install was given.
12881 if test "${enable_ltdl_install+set}" = set; then :
12882 enableval=$enable_ltdl_install;
12883 fi
12884
12885
12886 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12887 *yes*) ;;
12888 *) enable_ltdl_convenience=yes ;;
12889 esac
12890
12891 if test x"${enable_ltdl_install-no}" != xno; then
12892 INSTALL_LTDL_TRUE=
12893 INSTALL_LTDL_FALSE='#'
12894 else
12895 INSTALL_LTDL_TRUE='#'
12896 INSTALL_LTDL_FALSE=
12897 fi
12898
12899 if test x"${enable_ltdl_convenience-no}" != xno; then
12900 CONVENIENCE_LTDL_TRUE=
12901 CONVENIENCE_LTDL_FALSE='#'
12902 else
12903 CONVENIENCE_LTDL_TRUE='#'
12904 CONVENIENCE_LTDL_FALSE=
12905 fi
12906
12907
12908
12909
12910
12911
12912 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12913 # the user used. This is so that ltdl.h can pick up the parent projects
12914 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12915 # definitions required by ltdl.c.
12916 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12917
12918
12919
12920 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12921 do :
12922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12924 "
12925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 _ACEOF
12929
12930 fi
12931
12932 done
12933
12934
12935 for ac_func in closedir opendir readdir
12936 do :
12937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12940 cat >>confdefs.h <<_ACEOF
12941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12942 _ACEOF
12943
12944 else
12945
12946
12947 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12948
12949 fi
12950 done
12951
12952 for ac_func in strlcat strlcpy
12953 do :
12954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12957 cat >>confdefs.h <<_ACEOF
12958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12959 _ACEOF
12960
12961 else
12962
12963
12964 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12965
12966 fi
12967 done
12968
12969
12970
12971 cat >>confdefs.h <<_ACEOF
12972 #define LT_LIBEXT "$libext"
12973 _ACEOF
12974
12975
12976 name=
12977 eval "lt_libprefix=\"$libname_spec\""
12978
12979 cat >>confdefs.h <<_ACEOF
12980 #define LT_LIBPREFIX "$lt_libprefix"
12981 _ACEOF
12982
12983
12984 name=ltdl
12985 eval "LTDLOPEN=\"$libname_spec\""
12986
12987
12988
12989
12990
12991
12992
12993
12994 # Only expand once:
12995
12996
12997 LIBTOOL="$LIBTOOL --silent"
12998
12999 # Checks for libraries.
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13002 $as_echo_n "checking for library containing socket... " >&6; }
13003 if ${ac_cv_search_socket+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 ac_func_search_save_LIBS=$LIBS
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009
13010 /* Override any GCC internal prototype to avoid an error.
13011 Use char because int might match the return type of a GCC
13012 builtin and then its argument prototype would still apply. */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 char socket ();
13017 int
13018 main ()
13019 {
13020 return socket ();
13021 ;
13022 return 0;
13023 }
13024 _ACEOF
13025 for ac_lib in '' socket; do
13026 if test -z "$ac_lib"; then
13027 ac_res="none required"
13028 else
13029 ac_res=-l$ac_lib
13030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13031 fi
13032 if ac_fn_c_try_link "$LINENO"; then :
13033 ac_cv_search_socket=$ac_res
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext
13037 if ${ac_cv_search_socket+:} false; then :
13038 break
13039 fi
13040 done
13041 if ${ac_cv_search_socket+:} false; then :
13042
13043 else
13044 ac_cv_search_socket=no
13045 fi
13046 rm conftest.$ac_ext
13047 LIBS=$ac_func_search_save_LIBS
13048 fi
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13050 $as_echo "$ac_cv_search_socket" >&6; }
13051 ac_res=$ac_cv_search_socket
13052 if test "$ac_res" != no; then :
13053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13054
13055 else
13056 as_fn_error $? "socket library not found" "$LINENO" 5
13057 fi
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13060 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13061 if ${ac_cv_search_inet_ntoa+:} false; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 ac_func_search_save_LIBS=$LIBS
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char inet_ntoa ();
13075 int
13076 main ()
13077 {
13078 return inet_ntoa ();
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 for ac_lib in '' nsl; do
13084 if test -z "$ac_lib"; then
13085 ac_res="none required"
13086 else
13087 ac_res=-l$ac_lib
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13089 fi
13090 if ac_fn_c_try_link "$LINENO"; then :
13091 ac_cv_search_inet_ntoa=$ac_res
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext
13095 if ${ac_cv_search_inet_ntoa+:} false; then :
13096 break
13097 fi
13098 done
13099 if ${ac_cv_search_inet_ntoa+:} false; then :
13100
13101 else
13102 ac_cv_search_inet_ntoa=no
13103 fi
13104 rm conftest.$ac_ext
13105 LIBS=$ac_func_search_save_LIBS
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13108 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13109 ac_res=$ac_cv_search_inet_ntoa
13110 if test "$ac_res" != no; then :
13111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13112
13113 fi
13114
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13116 $as_echo_n "checking for library containing inet_aton... " >&6; }
13117 if ${ac_cv_search_inet_aton+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 ac_func_search_save_LIBS=$LIBS
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 #ifdef __cplusplus
13128 extern "C"
13129 #endif
13130 char inet_aton ();
13131 int
13132 main ()
13133 {
13134 return inet_aton ();
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 for ac_lib in '' resolv; do
13140 if test -z "$ac_lib"; then
13141 ac_res="none required"
13142 else
13143 ac_res=-l$ac_lib
13144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13145 fi
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 ac_cv_search_inet_aton=$ac_res
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext
13151 if ${ac_cv_search_inet_aton+:} false; then :
13152 break
13153 fi
13154 done
13155 if ${ac_cv_search_inet_aton+:} false; then :
13156
13157 else
13158 ac_cv_search_inet_aton=no
13159 fi
13160 rm conftest.$ac_ext
13161 LIBS=$ac_func_search_save_LIBS
13162 fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13164 $as_echo "$ac_cv_search_inet_aton" >&6; }
13165 ac_res=$ac_cv_search_inet_aton
13166 if test "$ac_res" != no; then :
13167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13168
13169 fi
13170
13171 for ac_func in inet_aton inet_ntop inet_pton
13172 do :
13173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13175 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13176 cat >>confdefs.h <<_ACEOF
13177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13178 _ACEOF
13179
13180 fi
13181 done
13182
13183 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13184 #include <sys/socket.h>
13185 #include <netdb.h>
13186
13187 "
13188 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define HAVE_STRUCT_SOCKADDR_IN 1
13192 _ACEOF
13193
13194
13195 fi
13196 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13197 #include <sys/socket.h>
13198 #include <netdb.h>
13199
13200 "
13201 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13202
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13205 _ACEOF
13206
13207
13208 fi
13209 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13210 #include <sys/socket.h>
13211 #include <netdb.h>
13212
13213 "
13214 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13215
13216 cat >>confdefs.h <<_ACEOF
13217 #define HAVE_STRUCT_ADDRINFO 1
13218 _ACEOF
13219
13220
13221 fi
13222
13223 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13224 <sys/socket.h>
13225 "
13226 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13227
13228 cat >>confdefs.h <<_ACEOF
13229 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13230 _ACEOF
13231
13232
13233 fi
13234
13235
13236
13237 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13238 "
13239 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13240
13241 $as_echo "#define IPV6 1" >>confdefs.h
13242
13243 fi
13244
13245
13246
13247 # Checks for typedefs, structures, and compiler characteristics.
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13249 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13250 if ${ac_cv_c_bigendian+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 ac_cv_c_bigendian=unknown
13254 # See if we're dealing with a universal compiler.
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13257 #ifndef __APPLE_CC__
13258 not a universal capable compiler
13259 #endif
13260 typedef int dummy;
13261
13262 _ACEOF
13263 if ac_fn_c_try_compile "$LINENO"; then :
13264
13265 # Check for potential -arch flags. It is not universal unless
13266 # there are at least two -arch flags with different values.
13267 ac_arch=
13268 ac_prev=
13269 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13270 if test -n "$ac_prev"; then
13271 case $ac_word in
13272 i?86 | x86_64 | ppc | ppc64)
13273 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13274 ac_arch=$ac_word
13275 else
13276 ac_cv_c_bigendian=universal
13277 break
13278 fi
13279 ;;
13280 esac
13281 ac_prev=
13282 elif test "x$ac_word" = "x-arch"; then
13283 ac_prev=arch
13284 fi
13285 done
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 if test $ac_cv_c_bigendian = unknown; then
13289 # See if sys/param.h defines the BYTE_ORDER macro.
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #include <sys/types.h>
13293 #include <sys/param.h>
13294
13295 int
13296 main ()
13297 {
13298 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13299 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13300 && LITTLE_ENDIAN)
13301 bogus endian macros
13302 #endif
13303
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309 # It does; now see whether it defined to BIG_ENDIAN or not.
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13312 #include <sys/types.h>
13313 #include <sys/param.h>
13314
13315 int
13316 main ()
13317 {
13318 #if BYTE_ORDER != BIG_ENDIAN
13319 not big endian
13320 #endif
13321
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327 ac_cv_c_bigendian=yes
13328 else
13329 ac_cv_c_bigendian=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 fi
13335 if test $ac_cv_c_bigendian = unknown; then
13336 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339 #include <limits.h>
13340
13341 int
13342 main ()
13343 {
13344 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13345 bogus endian macros
13346 #endif
13347
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 if ac_fn_c_try_compile "$LINENO"; then :
13353 # It does; now see whether it defined to _BIG_ENDIAN or not.
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <limits.h>
13357
13358 int
13359 main ()
13360 {
13361 #ifndef _BIG_ENDIAN
13362 not big endian
13363 #endif
13364
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370 ac_cv_c_bigendian=yes
13371 else
13372 ac_cv_c_bigendian=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 fi
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 fi
13378 if test $ac_cv_c_bigendian = unknown; then
13379 # Compile a test program.
13380 if test "$cross_compiling" = yes; then :
13381 # Try to guess by grepping values from an object file.
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384 short int ascii_mm[] =
13385 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13386 short int ascii_ii[] =
13387 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13388 int use_ascii (int i) {
13389 return ascii_mm[i] + ascii_ii[i];
13390 }
13391 short int ebcdic_ii[] =
13392 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13393 short int ebcdic_mm[] =
13394 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13395 int use_ebcdic (int i) {
13396 return ebcdic_mm[i] + ebcdic_ii[i];
13397 }
13398 extern int foo;
13399
13400 int
13401 main ()
13402 {
13403 return use_ascii (foo) == use_ebcdic (foo);
13404 ;
13405 return 0;
13406 }
13407 _ACEOF
13408 if ac_fn_c_try_compile "$LINENO"; then :
13409 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13410 ac_cv_c_bigendian=yes
13411 fi
13412 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13413 if test "$ac_cv_c_bigendian" = unknown; then
13414 ac_cv_c_bigendian=no
13415 else
13416 # finding both strings is unlikely to happen, but who knows?
13417 ac_cv_c_bigendian=unknown
13418 fi
13419 fi
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 else
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 $ac_includes_default
13426 int
13427 main ()
13428 {
13429
13430 /* Are we little or big endian? From Harbison&Steele. */
13431 union
13432 {
13433 long int l;
13434 char c[sizeof (long int)];
13435 } u;
13436 u.l = 1;
13437 return u.c[sizeof (long int) - 1] == 1;
13438
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_run "$LINENO"; then :
13444 ac_cv_c_bigendian=no
13445 else
13446 ac_cv_c_bigendian=yes
13447 fi
13448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13449 conftest.$ac_objext conftest.beam conftest.$ac_ext
13450 fi
13451
13452 fi
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13455 $as_echo "$ac_cv_c_bigendian" >&6; }
13456 case $ac_cv_c_bigendian in #(
13457 yes)
13458 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13459 ;; #(
13460 no)
13461 ;; #(
13462 universal)
13463
13464 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13465
13466 ;; #(
13467 *)
13468 as_fn_error $? "unknown endianness
13469 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13470 esac
13471
13472
13473 # Checks for library functions.
13474
13475
13476
13477 for ac_func in $ac_func_list
13478 do :
13479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13482 cat >>confdefs.h <<_ACEOF
13483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13484 _ACEOF
13485
13486 fi
13487 done
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501 # Checks for header files.
13502
13503
13504
13505 for ac_header in $ac_header_list
13506 do :
13507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13508 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13509 "
13510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13511 cat >>confdefs.h <<_ACEOF
13512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13513 _ACEOF
13514
13515 fi
13516
13517 done
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13536 $as_echo_n "checking for library containing crypt... " >&6; }
13537 if ${ac_cv_search_crypt+:} false; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 ac_func_search_save_LIBS=$LIBS
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char crypt ();
13551 int
13552 main ()
13553 {
13554 return crypt ();
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 for ac_lib in '' crypt; do
13560 if test -z "$ac_lib"; then
13561 ac_res="none required"
13562 else
13563 ac_res=-l$ac_lib
13564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13565 fi
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_search_crypt=$ac_res
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext
13571 if ${ac_cv_search_crypt+:} false; then :
13572 break
13573 fi
13574 done
13575 if ${ac_cv_search_crypt+:} false; then :
13576
13577 else
13578 ac_cv_search_crypt=no
13579 fi
13580 rm conftest.$ac_ext
13581 LIBS=$ac_func_search_save_LIBS
13582 fi
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13584 $as_echo "$ac_cv_search_crypt" >&6; }
13585 ac_res=$ac_cv_search_crypt
13586 if test "$ac_res" != no; then :
13587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13588
13589 fi
13590
13591
13592 # Check whether --enable-libpcre was given.
13593 if test "${enable_libpcre+set}" = set; then :
13594 enableval=$enable_libpcre;
13595 else
13596 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13597 if test "x$ac_cv_header_pcre_h" = xyes; then :
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13599 $as_echo_n "checking for library containing pcre_study... " >&6; }
13600 if ${ac_cv_search_pcre_study+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 ac_func_search_save_LIBS=$LIBS
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 /* Override any GCC internal prototype to avoid an error.
13608 Use char because int might match the return type of a GCC
13609 builtin and then its argument prototype would still apply. */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 char pcre_study ();
13614 int
13615 main ()
13616 {
13617 return pcre_study ();
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 for ac_lib in '' pcre; do
13623 if test -z "$ac_lib"; then
13624 ac_res="none required"
13625 else
13626 ac_res=-l$ac_lib
13627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13628 fi
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 ac_cv_search_pcre_study=$ac_res
13631 fi
13632 rm -f core conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext
13634 if ${ac_cv_search_pcre_study+:} false; then :
13635 break
13636 fi
13637 done
13638 if ${ac_cv_search_pcre_study+:} false; then :
13639
13640 else
13641 ac_cv_search_pcre_study=no
13642 fi
13643 rm conftest.$ac_ext
13644 LIBS=$ac_func_search_save_LIBS
13645 fi
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13647 $as_echo "$ac_cv_search_pcre_study" >&6; }
13648 ac_res=$ac_cv_search_pcre_study
13649 if test "$ac_res" != no; then :
13650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13651
13652 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13653
13654 fi
13655
13656 fi
13657
13658
13659 fi
13660
13661
13662 # Check whether --enable-openssl was given.
13663 if test "${enable_openssl+set}" = set; then :
13664 enableval=$enable_openssl; cf_enable_openssl=$enableval
13665 else
13666 cf_enable_openssl="auto"
13667 fi
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13670 $as_echo_n "checking for OpenSSL... " >&6; }
13671 if test "$cf_enable_openssl" != "no"; then
13672 cf_openssl_basedir=""
13673 if test "$cf_enable_openssl" != "auto" &&
13674 test "$cf_enable_openssl" != "yes"; then
13675 cf_openssl_basedir="${cf_enable_openssl}"
13676 else
13677 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13678 /opt /opt/openssl /usr/local/openssl; do
13679 if test -f "${dirs}/include/openssl/opensslv.h"; then
13680 cf_openssl_basedir="${dirs}"
13681 break
13682 fi
13683 done
13684 unset dirs
13685 fi
13686
13687 if test ! -z "$cf_openssl_basedir"; then
13688 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13689 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13690 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13691 else
13692 cf_openssl_basedir=""
13693 fi
13694 else
13695 if test -f "/usr/include/openssl/opensslv.h"; then
13696 cf_openssl_basedir="/usr"
13697 fi
13698 fi
13699
13700 if test ! -z "$cf_openssl_basedir"; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13702 $as_echo "$cf_openssl_basedir" >&6; }
13703 cf_enable_openssl="yes"
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13706 $as_echo "not found. Please check your path." >&6; }
13707 cf_enable_openssl="no"
13708 fi
13709 unset cf_openssl_basedir
13710 else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13712 $as_echo "disabled" >&6; }
13713 fi
13714
13715 if test "$cf_enable_openssl" != "no"; then :
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13717 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13718 if test "$cross_compiling" = yes; then :
13719 cf_openssl_version_ok=no
13720 else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723
13724
13725 #include <openssl/opensslv.h>
13726 #include <stdlib.h>
13727 int
13728 main ()
13729 {
13730 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_run "$LINENO"; then :
13736 cf_openssl_version_ok=yes
13737 else
13738 cf_openssl_version_ok=no
13739 fi
13740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13741 conftest.$ac_objext conftest.beam conftest.$ac_ext
13742 fi
13743
13744
13745 if test "$cf_openssl_version_ok" = "yes"; then :
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13747 $as_echo "found" >&6; }
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13750 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13751 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lssl $LIBS"
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13762 #ifdef __cplusplus
13763 extern "C"
13764 #endif
13765 char SSL_connect ();
13766 int
13767 main ()
13768 {
13769 return SSL_connect ();
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 ac_cv_lib_ssl_SSL_connect=yes
13776 else
13777 ac_cv_lib_ssl_SSL_connect=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 LIBS=$ac_check_lib_save_LIBS
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13784 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13785 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_LIBSSL 1
13788 _ACEOF
13789
13790 LIBS="-lssl $LIBS"
13791
13792 fi
13793
13794 if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13796 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13797 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 ac_check_lib_save_LIBS=$LIBS
13801 LIBS="-lcrypto $LIBS"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13808 #ifdef __cplusplus
13809 extern "C"
13810 #endif
13811 char RSA_free ();
13812 int
13813 main ()
13814 {
13815 return RSA_free ();
13816 ;
13817 return 0;
13818 }
13819 _ACEOF
13820 if ac_fn_c_try_link "$LINENO"; then :
13821 ac_cv_lib_crypto_RSA_free=yes
13822 else
13823 ac_cv_lib_crypto_RSA_free=no
13824 fi
13825 rm -f core conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13827 LIBS=$ac_check_lib_save_LIBS
13828 fi
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13830 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13831 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_LIBCRYPTO 1
13834 _ACEOF
13835
13836 LIBS="-lcrypto $LIBS"
13837
13838 fi
13839
13840 fi
13841
13842 else
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13844 $as_echo "no - OpenSSL support disabled" >&6; }
13845 cf_enable_openssl="no"
13846 fi
13847 fi
13848
13849 if test "$ac_cv_lib_crypto_RSA_free" = yes; then
13850 ENABLE_SSL_TRUE=
13851 ENABLE_SSL_FALSE='#'
13852 else
13853 ENABLE_SSL_TRUE='#'
13854 ENABLE_SSL_FALSE=
13855 fi
13856
13857
13858
13859 # Check whether --enable-assert was given.
13860 if test "${enable_assert+set}" = set; then :
13861 enableval=$enable_assert; assert=$enableval
13862 else
13863 assert=no
13864 fi
13865
13866
13867 if test "$assert" = "no"; then :
13868
13869 $as_echo "#define NDEBUG 1" >>confdefs.h
13870
13871 fi
13872
13873
13874 # Check whether --enable-small-net was given.
13875 if test "${enable_small_net+set}" = set; then :
13876 enableval=$enable_small_net; small_net=$enableval
13877 else
13878 small_net=no
13879 fi
13880
13881
13882 if test "$small_net" = "yes"; then :
13883
13884
13885 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13886
13887
13888 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13889
13890
13891 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13892
13893
13894 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13895
13896
13897 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13898
13899
13900 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13901
13902
13903 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13904
13905
13906 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13907
13908
13909 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13910
13911
13912 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13913
13914 else
13915
13916
13917
13918 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13919
13920
13921 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13922
13923
13924 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13925
13926
13927 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13928
13929
13930 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13931
13932
13933 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13934
13935
13936 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13937
13938
13939 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13940
13941
13942 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13943
13944
13945 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13946
13947 fi
13948
13949
13950 # Argument processing.
13951
13952 desired_iopoll_mechanism="none"
13953 # Check whether --enable-kqueue was given.
13954 if test "${enable_kqueue+set}" = set; then :
13955 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13956 fi
13957
13958 # Check whether --enable-epoll was given.
13959 if test "${enable_epoll+set}" = set; then :
13960 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13961 fi
13962
13963 # Check whether --enable-devpoll was given.
13964 if test "${enable_devpoll+set}" = set; then :
13965 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13966 fi
13967
13968 # Check whether --enable-rtsigio was given.
13969 if test "${enable_rtsigio+set}" = set; then :
13970 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13971 fi
13972
13973 # Check whether --enable-poll was given.
13974 if test "${enable_poll+set}" = set; then :
13975 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13976 fi
13977
13978 # Check whether --enable-select was given.
13979 if test "${enable_select+set}" = set; then :
13980 enableval=$enable_select; desired_iopoll_mechanism="select"
13981 fi
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13984 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13985 iopoll_mechanism_none=0
13986
13987 cat >>confdefs.h <<_ACEOF
13988 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13989 _ACEOF
13990
13991 iopoll_mechanism_kqueue=1
13992
13993 cat >>confdefs.h <<_ACEOF
13994 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13995 _ACEOF
13996
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14001 #define kevent innocuous_kevent
14002
14003 /* System header to define __stub macros and hopefully few prototypes,
14004 which can conflict with char kevent (); below.
14005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14006 <limits.h> exists even on freestanding compilers. */
14007
14008 #ifdef __STDC__
14009 # include <limits.h>
14010 #else
14011 # include <assert.h>
14012 #endif
14013
14014 #undef kevent
14015
14016 /* Override any GCC internal prototype to avoid an error.
14017 Use char because int might match the return type of a GCC
14018 builtin and then its argument prototype would still apply. */
14019 #ifdef __cplusplus
14020 extern "C"
14021 #endif
14022 char kevent ();
14023 /* The GNU C library defines this for functions which it implements
14024 to always fail with ENOSYS. Some functions are actually named
14025 something starting with __ and the normal name is an alias. */
14026 #if defined __stub_kevent || defined __stub___kevent
14027 choke me
14028 #endif
14029
14030 int
14031 main ()
14032 {
14033 return kevent ();
14034 ;
14035 return 0;
14036 }
14037 _ACEOF
14038 if ac_fn_c_try_link "$LINENO"; then :
14039 is_kqueue_mechanism_available="yes"
14040 else
14041 is_kqueue_mechanism_available="no"
14042 fi
14043 rm -f core conftest.err conftest.$ac_objext \
14044 conftest$ac_exeext conftest.$ac_ext
14045 iopoll_mechanism_epoll=2
14046
14047 cat >>confdefs.h <<_ACEOF
14048 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14049 _ACEOF
14050
14051 if test "$cross_compiling" = yes; then :
14052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14054 as_fn_error $? "cannot run test program while cross compiling
14055 See \`config.log' for more details" "$LINENO" 5; }
14056 else
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059
14060 #include <sys/epoll.h>
14061 #include <sys/syscall.h>
14062 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14063 #if !defined(__NR_epoll_create)
14064 #if defined(__ia64__)
14065 #define __NR_epoll_create 1243
14066 #elif defined(__x86_64__)
14067 #define __NR_epoll_create 214
14068 #elif defined(__sparc64__) || defined(__sparc__)
14069 #define __NR_epoll_create 193
14070 #elif defined(__s390__) || defined(__m68k__)
14071 #define __NR_epoll_create 249
14072 #elif defined(__ppc64__) || defined(__ppc__)
14073 #define __NR_epoll_create 236
14074 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14075 #define __NR_epoll_create 224
14076 #elif defined(__alpha__)
14077 #define __NR_epoll_create 407
14078 #elif defined(__sh64__)
14079 #define __NR_epoll_create 282
14080 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14081 #define __NR_epoll_create 254
14082 #else
14083 #error No system call numbers defined for epoll family.
14084 #endif
14085 #endif
14086 _syscall1(int, epoll_create, int, size)
14087 #endif
14088
14089 int
14090 main ()
14091 {
14092 return epoll_create(256) == -1 ? 1 : 0
14093 ;
14094 return 0;
14095 }
14096 _ACEOF
14097 if ac_fn_c_try_run "$LINENO"; then :
14098 is_epoll_mechanism_available="yes"
14099 else
14100 is_epoll_mechanism_available="no"
14101 fi
14102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14103 conftest.$ac_objext conftest.beam conftest.$ac_ext
14104 fi
14105
14106 iopoll_mechanism_devpoll=3
14107
14108 cat >>confdefs.h <<_ACEOF
14109 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14110 _ACEOF
14111
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <devpoll.h>
14115 int
14116 main ()
14117 {
14118
14119 ;
14120 return 0;
14121 }
14122 _ACEOF
14123 if ac_fn_c_try_compile "$LINENO"; then :
14124 is_devpoll_mechanism_available="yes"
14125 else
14126 is_devpoll_mechanism_available="no"
14127 fi
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 if test "$is_devpoll_mechanism_available" = "yes" ; then
14130
14131 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14132
14133 fi
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 #include <sys/devpoll.h>
14137 int
14138 main ()
14139 {
14140
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_compile "$LINENO"; then :
14146 is_devpoll_mechanism_available="yes"
14147 else
14148 is_devpoll_mechanism_available="no"
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 if test "$is_devpoll_mechanism_available" = "yes" ; then
14152
14153 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14154
14155 fi
14156 iopoll_mechanism_rtsigio=4
14157
14158 cat >>confdefs.h <<_ACEOF
14159 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14160 _ACEOF
14161
14162 if test "$cross_compiling" = yes; then :
14163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14165 as_fn_error $? "cannot run test program while cross compiling
14166 See \`config.log' for more details" "$LINENO" 5; }
14167 else
14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h. */
14170
14171 #define _GNU_SOURCE
14172 #include <fcntl.h>
14173 static unsigned int have_f_setsig = 0;
14174
14175 int
14176 main ()
14177 {
14178
14179 #ifdef F_SETSIG
14180 have_f_setsig = 1;
14181 #endif
14182 return have_f_setsig == 0;
14183
14184 ;
14185 return 0;
14186 }
14187 _ACEOF
14188 if ac_fn_c_try_run "$LINENO"; then :
14189 is_rtsigio_mechanism_available="yes"
14190 else
14191 is_rtsigio_mechanism_available="no"
14192 fi
14193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14194 conftest.$ac_objext conftest.beam conftest.$ac_ext
14195 fi
14196
14197 iopoll_mechanism_poll=5
14198
14199 cat >>confdefs.h <<_ACEOF
14200 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14201 _ACEOF
14202
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14207 #define poll innocuous_poll
14208
14209 /* System header to define __stub macros and hopefully few prototypes,
14210 which can conflict with char poll (); below.
14211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14212 <limits.h> exists even on freestanding compilers. */
14213
14214 #ifdef __STDC__
14215 # include <limits.h>
14216 #else
14217 # include <assert.h>
14218 #endif
14219
14220 #undef poll
14221
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char poll ();
14229 /* The GNU C library defines this for functions which it implements
14230 to always fail with ENOSYS. Some functions are actually named
14231 something starting with __ and the normal name is an alias. */
14232 #if defined __stub_poll || defined __stub___poll
14233 choke me
14234 #endif
14235
14236 int
14237 main ()
14238 {
14239 return poll ();
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 is_poll_mechanism_available="yes"
14246 else
14247 is_poll_mechanism_available="no"
14248 fi
14249 rm -f core conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14251 iopoll_mechanism_select=6
14252
14253 cat >>confdefs.h <<_ACEOF
14254 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14255 _ACEOF
14256
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 /* Define select to an innocuous variant, in case <limits.h> declares select.
14260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14261 #define select innocuous_select
14262
14263 /* System header to define __stub macros and hopefully few prototypes,
14264 which can conflict with char select (); below.
14265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14266 <limits.h> exists even on freestanding compilers. */
14267
14268 #ifdef __STDC__
14269 # include <limits.h>
14270 #else
14271 # include <assert.h>
14272 #endif
14273
14274 #undef select
14275
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 char select ();
14283 /* The GNU C library defines this for functions which it implements
14284 to always fail with ENOSYS. Some functions are actually named
14285 something starting with __ and the normal name is an alias. */
14286 #if defined __stub_select || defined __stub___select
14287 choke me
14288 #endif
14289
14290 int
14291 main ()
14292 {
14293 return select ();
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 is_select_mechanism_available="yes"
14300 else
14301 is_select_mechanism_available="no"
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 optimal_iopoll_mechanism="none"
14306 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14307 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14308 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14309 optimal_iopoll_mechanism="$mechanism"
14310 break
14311 fi
14312 done
14313 if test "$desired_iopoll_mechanism" = "none" ; then
14314 if test "$optimal_iopoll_mechanism" = "none" ; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14316 $as_echo "none" >&6; }
14317 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14318 else
14319 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14321 $as_echo "$selected_iopoll_mechanism" >&6; }
14322 fi
14323 else
14324 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14325 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14326 selected_iopoll_mechanism=$desired_iopoll_mechanism
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14328 $as_echo "$selected_iopoll_mechanism" >&6; }
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14331 $as_echo "none" >&6; }
14332 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14333 fi
14334 fi
14335 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14336
14337 cat >>confdefs.h <<_ACEOF
14338 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14339 _ACEOF
14340
14341
14342
14343
14344 # Check whether --with-nicklen was given.
14345 if test "${with_nicklen+set}" = set; then :
14346 withval=$with_nicklen; nicklen="$withval"
14347 else
14348 nicklen="9"
14349 fi
14350
14351
14352 cat >>confdefs.h <<_ACEOF
14353 #define NICKLEN ($nicklen+1)
14354 _ACEOF
14355
14356
14357
14358
14359 # Check whether --with-topiclen was given.
14360 if test "${with_topiclen+set}" = set; then :
14361 withval=$with_topiclen; topiclen="$withval"
14362 else
14363 topiclen="160"
14364 fi
14365
14366
14367 cat >>confdefs.h <<_ACEOF
14368 #define TOPICLEN ($topiclen)
14369 _ACEOF
14370
14371
14372
14373 # Check whether --enable-efnet was given.
14374 if test "${enable_efnet+set}" = set; then :
14375 enableval=$enable_efnet; efnet="$enableval"
14376 else
14377 efnet="no"
14378 fi
14379
14380 if test "$efnet" = "yes" ; then
14381 use_efnet="yes"
14382
14383 $as_echo "#define EFNET 1" >>confdefs.h
14384
14385 else
14386 use_efnet="no"
14387 fi
14388 if test "$use_efnet" = "yes"; then
14389 EFNET_TRUE=
14390 EFNET_FALSE='#'
14391 else
14392 EFNET_TRUE='#'
14393 EFNET_FALSE=
14394 fi
14395
14396
14397
14398 # Check whether --enable-halfops was given.
14399 if test "${enable_halfops+set}" = set; then :
14400 enableval=$enable_halfops; halfops="$enableval"
14401 else
14402 halfops="no"
14403 fi
14404
14405 if test "$halfops" = "yes" ; then
14406
14407 $as_echo "#define HALFOPS 1" >>confdefs.h
14408
14409 fi
14410
14411
14412 # Check whether --enable-debugging was given.
14413 if test "${enable_debugging+set}" = set; then :
14414 enableval=$enable_debugging; debugging="$enableval"
14415 else
14416 debugging="no"
14417 fi
14418
14419 if test "$debugging" = "yes" ; then
14420
14421 $as_echo "#define DEBUG 1" >>confdefs.h
14422
14423 CFLAGS="-Wall -g -O0"
14424 else
14425
14426 $as_echo "#define NDEBUG 1" >>confdefs.h
14427
14428 fi
14429
14430
14431 # Check whether --enable-warnings was given.
14432 if test "${enable_warnings+set}" = set; then :
14433 enableval=$enable_warnings; warnings="$enableval"
14434 else
14435 warnings="no"
14436 fi
14437
14438 if test "$warnings" = "yes" ; then
14439 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14440 fi
14441
14442
14443
14444 prefix_NONE=
14445 exec_prefix_NONE=
14446 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14447 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14448 eval ac_define_dir="\"$prefix\""
14449 eval ac_define_dir="\"$ac_define_dir\""
14450 PREFIX="$ac_define_dir"
14451
14452
14453 cat >>confdefs.h <<_ACEOF
14454 #define PREFIX "$ac_define_dir"
14455 _ACEOF
14456
14457 test "$prefix_NONE" && prefix=NONE
14458 test "$exec_prefix_NONE" && exec_prefix=NONE
14459
14460
14461 prefix_NONE=
14462 exec_prefix_NONE=
14463 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14464 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14465 eval ac_define_dir="\"$sysconfdir\""
14466 eval ac_define_dir="\"$ac_define_dir\""
14467 SYSCONFDIR="$ac_define_dir"
14468
14469
14470 cat >>confdefs.h <<_ACEOF
14471 #define SYSCONFDIR "$ac_define_dir"
14472 _ACEOF
14473
14474 test "$prefix_NONE" && prefix=NONE
14475 test "$exec_prefix_NONE" && exec_prefix=NONE
14476
14477
14478 prefix_NONE=
14479 exec_prefix_NONE=
14480 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14481 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14482 eval ac_define_dir="\"$libdir\""
14483 eval ac_define_dir="\"$ac_define_dir\""
14484 LIBDIR="$ac_define_dir"
14485
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define LIBDIR "$ac_define_dir"
14489 _ACEOF
14490
14491 test "$prefix_NONE" && prefix=NONE
14492 test "$exec_prefix_NONE" && exec_prefix=NONE
14493
14494
14495 prefix_NONE=
14496 exec_prefix_NONE=
14497 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14498 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14499 eval ac_define_dir="\"$datadir\""
14500 eval ac_define_dir="\"$ac_define_dir\""
14501 DATADIR="$ac_define_dir"
14502
14503
14504 cat >>confdefs.h <<_ACEOF
14505 #define DATADIR "$ac_define_dir"
14506 _ACEOF
14507
14508 test "$prefix_NONE" && prefix=NONE
14509 test "$exec_prefix_NONE" && exec_prefix=NONE
14510
14511
14512 prefix_NONE=
14513 exec_prefix_NONE=
14514 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14515 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14516 eval ac_define_dir="\"$localstatedir\""
14517 eval ac_define_dir="\"$ac_define_dir\""
14518 LOCALSTATEDIR="$ac_define_dir"
14519
14520
14521 cat >>confdefs.h <<_ACEOF
14522 #define LOCALSTATEDIR "$ac_define_dir"
14523 _ACEOF
14524
14525 test "$prefix_NONE" && prefix=NONE
14526 test "$exec_prefix_NONE" && exec_prefix=NONE
14527
14528
14529 ac_config_files="$ac_config_files 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"
14530
14531
14532 cat >confcache <<\_ACEOF
14533 # This file is a shell script that caches the results of configure
14534 # tests run on this system so they can be shared between configure
14535 # scripts and configure runs, see configure's option --config-cache.
14536 # It is not useful on other systems. If it contains results you don't
14537 # want to keep, you may remove or edit it.
14538 #
14539 # config.status only pays attention to the cache file if you give it
14540 # the --recheck option to rerun configure.
14541 #
14542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14544 # following values.
14545
14546 _ACEOF
14547
14548 # The following way of writing the cache mishandles newlines in values,
14549 # but we know of no workaround that is simple, portable, and efficient.
14550 # So, we kill variables containing newlines.
14551 # Ultrix sh set writes to stderr and can't be redirected directly,
14552 # and sets the high bit in the cache file unless we assign to the vars.
14553 (
14554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14555 eval ac_val=\$$ac_var
14556 case $ac_val in #(
14557 *${as_nl}*)
14558 case $ac_var in #(
14559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14561 esac
14562 case $ac_var in #(
14563 _ | IFS | as_nl) ;; #(
14564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14565 *) { eval $ac_var=; unset $ac_var;} ;;
14566 esac ;;
14567 esac
14568 done
14569
14570 (set) 2>&1 |
14571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14572 *${as_nl}ac_space=\ *)
14573 # `set' does not quote correctly, so add quotes: double-quote
14574 # substitution turns \\\\ into \\, and sed turns \\ into \.
14575 sed -n \
14576 "s/'/'\\\\''/g;
14577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14578 ;; #(
14579 *)
14580 # `set' quotes correctly as required by POSIX, so do not add quotes.
14581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14582 ;;
14583 esac |
14584 sort
14585 ) |
14586 sed '
14587 /^ac_cv_env_/b end
14588 t clear
14589 :clear
14590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14591 t end
14592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14593 :end' >>confcache
14594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14595 if test -w "$cache_file"; then
14596 if test "x$cache_file" != "x/dev/null"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14598 $as_echo "$as_me: updating cache $cache_file" >&6;}
14599 if test ! -f "$cache_file" || test -h "$cache_file"; then
14600 cat confcache >"$cache_file"
14601 else
14602 case $cache_file in #(
14603 */* | ?:*)
14604 mv -f confcache "$cache_file"$$ &&
14605 mv -f "$cache_file"$$ "$cache_file" ;; #(
14606 *)
14607 mv -f confcache "$cache_file" ;;
14608 esac
14609 fi
14610 fi
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14613 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14614 fi
14615 fi
14616 rm -f confcache
14617
14618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14619 # Let make expand exec_prefix.
14620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14621
14622 DEFS=-DHAVE_CONFIG_H
14623
14624 ac_libobjs=
14625 ac_ltlibobjs=
14626 U=
14627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14628 # 1. Remove the extension, and $U if already installed.
14629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14632 # will be set to the directory where LIBOBJS objects are built.
14633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14634 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14635 done
14636 LIBOBJS=$ac_libobjs
14637
14638 LTLIBOBJS=$ac_ltlibobjs
14639
14640
14641 if test -n "$EXEEXT"; then
14642 am__EXEEXT_TRUE=
14643 am__EXEEXT_FALSE='#'
14644 else
14645 am__EXEEXT_TRUE='#'
14646 am__EXEEXT_FALSE=
14647 fi
14648
14649 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14650 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14652 fi
14653 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14654 as_fn_error $? "conditional \"AMDEP\" was never defined.
14655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14656 fi
14657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14658 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14660 fi
14661 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14662 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14664 fi
14665 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14666 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668 fi
14669 LT_CONFIG_H=config.h
14670
14671 _ltdl_libobjs=
14672 _ltdl_ltlibobjs=
14673 if test -n "$_LT_LIBOBJS"; then
14674 # Remove the extension.
14675 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14676 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14677 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14678 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14679 done
14680 fi
14681 ltdl_LIBOBJS=$_ltdl_libobjs
14682
14683 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14684
14685
14686
14687 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14688 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690 fi
14691 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14692 as_fn_error $? "conditional \"EFNET\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694 fi
14695
14696 : "${CONFIG_STATUS=./config.status}"
14697 ac_write_fail=0
14698 ac_clean_files_save=$ac_clean_files
14699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14701 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14702 as_write_fail=0
14703 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14704 #! $SHELL
14705 # Generated by $as_me.
14706 # Run this file to recreate the current configuration.
14707 # Compiler output produced by configure, useful for debugging
14708 # configure, is in config.log if it exists.
14709
14710 debug=false
14711 ac_cs_recheck=false
14712 ac_cs_silent=false
14713
14714 SHELL=\${CONFIG_SHELL-$SHELL}
14715 export SHELL
14716 _ASEOF
14717 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14718 ## -------------------- ##
14719 ## M4sh Initialization. ##
14720 ## -------------------- ##
14721
14722 # Be more Bourne compatible
14723 DUALCASE=1; export DUALCASE # for MKS sh
14724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14725 emulate sh
14726 NULLCMD=:
14727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14728 # is contrary to our usage. Disable this feature.
14729 alias -g '${1+"$@"}'='"$@"'
14730 setopt NO_GLOB_SUBST
14731 else
14732 case `(set -o) 2>/dev/null` in #(
14733 *posix*) :
14734 set -o posix ;; #(
14735 *) :
14736 ;;
14737 esac
14738 fi
14739
14740
14741 as_nl='
14742 '
14743 export as_nl
14744 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14745 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14747 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14748 # Prefer a ksh shell builtin over an external printf program on Solaris,
14749 # but without wasting forks for bash or zsh.
14750 if test -z "$BASH_VERSION$ZSH_VERSION" \
14751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14752 as_echo='print -r --'
14753 as_echo_n='print -rn --'
14754 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14755 as_echo='printf %s\n'
14756 as_echo_n='printf %s'
14757 else
14758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14759 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14760 as_echo_n='/usr/ucb/echo -n'
14761 else
14762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14763 as_echo_n_body='eval
14764 arg=$1;
14765 case $arg in #(
14766 *"$as_nl"*)
14767 expr "X$arg" : "X\\(.*\\)$as_nl";
14768 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14769 esac;
14770 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14771 '
14772 export as_echo_n_body
14773 as_echo_n='sh -c $as_echo_n_body as_echo'
14774 fi
14775 export as_echo_body
14776 as_echo='sh -c $as_echo_body as_echo'
14777 fi
14778
14779 # The user is always right.
14780 if test "${PATH_SEPARATOR+set}" != set; then
14781 PATH_SEPARATOR=:
14782 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14783 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14784 PATH_SEPARATOR=';'
14785 }
14786 fi
14787
14788
14789 # IFS
14790 # We need space, tab and new line, in precisely that order. Quoting is
14791 # there to prevent editors from complaining about space-tab.
14792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14793 # splitting by setting IFS to empty value.)
14794 IFS=" "" $as_nl"
14795
14796 # Find who we are. Look in the path if we contain no directory separator.
14797 as_myself=
14798 case $0 in #((
14799 *[\\/]* ) as_myself=$0 ;;
14800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14801 for as_dir in $PATH
14802 do
14803 IFS=$as_save_IFS
14804 test -z "$as_dir" && as_dir=.
14805 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14806 done
14807 IFS=$as_save_IFS
14808
14809 ;;
14810 esac
14811 # We did not find ourselves, most probably we were run as `sh COMMAND'
14812 # in which case we are not to be found in the path.
14813 if test "x$as_myself" = x; then
14814 as_myself=$0
14815 fi
14816 if test ! -f "$as_myself"; then
14817 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14818 exit 1
14819 fi
14820
14821 # Unset variables that we do not need and which cause bugs (e.g. in
14822 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14823 # suppresses any "Segmentation fault" message there. '((' could
14824 # trigger a bug in pdksh 5.2.14.
14825 for as_var in BASH_ENV ENV MAIL MAILPATH
14826 do eval test x\${$as_var+set} = xset \
14827 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14828 done
14829 PS1='$ '
14830 PS2='> '
14831 PS4='+ '
14832
14833 # NLS nuisances.
14834 LC_ALL=C
14835 export LC_ALL
14836 LANGUAGE=C
14837 export LANGUAGE
14838
14839 # CDPATH.
14840 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14841
14842
14843 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14844 # ----------------------------------------
14845 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14846 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14847 # script with STATUS, using 1 if that was 0.
14848 as_fn_error ()
14849 {
14850 as_status=$1; test $as_status -eq 0 && as_status=1
14851 if test "$4"; then
14852 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14853 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14854 fi
14855 $as_echo "$as_me: error: $2" >&2
14856 as_fn_exit $as_status
14857 } # as_fn_error
14858
14859
14860 # as_fn_set_status STATUS
14861 # -----------------------
14862 # Set $? to STATUS, without forking.
14863 as_fn_set_status ()
14864 {
14865 return $1
14866 } # as_fn_set_status
14867
14868 # as_fn_exit STATUS
14869 # -----------------
14870 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14871 as_fn_exit ()
14872 {
14873 set +e
14874 as_fn_set_status $1
14875 exit $1
14876 } # as_fn_exit
14877
14878 # as_fn_unset VAR
14879 # ---------------
14880 # Portably unset VAR.
14881 as_fn_unset ()
14882 {
14883 { eval $1=; unset $1;}
14884 }
14885 as_unset=as_fn_unset
14886 # as_fn_append VAR VALUE
14887 # ----------------------
14888 # Append the text in VALUE to the end of the definition contained in VAR. Take
14889 # advantage of any shell optimizations that allow amortized linear growth over
14890 # repeated appends, instead of the typical quadratic growth present in naive
14891 # implementations.
14892 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14893 eval 'as_fn_append ()
14894 {
14895 eval $1+=\$2
14896 }'
14897 else
14898 as_fn_append ()
14899 {
14900 eval $1=\$$1\$2
14901 }
14902 fi # as_fn_append
14903
14904 # as_fn_arith ARG...
14905 # ------------------
14906 # Perform arithmetic evaluation on the ARGs, and store the result in the
14907 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14908 # must be portable across $(()) and expr.
14909 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14910 eval 'as_fn_arith ()
14911 {
14912 as_val=$(( $* ))
14913 }'
14914 else
14915 as_fn_arith ()
14916 {
14917 as_val=`expr "$@" || test $? -eq 1`
14918 }
14919 fi # as_fn_arith
14920
14921
14922 if expr a : '\(a\)' >/dev/null 2>&1 &&
14923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14924 as_expr=expr
14925 else
14926 as_expr=false
14927 fi
14928
14929 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14930 as_basename=basename
14931 else
14932 as_basename=false
14933 fi
14934
14935 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14936 as_dirname=dirname
14937 else
14938 as_dirname=false
14939 fi
14940
14941 as_me=`$as_basename -- "$0" ||
14942 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14943 X"$0" : 'X\(//\)$' \| \
14944 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14945 $as_echo X/"$0" |
14946 sed '/^.*\/\([^/][^/]*\)\/*$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\/\(\/\/\)$/{
14951 s//\1/
14952 q
14953 }
14954 /^X\/\(\/\).*/{
14955 s//\1/
14956 q
14957 }
14958 s/.*/./; q'`
14959
14960 # Avoid depending upon Character Ranges.
14961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14964 as_cr_digits='0123456789'
14965 as_cr_alnum=$as_cr_Letters$as_cr_digits
14966
14967 ECHO_C= ECHO_N= ECHO_T=
14968 case `echo -n x` in #(((((
14969 -n*)
14970 case `echo 'xy\c'` in
14971 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14972 xy) ECHO_C='\c';;
14973 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14974 ECHO_T=' ';;
14975 esac;;
14976 *)
14977 ECHO_N='-n';;
14978 esac
14979
14980 rm -f conf$$ conf$$.exe conf$$.file
14981 if test -d conf$$.dir; then
14982 rm -f conf$$.dir/conf$$.file
14983 else
14984 rm -f conf$$.dir
14985 mkdir conf$$.dir 2>/dev/null
14986 fi
14987 if (echo >conf$$.file) 2>/dev/null; then
14988 if ln -s conf$$.file conf$$ 2>/dev/null; then
14989 as_ln_s='ln -s'
14990 # ... but there are two gotchas:
14991 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14992 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14993 # In both cases, we have to default to `cp -p'.
14994 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14995 as_ln_s='cp -p'
14996 elif ln conf$$.file conf$$ 2>/dev/null; then
14997 as_ln_s=ln
14998 else
14999 as_ln_s='cp -p'
15000 fi
15001 else
15002 as_ln_s='cp -p'
15003 fi
15004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15005 rmdir conf$$.dir 2>/dev/null
15006
15007
15008 # as_fn_mkdir_p
15009 # -------------
15010 # Create "$as_dir" as a directory, including parents if necessary.
15011 as_fn_mkdir_p ()
15012 {
15013
15014 case $as_dir in #(
15015 -*) as_dir=./$as_dir;;
15016 esac
15017 test -d "$as_dir" || eval $as_mkdir_p || {
15018 as_dirs=
15019 while :; do
15020 case $as_dir in #(
15021 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15022 *) as_qdir=$as_dir;;
15023 esac
15024 as_dirs="'$as_qdir' $as_dirs"
15025 as_dir=`$as_dirname -- "$as_dir" ||
15026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15027 X"$as_dir" : 'X\(//\)[^/]' \| \
15028 X"$as_dir" : 'X\(//\)$' \| \
15029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15030 $as_echo X"$as_dir" |
15031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15032 s//\1/
15033 q
15034 }
15035 /^X\(\/\/\)[^/].*/{
15036 s//\1/
15037 q
15038 }
15039 /^X\(\/\/\)$/{
15040 s//\1/
15041 q
15042 }
15043 /^X\(\/\).*/{
15044 s//\1/
15045 q
15046 }
15047 s/.*/./; q'`
15048 test -d "$as_dir" && break
15049 done
15050 test -z "$as_dirs" || eval "mkdir $as_dirs"
15051 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15052
15053
15054 } # as_fn_mkdir_p
15055 if mkdir -p . 2>/dev/null; then
15056 as_mkdir_p='mkdir -p "$as_dir"'
15057 else
15058 test -d ./-p && rmdir ./-p
15059 as_mkdir_p=false
15060 fi
15061
15062 if test -x / >/dev/null 2>&1; then
15063 as_test_x='test -x'
15064 else
15065 if ls -dL / >/dev/null 2>&1; then
15066 as_ls_L_option=L
15067 else
15068 as_ls_L_option=
15069 fi
15070 as_test_x='
15071 eval sh -c '\''
15072 if test -d "$1"; then
15073 test -d "$1/.";
15074 else
15075 case $1 in #(
15076 -*)set "./$1";;
15077 esac;
15078 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15079 ???[sx]*):;;*)false;;esac;fi
15080 '\'' sh
15081 '
15082 fi
15083 as_executable_p=$as_test_x
15084
15085 # Sed expression to map a string onto a valid CPP name.
15086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15087
15088 # Sed expression to map a string onto a valid variable name.
15089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15090
15091
15092 exec 6>&1
15093 ## ----------------------------------- ##
15094 ## Main body of $CONFIG_STATUS script. ##
15095 ## ----------------------------------- ##
15096 _ASEOF
15097 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15098
15099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15100 # Save the log message, to keep $0 and so on meaningful, and to
15101 # report actual input values of CONFIG_FILES etc. instead of their
15102 # values after options handling.
15103 ac_log="
15104 This file was extended by ircd-hybrid $as_me 8beta1, which was
15105 generated by GNU Autoconf 2.68. Invocation command line was
15106
15107 CONFIG_FILES = $CONFIG_FILES
15108 CONFIG_HEADERS = $CONFIG_HEADERS
15109 CONFIG_LINKS = $CONFIG_LINKS
15110 CONFIG_COMMANDS = $CONFIG_COMMANDS
15111 $ $0 $@
15112
15113 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15114 "
15115
15116 _ACEOF
15117
15118 case $ac_config_files in *"
15119 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15120 esac
15121
15122 case $ac_config_headers in *"
15123 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15124 esac
15125
15126
15127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15128 # Files that config.status was made for.
15129 config_files="$ac_config_files"
15130 config_headers="$ac_config_headers"
15131 config_commands="$ac_config_commands"
15132
15133 _ACEOF
15134
15135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15136 ac_cs_usage="\
15137 \`$as_me' instantiates files and other configuration actions
15138 from templates according to the current configuration. Unless the files
15139 and actions are specified as TAGs, all are instantiated by default.
15140
15141 Usage: $0 [OPTION]... [TAG]...
15142
15143 -h, --help print this help, then exit
15144 -V, --version print version number and configuration settings, then exit
15145 --config print configuration, then exit
15146 -q, --quiet, --silent
15147 do not print progress messages
15148 -d, --debug don't remove temporary files
15149 --recheck update $as_me by reconfiguring in the same conditions
15150 --file=FILE[:TEMPLATE]
15151 instantiate the configuration file FILE
15152 --header=FILE[:TEMPLATE]
15153 instantiate the configuration header FILE
15154
15155 Configuration files:
15156 $config_files
15157
15158 Configuration headers:
15159 $config_headers
15160
15161 Configuration commands:
15162 $config_commands
15163
15164 Report bugs to <bugs@ircd-hybrid.org>."
15165
15166 _ACEOF
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15169 ac_cs_version="\\
15170 ircd-hybrid config.status 8beta1
15171 configured by $0, generated by GNU Autoconf 2.68,
15172 with options \\"\$ac_cs_config\\"
15173
15174 Copyright (C) 2010 Free Software Foundation, Inc.
15175 This config.status script is free software; the Free Software Foundation
15176 gives unlimited permission to copy, distribute and modify it."
15177
15178 ac_pwd='$ac_pwd'
15179 srcdir='$srcdir'
15180 INSTALL='$INSTALL'
15181 MKDIR_P='$MKDIR_P'
15182 AWK='$AWK'
15183 test -n "\$AWK" || AWK=awk
15184 _ACEOF
15185
15186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15187 # The default lists apply if the user does not specify any file.
15188 ac_need_defaults=:
15189 while test $# != 0
15190 do
15191 case $1 in
15192 --*=?*)
15193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15195 ac_shift=:
15196 ;;
15197 --*=)
15198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15199 ac_optarg=
15200 ac_shift=:
15201 ;;
15202 *)
15203 ac_option=$1
15204 ac_optarg=$2
15205 ac_shift=shift
15206 ;;
15207 esac
15208
15209 case $ac_option in
15210 # Handling of the options.
15211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15212 ac_cs_recheck=: ;;
15213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15214 $as_echo "$ac_cs_version"; exit ;;
15215 --config | --confi | --conf | --con | --co | --c )
15216 $as_echo "$ac_cs_config"; exit ;;
15217 --debug | --debu | --deb | --de | --d | -d )
15218 debug=: ;;
15219 --file | --fil | --fi | --f )
15220 $ac_shift
15221 case $ac_optarg in
15222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15223 '') as_fn_error $? "missing file argument" ;;
15224 esac
15225 as_fn_append CONFIG_FILES " '$ac_optarg'"
15226 ac_need_defaults=false;;
15227 --header | --heade | --head | --hea )
15228 $ac_shift
15229 case $ac_optarg in
15230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15231 esac
15232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15233 ac_need_defaults=false;;
15234 --he | --h)
15235 # Conflict between --help and --header
15236 as_fn_error $? "ambiguous option: \`$1'
15237 Try \`$0 --help' for more information.";;
15238 --help | --hel | -h )
15239 $as_echo "$ac_cs_usage"; exit ;;
15240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15242 ac_cs_silent=: ;;
15243
15244 # This is an error.
15245 -*) as_fn_error $? "unrecognized option: \`$1'
15246 Try \`$0 --help' for more information." ;;
15247
15248 *) as_fn_append ac_config_targets " $1"
15249 ac_need_defaults=false ;;
15250
15251 esac
15252 shift
15253 done
15254
15255 ac_configure_extra_args=
15256
15257 if $ac_cs_silent; then
15258 exec 6>/dev/null
15259 ac_configure_extra_args="$ac_configure_extra_args --silent"
15260 fi
15261
15262 _ACEOF
15263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15264 if \$ac_cs_recheck; then
15265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15266 shift
15267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15268 CONFIG_SHELL='$SHELL'
15269 export CONFIG_SHELL
15270 exec "\$@"
15271 fi
15272
15273 _ACEOF
15274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15275 exec 5>>config.log
15276 {
15277 echo
15278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15279 ## Running $as_me. ##
15280 _ASBOX
15281 $as_echo "$ac_log"
15282 } >&5
15283
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 #
15287 # INIT-COMMANDS
15288 #
15289 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15290
15291
15292 # The HP-UX ksh and POSIX shell print the target directory to stdout
15293 # if CDPATH is set.
15294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15295
15296 sed_quote_subst='$sed_quote_subst'
15297 double_quote_subst='$double_quote_subst'
15298 delay_variable_subst='$delay_variable_subst'
15299 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15300 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15301 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15302 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15303 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15304 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15305 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15306 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15307 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15308 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15309 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15310 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15311 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15312 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15313 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15314 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15315 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15316 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15317 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15318 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15319 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15320 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15321 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15322 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15323 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15324 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15325 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15326 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15327 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15328 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15329 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15330 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15331 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15332 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15333 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15334 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15335 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15336 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15337 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15338 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15341 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15342 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15343 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15344 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15345 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15346 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15347 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15348 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15349 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15350 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15351 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15352 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15353 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15354 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15355 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"`'
15356 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15357 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15358 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15359 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15360 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15361 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15362 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15363 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15364 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15365 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15366 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15367 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15368 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15369 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15370 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15371 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15372 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15373 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15374 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15375 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15376 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15377 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15378 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15379 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15380 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15381 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15382 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15383 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15384 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15385 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15386 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15387 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15388 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15389 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15390 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15391 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15392 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15393 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15394 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15395 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15396 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15397 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15398 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15399 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15400 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15401 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15402 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15403 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15404 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15405 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15406 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15407 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15408 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15409 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15410 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15411 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15412 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15413 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15414 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15415 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15416 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15417 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15418 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15419 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15420 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15421 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15422 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15423 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15424 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15425 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15426 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15427 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15428 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15429
15430 LTCC='$LTCC'
15431 LTCFLAGS='$LTCFLAGS'
15432 compiler='$compiler_DEFAULT'
15433
15434 # A function that is used when there is no print builtin or printf.
15435 func_fallback_echo ()
15436 {
15437 eval 'cat <<_LTECHO_EOF
15438 \$1
15439 _LTECHO_EOF'
15440 }
15441
15442 # Quote evaled strings.
15443 for var in SHELL \
15444 ECHO \
15445 PATH_SEPARATOR \
15446 SED \
15447 GREP \
15448 EGREP \
15449 FGREP \
15450 LD \
15451 NM \
15452 LN_S \
15453 lt_SP2NL \
15454 lt_NL2SP \
15455 reload_flag \
15456 OBJDUMP \
15457 deplibs_check_method \
15458 file_magic_cmd \
15459 file_magic_glob \
15460 want_nocaseglob \
15461 DLLTOOL \
15462 sharedlib_from_linklib_cmd \
15463 AR \
15464 AR_FLAGS \
15465 archiver_list_spec \
15466 STRIP \
15467 RANLIB \
15468 CC \
15469 CFLAGS \
15470 compiler \
15471 lt_cv_sys_global_symbol_pipe \
15472 lt_cv_sys_global_symbol_to_cdecl \
15473 lt_cv_sys_global_symbol_to_c_name_address \
15474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15475 nm_file_list_spec \
15476 lt_prog_compiler_no_builtin_flag \
15477 lt_prog_compiler_pic \
15478 lt_prog_compiler_wl \
15479 lt_prog_compiler_static \
15480 lt_cv_prog_compiler_c_o \
15481 need_locks \
15482 MANIFEST_TOOL \
15483 DSYMUTIL \
15484 NMEDIT \
15485 LIPO \
15486 OTOOL \
15487 OTOOL64 \
15488 shrext_cmds \
15489 export_dynamic_flag_spec \
15490 whole_archive_flag_spec \
15491 compiler_needs_object \
15492 with_gnu_ld \
15493 allow_undefined_flag \
15494 no_undefined_flag \
15495 hardcode_libdir_flag_spec \
15496 hardcode_libdir_separator \
15497 exclude_expsyms \
15498 include_expsyms \
15499 file_list_spec \
15500 variables_saved_for_relink \
15501 libname_spec \
15502 library_names_spec \
15503 soname_spec \
15504 install_override_mode \
15505 finish_eval \
15506 old_striplib \
15507 striplib; do
15508 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15509 *[\\\\\\\`\\"\\\$]*)
15510 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15511 ;;
15512 *)
15513 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15514 ;;
15515 esac
15516 done
15517
15518 # Double-quote double-evaled strings.
15519 for var in reload_cmds \
15520 old_postinstall_cmds \
15521 old_postuninstall_cmds \
15522 old_archive_cmds \
15523 extract_expsyms_cmds \
15524 old_archive_from_new_cmds \
15525 old_archive_from_expsyms_cmds \
15526 archive_cmds \
15527 archive_expsym_cmds \
15528 module_cmds \
15529 module_expsym_cmds \
15530 export_symbols_cmds \
15531 prelink_cmds \
15532 postlink_cmds \
15533 postinstall_cmds \
15534 postuninstall_cmds \
15535 finish_cmds \
15536 sys_lib_search_path_spec \
15537 sys_lib_dlsearch_path_spec; do
15538 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15539 *[\\\\\\\`\\"\\\$]*)
15540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15541 ;;
15542 *)
15543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15544 ;;
15545 esac
15546 done
15547
15548 ac_aux_dir='$ac_aux_dir'
15549 xsi_shell='$xsi_shell'
15550 lt_shell_append='$lt_shell_append'
15551
15552 # See if we are running on zsh, and set the options which allow our
15553 # commands through without removal of \ escapes INIT.
15554 if test -n "\${ZSH_VERSION+set}" ; then
15555 setopt NO_GLOB_SUBST
15556 fi
15557
15558
15559 PACKAGE='$PACKAGE'
15560 VERSION='$VERSION'
15561 TIMESTAMP='$TIMESTAMP'
15562 RM='$RM'
15563 ofile='$ofile'
15564
15565
15566
15567
15568 _ACEOF
15569
15570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571
15572 # Handling of arguments.
15573 for ac_config_target in $ac_config_targets
15574 do
15575 case $ac_config_target in
15576 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15577 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15578 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15579 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15580 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15581 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15582 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15583 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15584 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15585 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15586 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15587 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15588 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15589 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15590 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15591 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15592
15593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15594 esac
15595 done
15596
15597
15598 # If the user did not use the arguments to specify the items to instantiate,
15599 # then the envvar interface is used. Set only those that are not.
15600 # We use the long form for the default assignment because of an extremely
15601 # bizarre bug on SunOS 4.1.3.
15602 if $ac_need_defaults; then
15603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15606 fi
15607
15608 # Have a temporary directory for convenience. Make it in the build tree
15609 # simply because there is no reason against having it here, and in addition,
15610 # creating and moving files from /tmp can sometimes cause problems.
15611 # Hook for its removal unless debugging.
15612 # Note that there is a small window in which the directory will not be cleaned:
15613 # after its creation but before its name has been assigned to `$tmp'.
15614 $debug ||
15615 {
15616 tmp= ac_tmp=
15617 trap 'exit_status=$?
15618 : "${ac_tmp:=$tmp}"
15619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15620 ' 0
15621 trap 'as_fn_exit 1' 1 2 13 15
15622 }
15623 # Create a (secure) tmp directory for tmp files.
15624
15625 {
15626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15627 test -d "$tmp"
15628 } ||
15629 {
15630 tmp=./conf$$-$RANDOM
15631 (umask 077 && mkdir "$tmp")
15632 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15633 ac_tmp=$tmp
15634
15635 # Set up the scripts for CONFIG_FILES section.
15636 # No need to generate them if there are no CONFIG_FILES.
15637 # This happens for instance with `./config.status config.h'.
15638 if test -n "$CONFIG_FILES"; then
15639
15640
15641 ac_cr=`echo X | tr X '\015'`
15642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15643 # But we know of no other shell where ac_cr would be empty at this
15644 # point, so we can use a bashism as a fallback.
15645 if test "x$ac_cr" = x; then
15646 eval ac_cr=\$\'\\r\'
15647 fi
15648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15650 ac_cs_awk_cr='\\r'
15651 else
15652 ac_cs_awk_cr=$ac_cr
15653 fi
15654
15655 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15656 _ACEOF
15657
15658
15659 {
15660 echo "cat >conf$$subs.awk <<_ACEOF" &&
15661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15662 echo "_ACEOF"
15663 } >conf$$subs.sh ||
15664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15666 ac_delim='%!_!# '
15667 for ac_last_try in false false false false false :; do
15668 . ./conf$$subs.sh ||
15669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15670
15671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15672 if test $ac_delim_n = $ac_delim_num; then
15673 break
15674 elif $ac_last_try; then
15675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15676 else
15677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15678 fi
15679 done
15680 rm -f conf$$subs.sh
15681
15682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15683 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15684 _ACEOF
15685 sed -n '
15686 h
15687 s/^/S["/; s/!.*/"]=/
15688 p
15689 g
15690 s/^[^!]*!//
15691 :repl
15692 t repl
15693 s/'"$ac_delim"'$//
15694 t delim
15695 :nl
15696 h
15697 s/\(.\{148\}\)..*/\1/
15698 t more1
15699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15700 p
15701 n
15702 b repl
15703 :more1
15704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15705 p
15706 g
15707 s/.\{148\}//
15708 t nl
15709 :delim
15710 h
15711 s/\(.\{148\}\)..*/\1/
15712 t more2
15713 s/["\\]/\\&/g; s/^/"/; s/$/"/
15714 p
15715 b
15716 :more2
15717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15718 p
15719 g
15720 s/.\{148\}//
15721 t delim
15722 ' <conf$$subs.awk | sed '
15723 /^[^""]/{
15724 N
15725 s/\n//
15726 }
15727 ' >>$CONFIG_STATUS || ac_write_fail=1
15728 rm -f conf$$subs.awk
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 _ACAWK
15731 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15732 for (key in S) S_is_set[key] = 1
15733 FS = ""
15734
15735 }
15736 {
15737 line = $ 0
15738 nfields = split(line, field, "@")
15739 substed = 0
15740 len = length(field[1])
15741 for (i = 2; i < nfields; i++) {
15742 key = field[i]
15743 keylen = length(key)
15744 if (S_is_set[key]) {
15745 value = S[key]
15746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15747 len += length(value) + length(field[++i])
15748 substed = 1
15749 } else
15750 len += 1 + keylen
15751 }
15752
15753 print line
15754 }
15755
15756 _ACAWK
15757 _ACEOF
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15761 else
15762 cat
15763 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15765 _ACEOF
15766
15767 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15768 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15769 # trailing colons and then remove the whole line if VPATH becomes empty
15770 # (actually we leave an empty line to preserve line numbers).
15771 if test "x$srcdir" = x.; then
15772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15773 h
15774 s///
15775 s/^/:/
15776 s/[ ]*$/:/
15777 s/:\$(srcdir):/:/g
15778 s/:\${srcdir}:/:/g
15779 s/:@srcdir@:/:/g
15780 s/^:*//
15781 s/:*$//
15782 x
15783 s/\(=[ ]*\).*/\1/
15784 G
15785 s/\n//
15786 s/^[^=]*=[ ]*$//
15787 }'
15788 fi
15789
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 fi # test -n "$CONFIG_FILES"
15792
15793 # Set up the scripts for CONFIG_HEADERS section.
15794 # No need to generate them if there are no CONFIG_HEADERS.
15795 # This happens for instance with `./config.status Makefile'.
15796 if test -n "$CONFIG_HEADERS"; then
15797 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15798 BEGIN {
15799 _ACEOF
15800
15801 # Transform confdefs.h into an awk script `defines.awk', embedded as
15802 # here-document in config.status, that substitutes the proper values into
15803 # config.h.in to produce config.h.
15804
15805 # Create a delimiter string that does not exist in confdefs.h, to ease
15806 # handling of long lines.
15807 ac_delim='%!_!# '
15808 for ac_last_try in false false :; do
15809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15810 if test -z "$ac_tt"; then
15811 break
15812 elif $ac_last_try; then
15813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15814 else
15815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15816 fi
15817 done
15818
15819 # For the awk script, D is an array of macro values keyed by name,
15820 # likewise P contains macro parameters if any. Preserve backslash
15821 # newline sequences.
15822
15823 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15824 sed -n '
15825 s/.\{148\}/&'"$ac_delim"'/g
15826 t rset
15827 :rset
15828 s/^[ ]*#[ ]*define[ ][ ]*/ /
15829 t def
15830 d
15831 :def
15832 s/\\$//
15833 t bsnl
15834 s/["\\]/\\&/g
15835 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15836 D["\1"]=" \3"/p
15837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15838 d
15839 :bsnl
15840 s/["\\]/\\&/g
15841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15842 D["\1"]=" \3\\\\\\n"\\/p
15843 t cont
15844 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15845 t cont
15846 d
15847 :cont
15848 n
15849 s/.\{148\}/&'"$ac_delim"'/g
15850 t clear
15851 :clear
15852 s/\\$//
15853 t bsnlc
15854 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15855 d
15856 :bsnlc
15857 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15858 b cont
15859 ' <confdefs.h | sed '
15860 s/'"$ac_delim"'/"\\\
15861 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15862
15863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15864 for (key in D) D_is_set[key] = 1
15865 FS = ""
15866 }
15867 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15868 line = \$ 0
15869 split(line, arg, " ")
15870 if (arg[1] == "#") {
15871 defundef = arg[2]
15872 mac1 = arg[3]
15873 } else {
15874 defundef = substr(arg[1], 2)
15875 mac1 = arg[2]
15876 }
15877 split(mac1, mac2, "(") #)
15878 macro = mac2[1]
15879 prefix = substr(line, 1, index(line, defundef) - 1)
15880 if (D_is_set[macro]) {
15881 # Preserve the white space surrounding the "#".
15882 print prefix "define", macro P[macro] D[macro]
15883 next
15884 } else {
15885 # Replace #undef with comments. This is necessary, for example,
15886 # in the case of _POSIX_SOURCE, which is predefined and required
15887 # on some systems where configure will not decide to define it.
15888 if (defundef == "undef") {
15889 print "/*", prefix defundef, macro, "*/"
15890 next
15891 }
15892 }
15893 }
15894 { print }
15895 _ACAWK
15896 _ACEOF
15897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15899 fi # test -n "$CONFIG_HEADERS"
15900
15901
15902 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15903 shift
15904 for ac_tag
15905 do
15906 case $ac_tag in
15907 :[FHLC]) ac_mode=$ac_tag; continue;;
15908 esac
15909 case $ac_mode$ac_tag in
15910 :[FHL]*:*);;
15911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15912 :[FH]-) ac_tag=-:-;;
15913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15914 esac
15915 ac_save_IFS=$IFS
15916 IFS=:
15917 set x $ac_tag
15918 IFS=$ac_save_IFS
15919 shift
15920 ac_file=$1
15921 shift
15922
15923 case $ac_mode in
15924 :L) ac_source=$1;;
15925 :[FH])
15926 ac_file_inputs=
15927 for ac_f
15928 do
15929 case $ac_f in
15930 -) ac_f="$ac_tmp/stdin";;
15931 *) # Look for the file first in the build tree, then in the source tree
15932 # (if the path is not absolute). The absolute path cannot be DOS-style,
15933 # because $ac_f cannot contain `:'.
15934 test -f "$ac_f" ||
15935 case $ac_f in
15936 [\\/$]*) false;;
15937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15938 esac ||
15939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15940 esac
15941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15942 as_fn_append ac_file_inputs " '$ac_f'"
15943 done
15944
15945 # Let's still pretend it is `configure' which instantiates (i.e., don't
15946 # use $as_me), people would be surprised to read:
15947 # /* config.h. Generated by config.status. */
15948 configure_input='Generated from '`
15949 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15950 `' by configure.'
15951 if test x"$ac_file" != x-; then
15952 configure_input="$ac_file. $configure_input"
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15954 $as_echo "$as_me: creating $ac_file" >&6;}
15955 fi
15956 # Neutralize special characters interpreted by sed in replacement strings.
15957 case $configure_input in #(
15958 *\&* | *\|* | *\\* )
15959 ac_sed_conf_input=`$as_echo "$configure_input" |
15960 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15961 *) ac_sed_conf_input=$configure_input;;
15962 esac
15963
15964 case $ac_tag in
15965 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15967 esac
15968 ;;
15969 esac
15970
15971 ac_dir=`$as_dirname -- "$ac_file" ||
15972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15973 X"$ac_file" : 'X\(//\)[^/]' \| \
15974 X"$ac_file" : 'X\(//\)$' \| \
15975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15976 $as_echo X"$ac_file" |
15977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15978 s//\1/
15979 q
15980 }
15981 /^X\(\/\/\)[^/].*/{
15982 s//\1/
15983 q
15984 }
15985 /^X\(\/\/\)$/{
15986 s//\1/
15987 q
15988 }
15989 /^X\(\/\).*/{
15990 s//\1/
15991 q
15992 }
15993 s/.*/./; q'`
15994 as_dir="$ac_dir"; as_fn_mkdir_p
15995 ac_builddir=.
15996
15997 case "$ac_dir" in
15998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15999 *)
16000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16001 # A ".." for each directory in $ac_dir_suffix.
16002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16003 case $ac_top_builddir_sub in
16004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16006 esac ;;
16007 esac
16008 ac_abs_top_builddir=$ac_pwd
16009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16010 # for backward compatibility:
16011 ac_top_builddir=$ac_top_build_prefix
16012
16013 case $srcdir in
16014 .) # We are building in place.
16015 ac_srcdir=.
16016 ac_top_srcdir=$ac_top_builddir_sub
16017 ac_abs_top_srcdir=$ac_pwd ;;
16018 [\\/]* | ?:[\\/]* ) # Absolute name.
16019 ac_srcdir=$srcdir$ac_dir_suffix;
16020 ac_top_srcdir=$srcdir
16021 ac_abs_top_srcdir=$srcdir ;;
16022 *) # Relative name.
16023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16024 ac_top_srcdir=$ac_top_build_prefix$srcdir
16025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16026 esac
16027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16028
16029
16030 case $ac_mode in
16031 :F)
16032 #
16033 # CONFIG_FILE
16034 #
16035
16036 case $INSTALL in
16037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16039 esac
16040 ac_MKDIR_P=$MKDIR_P
16041 case $MKDIR_P in
16042 [\\/$]* | ?:[\\/]* ) ;;
16043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16044 esac
16045 _ACEOF
16046
16047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16048 # If the template does not know about datarootdir, expand it.
16049 # FIXME: This hack should be removed a few years after 2.60.
16050 ac_datarootdir_hack=; ac_datarootdir_seen=
16051 ac_sed_dataroot='
16052 /datarootdir/ {
16053 p
16054 q
16055 }
16056 /@datadir@/p
16057 /@docdir@/p
16058 /@infodir@/p
16059 /@localedir@/p
16060 /@mandir@/p'
16061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16062 *datarootdir*) ac_datarootdir_seen=yes;;
16063 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16065 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16066 _ACEOF
16067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16068 ac_datarootdir_hack='
16069 s&@datadir@&$datadir&g
16070 s&@docdir@&$docdir&g
16071 s&@infodir@&$infodir&g
16072 s&@localedir@&$localedir&g
16073 s&@mandir@&$mandir&g
16074 s&\\\${datarootdir}&$datarootdir&g' ;;
16075 esac
16076 _ACEOF
16077
16078 # Neutralize VPATH when `$srcdir' = `.'.
16079 # Shell code in configure.ac might set extrasub.
16080 # FIXME: do we really want to maintain this feature?
16081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16082 ac_sed_extra="$ac_vpsub
16083 $extrasub
16084 _ACEOF
16085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16086 :t
16087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16088 s|@configure_input@|$ac_sed_conf_input|;t t
16089 s&@top_builddir@&$ac_top_builddir_sub&;t t
16090 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16091 s&@srcdir@&$ac_srcdir&;t t
16092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16093 s&@top_srcdir@&$ac_top_srcdir&;t t
16094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16095 s&@builddir@&$ac_builddir&;t t
16096 s&@abs_builddir@&$ac_abs_builddir&;t t
16097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16098 s&@INSTALL@&$ac_INSTALL&;t t
16099 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16100 $ac_datarootdir_hack
16101 "
16102 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16104
16105 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16108 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16110 which seems to be undefined. Please make sure it is defined" >&5
16111 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16112 which seems to be undefined. Please make sure it is defined" >&2;}
16113
16114 rm -f "$ac_tmp/stdin"
16115 case $ac_file in
16116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16118 esac \
16119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16120 ;;
16121 :H)
16122 #
16123 # CONFIG_HEADER
16124 #
16125 if test x"$ac_file" != x-; then
16126 {
16127 $as_echo "/* $configure_input */" \
16128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16129 } >"$ac_tmp/config.h" \
16130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16133 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16134 else
16135 rm -f "$ac_file"
16136 mv "$ac_tmp/config.h" "$ac_file" \
16137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16138 fi
16139 else
16140 $as_echo "/* $configure_input */" \
16141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16142 || as_fn_error $? "could not create -" "$LINENO" 5
16143 fi
16144 # Compute "$ac_file"'s index in $config_headers.
16145 _am_arg="$ac_file"
16146 _am_stamp_count=1
16147 for _am_header in $config_headers :; do
16148 case $_am_header in
16149 $_am_arg | $_am_arg:* )
16150 break ;;
16151 * )
16152 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16153 esac
16154 done
16155 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16156 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16157 X"$_am_arg" : 'X\(//\)[^/]' \| \
16158 X"$_am_arg" : 'X\(//\)$' \| \
16159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16160 $as_echo X"$_am_arg" |
16161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\/\)[^/].*/{
16166 s//\1/
16167 q
16168 }
16169 /^X\(\/\/\)$/{
16170 s//\1/
16171 q
16172 }
16173 /^X\(\/\).*/{
16174 s//\1/
16175 q
16176 }
16177 s/.*/./; q'`/stamp-h$_am_stamp_count
16178 ;;
16179
16180 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16181 $as_echo "$as_me: executing $ac_file commands" >&6;}
16182 ;;
16183 esac
16184
16185
16186 case $ac_file$ac_mode in
16187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16188 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16189 # are listed without --file. Let's play safe and only enable the eval
16190 # if we detect the quoting.
16191 case $CONFIG_FILES in
16192 *\'*) eval set x "$CONFIG_FILES" ;;
16193 *) set x $CONFIG_FILES ;;
16194 esac
16195 shift
16196 for mf
16197 do
16198 # Strip MF so we end up with the name of the file.
16199 mf=`echo "$mf" | sed -e 's/:.*$//'`
16200 # Check whether this is an Automake generated Makefile or not.
16201 # We used to match only the files named `Makefile.in', but
16202 # some people rename them; so instead we look at the file content.
16203 # Grep'ing the first line is not enough: some people post-process
16204 # each Makefile.in and add a new line on top of each file to say so.
16205 # Grep'ing the whole file is not good either: AIX grep has a line
16206 # limit of 2048, but all sed's we know have understand at least 4000.
16207 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16208 dirpart=`$as_dirname -- "$mf" ||
16209 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16210 X"$mf" : 'X\(//\)[^/]' \| \
16211 X"$mf" : 'X\(//\)$' \| \
16212 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16213 $as_echo X"$mf" |
16214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16215 s//\1/
16216 q
16217 }
16218 /^X\(\/\/\)[^/].*/{
16219 s//\1/
16220 q
16221 }
16222 /^X\(\/\/\)$/{
16223 s//\1/
16224 q
16225 }
16226 /^X\(\/\).*/{
16227 s//\1/
16228 q
16229 }
16230 s/.*/./; q'`
16231 else
16232 continue
16233 fi
16234 # Extract the definition of DEPDIR, am__include, and am__quote
16235 # from the Makefile without running `make'.
16236 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16237 test -z "$DEPDIR" && continue
16238 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16239 test -z "am__include" && continue
16240 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16241 # When using ansi2knr, U may be empty or an underscore; expand it
16242 U=`sed -n 's/^U = //p' < "$mf"`
16243 # Find all dependency output files, they are included files with
16244 # $(DEPDIR) in their names. We invoke sed twice because it is the
16245 # simplest approach to changing $(DEPDIR) to its actual value in the
16246 # expansion.
16247 for file in `sed -n "
16248 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16249 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16250 # Make sure the directory exists.
16251 test -f "$dirpart/$file" && continue
16252 fdir=`$as_dirname -- "$file" ||
16253 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16254 X"$file" : 'X\(//\)[^/]' \| \
16255 X"$file" : 'X\(//\)$' \| \
16256 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16257 $as_echo X"$file" |
16258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16259 s//\1/
16260 q
16261 }
16262 /^X\(\/\/\)[^/].*/{
16263 s//\1/
16264 q
16265 }
16266 /^X\(\/\/\)$/{
16267 s//\1/
16268 q
16269 }
16270 /^X\(\/\).*/{
16271 s//\1/
16272 q
16273 }
16274 s/.*/./; q'`
16275 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16276 # echo "creating $dirpart/$file"
16277 echo '# dummy' > "$dirpart/$file"
16278 done
16279 done
16280 }
16281 ;;
16282 "libtool":C)
16283
16284 # See if we are running on zsh, and set the options which allow our
16285 # commands through without removal of \ escapes.
16286 if test -n "${ZSH_VERSION+set}" ; then
16287 setopt NO_GLOB_SUBST
16288 fi
16289
16290 cfgfile="${ofile}T"
16291 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16292 $RM "$cfgfile"
16293
16294 cat <<_LT_EOF >> "$cfgfile"
16295 #! $SHELL
16296
16297 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16298 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16300 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16301 #
16302 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16303 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16304 # Foundation, Inc.
16305 # Written by Gordon Matzigkeit, 1996
16306 #
16307 # This file is part of GNU Libtool.
16308 #
16309 # GNU Libtool is free software; you can redistribute it and/or
16310 # modify it under the terms of the GNU General Public License as
16311 # published by the Free Software Foundation; either version 2 of
16312 # the License, or (at your option) any later version.
16313 #
16314 # As a special exception to the GNU General Public License,
16315 # if you distribute this file as part of a program or library that
16316 # is built using GNU Libtool, you may include this file under the
16317 # same distribution terms that you use for the rest of that program.
16318 #
16319 # GNU Libtool is distributed in the hope that it will be useful,
16320 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16321 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16322 # GNU General Public License for more details.
16323 #
16324 # You should have received a copy of the GNU General Public License
16325 # along with GNU Libtool; see the file COPYING. If not, a copy
16326 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16327 # obtained by writing to the Free Software Foundation, Inc.,
16328 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16329
16330
16331 # The names of the tagged configurations supported by this script.
16332 available_tags=""
16333
16334 # ### BEGIN LIBTOOL CONFIG
16335
16336 # Which release of libtool.m4 was used?
16337 macro_version=$macro_version
16338 macro_revision=$macro_revision
16339
16340 # Whether or not to build static libraries.
16341 build_old_libs=$enable_static
16342
16343 # Whether or not to build shared libraries.
16344 build_libtool_libs=$enable_shared
16345
16346 # What type of objects to build.
16347 pic_mode=$pic_mode
16348
16349 # Whether or not to optimize for fast installation.
16350 fast_install=$enable_fast_install
16351
16352 # Shell to use when invoking shell scripts.
16353 SHELL=$lt_SHELL
16354
16355 # An echo program that protects backslashes.
16356 ECHO=$lt_ECHO
16357
16358 # The PATH separator for the build system.
16359 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16360
16361 # The host system.
16362 host_alias=$host_alias
16363 host=$host
16364 host_os=$host_os
16365
16366 # The build system.
16367 build_alias=$build_alias
16368 build=$build
16369 build_os=$build_os
16370
16371 # A sed program that does not truncate output.
16372 SED=$lt_SED
16373
16374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16375 Xsed="\$SED -e 1s/^X//"
16376
16377 # A grep program that handles long lines.
16378 GREP=$lt_GREP
16379
16380 # An ERE matcher.
16381 EGREP=$lt_EGREP
16382
16383 # A literal string matcher.
16384 FGREP=$lt_FGREP
16385
16386 # A BSD- or MS-compatible name lister.
16387 NM=$lt_NM
16388
16389 # Whether we need soft or hard links.
16390 LN_S=$lt_LN_S
16391
16392 # What is the maximum length of a command?
16393 max_cmd_len=$max_cmd_len
16394
16395 # Object file suffix (normally "o").
16396 objext=$ac_objext
16397
16398 # Executable file suffix (normally "").
16399 exeext=$exeext
16400
16401 # whether the shell understands "unset".
16402 lt_unset=$lt_unset
16403
16404 # turn spaces into newlines.
16405 SP2NL=$lt_lt_SP2NL
16406
16407 # turn newlines into spaces.
16408 NL2SP=$lt_lt_NL2SP
16409
16410 # convert \$build file names to \$host format.
16411 to_host_file_cmd=$lt_cv_to_host_file_cmd
16412
16413 # convert \$build files to toolchain format.
16414 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16415
16416 # An object symbol dumper.
16417 OBJDUMP=$lt_OBJDUMP
16418
16419 # Method to check whether dependent libraries are shared objects.
16420 deplibs_check_method=$lt_deplibs_check_method
16421
16422 # Command to use when deplibs_check_method = "file_magic".
16423 file_magic_cmd=$lt_file_magic_cmd
16424
16425 # How to find potential files when deplibs_check_method = "file_magic".
16426 file_magic_glob=$lt_file_magic_glob
16427
16428 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16429 want_nocaseglob=$lt_want_nocaseglob
16430
16431 # DLL creation program.
16432 DLLTOOL=$lt_DLLTOOL
16433
16434 # Command to associate shared and link libraries.
16435 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16436
16437 # The archiver.
16438 AR=$lt_AR
16439
16440 # Flags to create an archive.
16441 AR_FLAGS=$lt_AR_FLAGS
16442
16443 # How to feed a file listing to the archiver.
16444 archiver_list_spec=$lt_archiver_list_spec
16445
16446 # A symbol stripping program.
16447 STRIP=$lt_STRIP
16448
16449 # Commands used to install an old-style archive.
16450 RANLIB=$lt_RANLIB
16451 old_postinstall_cmds=$lt_old_postinstall_cmds
16452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16453
16454 # Whether to use a lock for old archive extraction.
16455 lock_old_archive_extraction=$lock_old_archive_extraction
16456
16457 # A C compiler.
16458 LTCC=$lt_CC
16459
16460 # LTCC compiler flags.
16461 LTCFLAGS=$lt_CFLAGS
16462
16463 # Take the output of nm and produce a listing of raw symbols and C names.
16464 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16465
16466 # Transform the output of nm in a proper C declaration.
16467 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16468
16469 # Transform the output of nm in a C name address pair.
16470 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16471
16472 # Transform the output of nm in a C name address pair when lib prefix is needed.
16473 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16474
16475 # Specify filename containing input files for \$NM.
16476 nm_file_list_spec=$lt_nm_file_list_spec
16477
16478 # The root where to search for dependent libraries,and in which our libraries should be installed.
16479 lt_sysroot=$lt_sysroot
16480
16481 # The name of the directory that contains temporary libtool files.
16482 objdir=$objdir
16483
16484 # Used to examine libraries when file_magic_cmd begins with "file".
16485 MAGIC_CMD=$MAGIC_CMD
16486
16487 # Must we lock files when doing compilation?
16488 need_locks=$lt_need_locks
16489
16490 # Manifest tool.
16491 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16492
16493 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16494 DSYMUTIL=$lt_DSYMUTIL
16495
16496 # Tool to change global to local symbols on Mac OS X.
16497 NMEDIT=$lt_NMEDIT
16498
16499 # Tool to manipulate fat objects and archives on Mac OS X.
16500 LIPO=$lt_LIPO
16501
16502 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16503 OTOOL=$lt_OTOOL
16504
16505 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16506 OTOOL64=$lt_OTOOL64
16507
16508 # Old archive suffix (normally "a").
16509 libext=$libext
16510
16511 # Shared library suffix (normally ".so").
16512 shrext_cmds=$lt_shrext_cmds
16513
16514 # The commands to extract the exported symbol list from a shared archive.
16515 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16516
16517 # Variables whose values should be saved in libtool wrapper scripts and
16518 # restored at link time.
16519 variables_saved_for_relink=$lt_variables_saved_for_relink
16520
16521 # Do we need the "lib" prefix for modules?
16522 need_lib_prefix=$need_lib_prefix
16523
16524 # Do we need a version for libraries?
16525 need_version=$need_version
16526
16527 # Library versioning type.
16528 version_type=$version_type
16529
16530 # Shared library runtime path variable.
16531 runpath_var=$runpath_var
16532
16533 # Shared library path variable.
16534 shlibpath_var=$shlibpath_var
16535
16536 # Is shlibpath searched before the hard-coded library search path?
16537 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16538
16539 # Format of library name prefix.
16540 libname_spec=$lt_libname_spec
16541
16542 # List of archive names. First name is the real one, the rest are links.
16543 # The last name is the one that the linker finds with -lNAME
16544 library_names_spec=$lt_library_names_spec
16545
16546 # The coded name of the library, if different from the real name.
16547 soname_spec=$lt_soname_spec
16548
16549 # Permission mode override for installation of shared libraries.
16550 install_override_mode=$lt_install_override_mode
16551
16552 # Command to use after installation of a shared archive.
16553 postinstall_cmds=$lt_postinstall_cmds
16554
16555 # Command to use after uninstallation of a shared archive.
16556 postuninstall_cmds=$lt_postuninstall_cmds
16557
16558 # Commands used to finish a libtool library installation in a directory.
16559 finish_cmds=$lt_finish_cmds
16560
16561 # As "finish_cmds", except a single script fragment to be evaled but
16562 # not shown.
16563 finish_eval=$lt_finish_eval
16564
16565 # Whether we should hardcode library paths into libraries.
16566 hardcode_into_libs=$hardcode_into_libs
16567
16568 # Compile-time system search path for libraries.
16569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16570
16571 # Run-time system search path for libraries.
16572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16573
16574 # Whether dlopen is supported.
16575 dlopen_support=$enable_dlopen
16576
16577 # Whether dlopen of programs is supported.
16578 dlopen_self=$enable_dlopen_self
16579
16580 # Whether dlopen of statically linked programs is supported.
16581 dlopen_self_static=$enable_dlopen_self_static
16582
16583 # Commands to strip libraries.
16584 old_striplib=$lt_old_striplib
16585 striplib=$lt_striplib
16586
16587
16588 # The linker used to build libraries.
16589 LD=$lt_LD
16590
16591 # How to create reloadable object files.
16592 reload_flag=$lt_reload_flag
16593 reload_cmds=$lt_reload_cmds
16594
16595 # Commands used to build an old-style archive.
16596 old_archive_cmds=$lt_old_archive_cmds
16597
16598 # A language specific compiler.
16599 CC=$lt_compiler
16600
16601 # Is the compiler the GNU compiler?
16602 with_gcc=$GCC
16603
16604 # Compiler flag to turn off builtin functions.
16605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16606
16607 # Additional compiler flags for building library objects.
16608 pic_flag=$lt_lt_prog_compiler_pic
16609
16610 # How to pass a linker flag through the compiler.
16611 wl=$lt_lt_prog_compiler_wl
16612
16613 # Compiler flag to prevent dynamic linking.
16614 link_static_flag=$lt_lt_prog_compiler_static
16615
16616 # Does compiler simultaneously support -c and -o options?
16617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16618
16619 # Whether or not to add -lc for building shared libraries.
16620 build_libtool_need_lc=$archive_cmds_need_lc
16621
16622 # Whether or not to disallow shared libs when runtime libs are static.
16623 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16624
16625 # Compiler flag to allow reflexive dlopens.
16626 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16627
16628 # Compiler flag to generate shared objects directly from archives.
16629 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16630
16631 # Whether the compiler copes with passing no objects directly.
16632 compiler_needs_object=$lt_compiler_needs_object
16633
16634 # Create an old-style archive from a shared archive.
16635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16636
16637 # Create a temporary old-style archive to link instead of a shared archive.
16638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16639
16640 # Commands used to build a shared archive.
16641 archive_cmds=$lt_archive_cmds
16642 archive_expsym_cmds=$lt_archive_expsym_cmds
16643
16644 # Commands used to build a loadable module if different from building
16645 # a shared archive.
16646 module_cmds=$lt_module_cmds
16647 module_expsym_cmds=$lt_module_expsym_cmds
16648
16649 # Whether we are building with GNU ld or not.
16650 with_gnu_ld=$lt_with_gnu_ld
16651
16652 # Flag that allows shared libraries with undefined symbols to be built.
16653 allow_undefined_flag=$lt_allow_undefined_flag
16654
16655 # Flag that enforces no undefined symbols.
16656 no_undefined_flag=$lt_no_undefined_flag
16657
16658 # Flag to hardcode \$libdir into a binary during linking.
16659 # This must work even if \$libdir does not exist
16660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16661
16662 # Whether we need a single "-rpath" flag with a separated argument.
16663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16664
16665 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16666 # DIR into the resulting binary.
16667 hardcode_direct=$hardcode_direct
16668
16669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16670 # DIR into the resulting binary and the resulting library dependency is
16671 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16672 # library is relocated.
16673 hardcode_direct_absolute=$hardcode_direct_absolute
16674
16675 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16676 # into the resulting binary.
16677 hardcode_minus_L=$hardcode_minus_L
16678
16679 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16680 # into the resulting binary.
16681 hardcode_shlibpath_var=$hardcode_shlibpath_var
16682
16683 # Set to "yes" if building a shared library automatically hardcodes DIR
16684 # into the library and all subsequent libraries and executables linked
16685 # against it.
16686 hardcode_automatic=$hardcode_automatic
16687
16688 # Set to yes if linker adds runtime paths of dependent libraries
16689 # to runtime path list.
16690 inherit_rpath=$inherit_rpath
16691
16692 # Whether libtool must link a program against all its dependency libraries.
16693 link_all_deplibs=$link_all_deplibs
16694
16695 # Set to "yes" if exported symbols are required.
16696 always_export_symbols=$always_export_symbols
16697
16698 # The commands to list exported symbols.
16699 export_symbols_cmds=$lt_export_symbols_cmds
16700
16701 # Symbols that should not be listed in the preloaded symbols.
16702 exclude_expsyms=$lt_exclude_expsyms
16703
16704 # Symbols that must always be exported.
16705 include_expsyms=$lt_include_expsyms
16706
16707 # Commands necessary for linking programs (against libraries) with templates.
16708 prelink_cmds=$lt_prelink_cmds
16709
16710 # Commands necessary for finishing linking programs.
16711 postlink_cmds=$lt_postlink_cmds
16712
16713 # Specify filename containing input files.
16714 file_list_spec=$lt_file_list_spec
16715
16716 # How to hardcode a shared library path into an executable.
16717 hardcode_action=$hardcode_action
16718
16719 # ### END LIBTOOL CONFIG
16720
16721 _LT_EOF
16722
16723 case $host_os in
16724 aix3*)
16725 cat <<\_LT_EOF >> "$cfgfile"
16726 # AIX sometimes has problems with the GCC collect2 program. For some
16727 # reason, if we set the COLLECT_NAMES environment variable, the problems
16728 # vanish in a puff of smoke.
16729 if test "X${COLLECT_NAMES+set}" != Xset; then
16730 COLLECT_NAMES=
16731 export COLLECT_NAMES
16732 fi
16733 _LT_EOF
16734 ;;
16735 esac
16736
16737
16738 ltmain="$ac_aux_dir/ltmain.sh"
16739
16740
16741 # We use sed instead of cat because bash on DJGPP gets confused if
16742 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16743 # text mode, it properly converts lines to CR/LF. This bash problem
16744 # is reportedly fixed, but why not run on old versions too?
16745 sed '$q' "$ltmain" >> "$cfgfile" \
16746 || (rm -f "$cfgfile"; exit 1)
16747
16748 if test x"$xsi_shell" = xyes; then
16749 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16750 func_dirname ()\
16751 {\
16752 \ case ${1} in\
16753 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16754 \ * ) func_dirname_result="${3}" ;;\
16755 \ esac\
16756 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16757 && mv -f "$cfgfile.tmp" "$cfgfile" \
16758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16759 test 0 -eq $? || _lt_function_replace_fail=:
16760
16761
16762 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16763 func_basename ()\
16764 {\
16765 \ func_basename_result="${1##*/}"\
16766 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16767 && mv -f "$cfgfile.tmp" "$cfgfile" \
16768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16769 test 0 -eq $? || _lt_function_replace_fail=:
16770
16771
16772 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16773 func_dirname_and_basename ()\
16774 {\
16775 \ case ${1} in\
16776 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16777 \ * ) func_dirname_result="${3}" ;;\
16778 \ esac\
16779 \ func_basename_result="${1##*/}"\
16780 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16781 && mv -f "$cfgfile.tmp" "$cfgfile" \
16782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16783 test 0 -eq $? || _lt_function_replace_fail=:
16784
16785
16786 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16787 func_stripname ()\
16788 {\
16789 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16790 \ # positional parameters, so assign one to ordinary parameter first.\
16791 \ func_stripname_result=${3}\
16792 \ func_stripname_result=${func_stripname_result#"${1}"}\
16793 \ func_stripname_result=${func_stripname_result%"${2}"}\
16794 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16795 && mv -f "$cfgfile.tmp" "$cfgfile" \
16796 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16797 test 0 -eq $? || _lt_function_replace_fail=:
16798
16799
16800 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16801 func_split_long_opt ()\
16802 {\
16803 \ func_split_long_opt_name=${1%%=*}\
16804 \ func_split_long_opt_arg=${1#*=}\
16805 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16806 && mv -f "$cfgfile.tmp" "$cfgfile" \
16807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16808 test 0 -eq $? || _lt_function_replace_fail=:
16809
16810
16811 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16812 func_split_short_opt ()\
16813 {\
16814 \ func_split_short_opt_arg=${1#??}\
16815 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16816 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16817 && mv -f "$cfgfile.tmp" "$cfgfile" \
16818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16819 test 0 -eq $? || _lt_function_replace_fail=:
16820
16821
16822 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16823 func_lo2o ()\
16824 {\
16825 \ case ${1} in\
16826 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16827 \ *) func_lo2o_result=${1} ;;\
16828 \ esac\
16829 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16830 && mv -f "$cfgfile.tmp" "$cfgfile" \
16831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16832 test 0 -eq $? || _lt_function_replace_fail=:
16833
16834
16835 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16836 func_xform ()\
16837 {\
16838 func_xform_result=${1%.*}.lo\
16839 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16840 && mv -f "$cfgfile.tmp" "$cfgfile" \
16841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16842 test 0 -eq $? || _lt_function_replace_fail=:
16843
16844
16845 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16846 func_arith ()\
16847 {\
16848 func_arith_result=$(( $* ))\
16849 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16850 && mv -f "$cfgfile.tmp" "$cfgfile" \
16851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16852 test 0 -eq $? || _lt_function_replace_fail=:
16853
16854
16855 sed -e '/^func_len ()$/,/^} # func_len /c\
16856 func_len ()\
16857 {\
16858 func_len_result=${#1}\
16859 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16860 && mv -f "$cfgfile.tmp" "$cfgfile" \
16861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16862 test 0 -eq $? || _lt_function_replace_fail=:
16863
16864 fi
16865
16866 if test x"$lt_shell_append" = xyes; then
16867 sed -e '/^func_append ()$/,/^} # func_append /c\
16868 func_append ()\
16869 {\
16870 eval "${1}+=\\${2}"\
16871 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16872 && mv -f "$cfgfile.tmp" "$cfgfile" \
16873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16874 test 0 -eq $? || _lt_function_replace_fail=:
16875
16876
16877 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16878 func_append_quoted ()\
16879 {\
16880 \ func_quote_for_eval "${2}"\
16881 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16882 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16883 && mv -f "$cfgfile.tmp" "$cfgfile" \
16884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16885 test 0 -eq $? || _lt_function_replace_fail=:
16886
16887
16888 # Save a `func_append' function call where possible by direct use of '+='
16889 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16890 && mv -f "$cfgfile.tmp" "$cfgfile" \
16891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16892 test 0 -eq $? || _lt_function_replace_fail=:
16893 else
16894 # Save a `func_append' function call even when '+=' is not available
16895 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16896 && mv -f "$cfgfile.tmp" "$cfgfile" \
16897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16898 test 0 -eq $? || _lt_function_replace_fail=:
16899 fi
16900
16901 if test x"$_lt_function_replace_fail" = x":"; then
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16903 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16904 fi
16905
16906
16907 mv -f "$cfgfile" "$ofile" ||
16908 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16909 chmod +x "$ofile"
16910
16911 ;;
16912
16913 esac
16914 done # for ac_tag
16915
16916
16917 as_fn_exit 0
16918 _ACEOF
16919 ac_clean_files=$ac_clean_files_save
16920
16921 test $ac_write_fail = 0 ||
16922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16923
16924
16925 # configure is writing to config.log, and then calls config.status.
16926 # config.status does its own redirection, appending to config.log.
16927 # Unfortunately, on DOS this fails, as config.log is still kept open
16928 # by configure, so config.status won't be able to write to it; its
16929 # output is simply discarded. So we exec the FD to /dev/null,
16930 # effectively closing config.log, so it can be properly (re)opened and
16931 # appended to by config.status. When coming back to configure, we
16932 # need to make the FD available again.
16933 if test "$no_create" != yes; then
16934 ac_cs_success=:
16935 ac_config_status_args=
16936 test "$silent" = yes &&
16937 ac_config_status_args="$ac_config_status_args --quiet"
16938 exec 5>/dev/null
16939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16940 exec 5>>config.log
16941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16942 # would make configure fail if this is the last instruction.
16943 $ac_cs_success || as_fn_exit 1
16944 fi
16945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16948 fi
16949

Properties

Name Value
svn:executable *