ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1257
Committed: Sun Jan 15 06:28:46 2012 UTC (14 years, 8 months ago) by michael
Original Path: ircd-hybrid-8/configure
File size: 495228 byte(s)
Log Message:
- automake 1.11.2

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1245 2011-09-30 14:58:29Z 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 ENABLE_PCRE_FALSE
636 ENABLE_PCRE_TRUE
637 LTDLOPEN
638 LT_CONFIG_H
639 CONVENIENCE_LTDL_FALSE
640 CONVENIENCE_LTDL_TRUE
641 INSTALL_LTDL_FALSE
642 INSTALL_LTDL_TRUE
643 ARGZ_H
644 sys_symbol_underscore
645 LIBADD_DL
646 LT_DLPREOPEN
647 LIBADD_DLD_LINK
648 LIBADD_SHL_LOAD
649 LIBADD_DLOPEN
650 LT_DLLOADERS
651 INCLTDL
652 LTDLINCL
653 LTDLDEPS
654 LIBLTDL
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 EGREP
674 GREP
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 LIBTOOL
685 LEXLIB
686 LEX_OUTPUT_ROOT
687 LEX
688 YFLAGS
689 YACC
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 MAINT
708 MAINTAINER_MODE_FALSE
709 MAINTAINER_MODE_TRUE
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_maintainer_mode
775 enable_dependency_tracking
776 enable_static
777 enable_shared
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 with_included_ltdl
784 with_ltdl_include
785 with_ltdl_lib
786 enable_ltdl_install
787 with_zlib_path
788 enable_zlib
789 with_libpcre_path
790 enable_libpcre
791 enable_openssl
792 enable_assert
793 enable_small_net
794 enable_kqueue
795 enable_epoll
796 enable_devpoll
797 enable_rtsigio
798 enable_poll
799 enable_select
800 with_nicklen
801 with_topiclen
802 with_syslog_facility
803 enable_efnet
804 enable_halfops
805 enable_debugging
806 enable_warnings
807 enable_syslog
808 '
809 ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 LIBS
816 CPPFLAGS
817 YACC
818 YFLAGS
819 CPP'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1276 If a cross compiler is detected then cross compile mode will be used" >&2
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1279 fi
1280 fi
1281
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285 test "$silent" = yes && exec 6>/dev/null
1286
1287
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error $? "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\).*/{
1319 s//\1/
1320 q
1321 }
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1326 fi
1327 else
1328 ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 \`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking ...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1387
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1415 _ACEOF
1416
1417 cat <<\_ACEOF
1418
1419 Program names:
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-maintainer-mode enable make rules and dependencies not useful
1441 (and sometimes confusing) to the casual installer
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --enable-static[=PKGS] build static libraries [default=no]
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-ltdl-install install libltdl
1450 --disable-zlib Disable ziplinks support
1451 --disable-libpcre Disable PCRE support
1452 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1453 --disable-openssl Disable OpenSSL support.
1454 --enable-assert Enable assert() statements
1455 --enable-small-net Enable small network support.
1456 --enable-kqueue Force kqueue usage.
1457 --enable-epoll Force epoll usage.
1458 --enable-devpoll Force devpoll usage.
1459 --enable-rtsigio Force rtsigio usage.
1460 --enable-poll Force poll usage.
1461 --enable-select Force select usage.
1462 --enable-efnet For IRCDs running on EFnet.
1463 --enable-halfops Enable halfops support.
1464 --enable-debugging Enable debugging.
1465 --enable-warnings Enable compiler warnings.
1466 --enable-syslog="EVENTS"
1467 Enable syslog for events: users oper (space
1468 separated in quotes; default: disabled).
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-sysroot=DIR Search for dependent libraries within DIR
1477 (or the compiler's sysroot if not specified).
1478 --with-included-ltdl use the GNU ltdl sources included here
1479 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1480 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1481 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1482 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1483 --with-nicklen=<value> Set nickname length (default 9).
1484 --with-topiclen=<value> Set topic length (default 160).
1485 --with-syslog-facility=LOG
1486 Define the syslog facility to use (default:
1487 LOG_LOCAL4)
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1499 `yacc'.
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CPP C preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <bugs@ircd-hybrid.org>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 ircd-hybrid configure 8beta1
1572 generated by GNU Autoconf 2.68
1573
1574 Copyright (C) 2010 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 $as_test_x conftest$ac_exeext
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1847 # ---------------------------------------------
1848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_decl ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 as_decl_name=`echo $2|sed 's/ *(.*//'`
1854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 #ifndef $as_decl_name
1867 #ifdef __cplusplus
1868 (void) $as_decl_use;
1869 #else
1870 (void) $as_decl_name;
1871 #endif
1872 #endif
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_decl
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956 $as_echo_n "(cached) " >&6
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 (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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$4=yes"
1989 else
1990 eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ----------------------------------- ##
2074 ## Report this to bugs@ircd-hybrid.org ##
2075 ## ----------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by ircd-hybrid $as_me 8beta1, which was
2098 generated by GNU Autoconf 2.68. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213 (
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241 )
2242 echo
2243
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272 fi
2273
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2281 fi
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2370 fi
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2375 fi
2376
2377 as_fn_append ac_func_list " mmap"
2378 as_fn_append ac_func_list " strtok_r"
2379 as_fn_append ac_func_list " usleep"
2380 as_fn_append ac_func_list " strlcat"
2381 as_fn_append ac_func_list " strlcpy"
2382 as_fn_append ac_func_list " socketpair"
2383 as_fn_append ac_header_list " crypt.h"
2384 as_fn_append ac_header_list " inttypes.h"
2385 as_fn_append ac_header_list " stdint.h"
2386 as_fn_append ac_header_list " sys/resource.h"
2387 as_fn_append ac_header_list " sys/param.h"
2388 as_fn_append ac_header_list " errno.h"
2389 as_fn_append ac_header_list " sys/syslog.h"
2390 as_fn_append ac_header_list " types.h"
2391 as_fn_append ac_header_list " socket.h"
2392 as_fn_append ac_header_list " sys/wait.h"
2393 as_fn_append ac_header_list " wait.h"
2394 as_fn_append ac_header_list " link.h"
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,set)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,);;
2413 *)
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442 esac
2443 fi
2444 done
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2451 fi
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2455
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463 am__api_version='1.11'
2464
2465 ac_aux_dir=
2466 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2467 if test -f "$ac_dir/install-sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install-sh -c"
2470 break
2471 elif test -f "$ac_dir/install.sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install.sh -c"
2474 break
2475 elif test -f "$ac_dir/shtool"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 break
2479 fi
2480 done
2481 if test -z "$ac_aux_dir"; then
2482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483 fi
2484
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492
2493
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2500 # AIX /bin/install
2501 # AmigaOS /C/install, which installs bootblocks on floppy discs
2502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505 # OS/2's system install, which has a completely different semantic
2506 # ./install, which can be erroneously created by make from ./install.sh.
2507 # Reject install programs that cannot install multiple files.
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2509 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2510 if test -z "$INSTALL"; then
2511 if ${ac_cv_path_install+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520 case $as_dir/ in #((
2521 ./ | .// | /[cC]/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2535 :
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
2540 else
2541 rm -rf conftest.one conftest.two conftest.dir
2542 echo one > conftest.one
2543 echo two > conftest.two
2544 mkdir conftest.dir
2545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2546 test -s conftest.one && test -s conftest.two &&
2547 test -s conftest.dir/conftest.one &&
2548 test -s conftest.dir/conftest.two
2549 then
2550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2551 break 3
2552 fi
2553 fi
2554 fi
2555 done
2556 done
2557 ;;
2558 esac
2559
2560 done
2561 IFS=$as_save_IFS
2562
2563 rm -rf conftest.one conftest.two conftest.dir
2564
2565 fi
2566 if test "${ac_cv_path_install+set}" = set; then
2567 INSTALL=$ac_cv_path_install
2568 else
2569 # As a last resort, use the slow shell script. Don't cache a
2570 # value for INSTALL within a source directory, because that will
2571 # break other packages using the cache if that directory is
2572 # removed, or if the value is a relative name.
2573 INSTALL=$ac_install_sh
2574 fi
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2577 $as_echo "$INSTALL" >&6; }
2578
2579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580 # It thinks the first close brace ends the variable substitution.
2581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2582
2583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2584
2585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2588 $as_echo_n "checking whether build environment is sane... " >&6; }
2589 # Just in case
2590 sleep 1
2591 echo timestamp > conftest.file
2592 # Reject unsafe characters in $srcdir or the absolute working directory
2593 # name. Accept space and tab only in the latter.
2594 am_lf='
2595 '
2596 case `pwd` in
2597 *[\\\"\#\$\&\'\`$am_lf]*)
2598 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2599 esac
2600 case $srcdir in
2601 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2602 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2603 esac
2604
2605 # Do `set' in a subshell so we don't clobber the current shell's
2606 # arguments. Must try -L first in case configure is actually a
2607 # symlink; some systems play weird games with the mod time of symlinks
2608 # (eg FreeBSD returns the mod time of the symlink's containing
2609 # directory).
2610 if (
2611 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2612 if test "$*" = "X"; then
2613 # -L didn't work.
2614 set X `ls -t "$srcdir/configure" conftest.file`
2615 fi
2616 rm -f conftest.file
2617 if test "$*" != "X $srcdir/configure conftest.file" \
2618 && test "$*" != "X conftest.file $srcdir/configure"; then
2619
2620 # If neither matched, then we have a broken ls. This can happen
2621 # if, for instance, CONFIG_SHELL is bash and it inherits a
2622 # broken ls alias from the environment. This has actually
2623 # happened. Such a system could not be considered "sane".
2624 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2625 alias in your environment" "$LINENO" 5
2626 fi
2627
2628 test "$2" = conftest.file
2629 )
2630 then
2631 # Ok.
2632 :
2633 else
2634 as_fn_error $? "newly created file is older than distributed files!
2635 Check your system clock" "$LINENO" 5
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638 $as_echo "yes" >&6; }
2639 test "$program_prefix" != NONE &&
2640 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2641 # Use a double $ so make ignores it.
2642 test "$program_suffix" != NONE &&
2643 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2644 # Double any \ or $.
2645 # By default was `s,x,x', remove it if useless.
2646 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2647 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2648
2649 # expand $ac_aux_dir to an absolute path
2650 am_aux_dir=`cd $ac_aux_dir && pwd`
2651
2652 if test x"${MISSING+set}" != xset; then
2653 case $am_aux_dir in
2654 *\ * | *\ *)
2655 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2656 *)
2657 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2658 esac
2659 fi
2660 # Use eval to expand $SHELL
2661 if eval "$MISSING --run true"; then
2662 am_missing_run="$MISSING --run "
2663 else
2664 am_missing_run=
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2666 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2667 fi
2668
2669 if test x"${install_sh}" != xset; then
2670 case $am_aux_dir in
2671 *\ * | *\ *)
2672 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2673 *)
2674 install_sh="\${SHELL} $am_aux_dir/install-sh"
2675 esac
2676 fi
2677
2678 # Installed binaries are usually stripped using `strip' when the user
2679 # run `make install-strip'. However `strip' might not be the right
2680 # tool to use in cross-compilation environments, therefore Automake
2681 # will honor the `STRIP' environment variable to overrule this program.
2682 if test "$cross_compiling" != no; then
2683 if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}strip; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_STRIP+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$STRIP"; then
2692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 STRIP=$ac_cv_prog_STRIP
2712 if test -n "$STRIP"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2714 $as_echo "$STRIP" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720
2721 fi
2722 if test -z "$ac_cv_prog_STRIP"; then
2723 ac_ct_STRIP=$STRIP
2724 # Extract the first word of "strip", so it can be a program name with args.
2725 set dummy strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$ac_ct_STRIP"; then
2732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_STRIP="strip"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2752 if test -n "$ac_ct_STRIP"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2754 $as_echo "$ac_ct_STRIP" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760 if test "x$ac_ct_STRIP" = x; then
2761 STRIP=":"
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764 yes:)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2768 esac
2769 STRIP=$ac_ct_STRIP
2770 fi
2771 else
2772 STRIP="$ac_cv_prog_STRIP"
2773 fi
2774
2775 fi
2776 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2779 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2780 if test -z "$MKDIR_P"; then
2781 if ${ac_cv_path_mkdir+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_prog in mkdir gmkdir; do
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2792 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2793 'mkdir (GNU coreutils) '* | \
2794 'mkdir (coreutils) '* | \
2795 'mkdir (fileutils) '4.1*)
2796 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2797 break 3;;
2798 esac
2799 done
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805
2806 test -d ./--version && rmdir ./--version
2807 if test "${ac_cv_path_mkdir+set}" = set; then
2808 MKDIR_P="$ac_cv_path_mkdir -p"
2809 else
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for MKDIR_P within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
2814 MKDIR_P="$ac_install_sh -d"
2815 fi
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2818 $as_echo "$MKDIR_P" >&6; }
2819
2820 mkdir_p="$MKDIR_P"
2821 case $mkdir_p in
2822 [\\/$]* | ?:[\\/]*) ;;
2823 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2824 esac
2825
2826 for ac_prog in gawk mawk nawk awk
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_AWK+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 AWK=$ac_cv_prog_AWK
2856 if test -n "$AWK"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858 $as_echo "$AWK" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 test -n "$AWK" && break
2866 done
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2870 set x ${MAKE-make}
2871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat >conftest.make <<\_ACEOF
2876 SHELL = /bin/sh
2877 all:
2878 @echo '@@@%%%=$(MAKE)=@@@%%%'
2879 _ACEOF
2880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2882 *@@@%%%=?*=@@@%%%*)
2883 eval ac_cv_prog_make_${ac_make}_set=yes;;
2884 *)
2885 eval ac_cv_prog_make_${ac_make}_set=no;;
2886 esac
2887 rm -f conftest.make
2888 fi
2889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 SET_MAKE=
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 SET_MAKE="MAKE=${MAKE-make}"
2897 fi
2898
2899 rm -rf .tst 2>/dev/null
2900 mkdir .tst 2>/dev/null
2901 if test -d .tst; then
2902 am__leading_dot=.
2903 else
2904 am__leading_dot=_
2905 fi
2906 rmdir .tst 2>/dev/null
2907
2908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2910 # is not polluted with repeated "-I."
2911 am__isrc=' -I$(srcdir)'
2912 # test to see if srcdir already configured
2913 if test -f $srcdir/config.status; then
2914 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2915 fi
2916 fi
2917
2918 # test whether we have cygpath
2919 if test -z "$CYGPATH_W"; then
2920 if (cygpath --version) >/dev/null 2>/dev/null; then
2921 CYGPATH_W='cygpath -w'
2922 else
2923 CYGPATH_W=echo
2924 fi
2925 fi
2926
2927
2928 # Define the identity of the package.
2929 PACKAGE='ircd-hybrid'
2930 VERSION='8beta1'
2931
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE "$PACKAGE"
2935 _ACEOF
2936
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define VERSION "$VERSION"
2940 _ACEOF
2941
2942 # Some tools Automake needs.
2943
2944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945
2946
2947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948
2949
2950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951
2952
2953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2954
2955
2956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2957
2958 # We need awk for the "check" target. The system "awk" is bad on
2959 # some platforms.
2960 # Always define AMTAR for backward compatibility.
2961
2962 AMTAR=${AMTAR-"${am_missing_run}tar"}
2963
2964 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2965
2966
2967
2968
2969
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2972 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2973 # Check whether --enable-maintainer-mode was given.
2974 if test "${enable_maintainer_mode+set}" = set; then :
2975 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2976 else
2977 USE_MAINTAINER_MODE=no
2978 fi
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2981 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2982 if test $USE_MAINTAINER_MODE = yes; then
2983 MAINTAINER_MODE_TRUE=
2984 MAINTAINER_MODE_FALSE='#'
2985 else
2986 MAINTAINER_MODE_TRUE='#'
2987 MAINTAINER_MODE_FALSE=
2988 fi
2989
2990 MAINT=$MAINTAINER_MODE_TRUE
2991
2992
2993 ac_config_headers="$ac_config_headers config.h"
2994
2995
2996
2997 # Checks for programs.
2998 DEPDIR="${am__leading_dot}deps"
2999
3000 ac_config_commands="$ac_config_commands depfiles"
3001
3002
3003 am_make=${MAKE-make}
3004 cat > confinc << 'END'
3005 am__doit:
3006 @echo this is the am__doit target
3007 .PHONY: am__doit
3008 END
3009 # If we don't find an include directive, just comment out the code.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3011 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3012 am__include="#"
3013 am__quote=
3014 _am_result=none
3015 # First try GNU make style include.
3016 echo "include confinc" > confmf
3017 # Ignore all kinds of additional output from `make'.
3018 case `$am_make -s -f confmf 2> /dev/null` in #(
3019 *the\ am__doit\ target*)
3020 am__include=include
3021 am__quote=
3022 _am_result=GNU
3023 ;;
3024 esac
3025 # Now try BSD make style include.
3026 if test "$am__include" = "#"; then
3027 echo '.include "confinc"' > confmf
3028 case `$am_make -s -f confmf 2> /dev/null` in #(
3029 *the\ am__doit\ target*)
3030 am__include=.include
3031 am__quote="\""
3032 _am_result=BSD
3033 ;;
3034 esac
3035 fi
3036
3037
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3039 $as_echo "$_am_result" >&6; }
3040 rm -f confinc confmf
3041
3042 # Check whether --enable-dependency-tracking was given.
3043 if test "${enable_dependency_tracking+set}" = set; then :
3044 enableval=$enable_dependency_tracking;
3045 fi
3046
3047 if test "x$enable_dependency_tracking" != xno; then
3048 am_depcomp="$ac_aux_dir/depcomp"
3049 AMDEPBACKSLASH='\'
3050 am__nodep='_no'
3051 fi
3052 if test "x$enable_dependency_tracking" != xno; then
3053 AMDEP_TRUE=
3054 AMDEP_FALSE='#'
3055 else
3056 AMDEP_TRUE='#'
3057 AMDEP_FALSE=
3058 fi
3059
3060
3061 ac_ext=c
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104 fi
3105 if test -z "$ac_cv_prog_CC"; then
3106 ac_ct_CC=$CC
3107 # Extract the first word of "gcc", so it can be a program name with args.
3108 set dummy gcc; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$ac_ct_CC"; then
3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_ac_ct_CC="gcc"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135 if test -n "$ac_ct_CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3137 $as_echo "$ac_ct_CC" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143 if test "x$ac_ct_CC" = x; then
3144 CC=""
3145 else
3146 case $cross_compiling:$ac_tool_warned in
3147 yes:)
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152 CC=$ac_ct_CC
3153 fi
3154 else
3155 CC="$ac_cv_prog_CC"
3156 fi
3157
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}cc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_CC="${ac_tool_prefix}cc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 fi
3198 fi
3199 if test -z "$CC"; then
3200 # Extract the first word of "cc", so it can be a program name with args.
3201 set dummy cc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 else
3210 ac_prog_rejected=no
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3219 ac_prog_rejected=yes
3220 continue
3221 fi
3222 ac_cv_prog_CC="cc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 if test $ac_prog_rejected = yes; then
3231 # We found a bogon in the path, so make sure we never use it.
3232 set dummy $ac_cv_prog_CC
3233 shift
3234 if test $# != 0; then
3235 # We chose a different compiler from the bogus one.
3236 # However, it has the same basename, so the bogon will be chosen
3237 # first if we set CC to just the basename; use the full file name.
3238 shift
3239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3240 fi
3241 fi
3242 fi
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254 fi
3255 if test -z "$CC"; then
3256 if test -n "$ac_tool_prefix"; then
3257 for ac_prog in cl.exe
3258 do
3259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 test -n "$CC" && break
3297 done
3298 fi
3299 if test -z "$CC"; then
3300 ac_ct_CC=$CC
3301 for ac_prog in cl.exe
3302 do
3303 # Extract the first word of "$ac_prog", so it can be a program name with args.
3304 set dummy $ac_prog; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$ac_ct_CC"; then
3311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3312 else
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_ac_ct_CC="$ac_prog"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324 done
3325 done
3326 IFS=$as_save_IFS
3327
3328 fi
3329 fi
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333 $as_echo "$ac_ct_CC" >&6; }
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 fi
3338
3339
3340 test -n "$ac_ct_CC" && break
3341 done
3342
3343 if test "x$ac_ct_CC" = x; then
3344 CC=""
3345 else
3346 case $cross_compiling:$ac_tool_warned in
3347 yes:)
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3350 ac_tool_warned=yes ;;
3351 esac
3352 CC=$ac_ct_CC
3353 fi
3354 fi
3355
3356 fi
3357
3358
3359 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error $? "no acceptable C compiler found in \$PATH
3362 See \`config.log' for more details" "$LINENO" 5; }
3363
3364 # Provide some information about the compiler.
3365 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3366 set X $ac_compile
3367 ac_compiler=$2
3368 for ac_option in --version -v -V -qversion; do
3369 { { ac_try="$ac_compiler $ac_option >&5"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3377 ac_status=$?
3378 if test -s conftest.err; then
3379 sed '10a\
3380 ... rest of stderr output deleted ...
3381 10q' conftest.err >conftest.er1
3382 cat conftest.er1 >&5
3383 fi
3384 rm -f conftest.er1 conftest.err
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }
3387 done
3388
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391
3392 int
3393 main ()
3394 {
3395
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 ac_clean_files_save=$ac_clean_files
3401 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3402 # Try to create an executable without -o first, disregard a.out.
3403 # It will help us diagnose broken compilers, and finding out an intuition
3404 # of exeext.
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3406 $as_echo_n "checking whether the C compiler works... " >&6; }
3407 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3408
3409 # The possible output files:
3410 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3411
3412 ac_rmfiles=
3413 for ac_file in $ac_files
3414 do
3415 case $ac_file in
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3417 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3418 esac
3419 done
3420 rm -f $ac_rmfiles
3421
3422 if { { ac_try="$ac_link_default"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_link_default") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3436 # so that the user can short-circuit this test for compilers unknown to
3437 # Autoconf.
3438 for ac_file in $ac_files ''
3439 do
3440 test -f "$ac_file" || continue
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3443 ;;
3444 [ab].out )
3445 # We found the default executable, but exeext='' is most
3446 # certainly right.
3447 break;;
3448 *.* )
3449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3450 then :; else
3451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 fi
3453 # We set ac_cv_exeext here because the later test for it is not
3454 # safe: cross compilers may not add the suffix if given an `-o'
3455 # argument, so we may need to know it at that point already.
3456 # Even if this section looks crufty: it has the advantage of
3457 # actually working.
3458 break;;
3459 * )
3460 break;;
3461 esac
3462 done
3463 test "$ac_cv_exeext" = no && ac_cv_exeext=
3464
3465 else
3466 ac_file=''
3467 fi
3468 if test -z "$ac_file"; then :
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error 77 "C compiler cannot create executables
3477 See \`config.log' for more details" "$LINENO" 5; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480 $as_echo "yes" >&6; }
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3483 $as_echo_n "checking for C compiler default output file name... " >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3485 $as_echo "$ac_file" >&6; }
3486 ac_exeext=$ac_cv_exeext
3487
3488 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3489 ac_clean_files=$ac_clean_files_save
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3491 $as_echo_n "checking for suffix of executables... " >&6; }
3492 if { { ac_try="$ac_link"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3504 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3505 # work properly (i.e., refer to `conftest.exe'), while it won't with
3506 # `rm'.
3507 for ac_file in conftest.exe conftest conftest.*; do
3508 test -f "$ac_file" || continue
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 break;;
3513 * ) break;;
3514 esac
3515 done
3516 else
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3520 See \`config.log' for more details" "$LINENO" 5; }
3521 fi
3522 rm -f conftest conftest$ac_cv_exeext
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3524 $as_echo "$ac_cv_exeext" >&6; }
3525
3526 rm -f conftest.$ac_ext
3527 EXEEXT=$ac_cv_exeext
3528 ac_exeext=$EXEEXT
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531 #include <stdio.h>
3532 int
3533 main ()
3534 {
3535 FILE *f = fopen ("conftest.out", "w");
3536 return ferror (f) || fclose (f) != 0;
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 ac_clean_files="$ac_clean_files conftest.out"
3543 # Check that the compiler produces executables we can run. If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3546 $as_echo_n "checking whether we are cross compiling... " >&6; }
3547 if test "$cross_compiling" != yes; then
3548 { { ac_try="$ac_link"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }
3559 if { ac_try='./conftest$ac_cv_exeext'
3560 { { case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_try") 2>&5
3567 ac_status=$?
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; }; then
3570 cross_compiling=no
3571 else
3572 if test "$cross_compiling" = maybe; then
3573 cross_compiling=yes
3574 else
3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 as_fn_error $? "cannot run C compiled programs.
3578 If you meant to cross compile, use \`--host'.
3579 See \`config.log' for more details" "$LINENO" 5; }
3580 fi
3581 fi
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3584 $as_echo "$cross_compiling" >&6; }
3585
3586 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3587 ac_clean_files=$ac_clean_files_save
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3589 $as_echo_n "checking for suffix of object files... " >&6; }
3590 if ${ac_cv_objext+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595
3596 int
3597 main ()
3598 {
3599
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 rm -f conftest.o conftest.obj
3605 if { { ac_try="$ac_compile"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611 $as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compile") 2>&5
3613 ac_status=$?
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }; then :
3616 for ac_file in conftest.o conftest.obj conftest.*; do
3617 test -f "$ac_file" || continue;
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3620 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3621 break;;
3622 esac
3623 done
3624 else
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "cannot compute suffix of object files: cannot compile
3631 See \`config.log' for more details" "$LINENO" 5; }
3632 fi
3633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3634 fi
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
3637 OBJEXT=$ac_cv_objext
3638 ac_objext=$OBJEXT
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if ${ac_cv_c_compiler_gnu+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650 #ifndef __GNUC__
3651 choke me
3652 #endif
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_compiler_gnu=yes
3660 else
3661 ac_compiler_gnu=no
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3665
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3668 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3669 if test $ac_compiler_gnu = yes; then
3670 GCC=yes
3671 else
3672 GCC=
3673 fi
3674 ac_test_CFLAGS=${CFLAGS+set}
3675 ac_save_CFLAGS=$CFLAGS
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3677 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3678 if ${ac_cv_prog_cc_g+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 ac_save_c_werror_flag=$ac_c_werror_flag
3682 ac_c_werror_flag=yes
3683 ac_cv_prog_cc_g=no
3684 CFLAGS="-g"
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_prog_cc_g=yes
3698 else
3699 CFLAGS=""
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main ()
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712
3713 else
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3715 CFLAGS="-g"
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3718
3719 int
3720 main ()
3721 {
3722
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 if ac_fn_c_try_compile "$LINENO"; then :
3728 ac_cv_prog_cc_g=yes
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_c_werror_flag=$ac_save_c_werror_flag
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3738 $as_echo "$ac_cv_prog_cc_g" >&6; }
3739 if test "$ac_test_CFLAGS" = set; then
3740 CFLAGS=$ac_save_CFLAGS
3741 elif test $ac_cv_prog_cc_g = yes; then
3742 if test "$GCC" = yes; then
3743 CFLAGS="-g -O2"
3744 else
3745 CFLAGS="-g"
3746 fi
3747 else
3748 if test "$GCC" = yes; then
3749 CFLAGS="-O2"
3750 else
3751 CFLAGS=
3752 fi
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3755 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3756 if ${ac_cv_prog_cc_c89+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 ac_cv_prog_cc_c89=no
3760 ac_save_CC=$CC
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdarg.h>
3764 #include <stdio.h>
3765 #include <sys/types.h>
3766 #include <sys/stat.h>
3767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3768 struct buf { int x; };
3769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3770 static char *e (p, i)
3771 char **p;
3772 int i;
3773 {
3774 return p[i];
3775 }
3776 static char *f (char * (*g) (char **, int), char **p, ...)
3777 {
3778 char *s;
3779 va_list v;
3780 va_start (v,p);
3781 s = g (p, va_arg (v,int));
3782 va_end (v);
3783 return s;
3784 }
3785
3786 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3787 function prototypes and stuff, but not '\xHH' hex character constants.
3788 These don't provoke an error unfortunately, instead are silently treated
3789 as 'x'. The following induces an error, until -std is added to get
3790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3791 array size at least. It's necessary to write '\x00'==0 to get something
3792 that's true only with -std. */
3793 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3794
3795 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3796 inside strings and character constants. */
3797 #define FOO(x) 'x'
3798 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3799
3800 int test (int i, double x);
3801 struct s1 {int (*f) (int a);};
3802 struct s2 {int (*f) (double a);};
3803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3804 int argc;
3805 char **argv;
3806 int
3807 main ()
3808 {
3809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3815 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3816 do
3817 CC="$ac_save_CC $ac_arg"
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_cv_prog_cc_c89=$ac_arg
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext
3822 test "x$ac_cv_prog_cc_c89" != "xno" && break
3823 done
3824 rm -f conftest.$ac_ext
3825 CC=$ac_save_CC
3826
3827 fi
3828 # AC_CACHE_VAL
3829 case "x$ac_cv_prog_cc_c89" in
3830 x)
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3832 $as_echo "none needed" >&6; } ;;
3833 xno)
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3835 $as_echo "unsupported" >&6; } ;;
3836 *)
3837 CC="$CC $ac_cv_prog_cc_c89"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3839 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3840 esac
3841 if test "x$ac_cv_prog_cc_c89" != xno; then :
3842
3843 fi
3844
3845 ac_ext=c
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3850
3851 depcc="$CC" am_compiler_list=
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3854 $as_echo_n "checking dependency style of $depcc... " >&6; }
3855 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3859 # We make a subdir and do the tests there. Otherwise we can end up
3860 # making bogus files that we don't know about and never remove. For
3861 # instance it was reported that on HP-UX the gcc test will end up
3862 # making a dummy file named `D' -- because `-MD' means `put the output
3863 # in D'.
3864 rm -rf conftest.dir
3865 mkdir conftest.dir
3866 # Copy depcomp to subdir because otherwise we won't find it if we're
3867 # using a relative directory.
3868 cp "$am_depcomp" conftest.dir
3869 cd conftest.dir
3870 # We will build objects and dependencies in a subdirectory because
3871 # it helps to detect inapplicable dependency modes. For instance
3872 # both Tru64's cc and ICC support -MD to output dependencies as a
3873 # side effect of compilation, but ICC will put the dependencies in
3874 # the current directory while Tru64 will put them in the object
3875 # directory.
3876 mkdir sub
3877
3878 am_cv_CC_dependencies_compiler_type=none
3879 if test "$am_compiler_list" = ""; then
3880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3881 fi
3882 am__universal=false
3883 case " $depcc " in #(
3884 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3885 esac
3886
3887 for depmode in $am_compiler_list; do
3888 # Setup a source with many dependencies, because some compilers
3889 # like to wrap large dependency lists on column 80 (with \), and
3890 # we should not choose a depcomp mode which is confused by this.
3891 #
3892 # We need to recreate these files for each test, as the compiler may
3893 # overwrite some of them when testing with obscure command lines.
3894 # This happens at least with the AIX C compiler.
3895 : > sub/conftest.c
3896 for i in 1 2 3 4 5 6; do
3897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3898 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3899 # Solaris 8's {/usr,}/bin/sh.
3900 touch sub/conftst$i.h
3901 done
3902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3903
3904 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3905 # mode. It turns out that the SunPro C++ compiler does not properly
3906 # handle `-M -o', and we need to detect this. Also, some Intel
3907 # versions had trouble with output in subdirs
3908 am__obj=sub/conftest.${OBJEXT-o}
3909 am__minus_obj="-o $am__obj"
3910 case $depmode in
3911 gcc)
3912 # This depmode causes a compiler race in universal mode.
3913 test "$am__universal" = false || continue
3914 ;;
3915 nosideeffect)
3916 # after this tag, mechanisms are not by side-effect, so they'll
3917 # only be used when explicitly requested
3918 if test "x$enable_dependency_tracking" = xyes; then
3919 continue
3920 else
3921 break
3922 fi
3923 ;;
3924 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3925 # This compiler won't grok `-c -o', but also, the minuso test has
3926 # not run yet. These depmodes are late enough in the game, and
3927 # so weak that their functioning should not be impacted.
3928 am__obj=conftest.${OBJEXT-o}
3929 am__minus_obj=
3930 ;;
3931 none) break ;;
3932 esac
3933 if depmode=$depmode \
3934 source=sub/conftest.c object=$am__obj \
3935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3936 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3937 >/dev/null 2>conftest.err &&
3938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3940 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3942 # icc doesn't choke on unknown options, it will just issue warnings
3943 # or remarks (even with -Werror). So we grep stderr for any message
3944 # that says an option was ignored or not supported.
3945 # When given -MP, icc 7.0 and 7.1 complain thusly:
3946 # icc: Command line warning: ignoring option '-M'; no argument required
3947 # The diagnosis changed in icc 8.0:
3948 # icc: Command line remark: option '-MP' not supported
3949 if (grep 'ignoring option' conftest.err ||
3950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3951 am_cv_CC_dependencies_compiler_type=$depmode
3952 break
3953 fi
3954 fi
3955 done
3956
3957 cd ..
3958 rm -rf conftest.dir
3959 else
3960 am_cv_CC_dependencies_compiler_type=none
3961 fi
3962
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3965 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3966 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3967
3968 if
3969 test "x$enable_dependency_tracking" != xno \
3970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3971 am__fastdepCC_TRUE=
3972 am__fastdepCC_FALSE='#'
3973 else
3974 am__fastdepCC_TRUE='#'
3975 am__fastdepCC_FALSE=
3976 fi
3977
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3980 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3981 if ${ac_cv_prog_cc_c99+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 ac_cv_prog_cc_c99=no
3985 ac_save_CC=$CC
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <stdarg.h>
3989 #include <stdbool.h>
3990 #include <stdlib.h>
3991 #include <wchar.h>
3992 #include <stdio.h>
3993
3994 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3995 #define debug(...) fprintf (stderr, __VA_ARGS__)
3996 #define showlist(...) puts (#__VA_ARGS__)
3997 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3998 static void
3999 test_varargs_macros (void)
4000 {
4001 int x = 1234;
4002 int y = 5678;
4003 debug ("Flag");
4004 debug ("X = %d\n", x);
4005 showlist (The first, second, and third items.);
4006 report (x>y, "x is %d but y is %d", x, y);
4007 }
4008
4009 // Check long long types.
4010 #define BIG64 18446744073709551615ull
4011 #define BIG32 4294967295ul
4012 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4013 #if !BIG_OK
4014 your preprocessor is broken;
4015 #endif
4016 #if BIG_OK
4017 #else
4018 your preprocessor is broken;
4019 #endif
4020 static long long int bignum = -9223372036854775807LL;
4021 static unsigned long long int ubignum = BIG64;
4022
4023 struct incomplete_array
4024 {
4025 int datasize;
4026 double data[];
4027 };
4028
4029 struct named_init {
4030 int number;
4031 const wchar_t *name;
4032 double average;
4033 };
4034
4035 typedef const char *ccp;
4036
4037 static inline int
4038 test_restrict (ccp restrict text)
4039 {
4040 // See if C++-style comments work.
4041 // Iterate through items via the restricted pointer.
4042 // Also check for declarations in for loops.
4043 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4044 continue;
4045 return 0;
4046 }
4047
4048 // Check varargs and va_copy.
4049 static void
4050 test_varargs (const char *format, ...)
4051 {
4052 va_list args;
4053 va_start (args, format);
4054 va_list args_copy;
4055 va_copy (args_copy, args);
4056
4057 const char *str;
4058 int number;
4059 float fnumber;
4060
4061 while (*format)
4062 {
4063 switch (*format++)
4064 {
4065 case 's': // string
4066 str = va_arg (args_copy, const char *);
4067 break;
4068 case 'd': // int
4069 number = va_arg (args_copy, int);
4070 break;
4071 case 'f': // float
4072 fnumber = va_arg (args_copy, double);
4073 break;
4074 default:
4075 break;
4076 }
4077 }
4078 va_end (args_copy);
4079 va_end (args);
4080 }
4081
4082 int
4083 main ()
4084 {
4085
4086 // Check bool.
4087 _Bool success = false;
4088
4089 // Check restrict.
4090 if (test_restrict ("String literal") == 0)
4091 success = true;
4092 char *restrict newvar = "Another string";
4093
4094 // Check varargs.
4095 test_varargs ("s, d' f .", "string", 65, 34.234);
4096 test_varargs_macros ();
4097
4098 // Check flexible array members.
4099 struct incomplete_array *ia =
4100 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4101 ia->datasize = 10;
4102 for (int i = 0; i < ia->datasize; ++i)
4103 ia->data[i] = i * 1.234;
4104
4105 // Check named initializers.
4106 struct named_init ni = {
4107 .number = 34,
4108 .name = L"Test wide string",
4109 .average = 543.34343,
4110 };
4111
4112 ni.number = 58;
4113
4114 int dynamic_array[ni.number];
4115 dynamic_array[ni.number - 1] = 543;
4116
4117 // work around unused variable warnings
4118 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4119 || dynamic_array[ni.number - 1] != 543);
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4126 do
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c99=$ac_arg
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c99" != "xno" && break
4133 done
4134 rm -f conftest.$ac_ext
4135 CC=$ac_save_CC
4136
4137 fi
4138 # AC_CACHE_VAL
4139 case "x$ac_cv_prog_cc_c99" in
4140 x)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4143 xno)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4146 *)
4147 CC="$CC $ac_cv_prog_cc_c99"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4149 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4150 esac
4151 if test "x$ac_cv_prog_cc_c99" != xno; then :
4152
4153 fi
4154
4155
4156 if test "$ac_cv_prog_cc_c99" = "no"; then :
4157 as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4158 fi
4159 for ac_prog in 'bison -y' byacc
4160 do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_YACC+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$YACC"; then
4169 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_YACC="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182 done
4183 done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 YACC=$ac_cv_prog_YACC
4189 if test -n "$YACC"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4191 $as_echo "$YACC" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196
4197
4198 test -n "$YACC" && break
4199 done
4200 test -n "$YACC" || YACC="yacc"
4201
4202
4203 for ac_prog in flex lex
4204 do
4205 # Extract the first word of "$ac_prog", so it can be a program name with args.
4206 set dummy $ac_prog; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_LEX+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$LEX"; then
4213 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_prog_LEX="$ac_prog"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 LEX=$ac_cv_prog_LEX
4233 if test -n "$LEX"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4235 $as_echo "$LEX" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 test -n "$LEX" && break
4243 done
4244 test -n "$LEX" || LEX=":"
4245
4246 if test "x$LEX" != "x:"; then
4247 cat >conftest.l <<_ACEOF
4248 %%
4249 a { ECHO; }
4250 b { REJECT; }
4251 c { yymore (); }
4252 d { yyless (1); }
4253 e { yyless (input () != 0); }
4254 f { unput (yytext[0]); }
4255 . { BEGIN INITIAL; }
4256 %%
4257 #ifdef YYTEXT_POINTER
4258 extern char *yytext;
4259 #endif
4260 int
4261 main (void)
4262 {
4263 return ! yylex () + ! yywrap ();
4264 }
4265 _ACEOF
4266 { { ac_try="$LEX conftest.l"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 $as_echo "$ac_try_echo"; } >&5
4273 (eval "$LEX conftest.l") 2>&5
4274 ac_status=$?
4275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4276 test $ac_status = 0; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4278 $as_echo_n "checking lex output file root... " >&6; }
4279 if ${ac_cv_prog_lex_root+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282
4283 if test -f lex.yy.c; then
4284 ac_cv_prog_lex_root=lex.yy
4285 elif test -f lexyy.c; then
4286 ac_cv_prog_lex_root=lexyy
4287 else
4288 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4289 fi
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4292 $as_echo "$ac_cv_prog_lex_root" >&6; }
4293 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4294
4295 if test -z "${LEXLIB+set}"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4297 $as_echo_n "checking lex library... " >&6; }
4298 if ${ac_cv_lib_lex+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301
4302 ac_save_LIBS=$LIBS
4303 ac_cv_lib_lex='none needed'
4304 for ac_lib in '' -lfl -ll; do
4305 LIBS="$ac_lib $ac_save_LIBS"
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 `cat $LEX_OUTPUT_ROOT.c`
4309 _ACEOF
4310 if ac_fn_c_try_link "$LINENO"; then :
4311 ac_cv_lib_lex=$ac_lib
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4315 test "$ac_cv_lib_lex" != 'none needed' && break
4316 done
4317 LIBS=$ac_save_LIBS
4318
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4321 $as_echo "$ac_cv_lib_lex" >&6; }
4322 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4323 fi
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4327 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4328 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 # POSIX says lex can declare yytext either as a pointer or an array; the
4332 # default is implementation-dependent. Figure out which it is, since
4333 # not all implementations provide the %pointer and %array declarations.
4334 ac_cv_prog_lex_yytext_pointer=no
4335 ac_save_LIBS=$LIBS
4336 LIBS="$LEXLIB $ac_save_LIBS"
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339
4340 #define YYTEXT_POINTER 1
4341 `cat $LEX_OUTPUT_ROOT.c`
4342 _ACEOF
4343 if ac_fn_c_try_link "$LINENO"; then :
4344 ac_cv_prog_lex_yytext_pointer=yes
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext \
4347 conftest$ac_exeext conftest.$ac_ext
4348 LIBS=$ac_save_LIBS
4349
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4352 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4353 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4354
4355 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4356
4357 fi
4358 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4359
4360 fi
4361 if test "$LEX" = :; then
4362 LEX=${am_missing_run}flex
4363 fi
4364
4365
4366 # Initializing libtool.
4367
4368
4369
4370
4371
4372
4373
4374 case `pwd` in
4375 *\ * | *\ *)
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4377 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4378 esac
4379
4380
4381
4382 macro_version='2.4.2'
4383 macro_revision='1.3337'
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397 ltmain="$ac_aux_dir/ltmain.sh"
4398
4399 # Make sure we can run config.sub.
4400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4404 $as_echo_n "checking build system type... " >&6; }
4405 if ${ac_cv_build+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 ac_build_alias=$build_alias
4409 test "x$ac_build_alias" = x &&
4410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4411 test "x$ac_build_alias" = x &&
4412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4415
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4418 $as_echo "$ac_cv_build" >&6; }
4419 case $ac_cv_build in
4420 *-*-*) ;;
4421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4422 esac
4423 build=$ac_cv_build
4424 ac_save_IFS=$IFS; IFS='-'
4425 set x $ac_cv_build
4426 shift
4427 build_cpu=$1
4428 build_vendor=$2
4429 shift; shift
4430 # Remember, the first character of IFS is used to create $*,
4431 # except with old shells:
4432 build_os=$*
4433 IFS=$ac_save_IFS
4434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4438 $as_echo_n "checking host system type... " >&6; }
4439 if ${ac_cv_host+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test "x$host_alias" = x; then
4443 ac_cv_host=$ac_cv_build
4444 else
4445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4447 fi
4448
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4451 $as_echo "$ac_cv_host" >&6; }
4452 case $ac_cv_host in
4453 *-*-*) ;;
4454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4455 esac
4456 host=$ac_cv_host
4457 ac_save_IFS=$IFS; IFS='-'
4458 set x $ac_cv_host
4459 shift
4460 host_cpu=$1
4461 host_vendor=$2
4462 shift; shift
4463 # Remember, the first character of IFS is used to create $*,
4464 # except with old shells:
4465 host_os=$*
4466 IFS=$ac_save_IFS
4467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4468
4469
4470 # Backslashify metacharacters that are still active within
4471 # double-quoted strings.
4472 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4473
4474 # Same as above, but do not quote variable references.
4475 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4476
4477 # Sed substitution to delay expansion of an escaped shell variable in a
4478 # double_quote_subst'ed string.
4479 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4480
4481 # Sed substitution to delay expansion of an escaped single quote.
4482 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4483
4484 # Sed substitution to avoid accidental globbing in evaled expressions
4485 no_glob_subst='s/\*/\\\*/g'
4486
4487 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4488 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4489 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4492 $as_echo_n "checking how to print strings... " >&6; }
4493 # Test print first, because it will be a builtin if present.
4494 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4495 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4496 ECHO='print -r --'
4497 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4498 ECHO='printf %s\n'
4499 else
4500 # Use this function as a fallback that always works.
4501 func_fallback_echo ()
4502 {
4503 eval 'cat <<_LTECHO_EOF
4504 $1
4505 _LTECHO_EOF'
4506 }
4507 ECHO='func_fallback_echo'
4508 fi
4509
4510 # func_echo_all arg...
4511 # Invoke $ECHO with all args, space-separated.
4512 func_echo_all ()
4513 {
4514 $ECHO ""
4515 }
4516
4517 case "$ECHO" in
4518 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4519 $as_echo "printf" >&6; } ;;
4520 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4521 $as_echo "print -r" >&6; } ;;
4522 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4523 $as_echo "cat" >&6; } ;;
4524 esac
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4540 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4541 if ${ac_cv_path_SED+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4545 for ac_i in 1 2 3 4 5 6 7; do
4546 ac_script="$ac_script$as_nl$ac_script"
4547 done
4548 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4549 { ac_script=; unset ac_script;}
4550 if test -z "$SED"; then
4551 ac_path_SED_found=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_prog in sed gsed; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4561 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4562 # Check for GNU ac_path_SED and select it if it is found.
4563 # Check for GNU $ac_path_SED
4564 case `"$ac_path_SED" --version 2>&1` in
4565 *GNU*)
4566 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4567 *)
4568 ac_count=0
4569 $as_echo_n 0123456789 >"conftest.in"
4570 while :
4571 do
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 $as_echo '' >> "conftest.nl"
4576 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578 as_fn_arith $ac_count + 1 && ac_count=$as_val
4579 if test $ac_count -gt ${ac_path_SED_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_SED="$ac_path_SED"
4582 ac_path_SED_max=$ac_count
4583 fi
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4586 done
4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4588 esac
4589
4590 $ac_path_SED_found && break 3
4591 done
4592 done
4593 done
4594 IFS=$as_save_IFS
4595 if test -z "$ac_cv_path_SED"; then
4596 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4597 fi
4598 else
4599 ac_cv_path_SED=$SED
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4604 $as_echo "$ac_cv_path_SED" >&6; }
4605 SED="$ac_cv_path_SED"
4606 rm -f conftest.sed
4607
4608 test -z "$SED" && SED=sed
4609 Xsed="$SED -e 1s/^X//"
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4623 if ${ac_cv_path_GREP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -z "$GREP"; then
4627 ac_path_GREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in grep ggrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4637 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4638 # Check for GNU ac_path_GREP and select it if it is found.
4639 # Check for GNU $ac_path_GREP
4640 case `"$ac_path_GREP" --version 2>&1` in
4641 *GNU*)
4642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4643 *)
4644 ac_count=0
4645 $as_echo_n 0123456789 >"conftest.in"
4646 while :
4647 do
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'GREP' >> "conftest.nl"
4652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_GREP="$ac_path_GREP"
4658 ac_path_GREP_max=$ac_count
4659 fi
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4662 done
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666 $ac_path_GREP_found && break 3
4667 done
4668 done
4669 done
4670 IFS=$as_save_IFS
4671 if test -z "$ac_cv_path_GREP"; then
4672 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673 fi
4674 else
4675 ac_cv_path_GREP=$GREP
4676 fi
4677
4678 fi
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4680 $as_echo "$ac_cv_path_GREP" >&6; }
4681 GREP="$ac_cv_path_GREP"
4682
4683
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4685 $as_echo_n "checking for egrep... " >&6; }
4686 if ${ac_cv_path_EGREP+:} false; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4690 then ac_cv_path_EGREP="$GREP -E"
4691 else
4692 if test -z "$EGREP"; then
4693 ac_path_EGREP_found=false
4694 # Loop through the user's path and test for each of PROGNAME-LIST
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_prog in egrep; do
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4703 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4704 # Check for GNU ac_path_EGREP and select it if it is found.
4705 # Check for GNU $ac_path_EGREP
4706 case `"$ac_path_EGREP" --version 2>&1` in
4707 *GNU*)
4708 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4709 *)
4710 ac_count=0
4711 $as_echo_n 0123456789 >"conftest.in"
4712 while :
4713 do
4714 cat "conftest.in" "conftest.in" >"conftest.tmp"
4715 mv "conftest.tmp" "conftest.in"
4716 cp "conftest.in" "conftest.nl"
4717 $as_echo 'EGREP' >> "conftest.nl"
4718 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4720 as_fn_arith $ac_count + 1 && ac_count=$as_val
4721 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4722 # Best one so far, save it but keep looking for a better one
4723 ac_cv_path_EGREP="$ac_path_EGREP"
4724 ac_path_EGREP_max=$ac_count
4725 fi
4726 # 10*(2^10) chars as input seems more than enough
4727 test $ac_count -gt 10 && break
4728 done
4729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 esac
4731
4732 $ac_path_EGREP_found && break 3
4733 done
4734 done
4735 done
4736 IFS=$as_save_IFS
4737 if test -z "$ac_cv_path_EGREP"; then
4738 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739 fi
4740 else
4741 ac_cv_path_EGREP=$EGREP
4742 fi
4743
4744 fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4747 $as_echo "$ac_cv_path_EGREP" >&6; }
4748 EGREP="$ac_cv_path_EGREP"
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4752 $as_echo_n "checking for fgrep... " >&6; }
4753 if ${ac_cv_path_FGREP+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4757 then ac_cv_path_FGREP="$GREP -F"
4758 else
4759 if test -z "$FGREP"; then
4760 ac_path_FGREP_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in fgrep; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4770 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4771 # Check for GNU ac_path_FGREP and select it if it is found.
4772 # Check for GNU $ac_path_FGREP
4773 case `"$ac_path_FGREP" --version 2>&1` in
4774 *GNU*)
4775 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4776 *)
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4780 do
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo 'FGREP' >> "conftest.nl"
4785 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_FGREP="$ac_path_FGREP"
4791 ac_path_FGREP_max=$ac_count
4792 fi
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797 esac
4798
4799 $ac_path_FGREP_found && break 3
4800 done
4801 done
4802 done
4803 IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_FGREP"; then
4805 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4806 fi
4807 else
4808 ac_cv_path_FGREP=$FGREP
4809 fi
4810
4811 fi
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4814 $as_echo "$ac_cv_path_FGREP" >&6; }
4815 FGREP="$ac_cv_path_FGREP"
4816
4817
4818 test -z "$GREP" && GREP=grep
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 # Check whether --with-gnu-ld was given.
4839 if test "${with_gnu_ld+set}" = set; then :
4840 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4841 else
4842 with_gnu_ld=no
4843 fi
4844
4845 ac_prog=ld
4846 if test "$GCC" = yes; then
4847 # Check if gcc -print-prog-name=ld gives a path.
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4849 $as_echo_n "checking for ld used by $CC... " >&6; }
4850 case $host in
4851 *-*-mingw*)
4852 # gcc leaves a trailing carriage return which upsets mingw
4853 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4854 *)
4855 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4856 esac
4857 case $ac_prog in
4858 # Accept absolute paths.
4859 [\\/]* | ?:[\\/]*)
4860 re_direlt='/[^/][^/]*/\.\./'
4861 # Canonicalize the pathname of ld
4862 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4863 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4864 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4865 done
4866 test -z "$LD" && LD="$ac_prog"
4867 ;;
4868 "")
4869 # If it fails, then pretend we aren't using GCC.
4870 ac_prog=ld
4871 ;;
4872 *)
4873 # If it is relative, then search for the first ld in PATH.
4874 with_gnu_ld=unknown
4875 ;;
4876 esac
4877 elif test "$with_gnu_ld" = yes; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4879 $as_echo_n "checking for GNU ld... " >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4882 $as_echo_n "checking for non-GNU ld... " >&6; }
4883 fi
4884 if ${lt_cv_path_LD+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -z "$LD"; then
4888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4889 for ac_dir in $PATH; do
4890 IFS="$lt_save_ifs"
4891 test -z "$ac_dir" && ac_dir=.
4892 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4893 lt_cv_path_LD="$ac_dir/$ac_prog"
4894 # Check to see if the program is GNU ld. I'd rather use --version,
4895 # but apparently some variants of GNU ld only accept -v.
4896 # Break only if it was the GNU/non-GNU ld that we prefer.
4897 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4898 *GNU* | *'with BFD'*)
4899 test "$with_gnu_ld" != no && break
4900 ;;
4901 *)
4902 test "$with_gnu_ld" != yes && break
4903 ;;
4904 esac
4905 fi
4906 done
4907 IFS="$lt_save_ifs"
4908 else
4909 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4910 fi
4911 fi
4912
4913 LD="$lt_cv_path_LD"
4914 if test -n "$LD"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4916 $as_echo "$LD" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4923 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4924 if ${lt_cv_prog_gnu_ld+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4928 case `$LD -v 2>&1 </dev/null` in
4929 *GNU* | *'with BFD'*)
4930 lt_cv_prog_gnu_ld=yes
4931 ;;
4932 *)
4933 lt_cv_prog_gnu_ld=no
4934 ;;
4935 esac
4936 fi
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4938 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4939 with_gnu_ld=$lt_cv_prog_gnu_ld
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4950 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4951 if ${lt_cv_path_NM+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$NM"; then
4955 # Let the user override the test.
4956 lt_cv_path_NM="$NM"
4957 else
4958 lt_nm_to_check="${ac_tool_prefix}nm"
4959 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4960 lt_nm_to_check="$lt_nm_to_check nm"
4961 fi
4962 for lt_tmp_nm in $lt_nm_to_check; do
4963 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4964 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4965 IFS="$lt_save_ifs"
4966 test -z "$ac_dir" && ac_dir=.
4967 tmp_nm="$ac_dir/$lt_tmp_nm"
4968 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4969 # Check to see if the nm accepts a BSD-compat flag.
4970 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4971 # nm: unknown option "B" ignored
4972 # Tru64's nm complains that /dev/null is an invalid object file
4973 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4974 */dev/null* | *'Invalid file or object type'*)
4975 lt_cv_path_NM="$tmp_nm -B"
4976 break
4977 ;;
4978 *)
4979 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4980 */dev/null*)
4981 lt_cv_path_NM="$tmp_nm -p"
4982 break
4983 ;;
4984 *)
4985 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4986 continue # so that we can try to find one that supports BSD flags
4987 ;;
4988 esac
4989 ;;
4990 esac
4991 fi
4992 done
4993 IFS="$lt_save_ifs"
4994 done
4995 : ${lt_cv_path_NM=no}
4996 fi
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4999 $as_echo "$lt_cv_path_NM" >&6; }
5000 if test "$lt_cv_path_NM" != "no"; then
5001 NM="$lt_cv_path_NM"
5002 else
5003 # Didn't find any BSD compatible name lister, look for dumpbin.
5004 if test -n "$DUMPBIN"; then :
5005 # Let the user override the test.
5006 else
5007 if test -n "$ac_tool_prefix"; then
5008 for ac_prog in dumpbin "link -dump"
5009 do
5010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_DUMPBIN+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$DUMPBIN"; then
5018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031 done
5032 done
5033 IFS=$as_save_IFS
5034
5035 fi
5036 fi
5037 DUMPBIN=$ac_cv_prog_DUMPBIN
5038 if test -n "$DUMPBIN"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5040 $as_echo "$DUMPBIN" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046
5047 test -n "$DUMPBIN" && break
5048 done
5049 fi
5050 if test -z "$DUMPBIN"; then
5051 ac_ct_DUMPBIN=$DUMPBIN
5052 for ac_prog in dumpbin "link -dump"
5053 do
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$ac_ct_DUMPBIN"; then
5062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5082 if test -n "$ac_ct_DUMPBIN"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5084 $as_echo "$ac_ct_DUMPBIN" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 test -n "$ac_ct_DUMPBIN" && break
5092 done
5093
5094 if test "x$ac_ct_DUMPBIN" = x; then
5095 DUMPBIN=":"
5096 else
5097 case $cross_compiling:$ac_tool_warned in
5098 yes:)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101 ac_tool_warned=yes ;;
5102 esac
5103 DUMPBIN=$ac_ct_DUMPBIN
5104 fi
5105 fi
5106
5107 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5108 *COFF*)
5109 DUMPBIN="$DUMPBIN -symbols"
5110 ;;
5111 *)
5112 DUMPBIN=:
5113 ;;
5114 esac
5115 fi
5116
5117 if test "$DUMPBIN" != ":"; then
5118 NM="$DUMPBIN"
5119 fi
5120 fi
5121 test -z "$NM" && NM=nm
5122
5123
5124
5125
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5129 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5130 if ${lt_cv_nm_interface+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 lt_cv_nm_interface="BSD nm"
5134 echo "int some_variable = 0;" > conftest.$ac_ext
5135 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5136 (eval "$ac_compile" 2>conftest.err)
5137 cat conftest.err >&5
5138 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5139 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5140 cat conftest.err >&5
5141 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5142 cat conftest.out >&5
5143 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5144 lt_cv_nm_interface="MS dumpbin"
5145 fi
5146 rm -f conftest*
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5149 $as_echo "$lt_cv_nm_interface" >&6; }
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5152 $as_echo_n "checking whether ln -s works... " >&6; }
5153 LN_S=$as_ln_s
5154 if test "$LN_S" = "ln -s"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5156 $as_echo "yes" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5159 $as_echo "no, using $LN_S" >&6; }
5160 fi
5161
5162 # find the maximum length of command line arguments
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5164 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5165 if ${lt_cv_sys_max_cmd_len+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 i=0
5169 teststring="ABCD"
5170
5171 case $build_os in
5172 msdosdjgpp*)
5173 # On DJGPP, this test can blow up pretty badly due to problems in libc
5174 # (any single argument exceeding 2000 bytes causes a buffer overrun
5175 # during glob expansion). Even if it were fixed, the result of this
5176 # check would be larger than it should be.
5177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5178 ;;
5179
5180 gnu*)
5181 # Under GNU Hurd, this test is not required because there is
5182 # no limit to the length of command line arguments.
5183 # Libtool will interpret -1 as no limit whatsoever
5184 lt_cv_sys_max_cmd_len=-1;
5185 ;;
5186
5187 cygwin* | mingw* | cegcc*)
5188 # On Win9x/ME, this test blows up -- it succeeds, but takes
5189 # about 5 minutes as the teststring grows exponentially.
5190 # Worse, since 9x/ME are not pre-emptively multitasking,
5191 # you end up with a "frozen" computer, even though with patience
5192 # the test eventually succeeds (with a max line length of 256k).
5193 # Instead, let's just punt: use the minimum linelength reported by
5194 # all of the supported platforms: 8192 (on NT/2K/XP).
5195 lt_cv_sys_max_cmd_len=8192;
5196 ;;
5197
5198 mint*)
5199 # On MiNT this can take a long time and run out of memory.
5200 lt_cv_sys_max_cmd_len=8192;
5201 ;;
5202
5203 amigaos*)
5204 # On AmigaOS with pdksh, this test takes hours, literally.
5205 # So we just punt and use a minimum line length of 8192.
5206 lt_cv_sys_max_cmd_len=8192;
5207 ;;
5208
5209 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5210 # This has been around since 386BSD, at least. Likely further.
5211 if test -x /sbin/sysctl; then
5212 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5213 elif test -x /usr/sbin/sysctl; then
5214 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5215 else
5216 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5217 fi
5218 # And add a safety zone
5219 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5221 ;;
5222
5223 interix*)
5224 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5225 lt_cv_sys_max_cmd_len=196608
5226 ;;
5227
5228 os2*)
5229 # The test takes a long time on OS/2.
5230 lt_cv_sys_max_cmd_len=8192
5231 ;;
5232
5233 osf*)
5234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5236 # nice to cause kernel panics so lets avoid the loop below.
5237 # First set a reasonable default.
5238 lt_cv_sys_max_cmd_len=16384
5239 #
5240 if test -x /sbin/sysconfig; then
5241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5243 esac
5244 fi
5245 ;;
5246 sco3.2v5*)
5247 lt_cv_sys_max_cmd_len=102400
5248 ;;
5249 sysv5* | sco5v6* | sysv4.2uw2*)
5250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5251 if test -n "$kargmax"; then
5252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5253 else
5254 lt_cv_sys_max_cmd_len=32768
5255 fi
5256 ;;
5257 *)
5258 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5259 if test -n "$lt_cv_sys_max_cmd_len"; then
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5262 else
5263 # Make teststring a little bigger before we do anything with it.
5264 # a 1K string should be a reasonable start.
5265 for i in 1 2 3 4 5 6 7 8 ; do
5266 teststring=$teststring$teststring
5267 done
5268 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5269 # If test is not a shell built-in, we'll probably end up computing a
5270 # maximum length that is only half of the actual maximum length, but
5271 # we can't tell.
5272 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5273 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5274 test $i != 17 # 1/2 MB should be enough
5275 do
5276 i=`expr $i + 1`
5277 teststring=$teststring$teststring
5278 done
5279 # Only check the string length outside the loop.
5280 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5281 teststring=
5282 # Add a significant safety factor because C++ compilers can tack on
5283 # massive amounts of additional arguments before passing them to the
5284 # linker. It appears as though 1/2 is a usable value.
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5286 fi
5287 ;;
5288 esac
5289
5290 fi
5291
5292 if test -n $lt_cv_sys_max_cmd_len ; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5294 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5297 $as_echo "none" >&6; }
5298 fi
5299 max_cmd_len=$lt_cv_sys_max_cmd_len
5300
5301
5302
5303
5304
5305
5306 : ${CP="cp -f"}
5307 : ${MV="mv -f"}
5308 : ${RM="rm -f"}
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5311 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5312 # Try some XSI features
5313 xsi_shell=no
5314 ( _lt_dummy="a/b/c"
5315 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5316 = c,a/b,b/c, \
5317 && eval 'test $(( 1 + 1 )) -eq 2 \
5318 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5319 && xsi_shell=yes
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5321 $as_echo "$xsi_shell" >&6; }
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5325 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5326 lt_shell_append=no
5327 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5328 >/dev/null 2>&1 \
5329 && lt_shell_append=yes
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5331 $as_echo "$lt_shell_append" >&6; }
5332
5333
5334 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5335 lt_unset=unset
5336 else
5337 lt_unset=false
5338 fi
5339
5340
5341
5342
5343
5344 # test EBCDIC or ASCII
5345 case `echo X|tr X '\101'` in
5346 A) # ASCII based system
5347 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5348 lt_SP2NL='tr \040 \012'
5349 lt_NL2SP='tr \015\012 \040\040'
5350 ;;
5351 *) # EBCDIC based system
5352 lt_SP2NL='tr \100 \n'
5353 lt_NL2SP='tr \r\n \100\100'
5354 ;;
5355 esac
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5366 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5367 if ${lt_cv_to_host_file_cmd+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 case $host in
5371 *-*-mingw* )
5372 case $build in
5373 *-*-mingw* ) # actually msys
5374 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5375 ;;
5376 *-*-cygwin* )
5377 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5378 ;;
5379 * ) # otherwise, assume *nix
5380 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5381 ;;
5382 esac
5383 ;;
5384 *-*-cygwin* )
5385 case $build in
5386 *-*-mingw* ) # actually msys
5387 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5388 ;;
5389 *-*-cygwin* )
5390 lt_cv_to_host_file_cmd=func_convert_file_noop
5391 ;;
5392 * ) # otherwise, assume *nix
5393 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5394 ;;
5395 esac
5396 ;;
5397 * ) # unhandled hosts (and "normal" native builds)
5398 lt_cv_to_host_file_cmd=func_convert_file_noop
5399 ;;
5400 esac
5401
5402 fi
5403
5404 to_host_file_cmd=$lt_cv_to_host_file_cmd
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5406 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5407
5408
5409
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5413 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5414 if ${lt_cv_to_tool_file_cmd+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 #assume ordinary cross tools, or native build.
5418 lt_cv_to_tool_file_cmd=func_convert_file_noop
5419 case $host in
5420 *-*-mingw* )
5421 case $build in
5422 *-*-mingw* ) # actually msys
5423 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5424 ;;
5425 esac
5426 ;;
5427 esac
5428
5429 fi
5430
5431 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5433 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5434
5435
5436
5437
5438
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5440 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5441 if ${lt_cv_ld_reload_flag+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 lt_cv_ld_reload_flag='-r'
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5447 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5448 reload_flag=$lt_cv_ld_reload_flag
5449 case $reload_flag in
5450 "" | " "*) ;;
5451 *) reload_flag=" $reload_flag" ;;
5452 esac
5453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5454 case $host_os in
5455 cygwin* | mingw* | pw32* | cegcc*)
5456 if test "$GCC" != yes; then
5457 reload_cmds=false
5458 fi
5459 ;;
5460 darwin*)
5461 if test "$GCC" = yes; then
5462 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5463 else
5464 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5465 fi
5466 ;;
5467 esac
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_OBJDUMP+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -n "$OBJDUMP"; then
5486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499 done
5500 done
5501 IFS=$as_save_IFS
5502
5503 fi
5504 fi
5505 OBJDUMP=$ac_cv_prog_OBJDUMP
5506 if test -n "$OBJDUMP"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5508 $as_echo "$OBJDUMP" >&6; }
5509 else
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513
5514
5515 fi
5516 if test -z "$ac_cv_prog_OBJDUMP"; then
5517 ac_ct_OBJDUMP=$OBJDUMP
5518 # Extract the first word of "objdump", so it can be a program name with args.
5519 set dummy objdump; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$ac_ct_OBJDUMP"; then
5526 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539 done
5540 done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5546 if test -n "$ac_ct_OBJDUMP"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5548 $as_echo "$ac_ct_OBJDUMP" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554 if test "x$ac_ct_OBJDUMP" = x; then
5555 OBJDUMP="false"
5556 else
5557 case $cross_compiling:$ac_tool_warned in
5558 yes:)
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5561 ac_tool_warned=yes ;;
5562 esac
5563 OBJDUMP=$ac_ct_OBJDUMP
5564 fi
5565 else
5566 OBJDUMP="$ac_cv_prog_OBJDUMP"
5567 fi
5568
5569 test -z "$OBJDUMP" && OBJDUMP=objdump
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5580 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5581 if ${lt_cv_deplibs_check_method+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 lt_cv_file_magic_cmd='$MAGIC_CMD'
5585 lt_cv_file_magic_test_file=
5586 lt_cv_deplibs_check_method='unknown'
5587 # Need to set the preceding variable on all platforms that support
5588 # interlibrary dependencies.
5589 # 'none' -- dependencies not supported.
5590 # `unknown' -- same as none, but documents that we really don't know.
5591 # 'pass_all' -- all dependencies passed with no checks.
5592 # 'test_compile' -- check by making test program.
5593 # 'file_magic [[regex]]' -- check by looking for files in library path
5594 # which responds to the $file_magic_cmd with a given extended regex.
5595 # If you have `file' or equivalent on your system and you're not sure
5596 # whether `pass_all' will *always* work, you probably want this one.
5597
5598 case $host_os in
5599 aix[4-9]*)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602
5603 beos*)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606
5607 bsdi[45]*)
5608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5609 lt_cv_file_magic_cmd='/usr/bin/file -L'
5610 lt_cv_file_magic_test_file=/shlib/libc.so
5611 ;;
5612
5613 cygwin*)
5614 # func_win32_libid is a shell function defined in ltmain.sh
5615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5616 lt_cv_file_magic_cmd='func_win32_libid'
5617 ;;
5618
5619 mingw* | pw32*)
5620 # Base MSYS/MinGW do not provide the 'file' command needed by
5621 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5622 # unless we find 'file', for example because we are cross-compiling.
5623 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5624 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5625 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5626 lt_cv_file_magic_cmd='func_win32_libid'
5627 else
5628 # Keep this pattern in sync with the one in func_win32_libid.
5629 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5630 lt_cv_file_magic_cmd='$OBJDUMP -f'
5631 fi
5632 ;;
5633
5634 cegcc*)
5635 # use the weaker test based on 'objdump'. See mingw*.
5636 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5637 lt_cv_file_magic_cmd='$OBJDUMP -f'
5638 ;;
5639
5640 darwin* | rhapsody*)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643
5644 freebsd* | dragonfly*)
5645 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5646 case $host_cpu in
5647 i*86 )
5648 # Not sure whether the presence of OpenBSD here was a mistake.
5649 # Let's accept both of them until this is cleared up.
5650 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5651 lt_cv_file_magic_cmd=/usr/bin/file
5652 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5653 ;;
5654 esac
5655 else
5656 lt_cv_deplibs_check_method=pass_all
5657 fi
5658 ;;
5659
5660 gnu*)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663
5664 haiku*)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667
5668 hpux10.20* | hpux11*)
5669 lt_cv_file_magic_cmd=/usr/bin/file
5670 case $host_cpu in
5671 ia64*)
5672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5673 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5674 ;;
5675 hppa*64*)
5676 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]'
5677 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5678 ;;
5679 *)
5680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5681 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5682 ;;
5683 esac
5684 ;;
5685
5686 interix[3-9]*)
5687 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5689 ;;
5690
5691 irix5* | irix6* | nonstopux*)
5692 case $LD in
5693 *-32|*"-32 ") libmagic=32-bit;;
5694 *-n32|*"-n32 ") libmagic=N32;;
5695 *-64|*"-64 ") libmagic=64-bit;;
5696 *) libmagic=never-match;;
5697 esac
5698 lt_cv_deplibs_check_method=pass_all
5699 ;;
5700
5701 # This must be glibc/ELF.
5702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705
5706 netbsd*)
5707 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5709 else
5710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5711 fi
5712 ;;
5713
5714 newos6*)
5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5716 lt_cv_file_magic_cmd=/usr/bin/file
5717 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5718 ;;
5719
5720 *nto* | *qnx*)
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724 openbsd*)
5725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5727 else
5728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5729 fi
5730 ;;
5731
5732 osf3* | osf4* | osf5*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736 rdos*)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
5740 solaris*)
5741 lt_cv_deplibs_check_method=pass_all
5742 ;;
5743
5744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748 sysv4 | sysv4.3*)
5749 case $host_vendor in
5750 motorola)
5751 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]'
5752 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5753 ;;
5754 ncr)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757 sequent)
5758 lt_cv_file_magic_cmd='/bin/file'
5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5760 ;;
5761 sni)
5762 lt_cv_file_magic_cmd='/bin/file'
5763 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5764 lt_cv_file_magic_test_file=/lib/libc.so
5765 ;;
5766 siemens)
5767 lt_cv_deplibs_check_method=pass_all
5768 ;;
5769 pc)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772 esac
5773 ;;
5774
5775 tpf*)
5776 lt_cv_deplibs_check_method=pass_all
5777 ;;
5778 esac
5779
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5782 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5783
5784 file_magic_glob=
5785 want_nocaseglob=no
5786 if test "$build" = "$host"; then
5787 case $host_os in
5788 mingw* | pw32*)
5789 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5790 want_nocaseglob=yes
5791 else
5792 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5793 fi
5794 ;;
5795 esac
5796 fi
5797
5798 file_magic_cmd=$lt_cv_file_magic_cmd
5799 deplibs_check_method=$lt_cv_deplibs_check_method
5800 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823 if test -n "$ac_tool_prefix"; then
5824 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5825 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if ${ac_cv_prog_DLLTOOL+:} false; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test -n "$DLLTOOL"; then
5832 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 DLLTOOL=$ac_cv_prog_DLLTOOL
5852 if test -n "$DLLTOOL"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5854 $as_echo "$DLLTOOL" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859
5860
5861 fi
5862 if test -z "$ac_cv_prog_DLLTOOL"; then
5863 ac_ct_DLLTOOL=$DLLTOOL
5864 # Extract the first word of "dlltool", so it can be a program name with args.
5865 set dummy dlltool; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if test -n "$ac_ct_DLLTOOL"; then
5872 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5892 if test -n "$ac_ct_DLLTOOL"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5894 $as_echo "$ac_ct_DLLTOOL" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900 if test "x$ac_ct_DLLTOOL" = x; then
5901 DLLTOOL="false"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904 yes:)
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907 ac_tool_warned=yes ;;
5908 esac
5909 DLLTOOL=$ac_ct_DLLTOOL
5910 fi
5911 else
5912 DLLTOOL="$ac_cv_prog_DLLTOOL"
5913 fi
5914
5915 test -z "$DLLTOOL" && DLLTOOL=dlltool
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5927 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5928 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 lt_cv_sharedlib_from_linklib_cmd='unknown'
5932
5933 case $host_os in
5934 cygwin* | mingw* | pw32* | cegcc*)
5935 # two different shell functions defined in ltmain.sh
5936 # decide which to use based on capabilities of $DLLTOOL
5937 case `$DLLTOOL --help 2>&1` in
5938 *--identify-strict*)
5939 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5940 ;;
5941 *)
5942 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5943 ;;
5944 esac
5945 ;;
5946 *)
5947 # fallback: assume linklib IS sharedlib
5948 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5949 ;;
5950 esac
5951
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5954 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5955 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5956 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5957
5958
5959
5960
5961
5962
5963
5964 if test -n "$ac_tool_prefix"; then
5965 for ac_prog in ar
5966 do
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_AR+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$AR"; then
5975 ac_cv_prog_AR="$AR" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 AR=$ac_cv_prog_AR
5995 if test -n "$AR"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5997 $as_echo "$AR" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002
6003
6004 test -n "$AR" && break
6005 done
6006 fi
6007 if test -z "$AR"; then
6008 ac_ct_AR=$AR
6009 for ac_prog in ar
6010 do
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 if test -n "$ac_ct_AR"; then
6019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_ac_ct_AR="$ac_prog"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032 done
6033 done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6039 if test -n "$ac_ct_AR"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6041 $as_echo "$ac_ct_AR" >&6; }
6042 else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 fi
6046
6047
6048 test -n "$ac_ct_AR" && break
6049 done
6050
6051 if test "x$ac_ct_AR" = x; then
6052 AR="false"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058 ac_tool_warned=yes ;;
6059 esac
6060 AR=$ac_ct_AR
6061 fi
6062 fi
6063
6064 : ${AR=ar}
6065 : ${AR_FLAGS=cru}
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6078 $as_echo_n "checking for archiver @FILE support... " >&6; }
6079 if ${lt_cv_ar_at_file+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_ar_at_file=no
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085
6086 int
6087 main ()
6088 {
6089
6090 ;
6091 return 0;
6092 }
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 echo conftest.$ac_objext > conftest.lst
6096 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6098 (eval $lt_ar_try) 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101 test $ac_status = 0; }
6102 if test "$ac_status" -eq 0; then
6103 # Ensure the archiver fails upon bogus file names.
6104 rm -f conftest.$ac_objext libconftest.a
6105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6106 (eval $lt_ar_try) 2>&5
6107 ac_status=$?
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; }
6110 if test "$ac_status" -ne 0; then
6111 lt_cv_ar_at_file=@
6112 fi
6113 fi
6114 rm -f conftest.* libconftest.a
6115
6116 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6121 $as_echo "$lt_cv_ar_at_file" >&6; }
6122
6123 if test "x$lt_cv_ar_at_file" = xno; then
6124 archiver_list_spec=
6125 else
6126 archiver_list_spec=$lt_cv_ar_at_file
6127 fi
6128
6129
6130
6131
6132
6133
6134
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}strip; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_STRIP+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 if test -n "$STRIP"; then
6144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 STRIP=$ac_cv_prog_STRIP
6164 if test -n "$STRIP"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6166 $as_echo "$STRIP" >&6; }
6167 else
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_STRIP"; then
6175 ac_ct_STRIP=$STRIP
6176 # Extract the first word of "strip", so it can be a program name with args.
6177 set dummy strip; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 if test -n "$ac_ct_STRIP"; then
6184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_STRIP="strip"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6204 if test -n "$ac_ct_STRIP"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6206 $as_echo "$ac_ct_STRIP" >&6; }
6207 else
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212 if test "x$ac_ct_STRIP" = x; then
6213 STRIP=":"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221 STRIP=$ac_ct_STRIP
6222 fi
6223 else
6224 STRIP="$ac_cv_prog_STRIP"
6225 fi
6226
6227 test -z "$STRIP" && STRIP=:
6228
6229
6230
6231
6232
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_RANLIB+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$RANLIB"; then
6243 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 RANLIB=$ac_cv_prog_RANLIB
6263 if test -n "$RANLIB"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6265 $as_echo "$RANLIB" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271
6272 fi
6273 if test -z "$ac_cv_prog_RANLIB"; then
6274 ac_ct_RANLIB=$RANLIB
6275 # Extract the first word of "ranlib", so it can be a program name with args.
6276 set dummy ranlib; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_RANLIB"; then
6283 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_RANLIB="ranlib"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6303 if test -n "$ac_ct_RANLIB"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6305 $as_echo "$ac_ct_RANLIB" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311 if test "x$ac_ct_RANLIB" = x; then
6312 RANLIB=":"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 RANLIB=$ac_ct_RANLIB
6321 fi
6322 else
6323 RANLIB="$ac_cv_prog_RANLIB"
6324 fi
6325
6326 test -z "$RANLIB" && RANLIB=:
6327
6328
6329
6330
6331
6332
6333 # Determine commands to create old-style static archives.
6334 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6335 old_postinstall_cmds='chmod 644 $oldlib'
6336 old_postuninstall_cmds=
6337
6338 if test -n "$RANLIB"; then
6339 case $host_os in
6340 openbsd*)
6341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6342 ;;
6343 *)
6344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6345 ;;
6346 esac
6347 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6348 fi
6349
6350 case $host_os in
6351 darwin*)
6352 lock_old_archive_extraction=yes ;;
6353 *)
6354 lock_old_archive_extraction=no ;;
6355 esac
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 # If no C compiler was specified, use CC.
6396 LTCC=${LTCC-"$CC"}
6397
6398 # If no C compiler flags were specified, use CFLAGS.
6399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6400
6401 # Allow CC to be a program name with arguments.
6402 compiler=$CC
6403
6404
6405 # Check for command to grab the raw symbol name followed by C symbol from nm.
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6407 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6408 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411
6412 # These are sane defaults that work on at least a few old systems.
6413 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6414
6415 # Character class describing NM global symbol codes.
6416 symcode='[BCDEGRST]'
6417
6418 # Regexp to match symbols that can be accessed directly from C.
6419 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6420
6421 # Define system-specific variables.
6422 case $host_os in
6423 aix*)
6424 symcode='[BCDT]'
6425 ;;
6426 cygwin* | mingw* | pw32* | cegcc*)
6427 symcode='[ABCDGISTW]'
6428 ;;
6429 hpux*)
6430 if test "$host_cpu" = ia64; then
6431 symcode='[ABCDEGRST]'
6432 fi
6433 ;;
6434 irix* | nonstopux*)
6435 symcode='[BCDEGRST]'
6436 ;;
6437 osf*)
6438 symcode='[BCDEGQRST]'
6439 ;;
6440 solaris*)
6441 symcode='[BDRT]'
6442 ;;
6443 sco3.2v5*)
6444 symcode='[DT]'
6445 ;;
6446 sysv4.2uw2*)
6447 symcode='[DT]'
6448 ;;
6449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6450 symcode='[ABDT]'
6451 ;;
6452 sysv4)
6453 symcode='[DFNSTU]'
6454 ;;
6455 esac
6456
6457 # If we're using GNU nm, then use its standard symbol codes.
6458 case `$NM -V 2>&1` in
6459 *GNU* | *'with BFD'*)
6460 symcode='[ABCDGIRSTW]' ;;
6461 esac
6462
6463 # Transform an extracted symbol line into a proper C declaration.
6464 # Some systems (esp. on ia64) link data and code symbols differently,
6465 # so use this general approach.
6466 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6467
6468 # Transform an extracted symbol line into symbol name and symbol address
6469 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6470 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'"
6471
6472 # Handle CRLF in mingw tool chain
6473 opt_cr=
6474 case $build_os in
6475 mingw*)
6476 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6477 ;;
6478 esac
6479
6480 # Try without a prefix underscore, then with it.
6481 for ac_symprfx in "" "_"; do
6482
6483 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6484 symxfrm="\\1 $ac_symprfx\\2 \\2"
6485
6486 # Write the raw and C identifiers.
6487 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6488 # Fake it for dumpbin and say T for any non-static function
6489 # and D for any global variable.
6490 # Also find C++ and __fastcall symbols from MSVC++,
6491 # which start with @ or ?.
6492 lt_cv_sys_global_symbol_pipe="$AWK '"\
6493 " {last_section=section; section=\$ 3};"\
6494 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6495 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6496 " \$ 0!~/External *\|/{next};"\
6497 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6498 " {if(hide[section]) next};"\
6499 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6500 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6501 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6502 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6503 " ' prfx=^$ac_symprfx"
6504 else
6505 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6506 fi
6507 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6508
6509 # Check to see that the pipe works correctly.
6510 pipe_works=no
6511
6512 rm -f conftest*
6513 cat > conftest.$ac_ext <<_LT_EOF
6514 #ifdef __cplusplus
6515 extern "C" {
6516 #endif
6517 char nm_test_var;
6518 void nm_test_func(void);
6519 void nm_test_func(void){}
6520 #ifdef __cplusplus
6521 }
6522 #endif
6523 int main(){nm_test_var='a';nm_test_func();return(0);}
6524 _LT_EOF
6525
6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6527 (eval $ac_compile) 2>&5
6528 ac_status=$?
6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6530 test $ac_status = 0; }; then
6531 # Now try to grab the symbols.
6532 nlist=conftest.nm
6533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6534 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; } && test -s "$nlist"; then
6538 # Try sorting and uniquifying the output.
6539 if sort "$nlist" | uniq > "$nlist"T; then
6540 mv -f "$nlist"T "$nlist"
6541 else
6542 rm -f "$nlist"T
6543 fi
6544
6545 # Make sure that we snagged all the symbols we need.
6546 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6547 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6548 cat <<_LT_EOF > conftest.$ac_ext
6549 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6550 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6551 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6552 relocations are performed -- see ld's documentation on pseudo-relocs. */
6553 # define LT_DLSYM_CONST
6554 #elif defined(__osf__)
6555 /* This system does not cope well with relocations in const data. */
6556 # define LT_DLSYM_CONST
6557 #else
6558 # define LT_DLSYM_CONST const
6559 #endif
6560
6561 #ifdef __cplusplus
6562 extern "C" {
6563 #endif
6564
6565 _LT_EOF
6566 # Now generate the symbol file.
6567 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6568
6569 cat <<_LT_EOF >> conftest.$ac_ext
6570
6571 /* The mapping between symbol names and symbols. */
6572 LT_DLSYM_CONST struct {
6573 const char *name;
6574 void *address;
6575 }
6576 lt__PROGRAM__LTX_preloaded_symbols[] =
6577 {
6578 { "@PROGRAM@", (void *) 0 },
6579 _LT_EOF
6580 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6581 cat <<\_LT_EOF >> conftest.$ac_ext
6582 {0, (void *) 0}
6583 };
6584
6585 /* This works around a problem in FreeBSD linker */
6586 #ifdef FREEBSD_WORKAROUND
6587 static const void *lt_preloaded_setup() {
6588 return lt__PROGRAM__LTX_preloaded_symbols;
6589 }
6590 #endif
6591
6592 #ifdef __cplusplus
6593 }
6594 #endif
6595 _LT_EOF
6596 # Now try linking the two files.
6597 mv conftest.$ac_objext conftstm.$ac_objext
6598 lt_globsym_save_LIBS=$LIBS
6599 lt_globsym_save_CFLAGS=$CFLAGS
6600 LIBS="conftstm.$ac_objext"
6601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6603 (eval $ac_link) 2>&5
6604 ac_status=$?
6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6607 pipe_works=yes
6608 fi
6609 LIBS=$lt_globsym_save_LIBS
6610 CFLAGS=$lt_globsym_save_CFLAGS
6611 else
6612 echo "cannot find nm_test_func in $nlist" >&5
6613 fi
6614 else
6615 echo "cannot find nm_test_var in $nlist" >&5
6616 fi
6617 else
6618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6619 fi
6620 else
6621 echo "$progname: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 fi
6624 rm -rf conftest* conftst*
6625
6626 # Do not use the global_symbol_pipe unless it works.
6627 if test "$pipe_works" = yes; then
6628 break
6629 else
6630 lt_cv_sys_global_symbol_pipe=
6631 fi
6632 done
6633
6634 fi
6635
6636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6637 lt_cv_sys_global_symbol_to_cdecl=
6638 fi
6639 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6641 $as_echo "failed" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6644 $as_echo "ok" >&6; }
6645 fi
6646
6647 # Response file support.
6648 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6649 nm_file_list_spec='@'
6650 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6651 nm_file_list_spec='@'
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6681 $as_echo_n "checking for sysroot... " >&6; }
6682
6683 # Check whether --with-sysroot was given.
6684 if test "${with_sysroot+set}" = set; then :
6685 withval=$with_sysroot;
6686 else
6687 with_sysroot=no
6688 fi
6689
6690
6691 lt_sysroot=
6692 case ${with_sysroot} in #(
6693 yes)
6694 if test "$GCC" = yes; then
6695 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6696 fi
6697 ;; #(
6698 /*)
6699 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6700 ;; #(
6701 no|'')
6702 ;; #(
6703 *)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6705 $as_echo "${with_sysroot}" >&6; }
6706 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6707 ;;
6708 esac
6709
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6711 $as_echo "${lt_sysroot:-no}" >&6; }
6712
6713
6714
6715
6716
6717 # Check whether --enable-libtool-lock was given.
6718 if test "${enable_libtool_lock+set}" = set; then :
6719 enableval=$enable_libtool_lock;
6720 fi
6721
6722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6723
6724 # Some flags need to be propagated to the compiler or linker for good
6725 # libtool support.
6726 case $host in
6727 ia64-*-hpux*)
6728 # Find out which ABI we are using.
6729 echo 'int i;' > conftest.$ac_ext
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731 (eval $ac_compile) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }; then
6735 case `/usr/bin/file conftest.$ac_objext` in
6736 *ELF-32*)
6737 HPUX_IA64_MODE="32"
6738 ;;
6739 *ELF-64*)
6740 HPUX_IA64_MODE="64"
6741 ;;
6742 esac
6743 fi
6744 rm -rf conftest*
6745 ;;
6746 *-*-irix6*)
6747 # Find out which ABI we are using.
6748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 if test "$lt_cv_prog_gnu_ld" = yes; then
6755 case `/usr/bin/file conftest.$ac_objext` in
6756 *32-bit*)
6757 LD="${LD-ld} -melf32bsmip"
6758 ;;
6759 *N32*)
6760 LD="${LD-ld} -melf32bmipn32"
6761 ;;
6762 *64-bit*)
6763 LD="${LD-ld} -melf64bmip"
6764 ;;
6765 esac
6766 else
6767 case `/usr/bin/file conftest.$ac_objext` in
6768 *32-bit*)
6769 LD="${LD-ld} -32"
6770 ;;
6771 *N32*)
6772 LD="${LD-ld} -n32"
6773 ;;
6774 *64-bit*)
6775 LD="${LD-ld} -64"
6776 ;;
6777 esac
6778 fi
6779 fi
6780 rm -rf conftest*
6781 ;;
6782
6783 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6784 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6785 # Find out which ABI we are using.
6786 echo 'int i;' > conftest.$ac_ext
6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6789 ac_status=$?
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }; then
6792 case `/usr/bin/file conftest.o` in
6793 *32-bit*)
6794 case $host in
6795 x86_64-*kfreebsd*-gnu)
6796 LD="${LD-ld} -m elf_i386_fbsd"
6797 ;;
6798 x86_64-*linux*)
6799 LD="${LD-ld} -m elf_i386"
6800 ;;
6801 ppc64-*linux*|powerpc64-*linux*)
6802 LD="${LD-ld} -m elf32ppclinux"
6803 ;;
6804 s390x-*linux*)
6805 LD="${LD-ld} -m elf_s390"
6806 ;;
6807 sparc64-*linux*)
6808 LD="${LD-ld} -m elf32_sparc"
6809 ;;
6810 esac
6811 ;;
6812 *64-bit*)
6813 case $host in
6814 x86_64-*kfreebsd*-gnu)
6815 LD="${LD-ld} -m elf_x86_64_fbsd"
6816 ;;
6817 x86_64-*linux*)
6818 LD="${LD-ld} -m elf_x86_64"
6819 ;;
6820 ppc*-*linux*|powerpc*-*linux*)
6821 LD="${LD-ld} -m elf64ppc"
6822 ;;
6823 s390*-*linux*|s390*-*tpf*)
6824 LD="${LD-ld} -m elf64_s390"
6825 ;;
6826 sparc*-*linux*)
6827 LD="${LD-ld} -m elf64_sparc"
6828 ;;
6829 esac
6830 ;;
6831 esac
6832 fi
6833 rm -rf conftest*
6834 ;;
6835
6836 *-*-sco3.2v5*)
6837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6838 SAVE_CFLAGS="$CFLAGS"
6839 CFLAGS="$CFLAGS -belf"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6841 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6842 if ${lt_cv_cc_needs_belf+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 ac_ext=c
6846 ac_cpp='$CPP $CPPFLAGS'
6847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853
6854 int
6855 main ()
6856 {
6857
6858 ;
6859 return 0;
6860 }
6861 _ACEOF
6862 if ac_fn_c_try_link "$LINENO"; then :
6863 lt_cv_cc_needs_belf=yes
6864 else
6865 lt_cv_cc_needs_belf=no
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6869 ac_ext=c
6870 ac_cpp='$CPP $CPPFLAGS'
6871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875 fi
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6877 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6880 CFLAGS="$SAVE_CFLAGS"
6881 fi
6882 ;;
6883 *-*solaris*)
6884 # Find out which ABI we are using.
6885 echo 'int i;' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 case `/usr/bin/file conftest.o` in
6892 *64-bit*)
6893 case $lt_cv_prog_gnu_ld in
6894 yes*)
6895 case $host in
6896 i?86-*-solaris*)
6897 LD="${LD-ld} -m elf_x86_64"
6898 ;;
6899 sparc*-*-solaris*)
6900 LD="${LD-ld} -m elf64_sparc"
6901 ;;
6902 esac
6903 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6904 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6905 LD="${LD-ld}_sol2"
6906 fi
6907 ;;
6908 *)
6909 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6910 LD="${LD-ld} -64"
6911 fi
6912 ;;
6913 esac
6914 ;;
6915 esac
6916 fi
6917 rm -rf conftest*
6918 ;;
6919 esac
6920
6921 need_locks="$enable_libtool_lock"
6922
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}mt; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$MANIFEST_TOOL"; then
6932 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6952 if test -n "$MANIFEST_TOOL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6954 $as_echo "$MANIFEST_TOOL" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6958 fi
6959
6960
6961 fi
6962 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6963 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6964 # Extract the first word of "mt", so it can be a program name with args.
6965 set dummy mt; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_MANIFEST_TOOL"; then
6972 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989 fi
6990 fi
6991 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6992 if test -n "$ac_ct_MANIFEST_TOOL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6994 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
6998 fi
6999
7000 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7001 MANIFEST_TOOL=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7010 fi
7011 else
7012 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7013 fi
7014
7015 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7017 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7018 if ${lt_cv_path_mainfest_tool+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 lt_cv_path_mainfest_tool=no
7022 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7023 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7024 cat conftest.err >&5
7025 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7026 lt_cv_path_mainfest_tool=yes
7027 fi
7028 rm -f conftest*
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7031 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7032 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7033 MANIFEST_TOOL=:
7034 fi
7035
7036
7037
7038
7039
7040
7041 case $host_os in
7042 rhapsody* | darwin*)
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7045 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$DSYMUTIL"; then
7052 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7072 if test -n "$DSYMUTIL"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7074 $as_echo "$DSYMUTIL" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080
7081 fi
7082 if test -z "$ac_cv_prog_DSYMUTIL"; then
7083 ac_ct_DSYMUTIL=$DSYMUTIL
7084 # Extract the first word of "dsymutil", so it can be a program name with args.
7085 set dummy dsymutil; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$ac_ct_DSYMUTIL"; then
7092 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7112 if test -n "$ac_ct_DSYMUTIL"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7114 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120 if test "x$ac_ct_DSYMUTIL" = x; then
7121 DSYMUTIL=":"
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124 yes:)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127 ac_tool_warned=yes ;;
7128 esac
7129 DSYMUTIL=$ac_ct_DSYMUTIL
7130 fi
7131 else
7132 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7133 fi
7134
7135 if test -n "$ac_tool_prefix"; then
7136 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7137 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_NMEDIT+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$NMEDIT"; then
7144 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 NMEDIT=$ac_cv_prog_NMEDIT
7164 if test -n "$NMEDIT"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7166 $as_echo "$NMEDIT" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172
7173 fi
7174 if test -z "$ac_cv_prog_NMEDIT"; then
7175 ac_ct_NMEDIT=$NMEDIT
7176 # Extract the first word of "nmedit", so it can be a program name with args.
7177 set dummy nmedit; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$ac_ct_NMEDIT"; then
7184 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7204 if test -n "$ac_ct_NMEDIT"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7206 $as_echo "$ac_ct_NMEDIT" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212 if test "x$ac_ct_NMEDIT" = x; then
7213 NMEDIT=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 NMEDIT=$ac_ct_NMEDIT
7222 fi
7223 else
7224 NMEDIT="$ac_cv_prog_NMEDIT"
7225 fi
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_LIPO+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$LIPO"; then
7236 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 LIPO=$ac_cv_prog_LIPO
7256 if test -n "$LIPO"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7258 $as_echo "$LIPO" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_LIPO"; then
7267 ac_ct_LIPO=$LIPO
7268 # Extract the first word of "lipo", so it can be a program name with args.
7269 set dummy lipo; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$ac_ct_LIPO"; then
7276 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_LIPO="lipo"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7296 if test -n "$ac_ct_LIPO"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7298 $as_echo "$ac_ct_LIPO" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304 if test "x$ac_ct_LIPO" = x; then
7305 LIPO=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313 LIPO=$ac_ct_LIPO
7314 fi
7315 else
7316 LIPO="$ac_cv_prog_LIPO"
7317 fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}otool; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_OTOOL+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$OTOOL"; then
7328 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 OTOOL=$ac_cv_prog_OTOOL
7348 if test -n "$OTOOL"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7350 $as_echo "$OTOOL" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_OTOOL"; then
7359 ac_ct_OTOOL=$OTOOL
7360 # Extract the first word of "otool", so it can be a program name with args.
7361 set dummy otool; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_OTOOL"; then
7368 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_OTOOL="otool"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7388 if test -n "$ac_ct_OTOOL"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7390 $as_echo "$ac_ct_OTOOL" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_OTOOL" = x; then
7397 OTOOL=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 OTOOL=$ac_ct_OTOOL
7406 fi
7407 else
7408 OTOOL="$ac_cv_prog_OTOOL"
7409 fi
7410
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_OTOOL64+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$OTOOL64"; then
7420 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 OTOOL64=$ac_cv_prog_OTOOL64
7440 if test -n "$OTOOL64"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7442 $as_echo "$OTOOL64" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_OTOOL64"; then
7451 ac_ct_OTOOL64=$OTOOL64
7452 # Extract the first word of "otool64", so it can be a program name with args.
7453 set dummy otool64; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 if test -n "$ac_ct_OTOOL64"; then
7460 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_OTOOL64="otool64"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7480 if test -n "$ac_ct_OTOOL64"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7482 $as_echo "$ac_ct_OTOOL64" >&6; }
7483 else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488 if test "x$ac_ct_OTOOL64" = x; then
7489 OTOOL64=":"
7490 else
7491 case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497 OTOOL64=$ac_ct_OTOOL64
7498 fi
7499 else
7500 OTOOL64="$ac_cv_prog_OTOOL64"
7501 fi
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7530 $as_echo_n "checking for -single_module linker flag... " >&6; }
7531 if ${lt_cv_apple_cc_single_mod+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 lt_cv_apple_cc_single_mod=no
7535 if test -z "${LT_MULTI_MODULE}"; then
7536 # By default we will add the -single_module flag. You can override
7537 # by either setting the environment variable LT_MULTI_MODULE
7538 # non-empty at configure time, or by adding -multi_module to the
7539 # link flags.
7540 rm -rf libconftest.dylib*
7541 echo "int foo(void){return 1;}" > conftest.c
7542 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7543 -dynamiclib -Wl,-single_module conftest.c" >&5
7544 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7545 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7546 _lt_result=$?
7547 # If there is a non-empty error log, and "single_module"
7548 # appears in it, assume the flag caused a linker warning
7549 if test -s conftest.err && $GREP single_module conftest.err; then
7550 cat conftest.err >&5
7551 # Otherwise, if the output was created with a 0 exit code from
7552 # the compiler, it worked.
7553 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7554 lt_cv_apple_cc_single_mod=yes
7555 else
7556 cat conftest.err >&5
7557 fi
7558 rm -rf libconftest.dylib*
7559 rm -f conftest.*
7560 fi
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7563 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7566 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7567 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 lt_cv_ld_exported_symbols_list=no
7571 save_LDFLAGS=$LDFLAGS
7572 echo "_main" > conftest.sym
7573 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576
7577 int
7578 main ()
7579 {
7580
7581 ;
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_link "$LINENO"; then :
7586 lt_cv_ld_exported_symbols_list=yes
7587 else
7588 lt_cv_ld_exported_symbols_list=no
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592 LDFLAGS="$save_LDFLAGS"
7593
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7596 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7597
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7599 $as_echo_n "checking for -force_load linker flag... " >&6; }
7600 if ${lt_cv_ld_force_load+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 lt_cv_ld_force_load=no
7604 cat > conftest.c << _LT_EOF
7605 int forced_loaded() { return 2;}
7606 _LT_EOF
7607 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7608 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7609 echo "$AR cru libconftest.a conftest.o" >&5
7610 $AR cru libconftest.a conftest.o 2>&5
7611 echo "$RANLIB libconftest.a" >&5
7612 $RANLIB libconftest.a 2>&5
7613 cat > conftest.c << _LT_EOF
7614 int main() { return 0;}
7615 _LT_EOF
7616 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7617 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7618 _lt_result=$?
7619 if test -s conftest.err && $GREP force_load conftest.err; then
7620 cat conftest.err >&5
7621 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7622 lt_cv_ld_force_load=yes
7623 else
7624 cat conftest.err >&5
7625 fi
7626 rm -f conftest.err libconftest.a conftest conftest.c
7627 rm -rf conftest.dSYM
7628
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7631 $as_echo "$lt_cv_ld_force_load" >&6; }
7632 case $host_os in
7633 rhapsody* | darwin1.[012])
7634 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7635 darwin1.*)
7636 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7637 darwin*) # darwin 5.x on
7638 # if running on 10.5 or later, the deployment target defaults
7639 # to the OS version, if on x86, and 10.4, the deployment
7640 # target defaults to 10.4. Don't you love it?
7641 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7642 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7643 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7644 10.[012]*)
7645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7646 10.*)
7647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7648 esac
7649 ;;
7650 esac
7651 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7652 _lt_dar_single_mod='$single_module'
7653 fi
7654 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7655 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7656 else
7657 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7658 fi
7659 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7660 _lt_dsymutil='~$DSYMUTIL $lib || :'
7661 else
7662 _lt_dsymutil=
7663 fi
7664 ;;
7665 esac
7666
7667 ac_ext=c
7668 ac_cpp='$CPP $CPPFLAGS'
7669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7673 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7674 # On Suns, sometimes $CPP names a directory.
7675 if test -n "$CPP" && test -d "$CPP"; then
7676 CPP=
7677 fi
7678 if test -z "$CPP"; then
7679 if ${ac_cv_prog_CPP+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 # Double quotes because CPP needs to be expanded
7683 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7684 do
7685 ac_preproc_ok=false
7686 for ac_c_preproc_warn_flag in '' yes
7687 do
7688 # Use a header file that comes with gcc, so configuring glibc
7689 # with a fresh cross-compiler works.
7690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7691 # <limits.h> exists even on freestanding compilers.
7692 # On the NeXT, cc -E runs the code through the compiler's parser,
7693 # not just through cpp. "Syntax error" is here to catch this case.
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695 /* end confdefs.h. */
7696 #ifdef __STDC__
7697 # include <limits.h>
7698 #else
7699 # include <assert.h>
7700 #endif
7701 Syntax error
7702 _ACEOF
7703 if ac_fn_c_try_cpp "$LINENO"; then :
7704
7705 else
7706 # Broken: fails on valid input.
7707 continue
7708 fi
7709 rm -f conftest.err conftest.i conftest.$ac_ext
7710
7711 # OK, works on sane cases. Now check whether nonexistent headers
7712 # can be detected and how.
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715 #include <ac_nonexistent.h>
7716 _ACEOF
7717 if ac_fn_c_try_cpp "$LINENO"; then :
7718 # Broken: success on invalid input.
7719 continue
7720 else
7721 # Passes both tests.
7722 ac_preproc_ok=:
7723 break
7724 fi
7725 rm -f conftest.err conftest.i conftest.$ac_ext
7726
7727 done
7728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7729 rm -f conftest.i conftest.err conftest.$ac_ext
7730 if $ac_preproc_ok; then :
7731 break
7732 fi
7733
7734 done
7735 ac_cv_prog_CPP=$CPP
7736
7737 fi
7738 CPP=$ac_cv_prog_CPP
7739 else
7740 ac_cv_prog_CPP=$CPP
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7743 $as_echo "$CPP" >&6; }
7744 ac_preproc_ok=false
7745 for ac_c_preproc_warn_flag in '' yes
7746 do
7747 # Use a header file that comes with gcc, so configuring glibc
7748 # with a fresh cross-compiler works.
7749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7750 # <limits.h> exists even on freestanding compilers.
7751 # On the NeXT, cc -E runs the code through the compiler's parser,
7752 # not just through cpp. "Syntax error" is here to catch this case.
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #ifdef __STDC__
7756 # include <limits.h>
7757 #else
7758 # include <assert.h>
7759 #endif
7760 Syntax error
7761 _ACEOF
7762 if ac_fn_c_try_cpp "$LINENO"; then :
7763
7764 else
7765 # Broken: fails on valid input.
7766 continue
7767 fi
7768 rm -f conftest.err conftest.i conftest.$ac_ext
7769
7770 # OK, works on sane cases. Now check whether nonexistent headers
7771 # can be detected and how.
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <ac_nonexistent.h>
7775 _ACEOF
7776 if ac_fn_c_try_cpp "$LINENO"; then :
7777 # Broken: success on invalid input.
7778 continue
7779 else
7780 # Passes both tests.
7781 ac_preproc_ok=:
7782 break
7783 fi
7784 rm -f conftest.err conftest.i conftest.$ac_ext
7785
7786 done
7787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7788 rm -f conftest.i conftest.err conftest.$ac_ext
7789 if $ac_preproc_ok; then :
7790
7791 else
7792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7794 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7795 See \`config.log' for more details" "$LINENO" 5; }
7796 fi
7797
7798 ac_ext=c
7799 ac_cpp='$CPP $CPPFLAGS'
7800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7806 $as_echo_n "checking for ANSI C header files... " >&6; }
7807 if ${ac_cv_header_stdc+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 #include <stdlib.h>
7813 #include <stdarg.h>
7814 #include <string.h>
7815 #include <float.h>
7816
7817 int
7818 main ()
7819 {
7820
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"; then :
7826 ac_cv_header_stdc=yes
7827 else
7828 ac_cv_header_stdc=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831
7832 if test $ac_cv_header_stdc = yes; then
7833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <string.h>
7837
7838 _ACEOF
7839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7840 $EGREP "memchr" >/dev/null 2>&1; then :
7841
7842 else
7843 ac_cv_header_stdc=no
7844 fi
7845 rm -f conftest*
7846
7847 fi
7848
7849 if test $ac_cv_header_stdc = yes; then
7850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <stdlib.h>
7854
7855 _ACEOF
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857 $EGREP "free" >/dev/null 2>&1; then :
7858
7859 else
7860 ac_cv_header_stdc=no
7861 fi
7862 rm -f conftest*
7863
7864 fi
7865
7866 if test $ac_cv_header_stdc = yes; then
7867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7868 if test "$cross_compiling" = yes; then :
7869 :
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <ctype.h>
7874 #include <stdlib.h>
7875 #if ((' ' & 0x0FF) == 0x020)
7876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7878 #else
7879 # define ISLOWER(c) \
7880 (('a' <= (c) && (c) <= 'i') \
7881 || ('j' <= (c) && (c) <= 'r') \
7882 || ('s' <= (c) && (c) <= 'z'))
7883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7884 #endif
7885
7886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7887 int
7888 main ()
7889 {
7890 int i;
7891 for (i = 0; i < 256; i++)
7892 if (XOR (islower (i), ISLOWER (i))
7893 || toupper (i) != TOUPPER (i))
7894 return 2;
7895 return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_run "$LINENO"; then :
7899
7900 else
7901 ac_cv_header_stdc=no
7902 fi
7903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7904 conftest.$ac_objext conftest.beam conftest.$ac_ext
7905 fi
7906
7907 fi
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7910 $as_echo "$ac_cv_header_stdc" >&6; }
7911 if test $ac_cv_header_stdc = yes; then
7912
7913 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7914
7915 fi
7916
7917 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7918 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7919 inttypes.h stdint.h unistd.h
7920 do :
7921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7923 "
7924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7925 cat >>confdefs.h <<_ACEOF
7926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7927 _ACEOF
7928
7929 fi
7930
7931 done
7932
7933
7934 for ac_header in dlfcn.h
7935 do :
7936 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7937 "
7938 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_DLFCN_H 1
7941 _ACEOF
7942
7943 fi
7944
7945 done
7946
7947
7948
7949
7950
7951 # Set options
7952 enable_dlopen=yes
7953 # Check whether --enable-static was given.
7954 if test "${enable_static+set}" = set; then :
7955 enableval=$enable_static; p=${PACKAGE-default}
7956 case $enableval in
7957 yes) enable_static=yes ;;
7958 no) enable_static=no ;;
7959 *)
7960 enable_static=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963 for pkg in $enableval; do
7964 IFS="$lt_save_ifs"
7965 if test "X$pkg" = "X$p"; then
7966 enable_static=yes
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 ;;
7971 esac
7972 else
7973 enable_static=no
7974 fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986 enable_win32_dll=no
7987
7988
7989 # Check whether --enable-shared was given.
7990 if test "${enable_shared+set}" = set; then :
7991 enableval=$enable_shared; p=${PACKAGE-default}
7992 case $enableval in
7993 yes) enable_shared=yes ;;
7994 no) enable_shared=no ;;
7995 *)
7996 enable_shared=no
7997 # Look at the argument we got. We use all the common list separators.
7998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7999 for pkg in $enableval; do
8000 IFS="$lt_save_ifs"
8001 if test "X$pkg" = "X$p"; then
8002 enable_shared=yes
8003 fi
8004 done
8005 IFS="$lt_save_ifs"
8006 ;;
8007 esac
8008 else
8009 enable_shared=yes
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 # Check whether --with-pic was given.
8023 if test "${with_pic+set}" = set; then :
8024 withval=$with_pic; lt_p=${PACKAGE-default}
8025 case $withval in
8026 yes|no) pic_mode=$withval ;;
8027 *)
8028 pic_mode=default
8029 # Look at the argument we got. We use all the common list separators.
8030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8031 for lt_pkg in $withval; do
8032 IFS="$lt_save_ifs"
8033 if test "X$lt_pkg" = "X$lt_p"; then
8034 pic_mode=yes
8035 fi
8036 done
8037 IFS="$lt_save_ifs"
8038 ;;
8039 esac
8040 else
8041 pic_mode=default
8042 fi
8043
8044
8045 test -z "$pic_mode" && pic_mode=default
8046
8047
8048
8049
8050
8051
8052
8053 # Check whether --enable-fast-install was given.
8054 if test "${enable_fast_install+set}" = set; then :
8055 enableval=$enable_fast_install; p=${PACKAGE-default}
8056 case $enableval in
8057 yes) enable_fast_install=yes ;;
8058 no) enable_fast_install=no ;;
8059 *)
8060 enable_fast_install=no
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063 for pkg in $enableval; do
8064 IFS="$lt_save_ifs"
8065 if test "X$pkg" = "X$p"; then
8066 enable_fast_install=yes
8067 fi
8068 done
8069 IFS="$lt_save_ifs"
8070 ;;
8071 esac
8072 else
8073 enable_fast_install=yes
8074 fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086 # This can be used to rebuild libtool when needed
8087 LIBTOOL_DEPS="$ltmain"
8088
8089 # Always use our own libtool.
8090 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 test -z "$LN_S" && LN_S="ln -s"
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136 if test -n "${ZSH_VERSION+set}" ; then
8137 setopt NO_GLOB_SUBST
8138 fi
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8141 $as_echo_n "checking for objdir... " >&6; }
8142 if ${lt_cv_objdir+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 rm -f .libs 2>/dev/null
8146 mkdir .libs 2>/dev/null
8147 if test -d .libs; then
8148 lt_cv_objdir=.libs
8149 else
8150 # MS-DOS does not allow filenames that begin with a dot.
8151 lt_cv_objdir=_libs
8152 fi
8153 rmdir .libs 2>/dev/null
8154 fi
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8156 $as_echo "$lt_cv_objdir" >&6; }
8157 objdir=$lt_cv_objdir
8158
8159
8160
8161
8162
8163 cat >>confdefs.h <<_ACEOF
8164 #define LT_OBJDIR "$lt_cv_objdir/"
8165 _ACEOF
8166
8167
8168
8169
8170 case $host_os in
8171 aix3*)
8172 # AIX sometimes has problems with the GCC collect2 program. For some
8173 # reason, if we set the COLLECT_NAMES environment variable, the problems
8174 # vanish in a puff of smoke.
8175 if test "X${COLLECT_NAMES+set}" != Xset; then
8176 COLLECT_NAMES=
8177 export COLLECT_NAMES
8178 fi
8179 ;;
8180 esac
8181
8182 # Global variables:
8183 ofile=libtool
8184 can_build_shared=yes
8185
8186 # All known linkers require a `.a' archive for static linking (except MSVC,
8187 # which needs '.lib').
8188 libext=a
8189
8190 with_gnu_ld="$lt_cv_prog_gnu_ld"
8191
8192 old_CC="$CC"
8193 old_CFLAGS="$CFLAGS"
8194
8195 # Set sane defaults for various variables
8196 test -z "$CC" && CC=cc
8197 test -z "$LTCC" && LTCC=$CC
8198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8199 test -z "$LD" && LD=ld
8200 test -z "$ac_objext" && ac_objext=o
8201
8202 for cc_temp in $compiler""; do
8203 case $cc_temp in
8204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8206 \-*) ;;
8207 *) break;;
8208 esac
8209 done
8210 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8211
8212
8213 # Only perform the check for file, if the check method requires it
8214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8215 case $deplibs_check_method in
8216 file_magic*)
8217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8219 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8220 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 case $MAGIC_CMD in
8224 [\\/*] | ?:[\\/]*)
8225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8226 ;;
8227 *)
8228 lt_save_MAGIC_CMD="$MAGIC_CMD"
8229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231 for ac_dir in $ac_dummy; do
8232 IFS="$lt_save_ifs"
8233 test -z "$ac_dir" && ac_dir=.
8234 if test -f $ac_dir/${ac_tool_prefix}file; then
8235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8236 if test -n "$file_magic_test_file"; then
8237 case $deplibs_check_method in
8238 "file_magic "*)
8239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242 $EGREP "$file_magic_regex" > /dev/null; then
8243 :
8244 else
8245 cat <<_LT_EOF 1>&2
8246
8247 *** Warning: the command libtool uses to detect shared libraries,
8248 *** $file_magic_cmd, produces output that libtool cannot recognize.
8249 *** The result is that libtool may fail to recognize shared libraries
8250 *** as such. This will affect the creation of libtool libraries that
8251 *** depend on shared libraries, but programs linked with such libtool
8252 *** libraries will work regardless of this problem. Nevertheless, you
8253 *** may want to report the problem to your system manager and/or to
8254 *** bug-libtool@gnu.org
8255
8256 _LT_EOF
8257 fi ;;
8258 esac
8259 fi
8260 break
8261 fi
8262 done
8263 IFS="$lt_save_ifs"
8264 MAGIC_CMD="$lt_save_MAGIC_CMD"
8265 ;;
8266 esac
8267 fi
8268
8269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8270 if test -n "$MAGIC_CMD"; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8272 $as_echo "$MAGIC_CMD" >&6; }
8273 else
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275 $as_echo "no" >&6; }
8276 fi
8277
8278
8279
8280
8281
8282 if test -z "$lt_cv_path_MAGIC_CMD"; then
8283 if test -n "$ac_tool_prefix"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8285 $as_echo_n "checking for file... " >&6; }
8286 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 case $MAGIC_CMD in
8290 [\\/*] | ?:[\\/]*)
8291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8292 ;;
8293 *)
8294 lt_save_MAGIC_CMD="$MAGIC_CMD"
8295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297 for ac_dir in $ac_dummy; do
8298 IFS="$lt_save_ifs"
8299 test -z "$ac_dir" && ac_dir=.
8300 if test -f $ac_dir/file; then
8301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8302 if test -n "$file_magic_test_file"; then
8303 case $deplibs_check_method in
8304 "file_magic "*)
8305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308 $EGREP "$file_magic_regex" > /dev/null; then
8309 :
8310 else
8311 cat <<_LT_EOF 1>&2
8312
8313 *** Warning: the command libtool uses to detect shared libraries,
8314 *** $file_magic_cmd, produces output that libtool cannot recognize.
8315 *** The result is that libtool may fail to recognize shared libraries
8316 *** as such. This will affect the creation of libtool libraries that
8317 *** depend on shared libraries, but programs linked with such libtool
8318 *** libraries will work regardless of this problem. Nevertheless, you
8319 *** may want to report the problem to your system manager and/or to
8320 *** bug-libtool@gnu.org
8321
8322 _LT_EOF
8323 fi ;;
8324 esac
8325 fi
8326 break
8327 fi
8328 done
8329 IFS="$lt_save_ifs"
8330 MAGIC_CMD="$lt_save_MAGIC_CMD"
8331 ;;
8332 esac
8333 fi
8334
8335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336 if test -n "$MAGIC_CMD"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8338 $as_echo "$MAGIC_CMD" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344
8345 else
8346 MAGIC_CMD=:
8347 fi
8348 fi
8349
8350 fi
8351 ;;
8352 esac
8353
8354 # Use C for the default configuration in the libtool script
8355
8356 lt_save_CC="$CC"
8357 ac_ext=c
8358 ac_cpp='$CPP $CPPFLAGS'
8359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363
8364 # Source file extension for C test sources.
8365 ac_ext=c
8366
8367 # Object file extension for compiled C test sources.
8368 objext=o
8369 objext=$objext
8370
8371 # Code to be used in simple compile tests
8372 lt_simple_compile_test_code="int some_variable = 0;"
8373
8374 # Code to be used in simple link tests
8375 lt_simple_link_test_code='int main(){return(0);}'
8376
8377
8378
8379
8380
8381
8382
8383 # If no C compiler was specified, use CC.
8384 LTCC=${LTCC-"$CC"}
8385
8386 # If no C compiler flags were specified, use CFLAGS.
8387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8388
8389 # Allow CC to be a program name with arguments.
8390 compiler=$CC
8391
8392 # Save the default compiler, since it gets overwritten when the other
8393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8394 compiler_DEFAULT=$CC
8395
8396 # save warnings/boilerplate of simple test code
8397 ac_outfile=conftest.$ac_objext
8398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8400 _lt_compiler_boilerplate=`cat conftest.err`
8401 $RM conftest*
8402
8403 ac_outfile=conftest.$ac_objext
8404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8406 _lt_linker_boilerplate=`cat conftest.err`
8407 $RM -r conftest*
8408
8409
8410 if test -n "$compiler"; then
8411
8412 lt_prog_compiler_no_builtin_flag=
8413
8414 if test "$GCC" = yes; then
8415 case $cc_basename in
8416 nvcc*)
8417 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8418 *)
8419 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8420 esac
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8423 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8424 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 lt_cv_prog_compiler_rtti_exceptions=no
8428 ac_outfile=conftest.$ac_objext
8429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8430 lt_compiler_flag="-fno-rtti -fno-exceptions"
8431 # Insert the option either (1) after the last *FLAGS variable, or
8432 # (2) before a word containing "conftest.", or (3) at the end.
8433 # Note that $ac_compile itself does not contain backslashes and begins
8434 # with a dollar sign (not a hyphen), so the echo should work correctly.
8435 # The option is referenced via a variable to avoid confusing sed.
8436 lt_compile=`echo "$ac_compile" | $SED \
8437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8439 -e 's:$: $lt_compiler_flag:'`
8440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8441 (eval "$lt_compile" 2>conftest.err)
8442 ac_status=$?
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 if (exit $ac_status) && test -s "$ac_outfile"; then
8446 # The compiler can only warn and ignore the option if not recognized
8447 # So say no if there are warnings other than the usual output.
8448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8451 lt_cv_prog_compiler_rtti_exceptions=yes
8452 fi
8453 fi
8454 $RM conftest*
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8458 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8459
8460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8461 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8462 else
8463 :
8464 fi
8465
8466 fi
8467
8468
8469
8470
8471
8472
8473 lt_prog_compiler_wl=
8474 lt_prog_compiler_pic=
8475 lt_prog_compiler_static=
8476
8477
8478 if test "$GCC" = yes; then
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_static='-static'
8481
8482 case $host_os in
8483 aix*)
8484 # All AIX code is PIC.
8485 if test "$host_cpu" = ia64; then
8486 # AIX 5 now supports IA64 processor
8487 lt_prog_compiler_static='-Bstatic'
8488 fi
8489 ;;
8490
8491 amigaos*)
8492 case $host_cpu in
8493 powerpc)
8494 # see comment about AmigaOS4 .so support
8495 lt_prog_compiler_pic='-fPIC'
8496 ;;
8497 m68k)
8498 # FIXME: we need at least 68020 code to build shared libraries, but
8499 # adding the `-m68020' flag to GCC prevents building anything better,
8500 # like `-m68040'.
8501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8502 ;;
8503 esac
8504 ;;
8505
8506 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8507 # PIC is the default for these OSes.
8508 ;;
8509
8510 mingw* | cygwin* | pw32* | os2* | cegcc*)
8511 # This hack is so that the source file can tell whether it is being
8512 # built for inclusion in a dll (and should export symbols for example).
8513 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8514 # (--disable-auto-import) libraries
8515 lt_prog_compiler_pic='-DDLL_EXPORT'
8516 ;;
8517
8518 darwin* | rhapsody*)
8519 # PIC is the default on this platform
8520 # Common symbols not allowed in MH_DYLIB files
8521 lt_prog_compiler_pic='-fno-common'
8522 ;;
8523
8524 haiku*)
8525 # PIC is the default for Haiku.
8526 # The "-static" flag exists, but is broken.
8527 lt_prog_compiler_static=
8528 ;;
8529
8530 hpux*)
8531 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8532 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8533 # sets the default TLS model and affects inlining.
8534 case $host_cpu in
8535 hppa*64*)
8536 # +Z the default
8537 ;;
8538 *)
8539 lt_prog_compiler_pic='-fPIC'
8540 ;;
8541 esac
8542 ;;
8543
8544 interix[3-9]*)
8545 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8546 # Instead, we relocate shared libraries at runtime.
8547 ;;
8548
8549 msdosdjgpp*)
8550 # Just because we use GCC doesn't mean we suddenly get shared libraries
8551 # on systems that don't support them.
8552 lt_prog_compiler_can_build_shared=no
8553 enable_shared=no
8554 ;;
8555
8556 *nto* | *qnx*)
8557 # QNX uses GNU C++, but need to define -shared option too, otherwise
8558 # it will coredump.
8559 lt_prog_compiler_pic='-fPIC -shared'
8560 ;;
8561
8562 sysv4*MP*)
8563 if test -d /usr/nec; then
8564 lt_prog_compiler_pic=-Kconform_pic
8565 fi
8566 ;;
8567
8568 *)
8569 lt_prog_compiler_pic='-fPIC'
8570 ;;
8571 esac
8572
8573 case $cc_basename in
8574 nvcc*) # Cuda Compiler Driver 2.2
8575 lt_prog_compiler_wl='-Xlinker '
8576 if test -n "$lt_prog_compiler_pic"; then
8577 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8578 fi
8579 ;;
8580 esac
8581 else
8582 # PORTME Check for flag to pass linker flags through the system compiler.
8583 case $host_os in
8584 aix*)
8585 lt_prog_compiler_wl='-Wl,'
8586 if test "$host_cpu" = ia64; then
8587 # AIX 5 now supports IA64 processor
8588 lt_prog_compiler_static='-Bstatic'
8589 else
8590 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8591 fi
8592 ;;
8593
8594 mingw* | cygwin* | pw32* | os2* | cegcc*)
8595 # This hack is so that the source file can tell whether it is being
8596 # built for inclusion in a dll (and should export symbols for example).
8597 lt_prog_compiler_pic='-DDLL_EXPORT'
8598 ;;
8599
8600 hpux9* | hpux10* | hpux11*)
8601 lt_prog_compiler_wl='-Wl,'
8602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8603 # not for PA HP-UX.
8604 case $host_cpu in
8605 hppa*64*|ia64*)
8606 # +Z the default
8607 ;;
8608 *)
8609 lt_prog_compiler_pic='+Z'
8610 ;;
8611 esac
8612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8613 lt_prog_compiler_static='${wl}-a ${wl}archive'
8614 ;;
8615
8616 irix5* | irix6* | nonstopux*)
8617 lt_prog_compiler_wl='-Wl,'
8618 # PIC (with -KPIC) is the default.
8619 lt_prog_compiler_static='-non_shared'
8620 ;;
8621
8622 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8623 case $cc_basename in
8624 # old Intel for x86_64 which still supported -KPIC.
8625 ecc*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-static'
8629 ;;
8630 # icc used to be incompatible with GCC.
8631 # ICC 10 doesn't accept -KPIC any more.
8632 icc* | ifort*)
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='-fPIC'
8635 lt_prog_compiler_static='-static'
8636 ;;
8637 # Lahey Fortran 8.1.
8638 lf95*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='--shared'
8641 lt_prog_compiler_static='--static'
8642 ;;
8643 nagfor*)
8644 # NAG Fortran compiler
8645 lt_prog_compiler_wl='-Wl,-Wl,,'
8646 lt_prog_compiler_pic='-PIC'
8647 lt_prog_compiler_static='-Bstatic'
8648 ;;
8649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8650 # Portland Group compilers (*not* the Pentium gcc compiler,
8651 # which looks to be a dead project)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-fpic'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656 ccc*)
8657 lt_prog_compiler_wl='-Wl,'
8658 # All Alpha code is PIC.
8659 lt_prog_compiler_static='-non_shared'
8660 ;;
8661 xl* | bgxl* | bgf* | mpixl*)
8662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8663 lt_prog_compiler_wl='-Wl,'
8664 lt_prog_compiler_pic='-qpic'
8665 lt_prog_compiler_static='-qstaticlink'
8666 ;;
8667 *)
8668 case `$CC -V 2>&1 | sed 5q` in
8669 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8671 lt_prog_compiler_pic='-KPIC'
8672 lt_prog_compiler_static='-Bstatic'
8673 lt_prog_compiler_wl=''
8674 ;;
8675 *Sun\ F* | *Sun*Fortran*)
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 lt_prog_compiler_wl='-Qoption ld '
8679 ;;
8680 *Sun\ C*)
8681 # Sun C 5.9
8682 lt_prog_compiler_pic='-KPIC'
8683 lt_prog_compiler_static='-Bstatic'
8684 lt_prog_compiler_wl='-Wl,'
8685 ;;
8686 *Intel*\ [CF]*Compiler*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-fPIC'
8689 lt_prog_compiler_static='-static'
8690 ;;
8691 *Portland\ Group*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-fpic'
8694 lt_prog_compiler_static='-Bstatic'
8695 ;;
8696 esac
8697 ;;
8698 esac
8699 ;;
8700
8701 newsos6)
8702 lt_prog_compiler_pic='-KPIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705
8706 *nto* | *qnx*)
8707 # QNX uses GNU C++, but need to define -shared option too, otherwise
8708 # it will coredump.
8709 lt_prog_compiler_pic='-fPIC -shared'
8710 ;;
8711
8712 osf3* | osf4* | osf5*)
8713 lt_prog_compiler_wl='-Wl,'
8714 # All OSF/1 code is PIC.
8715 lt_prog_compiler_static='-non_shared'
8716 ;;
8717
8718 rdos*)
8719 lt_prog_compiler_static='-non_shared'
8720 ;;
8721
8722 solaris*)
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 case $cc_basename in
8726 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8727 lt_prog_compiler_wl='-Qoption ld ';;
8728 *)
8729 lt_prog_compiler_wl='-Wl,';;
8730 esac
8731 ;;
8732
8733 sunos4*)
8734 lt_prog_compiler_wl='-Qoption ld '
8735 lt_prog_compiler_pic='-PIC'
8736 lt_prog_compiler_static='-Bstatic'
8737 ;;
8738
8739 sysv4 | sysv4.2uw2* | sysv4.3*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 ;;
8744
8745 sysv4*MP*)
8746 if test -d /usr/nec ;then
8747 lt_prog_compiler_pic='-Kconform_pic'
8748 lt_prog_compiler_static='-Bstatic'
8749 fi
8750 ;;
8751
8752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 ;;
8757
8758 unicos*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_can_build_shared=no
8761 ;;
8762
8763 uts4*)
8764 lt_prog_compiler_pic='-pic'
8765 lt_prog_compiler_static='-Bstatic'
8766 ;;
8767
8768 *)
8769 lt_prog_compiler_can_build_shared=no
8770 ;;
8771 esac
8772 fi
8773
8774 case $host_os in
8775 # For platforms which do not support PIC, -DPIC is meaningless:
8776 *djgpp*)
8777 lt_prog_compiler_pic=
8778 ;;
8779 *)
8780 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8781 ;;
8782 esac
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8785 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8786 if ${lt_cv_prog_compiler_pic+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8790 fi
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8792 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8793 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8794
8795 #
8796 # Check to make sure the PIC flag actually works.
8797 #
8798 if test -n "$lt_prog_compiler_pic"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8800 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8801 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 lt_cv_prog_compiler_pic_works=no
8805 ac_outfile=conftest.$ac_objext
8806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8808 # Insert the option either (1) after the last *FLAGS variable, or
8809 # (2) before a word containing "conftest.", or (3) at the end.
8810 # Note that $ac_compile itself does not contain backslashes and begins
8811 # with a dollar sign (not a hyphen), so the echo should work correctly.
8812 # The option is referenced via a variable to avoid confusing sed.
8813 lt_compile=`echo "$ac_compile" | $SED \
8814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816 -e 's:$: $lt_compiler_flag:'`
8817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818 (eval "$lt_compile" 2>conftest.err)
8819 ac_status=$?
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 if (exit $ac_status) && test -s "$ac_outfile"; then
8823 # The compiler can only warn and ignore the option if not recognized
8824 # So say no if there are warnings other than the usual output.
8825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8828 lt_cv_prog_compiler_pic_works=yes
8829 fi
8830 fi
8831 $RM conftest*
8832
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8835 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8836
8837 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8838 case $lt_prog_compiler_pic in
8839 "" | " "*) ;;
8840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8841 esac
8842 else
8843 lt_prog_compiler_pic=
8844 lt_prog_compiler_can_build_shared=no
8845 fi
8846
8847 fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 #
8860 # Check to make sure the static flag actually works.
8861 #
8862 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8864 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8865 if ${lt_cv_prog_compiler_static_works+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 lt_cv_prog_compiler_static_works=no
8869 save_LDFLAGS="$LDFLAGS"
8870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8873 # The linker can only warn and ignore the option if not recognized
8874 # So say no if there are warnings
8875 if test -s conftest.err; then
8876 # Append any errors to the config.log.
8877 cat conftest.err 1>&5
8878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8880 if diff conftest.exp conftest.er2 >/dev/null; then
8881 lt_cv_prog_compiler_static_works=yes
8882 fi
8883 else
8884 lt_cv_prog_compiler_static_works=yes
8885 fi
8886 fi
8887 $RM -r conftest*
8888 LDFLAGS="$save_LDFLAGS"
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8892 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8893
8894 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8895 :
8896 else
8897 lt_prog_compiler_static=
8898 fi
8899
8900
8901
8902
8903
8904
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8907 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8908 if ${lt_cv_prog_compiler_c_o+:} false; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 lt_cv_prog_compiler_c_o=no
8912 $RM -r conftest 2>/dev/null
8913 mkdir conftest
8914 cd conftest
8915 mkdir out
8916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8917
8918 lt_compiler_flag="-o out/conftest2.$ac_objext"
8919 # Insert the option either (1) after the last *FLAGS variable, or
8920 # (2) before a word containing "conftest.", or (3) at the end.
8921 # Note that $ac_compile itself does not contain backslashes and begins
8922 # with a dollar sign (not a hyphen), so the echo should work correctly.
8923 lt_compile=`echo "$ac_compile" | $SED \
8924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8926 -e 's:$: $lt_compiler_flag:'`
8927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8928 (eval "$lt_compile" 2>out/conftest.err)
8929 ac_status=$?
8930 cat out/conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8933 then
8934 # The compiler can only warn and ignore the option if not recognized
8935 # So say no if there are warnings
8936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8939 lt_cv_prog_compiler_c_o=yes
8940 fi
8941 fi
8942 chmod u+w . 2>&5
8943 $RM conftest*
8944 # SGI C++ compiler will create directory out/ii_files/ for
8945 # template instantiation
8946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8947 $RM out/* && rmdir out
8948 cd ..
8949 $RM -r conftest
8950 $RM conftest*
8951
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8954 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8955
8956
8957
8958
8959
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8962 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8963 if ${lt_cv_prog_compiler_c_o+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 lt_cv_prog_compiler_c_o=no
8967 $RM -r conftest 2>/dev/null
8968 mkdir conftest
8969 cd conftest
8970 mkdir out
8971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8972
8973 lt_compiler_flag="-o out/conftest2.$ac_objext"
8974 # Insert the option either (1) after the last *FLAGS variable, or
8975 # (2) before a word containing "conftest.", or (3) at the end.
8976 # Note that $ac_compile itself does not contain backslashes and begins
8977 # with a dollar sign (not a hyphen), so the echo should work correctly.
8978 lt_compile=`echo "$ac_compile" | $SED \
8979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981 -e 's:$: $lt_compiler_flag:'`
8982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8983 (eval "$lt_compile" 2>out/conftest.err)
8984 ac_status=$?
8985 cat out/conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8988 then
8989 # The compiler can only warn and ignore the option if not recognized
8990 # So say no if there are warnings
8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994 lt_cv_prog_compiler_c_o=yes
8995 fi
8996 fi
8997 chmod u+w . 2>&5
8998 $RM conftest*
8999 # SGI C++ compiler will create directory out/ii_files/ for
9000 # template instantiation
9001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002 $RM out/* && rmdir out
9003 cd ..
9004 $RM -r conftest
9005 $RM conftest*
9006
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9009 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010
9011
9012
9013
9014 hard_links="nottested"
9015 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9016 # do not overwrite the value of need_locks provided by the user
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9018 $as_echo_n "checking if we can lock with hard links... " >&6; }
9019 hard_links=yes
9020 $RM conftest*
9021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9022 touch conftest.a
9023 ln conftest.a conftest.b 2>&5 || hard_links=no
9024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9026 $as_echo "$hard_links" >&6; }
9027 if test "$hard_links" = no; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9029 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9030 need_locks=warn
9031 fi
9032 else
9033 need_locks=no
9034 fi
9035
9036
9037
9038
9039
9040
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9042 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9043
9044 runpath_var=
9045 allow_undefined_flag=
9046 always_export_symbols=no
9047 archive_cmds=
9048 archive_expsym_cmds=
9049 compiler_needs_object=no
9050 enable_shared_with_static_runtimes=no
9051 export_dynamic_flag_spec=
9052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9053 hardcode_automatic=no
9054 hardcode_direct=no
9055 hardcode_direct_absolute=no
9056 hardcode_libdir_flag_spec=
9057 hardcode_libdir_separator=
9058 hardcode_minus_L=no
9059 hardcode_shlibpath_var=unsupported
9060 inherit_rpath=no
9061 link_all_deplibs=unknown
9062 module_cmds=
9063 module_expsym_cmds=
9064 old_archive_from_new_cmds=
9065 old_archive_from_expsyms_cmds=
9066 thread_safe_flag_spec=
9067 whole_archive_flag_spec=
9068 # include_expsyms should be a list of space-separated symbols to be *always*
9069 # included in the symbol list
9070 include_expsyms=
9071 # exclude_expsyms can be an extended regexp of symbols to exclude
9072 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9073 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9074 # as well as any symbol that contains `d'.
9075 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9076 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9077 # platforms (ab)use it in PIC code, but their linkers get confused if
9078 # the symbol is explicitly referenced. Since portable code cannot
9079 # rely on this symbol name, it's probably fine to never include it in
9080 # preloaded symbol tables.
9081 # Exclude shared library initialization/finalization symbols.
9082 extract_expsyms_cmds=
9083
9084 case $host_os in
9085 cygwin* | mingw* | pw32* | cegcc*)
9086 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9087 # When not using gcc, we currently assume that we are using
9088 # Microsoft Visual C++.
9089 if test "$GCC" != yes; then
9090 with_gnu_ld=no
9091 fi
9092 ;;
9093 interix*)
9094 # we just hope/assume this is gcc and not c89 (= MSVC++)
9095 with_gnu_ld=yes
9096 ;;
9097 openbsd*)
9098 with_gnu_ld=no
9099 ;;
9100 esac
9101
9102 ld_shlibs=yes
9103
9104 # On some targets, GNU ld is compatible enough with the native linker
9105 # that we're better off using the native interface for both.
9106 lt_use_gnu_ld_interface=no
9107 if test "$with_gnu_ld" = yes; then
9108 case $host_os in
9109 aix*)
9110 # The AIX port of GNU ld has always aspired to compatibility
9111 # with the native linker. However, as the warning in the GNU ld
9112 # block says, versions before 2.19.5* couldn't really create working
9113 # shared libraries, regardless of the interface used.
9114 case `$LD -v 2>&1` in
9115 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9116 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9117 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9118 *)
9119 lt_use_gnu_ld_interface=yes
9120 ;;
9121 esac
9122 ;;
9123 *)
9124 lt_use_gnu_ld_interface=yes
9125 ;;
9126 esac
9127 fi
9128
9129 if test "$lt_use_gnu_ld_interface" = yes; then
9130 # If archive_cmds runs LD, not CC, wlarc should be empty
9131 wlarc='${wl}'
9132
9133 # Set some defaults for GNU ld with shared library support. These
9134 # are reset later if shared libraries are not supported. Putting them
9135 # here allows them to be overridden if necessary.
9136 runpath_var=LD_RUN_PATH
9137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138 export_dynamic_flag_spec='${wl}--export-dynamic'
9139 # ancient GNU ld didn't support --whole-archive et. al.
9140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9142 else
9143 whole_archive_flag_spec=
9144 fi
9145 supports_anon_versioning=no
9146 case `$LD -v 2>&1` in
9147 *GNU\ gold*) supports_anon_versioning=yes ;;
9148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9151 *\ 2.11.*) ;; # other 2.11 versions
9152 *) supports_anon_versioning=yes ;;
9153 esac
9154
9155 # See if GNU ld supports shared libraries.
9156 case $host_os in
9157 aix[3-9]*)
9158 # On AIX/PPC, the GNU linker is very broken
9159 if test "$host_cpu" != ia64; then
9160 ld_shlibs=no
9161 cat <<_LT_EOF 1>&2
9162
9163 *** Warning: the GNU linker, at least up to release 2.19, is reported
9164 *** to be unable to reliably create shared libraries on AIX.
9165 *** Therefore, libtool is disabling shared libraries support. If you
9166 *** really care for shared libraries, you may want to install binutils
9167 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9168 *** You will then need to restart the configuration process.
9169
9170 _LT_EOF
9171 fi
9172 ;;
9173
9174 amigaos*)
9175 case $host_cpu in
9176 powerpc)
9177 # see comment about AmigaOS4 .so support
9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9179 archive_expsym_cmds=''
9180 ;;
9181 m68k)
9182 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)'
9183 hardcode_libdir_flag_spec='-L$libdir'
9184 hardcode_minus_L=yes
9185 ;;
9186 esac
9187 ;;
9188
9189 beos*)
9190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9191 allow_undefined_flag=unsupported
9192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9193 # support --undefined. This deserves some investigation. FIXME
9194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 else
9196 ld_shlibs=no
9197 fi
9198 ;;
9199
9200 cygwin* | mingw* | pw32* | cegcc*)
9201 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9202 # as there is no search path for DLLs.
9203 hardcode_libdir_flag_spec='-L$libdir'
9204 export_dynamic_flag_spec='${wl}--export-all-symbols'
9205 allow_undefined_flag=unsupported
9206 always_export_symbols=no
9207 enable_shared_with_static_runtimes=yes
9208 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'
9209 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9210
9211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9213 # If the export-symbols file already is a .def file (1st line
9214 # is EXPORTS), use it as is; otherwise, prepend...
9215 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9216 cp $export_symbols $output_objdir/$soname.def;
9217 else
9218 echo EXPORTS > $output_objdir/$soname.def;
9219 cat $export_symbols >> $output_objdir/$soname.def;
9220 fi~
9221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9222 else
9223 ld_shlibs=no
9224 fi
9225 ;;
9226
9227 haiku*)
9228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229 link_all_deplibs=yes
9230 ;;
9231
9232 interix[3-9]*)
9233 hardcode_direct=no
9234 hardcode_shlibpath_var=no
9235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9236 export_dynamic_flag_spec='${wl}-E'
9237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9238 # Instead, shared libraries are loaded at an image base (0x10000000 by
9239 # default) and relocated if they conflict, which is a slow very memory
9240 # consuming and fragmenting process. To avoid this, we pick a random,
9241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9242 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9244 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'
9245 ;;
9246
9247 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9248 tmp_diet=no
9249 if test "$host_os" = linux-dietlibc; then
9250 case $cc_basename in
9251 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9252 esac
9253 fi
9254 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9255 && test "$tmp_diet" = no
9256 then
9257 tmp_addflag=' $pic_flag'
9258 tmp_sharedflag='-shared'
9259 case $cc_basename,$host_cpu in
9260 pgcc*) # Portland Group C compiler
9261 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'
9262 tmp_addflag=' $pic_flag'
9263 ;;
9264 pgf77* | pgf90* | pgf95* | pgfortran*)
9265 # Portland Group f77 and f90 compilers
9266 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'
9267 tmp_addflag=' $pic_flag -Mnomain' ;;
9268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9269 tmp_addflag=' -i_dynamic' ;;
9270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9271 tmp_addflag=' -i_dynamic -nofor_main' ;;
9272 ifc* | ifort*) # Intel Fortran compiler
9273 tmp_addflag=' -nofor_main' ;;
9274 lf95*) # Lahey Fortran 8.1
9275 whole_archive_flag_spec=
9276 tmp_sharedflag='--shared' ;;
9277 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9278 tmp_sharedflag='-qmkshrobj'
9279 tmp_addflag= ;;
9280 nvcc*) # Cuda Compiler Driver 2.2
9281 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'
9282 compiler_needs_object=yes
9283 ;;
9284 esac
9285 case `$CC -V 2>&1 | sed 5q` in
9286 *Sun\ C*) # Sun C 5.9
9287 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'
9288 compiler_needs_object=yes
9289 tmp_sharedflag='-G' ;;
9290 *Sun\ F*) # Sun Fortran 8.3
9291 tmp_sharedflag='-G' ;;
9292 esac
9293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294
9295 if test "x$supports_anon_versioning" = xyes; then
9296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9298 echo "local: *; };" >> $output_objdir/$libname.ver~
9299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9300 fi
9301
9302 case $cc_basename in
9303 xlf* | bgf* | bgxlf* | mpixlf*)
9304 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9305 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9308 if test "x$supports_anon_versioning" = xyes; then
9309 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9311 echo "local: *; };" >> $output_objdir/$libname.ver~
9312 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9313 fi
9314 ;;
9315 esac
9316 else
9317 ld_shlibs=no
9318 fi
9319 ;;
9320
9321 netbsd*)
9322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9324 wlarc=
9325 else
9326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9328 fi
9329 ;;
9330
9331 solaris*)
9332 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9333 ld_shlibs=no
9334 cat <<_LT_EOF 1>&2
9335
9336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9337 *** create shared libraries on Solaris systems. Therefore, libtool
9338 *** is disabling shared libraries support. We urge you to upgrade GNU
9339 *** binutils to release 2.9.1 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 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9353 case `$LD -v 2>&1` in
9354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9355 ld_shlibs=no
9356 cat <<_LT_EOF 1>&2
9357
9358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9359 *** reliably create shared libraries on SCO systems. Therefore, libtool
9360 *** is disabling shared libraries support. We urge you to upgrade GNU
9361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9364
9365 _LT_EOF
9366 ;;
9367 *)
9368 # For security reasons, it is highly recommended that you always
9369 # use absolute paths for naming shared libraries, and exclude the
9370 # DT_RUNPATH tag from executables and libraries. But doing so
9371 # requires that you compile everything twice, which is a pain.
9372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9376 else
9377 ld_shlibs=no
9378 fi
9379 ;;
9380 esac
9381 ;;
9382
9383 sunos4*)
9384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 wlarc=
9386 hardcode_direct=yes
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 *)
9391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394 else
9395 ld_shlibs=no
9396 fi
9397 ;;
9398 esac
9399
9400 if test "$ld_shlibs" = no; then
9401 runpath_var=
9402 hardcode_libdir_flag_spec=
9403 export_dynamic_flag_spec=
9404 whole_archive_flag_spec=
9405 fi
9406 else
9407 # PORTME fill in a description of your system's linker (not GNU ld)
9408 case $host_os in
9409 aix3*)
9410 allow_undefined_flag=unsupported
9411 always_export_symbols=yes
9412 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'
9413 # Note: this linker hardcodes the directories in LIBPATH if there
9414 # are no directories specified by -L.
9415 hardcode_minus_L=yes
9416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9417 # Neither direct hardcoding nor static linking is supported with a
9418 # broken collect2.
9419 hardcode_direct=unsupported
9420 fi
9421 ;;
9422
9423 aix[4-9]*)
9424 if test "$host_cpu" = ia64; then
9425 # On IA64, the linker does run time linking by default, so we don't
9426 # have to do anything special.
9427 aix_use_runtimelinking=no
9428 exp_sym_flag='-Bexport'
9429 no_entry_flag=""
9430 else
9431 # If we're using GNU nm, then we don't want the "-C" option.
9432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9433 # Also, AIX nm treats weak defined symbols like other global
9434 # defined symbols, whereas GNU nm marks them as "W".
9435 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9436 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'
9437 else
9438 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'
9439 fi
9440 aix_use_runtimelinking=no
9441
9442 # Test if we are trying to use run time linking or normal
9443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9444 # need to do runtime linking.
9445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9446 for ld_flag in $LDFLAGS; do
9447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9448 aix_use_runtimelinking=yes
9449 break
9450 fi
9451 done
9452 ;;
9453 esac
9454
9455 exp_sym_flag='-bexport'
9456 no_entry_flag='-bnoentry'
9457 fi
9458
9459 # When large executables or shared objects are built, AIX ld can
9460 # have problems creating the table of contents. If linking a library
9461 # or program results in "error TOC overflow" add -mminimal-toc to
9462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9464
9465 archive_cmds=''
9466 hardcode_direct=yes
9467 hardcode_direct_absolute=yes
9468 hardcode_libdir_separator=':'
9469 link_all_deplibs=yes
9470 file_list_spec='${wl}-f,'
9471
9472 if test "$GCC" = yes; then
9473 case $host_os in aix4.[012]|aix4.[012].*)
9474 # We only want to do this on AIX 4.2 and lower, the check
9475 # below for broken collect2 doesn't work under 4.3+
9476 collect2name=`${CC} -print-prog-name=collect2`
9477 if test -f "$collect2name" &&
9478 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9479 then
9480 # We have reworked collect2
9481 :
9482 else
9483 # We have old collect2
9484 hardcode_direct=unsupported
9485 # It fails to find uninstalled libraries when the uninstalled
9486 # path is not listed in the libpath. Setting hardcode_minus_L
9487 # to unsupported forces relinking
9488 hardcode_minus_L=yes
9489 hardcode_libdir_flag_spec='-L$libdir'
9490 hardcode_libdir_separator=
9491 fi
9492 ;;
9493 esac
9494 shared_flag='-shared'
9495 if test "$aix_use_runtimelinking" = yes; then
9496 shared_flag="$shared_flag "'${wl}-G'
9497 fi
9498 else
9499 # not using gcc
9500 if test "$host_cpu" = ia64; then
9501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9502 # chokes on -Wl,-G. The following line is correct:
9503 shared_flag='-G'
9504 else
9505 if test "$aix_use_runtimelinking" = yes; then
9506 shared_flag='${wl}-G'
9507 else
9508 shared_flag='${wl}-bM:SRE'
9509 fi
9510 fi
9511 fi
9512
9513 export_dynamic_flag_spec='${wl}-bexpall'
9514 # It seems that -bexpall does not export symbols beginning with
9515 # underscore (_), so it is better to generate a list of symbols to export.
9516 always_export_symbols=yes
9517 if test "$aix_use_runtimelinking" = yes; then
9518 # Warning - without using the other runtime loading flags (-brtl),
9519 # -berok will link without error, but may produce a broken library.
9520 allow_undefined_flag='-berok'
9521 # Determine the default libpath from the value encoded in an
9522 # empty executable.
9523 if test "${lt_cv_aix_libpath+set}" = set; then
9524 aix_libpath=$lt_cv_aix_libpath
9525 else
9526 if ${lt_cv_aix_libpath_+:} false; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531
9532 int
9533 main ()
9534 {
9535
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541
9542 lt_aix_libpath_sed='
9543 /Import File Strings/,/^$/ {
9544 /^0/ {
9545 s/^0 *\([^ ]*\) *$/\1/
9546 p
9547 }
9548 }'
9549 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550 # Check for a 64-bit object if we didn't find anything.
9551 if test -z "$lt_cv_aix_libpath_"; then
9552 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 fi
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 if test -z "$lt_cv_aix_libpath_"; then
9558 lt_cv_aix_libpath_="/usr/lib:/lib"
9559 fi
9560
9561 fi
9562
9563 aix_libpath=$lt_cv_aix_libpath_
9564 fi
9565
9566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9567 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"
9568 else
9569 if test "$host_cpu" = ia64; then
9570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9571 allow_undefined_flag="-z nodefs"
9572 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"
9573 else
9574 # Determine the default libpath from the value encoded in an
9575 # empty executable.
9576 if test "${lt_cv_aix_libpath+set}" = set; then
9577 aix_libpath=$lt_cv_aix_libpath
9578 else
9579 if ${lt_cv_aix_libpath_+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584
9585 int
9586 main ()
9587 {
9588
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"; then :
9594
9595 lt_aix_libpath_sed='
9596 /Import File Strings/,/^$/ {
9597 /^0/ {
9598 s/^0 *\([^ ]*\) *$/\1/
9599 p
9600 }
9601 }'
9602 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603 # Check for a 64-bit object if we didn't find anything.
9604 if test -z "$lt_cv_aix_libpath_"; then
9605 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 fi
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 if test -z "$lt_cv_aix_libpath_"; then
9611 lt_cv_aix_libpath_="/usr/lib:/lib"
9612 fi
9613
9614 fi
9615
9616 aix_libpath=$lt_cv_aix_libpath_
9617 fi
9618
9619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9620 # Warning - without using the other run time loading flags,
9621 # -berok will link without error, but may produce a broken library.
9622 no_undefined_flag=' ${wl}-bernotok'
9623 allow_undefined_flag=' ${wl}-berok'
9624 if test "$with_gnu_ld" = yes; then
9625 # We only use this code for GNU lds that support --whole-archive.
9626 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9627 else
9628 # Exported symbols can be pulled into shared objects from archives
9629 whole_archive_flag_spec='$convenience'
9630 fi
9631 archive_cmds_need_lc=yes
9632 # This is similar to how AIX traditionally builds its shared libraries.
9633 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'
9634 fi
9635 fi
9636 ;;
9637
9638 amigaos*)
9639 case $host_cpu in
9640 powerpc)
9641 # see comment about AmigaOS4 .so support
9642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643 archive_expsym_cmds=''
9644 ;;
9645 m68k)
9646 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)'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_minus_L=yes
9649 ;;
9650 esac
9651 ;;
9652
9653 bsdi[45]*)
9654 export_dynamic_flag_spec=-rdynamic
9655 ;;
9656
9657 cygwin* | mingw* | pw32* | cegcc*)
9658 # When not using gcc, we currently assume that we are using
9659 # Microsoft Visual C++.
9660 # hardcode_libdir_flag_spec is actually meaningless, as there is
9661 # no search path for DLLs.
9662 case $cc_basename in
9663 cl*)
9664 # Native MSVC
9665 hardcode_libdir_flag_spec=' '
9666 allow_undefined_flag=unsupported
9667 always_export_symbols=yes
9668 file_list_spec='@'
9669 # Tell ltmain to make .lib files, not .a files.
9670 libext=lib
9671 # Tell ltmain to make .dll files, not .so files.
9672 shrext_cmds=".dll"
9673 # FIXME: Setting linknames here is a bad hack.
9674 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9675 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9676 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9677 else
9678 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9679 fi~
9680 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9681 linknames='
9682 # The linker will not automatically build a static lib if we build a DLL.
9683 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9684 enable_shared_with_static_runtimes=yes
9685 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9687 # Don't use ranlib
9688 old_postinstall_cmds='chmod 644 $oldlib'
9689 postlink_cmds='lt_outputfile="@OUTPUT@"~
9690 lt_tool_outputfile="@TOOL_OUTPUT@"~
9691 case $lt_outputfile in
9692 *.exe|*.EXE) ;;
9693 *)
9694 lt_outputfile="$lt_outputfile.exe"
9695 lt_tool_outputfile="$lt_tool_outputfile.exe"
9696 ;;
9697 esac~
9698 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9699 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9700 $RM "$lt_outputfile.manifest";
9701 fi'
9702 ;;
9703 *)
9704 # Assume MSVC wrapper
9705 hardcode_libdir_flag_spec=' '
9706 allow_undefined_flag=unsupported
9707 # Tell ltmain to make .lib files, not .a files.
9708 libext=lib
9709 # Tell ltmain to make .dll files, not .so files.
9710 shrext_cmds=".dll"
9711 # FIXME: Setting linknames here is a bad hack.
9712 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9713 # The linker will automatically build a .lib file if we build a DLL.
9714 old_archive_from_new_cmds='true'
9715 # FIXME: Should let the user specify the lib program.
9716 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9717 enable_shared_with_static_runtimes=yes
9718 ;;
9719 esac
9720 ;;
9721
9722 darwin* | rhapsody*)
9723
9724
9725 archive_cmds_need_lc=no
9726 hardcode_direct=no
9727 hardcode_automatic=yes
9728 hardcode_shlibpath_var=unsupported
9729 if test "$lt_cv_ld_force_load" = "yes"; then
9730 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\"`'
9731
9732 else
9733 whole_archive_flag_spec=''
9734 fi
9735 link_all_deplibs=yes
9736 allow_undefined_flag="$_lt_dar_allow_undefined"
9737 case $cc_basename in
9738 ifort*) _lt_dar_can_shared=yes ;;
9739 *) _lt_dar_can_shared=$GCC ;;
9740 esac
9741 if test "$_lt_dar_can_shared" = "yes"; then
9742 output_verbose_link_cmd=func_echo_all
9743 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9744 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9745 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}"
9746 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}"
9747
9748 else
9749 ld_shlibs=no
9750 fi
9751
9752 ;;
9753
9754 dgux*)
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_libdir_flag_spec='-L$libdir'
9757 hardcode_shlibpath_var=no
9758 ;;
9759
9760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9761 # support. Future versions do this automatically, but an explicit c++rt0.o
9762 # does not break anything, and helps significantly (at the cost of a little
9763 # extra space).
9764 freebsd2.2*)
9765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9766 hardcode_libdir_flag_spec='-R$libdir'
9767 hardcode_direct=yes
9768 hardcode_shlibpath_var=no
9769 ;;
9770
9771 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9772 freebsd2.*)
9773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_direct=yes
9775 hardcode_minus_L=yes
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9780 freebsd* | dragonfly*)
9781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9782 hardcode_libdir_flag_spec='-R$libdir'
9783 hardcode_direct=yes
9784 hardcode_shlibpath_var=no
9785 ;;
9786
9787 hpux9*)
9788 if test "$GCC" = yes; then
9789 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'
9790 else
9791 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'
9792 fi
9793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9794 hardcode_libdir_separator=:
9795 hardcode_direct=yes
9796
9797 # hardcode_minus_L: Not really in the search PATH,
9798 # but as the default location of the library.
9799 hardcode_minus_L=yes
9800 export_dynamic_flag_spec='${wl}-E'
9801 ;;
9802
9803 hpux10*)
9804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9805 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 else
9807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808 fi
9809 if test "$with_gnu_ld" = no; then
9810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9811 hardcode_libdir_separator=:
9812 hardcode_direct=yes
9813 hardcode_direct_absolute=yes
9814 export_dynamic_flag_spec='${wl}-E'
9815 # hardcode_minus_L: Not really in the search PATH,
9816 # but as the default location of the library.
9817 hardcode_minus_L=yes
9818 fi
9819 ;;
9820
9821 hpux11*)
9822 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9823 case $host_cpu in
9824 hppa*64*)
9825 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 ;;
9827 ia64*)
9828 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9829 ;;
9830 *)
9831 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 ;;
9833 esac
9834 else
9835 case $host_cpu in
9836 hppa*64*)
9837 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 ;;
9839 ia64*)
9840 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9841 ;;
9842 *)
9843
9844 # Older versions of the 11.00 compiler do not understand -b yet
9845 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9847 $as_echo_n "checking if $CC understands -b... " >&6; }
9848 if ${lt_cv_prog_compiler__b+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 lt_cv_prog_compiler__b=no
9852 save_LDFLAGS="$LDFLAGS"
9853 LDFLAGS="$LDFLAGS -b"
9854 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9856 # The linker can only warn and ignore the option if not recognized
9857 # So say no if there are warnings
9858 if test -s conftest.err; then
9859 # Append any errors to the config.log.
9860 cat conftest.err 1>&5
9861 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9863 if diff conftest.exp conftest.er2 >/dev/null; then
9864 lt_cv_prog_compiler__b=yes
9865 fi
9866 else
9867 lt_cv_prog_compiler__b=yes
9868 fi
9869 fi
9870 $RM -r conftest*
9871 LDFLAGS="$save_LDFLAGS"
9872
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9875 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9876
9877 if test x"$lt_cv_prog_compiler__b" = xyes; then
9878 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879 else
9880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9881 fi
9882
9883 ;;
9884 esac
9885 fi
9886 if test "$with_gnu_ld" = no; then
9887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9888 hardcode_libdir_separator=:
9889
9890 case $host_cpu in
9891 hppa*64*|ia64*)
9892 hardcode_direct=no
9893 hardcode_shlibpath_var=no
9894 ;;
9895 *)
9896 hardcode_direct=yes
9897 hardcode_direct_absolute=yes
9898 export_dynamic_flag_spec='${wl}-E'
9899
9900 # hardcode_minus_L: Not really in the search PATH,
9901 # but as the default location of the library.
9902 hardcode_minus_L=yes
9903 ;;
9904 esac
9905 fi
9906 ;;
9907
9908 irix5* | irix6* | nonstopux*)
9909 if test "$GCC" = yes; then
9910 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'
9911 # Try to use the -exported_symbol ld option, if it does not
9912 # work, assume that -exports_file does not work either and
9913 # implicitly export all symbols.
9914 # This should be the same for all languages, so no per-tag cache variable.
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9916 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9917 if ${lt_cv_irix_exported_symbol+:} false; then :
9918 $as_echo_n "(cached) " >&6
9919 else
9920 save_LDFLAGS="$LDFLAGS"
9921 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 int foo (void) { return 0; }
9925 _ACEOF
9926 if ac_fn_c_try_link "$LINENO"; then :
9927 lt_cv_irix_exported_symbol=yes
9928 else
9929 lt_cv_irix_exported_symbol=no
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 LDFLAGS="$save_LDFLAGS"
9934 fi
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9936 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9937 if test "$lt_cv_irix_exported_symbol" = yes; then
9938 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'
9939 fi
9940 else
9941 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'
9942 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'
9943 fi
9944 archive_cmds_need_lc='no'
9945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9946 hardcode_libdir_separator=:
9947 inherit_rpath=yes
9948 link_all_deplibs=yes
9949 ;;
9950
9951 netbsd*)
9952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9954 else
9955 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9956 fi
9957 hardcode_libdir_flag_spec='-R$libdir'
9958 hardcode_direct=yes
9959 hardcode_shlibpath_var=no
9960 ;;
9961
9962 newsos6)
9963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964 hardcode_direct=yes
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 hardcode_libdir_separator=:
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 *nto* | *qnx*)
9971 ;;
9972
9973 openbsd*)
9974 if test -f /usr/libexec/ld.so; then
9975 hardcode_direct=yes
9976 hardcode_shlibpath_var=no
9977 hardcode_direct_absolute=yes
9978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9982 export_dynamic_flag_spec='${wl}-E'
9983 else
9984 case $host_os in
9985 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_libdir_flag_spec='-R$libdir'
9988 ;;
9989 *)
9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9992 ;;
9993 esac
9994 fi
9995 else
9996 ld_shlibs=no
9997 fi
9998 ;;
9999
10000 os2*)
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_minus_L=yes
10003 allow_undefined_flag=unsupported
10004 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'
10005 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10006 ;;
10007
10008 osf3*)
10009 if test "$GCC" = yes; then
10010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10011 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'
10012 else
10013 allow_undefined_flag=' -expect_unresolved \*'
10014 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'
10015 fi
10016 archive_cmds_need_lc='no'
10017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10018 hardcode_libdir_separator=:
10019 ;;
10020
10021 osf4* | osf5*) # as osf3* with the addition of -msym flag
10022 if test "$GCC" = yes; then
10023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10024 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'
10025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026 else
10027 allow_undefined_flag=' -expect_unresolved \*'
10028 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'
10029 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~
10030 $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'
10031
10032 # Both c and cxx compiler support -rpath directly
10033 hardcode_libdir_flag_spec='-rpath $libdir'
10034 fi
10035 archive_cmds_need_lc='no'
10036 hardcode_libdir_separator=:
10037 ;;
10038
10039 solaris*)
10040 no_undefined_flag=' -z defs'
10041 if test "$GCC" = yes; then
10042 wlarc='${wl}'
10043 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10045 $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'
10046 else
10047 case `$CC -V 2>&1` in
10048 *"Compilers 5.0"*)
10049 wlarc=''
10050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10053 ;;
10054 *)
10055 wlarc='${wl}'
10056 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10059 ;;
10060 esac
10061 fi
10062 hardcode_libdir_flag_spec='-R$libdir'
10063 hardcode_shlibpath_var=no
10064 case $host_os in
10065 solaris2.[0-5] | solaris2.[0-5].*) ;;
10066 *)
10067 # The compiler driver will combine and reorder linker options,
10068 # but understands `-z linker_flag'. GCC discards it without `$wl',
10069 # but is careful enough not to reorder.
10070 # Supported since Solaris 2.6 (maybe 2.5.1?)
10071 if test "$GCC" = yes; then
10072 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10073 else
10074 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10075 fi
10076 ;;
10077 esac
10078 link_all_deplibs=yes
10079 ;;
10080
10081 sunos4*)
10082 if test "x$host_vendor" = xsequent; then
10083 # Use $CC to link under sequent, because it throws in some extra .o
10084 # files that make .init and .fini sections work.
10085 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10086 else
10087 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10088 fi
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_direct=yes
10091 hardcode_minus_L=yes
10092 hardcode_shlibpath_var=no
10093 ;;
10094
10095 sysv4)
10096 case $host_vendor in
10097 sni)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_direct=yes # is this really true???
10100 ;;
10101 siemens)
10102 ## LD is ld it makes a PLAMLIB
10103 ## CC just makes a GrossModule.
10104 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10105 reload_cmds='$CC -r -o $output$reload_objs'
10106 hardcode_direct=no
10107 ;;
10108 motorola)
10109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10111 ;;
10112 esac
10113 runpath_var='LD_RUN_PATH'
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 sysv4.3*)
10118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_shlibpath_var=no
10120 export_dynamic_flag_spec='-Bexport'
10121 ;;
10122
10123 sysv4*MP*)
10124 if test -d /usr/nec; then
10125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_shlibpath_var=no
10127 runpath_var=LD_RUN_PATH
10128 hardcode_runpath_var=yes
10129 ld_shlibs=yes
10130 fi
10131 ;;
10132
10133 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10134 no_undefined_flag='${wl}-z,text'
10135 archive_cmds_need_lc=no
10136 hardcode_shlibpath_var=no
10137 runpath_var='LD_RUN_PATH'
10138
10139 if test "$GCC" = yes; then
10140 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 else
10143 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 fi
10146 ;;
10147
10148 sysv5* | sco3.2v5* | sco5v6*)
10149 # Note: We can NOT use -z defs as we might desire, because we do not
10150 # link with -lc, and that would cause any symbols used from libc to
10151 # always be unresolved, which means just about no library would
10152 # ever link correctly. If we're not using GNU ld we use -z text
10153 # though, which does catch some bad symbols but isn't as heavy-handed
10154 # as -z defs.
10155 no_undefined_flag='${wl}-z,text'
10156 allow_undefined_flag='${wl}-z,nodefs'
10157 archive_cmds_need_lc=no
10158 hardcode_shlibpath_var=no
10159 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10160 hardcode_libdir_separator=':'
10161 link_all_deplibs=yes
10162 export_dynamic_flag_spec='${wl}-Bexport'
10163 runpath_var='LD_RUN_PATH'
10164
10165 if test "$GCC" = yes; then
10166 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168 else
10169 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 fi
10172 ;;
10173
10174 uts4*)
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_libdir_flag_spec='-L$libdir'
10177 hardcode_shlibpath_var=no
10178 ;;
10179
10180 *)
10181 ld_shlibs=no
10182 ;;
10183 esac
10184
10185 if test x$host_vendor = xsni; then
10186 case $host in
10187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10188 export_dynamic_flag_spec='${wl}-Blargedynsym'
10189 ;;
10190 esac
10191 fi
10192 fi
10193
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10195 $as_echo "$ld_shlibs" >&6; }
10196 test "$ld_shlibs" = no && can_build_shared=no
10197
10198 with_gnu_ld=$with_gnu_ld
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214 #
10215 # Do we need to explicitly link libc?
10216 #
10217 case "x$archive_cmds_need_lc" in
10218 x|xyes)
10219 # Assume -lc should be added
10220 archive_cmds_need_lc=yes
10221
10222 if test "$enable_shared" = yes && test "$GCC" = yes; then
10223 case $archive_cmds in
10224 *'~'*)
10225 # FIXME: we may have to deal with multi-command sequences.
10226 ;;
10227 '$CC '*)
10228 # Test whether the compiler implicitly links with -lc since on some
10229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10230 # to ld, don't add -lc before -lgcc.
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10232 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10233 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 $RM conftest*
10237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10238
10239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10240 (eval $ac_compile) 2>&5
10241 ac_status=$?
10242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10243 test $ac_status = 0; } 2>conftest.err; then
10244 soname=conftest
10245 lib=conftest
10246 libobjs=conftest.$ac_objext
10247 deplibs=
10248 wl=$lt_prog_compiler_wl
10249 pic_flag=$lt_prog_compiler_pic
10250 compiler_flags=-v
10251 linker_flags=-v
10252 verstring=
10253 output_objdir=.
10254 libname=conftest
10255 lt_save_allow_undefined_flag=$allow_undefined_flag
10256 allow_undefined_flag=
10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10258 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10259 ac_status=$?
10260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10261 test $ac_status = 0; }
10262 then
10263 lt_cv_archive_cmds_need_lc=no
10264 else
10265 lt_cv_archive_cmds_need_lc=yes
10266 fi
10267 allow_undefined_flag=$lt_save_allow_undefined_flag
10268 else
10269 cat conftest.err 1>&5
10270 fi
10271 $RM conftest*
10272
10273 fi
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10275 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10276 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10277 ;;
10278 esac
10279 fi
10280 ;;
10281 esac
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
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10435 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10436
10437 if test "$GCC" = yes; then
10438 case $host_os in
10439 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10440 *) lt_awk_arg="/^libraries:/" ;;
10441 esac
10442 case $host_os in
10443 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10444 *) lt_sed_strip_eq="s,=/,/,g" ;;
10445 esac
10446 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10447 case $lt_search_path_spec in
10448 *\;*)
10449 # if the path contains ";" then we assume it to be the separator
10450 # otherwise default to the standard path separator (i.e. ":") - it is
10451 # assumed that no part of a normal pathname contains ";" but that should
10452 # okay in the real world where ";" in dirpaths is itself problematic.
10453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10454 ;;
10455 *)
10456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10457 ;;
10458 esac
10459 # Ok, now we have the path, separated by spaces, we can step through it
10460 # and add multilib dir if necessary.
10461 lt_tmp_lt_search_path_spec=
10462 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10463 for lt_sys_path in $lt_search_path_spec; do
10464 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10465 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10466 else
10467 test -d "$lt_sys_path" && \
10468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10469 fi
10470 done
10471 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10472 BEGIN {RS=" "; FS="/|\n";} {
10473 lt_foo="";
10474 lt_count=0;
10475 for (lt_i = NF; lt_i > 0; lt_i--) {
10476 if ($lt_i != "" && $lt_i != ".") {
10477 if ($lt_i == "..") {
10478 lt_count++;
10479 } else {
10480 if (lt_count == 0) {
10481 lt_foo="/" $lt_i lt_foo;
10482 } else {
10483 lt_count--;
10484 }
10485 }
10486 }
10487 }
10488 if (lt_foo != "") { lt_freq[lt_foo]++; }
10489 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10490 }'`
10491 # AWK program above erroneously prepends '/' to C:/dos/paths
10492 # for these hosts.
10493 case $host_os in
10494 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10495 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10496 esac
10497 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10498 else
10499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10500 fi
10501 library_names_spec=
10502 libname_spec='lib$name'
10503 soname_spec=
10504 shrext_cmds=".so"
10505 postinstall_cmds=
10506 postuninstall_cmds=
10507 finish_cmds=
10508 finish_eval=
10509 shlibpath_var=
10510 shlibpath_overrides_runpath=unknown
10511 version_type=none
10512 dynamic_linker="$host_os ld.so"
10513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10514 need_lib_prefix=unknown
10515 hardcode_into_libs=no
10516
10517 # when you set need_version to no, make sure it does not cause -set_version
10518 # flags to be left without arguments
10519 need_version=unknown
10520
10521 case $host_os in
10522 aix3*)
10523 version_type=linux # correct to gnu/linux during the next big refactor
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10525 shlibpath_var=LIBPATH
10526
10527 # AIX 3 has no versioning support, so we append a major version to the name.
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 ;;
10530
10531 aix[4-9]*)
10532 version_type=linux # correct to gnu/linux during the next big refactor
10533 need_lib_prefix=no
10534 need_version=no
10535 hardcode_into_libs=yes
10536 if test "$host_cpu" = ia64; then
10537 # AIX 5 supports IA64
10538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 else
10541 # With GCC up to 2.95.x, collect2 would create an import file
10542 # for dependence libraries. The import file would start with
10543 # the line `#! .'. This would cause the generated library to
10544 # depend on `.', always an invalid library. This was fixed in
10545 # development snapshots of GCC prior to 3.0.
10546 case $host_os in
10547 aix4 | aix4.[01] | aix4.[01].*)
10548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10549 echo ' yes '
10550 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10551 :
10552 else
10553 can_build_shared=no
10554 fi
10555 ;;
10556 esac
10557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10558 # soname into executable. Probably we can add versioning support to
10559 # collect2, so additional links can be useful in future.
10560 if test "$aix_use_runtimelinking" = yes; then
10561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10562 # instead of lib<name>.a to let people know that these are not
10563 # typical AIX shared libraries.
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 else
10566 # We preserve .a as extension for shared libraries through AIX4.2
10567 # and later when we are not doing run time linking.
10568 library_names_spec='${libname}${release}.a $libname.a'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 fi
10571 shlibpath_var=LIBPATH
10572 fi
10573 ;;
10574
10575 amigaos*)
10576 case $host_cpu in
10577 powerpc)
10578 # Since July 2007 AmigaOS4 officially supports .so libraries.
10579 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 ;;
10582 m68k)
10583 library_names_spec='$libname.ixlibrary $libname.a'
10584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10585 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'
10586 ;;
10587 esac
10588 ;;
10589
10590 beos*)
10591 library_names_spec='${libname}${shared_ext}'
10592 dynamic_linker="$host_os ld.so"
10593 shlibpath_var=LIBRARY_PATH
10594 ;;
10595
10596 bsdi[45]*)
10597 version_type=linux # correct to gnu/linux during the next big refactor
10598 need_version=no
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10602 shlibpath_var=LD_LIBRARY_PATH
10603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10605 # the default ld.so.conf also contains /usr/contrib/lib and
10606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10607 # libtool to hard-code these into programs
10608 ;;
10609
10610 cygwin* | mingw* | pw32* | cegcc*)
10611 version_type=windows
10612 shrext_cmds=".dll"
10613 need_version=no
10614 need_lib_prefix=no
10615
10616 case $GCC,$cc_basename in
10617 yes,*)
10618 # gcc
10619 library_names_spec='$libname.dll.a'
10620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10621 postinstall_cmds='base_file=`basename \${file}`~
10622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10623 dldir=$destdir/`dirname \$dlpath`~
10624 test -d \$dldir || mkdir -p \$dldir~
10625 $install_prog $dir/$dlname \$dldir/$dlname~
10626 chmod a+x \$dldir/$dlname~
10627 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10628 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10629 fi'
10630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10631 dlpath=$dir/\$dldll~
10632 $RM \$dlpath'
10633 shlibpath_overrides_runpath=yes
10634
10635 case $host_os in
10636 cygwin*)
10637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10639
10640 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10641 ;;
10642 mingw* | cegcc*)
10643 # MinGW DLLs use traditional 'lib' prefix
10644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10645 ;;
10646 pw32*)
10647 # pw32 DLLs use 'pw' prefix rather than 'lib'
10648 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10649 ;;
10650 esac
10651 dynamic_linker='Win32 ld.exe'
10652 ;;
10653
10654 *,cl*)
10655 # Native MSVC
10656 libname_spec='$name'
10657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10658 library_names_spec='${libname}.dll.lib'
10659
10660 case $build_os in
10661 mingw*)
10662 sys_lib_search_path_spec=
10663 lt_save_ifs=$IFS
10664 IFS=';'
10665 for lt_path in $LIB
10666 do
10667 IFS=$lt_save_ifs
10668 # Let DOS variable expansion print the short 8.3 style file name.
10669 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10670 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10671 done
10672 IFS=$lt_save_ifs
10673 # Convert to MSYS style.
10674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10675 ;;
10676 cygwin*)
10677 # Convert to unix form, then to dos form, then back to unix form
10678 # but this time dos style (no spaces!) so that the unix form looks
10679 # like /cygdrive/c/PROGRA~1:/cygdr...
10680 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10681 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10682 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10683 ;;
10684 *)
10685 sys_lib_search_path_spec="$LIB"
10686 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10687 # It is most probably a Windows format PATH.
10688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10689 else
10690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10691 fi
10692 # FIXME: find the short name or the path components, as spaces are
10693 # common. (e.g. "Program Files" -> "PROGRA~1")
10694 ;;
10695 esac
10696
10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10698 postinstall_cmds='base_file=`basename \${file}`~
10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10700 dldir=$destdir/`dirname \$dlpath`~
10701 test -d \$dldir || mkdir -p \$dldir~
10702 $install_prog $dir/$dlname \$dldir/$dlname'
10703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10704 dlpath=$dir/\$dldll~
10705 $RM \$dlpath'
10706 shlibpath_overrides_runpath=yes
10707 dynamic_linker='Win32 link.exe'
10708 ;;
10709
10710 *)
10711 # Assume MSVC wrapper
10712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10713 dynamic_linker='Win32 ld.exe'
10714 ;;
10715 esac
10716 # FIXME: first we should search . and the directory the executable is in
10717 shlibpath_var=PATH
10718 ;;
10719
10720 darwin* | rhapsody*)
10721 dynamic_linker="$host_os dyld"
10722 version_type=darwin
10723 need_lib_prefix=no
10724 need_version=no
10725 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10726 soname_spec='${libname}${release}${major}$shared_ext'
10727 shlibpath_overrides_runpath=yes
10728 shlibpath_var=DYLD_LIBRARY_PATH
10729 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10730
10731 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10732 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10733 ;;
10734
10735 dgux*)
10736 version_type=linux # correct to gnu/linux during the next big refactor
10737 need_lib_prefix=no
10738 need_version=no
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 ;;
10743
10744 freebsd* | dragonfly*)
10745 # DragonFly does not have aout. When/if they implement a new
10746 # versioning mechanism, adjust this.
10747 if test -x /usr/bin/objformat; then
10748 objformat=`/usr/bin/objformat`
10749 else
10750 case $host_os in
10751 freebsd[23].*) objformat=aout ;;
10752 *) objformat=elf ;;
10753 esac
10754 fi
10755 version_type=freebsd-$objformat
10756 case $version_type in
10757 freebsd-elf*)
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10759 need_version=no
10760 need_lib_prefix=no
10761 ;;
10762 freebsd-*)
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10764 need_version=yes
10765 ;;
10766 esac
10767 shlibpath_var=LD_LIBRARY_PATH
10768 case $host_os in
10769 freebsd2.*)
10770 shlibpath_overrides_runpath=yes
10771 ;;
10772 freebsd3.[01]* | freebsdelf3.[01]*)
10773 shlibpath_overrides_runpath=yes
10774 hardcode_into_libs=yes
10775 ;;
10776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10778 shlibpath_overrides_runpath=no
10779 hardcode_into_libs=yes
10780 ;;
10781 *) # from 4.6 on, and DragonFly
10782 shlibpath_overrides_runpath=yes
10783 hardcode_into_libs=yes
10784 ;;
10785 esac
10786 ;;
10787
10788 gnu*)
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=no
10796 hardcode_into_libs=yes
10797 ;;
10798
10799 haiku*)
10800 version_type=linux # correct to gnu/linux during the next big refactor
10801 need_lib_prefix=no
10802 need_version=no
10803 dynamic_linker="$host_os runtime_loader"
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LIBRARY_PATH
10807 shlibpath_overrides_runpath=yes
10808 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10809 hardcode_into_libs=yes
10810 ;;
10811
10812 hpux9* | hpux10* | hpux11*)
10813 # Give a soname corresponding to the major version so that dld.sl refuses to
10814 # link against other versions.
10815 version_type=sunos
10816 need_lib_prefix=no
10817 need_version=no
10818 case $host_cpu in
10819 ia64*)
10820 shrext_cmds='.so'
10821 hardcode_into_libs=yes
10822 dynamic_linker="$host_os dld.so"
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 if test "X$HPUX_IA64_MODE" = X32; then
10828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10829 else
10830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10831 fi
10832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10833 ;;
10834 hppa*64*)
10835 shrext_cmds='.sl'
10836 hardcode_into_libs=yes
10837 dynamic_linker="$host_os dld.sl"
10838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10844 ;;
10845 *)
10846 shrext_cmds='.sl'
10847 dynamic_linker="$host_os dld.sl"
10848 shlibpath_var=SHLIB_PATH
10849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 ;;
10853 esac
10854 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10855 postinstall_cmds='chmod 555 $lib'
10856 # or fails outright, so override atomically:
10857 install_override_mode=555
10858 ;;
10859
10860 interix[3-9]*)
10861 version_type=linux # correct to gnu/linux during the next big refactor
10862 need_lib_prefix=no
10863 need_version=no
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=no
10869 hardcode_into_libs=yes
10870 ;;
10871
10872 irix5* | irix6* | nonstopux*)
10873 case $host_os in
10874 nonstopux*) version_type=nonstopux ;;
10875 *)
10876 if test "$lt_cv_prog_gnu_ld" = yes; then
10877 version_type=linux # correct to gnu/linux during the next big refactor
10878 else
10879 version_type=irix
10880 fi ;;
10881 esac
10882 need_lib_prefix=no
10883 need_version=no
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10886 case $host_os in
10887 irix5* | nonstopux*)
10888 libsuff= shlibsuff=
10889 ;;
10890 *)
10891 case $LD in # libtool.m4 will add one of these switches to LD
10892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10893 libsuff= shlibsuff= libmagic=32-bit;;
10894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10895 libsuff=32 shlibsuff=N32 libmagic=N32;;
10896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10898 *) libsuff= shlibsuff= libmagic=never-match;;
10899 esac
10900 ;;
10901 esac
10902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10903 shlibpath_overrides_runpath=no
10904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10906 hardcode_into_libs=yes
10907 ;;
10908
10909 # No shared lib support for Linux oldld, aout, or coff.
10910 linux*oldld* | linux*aout* | linux*coff*)
10911 dynamic_linker=no
10912 ;;
10913
10914 # This must be glibc/ELF.
10915 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10916 version_type=linux # correct to gnu/linux during the next big refactor
10917 need_lib_prefix=no
10918 need_version=no
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=no
10924
10925 # Some binutils ld are patched to set DT_RUNPATH
10926 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 lt_cv_shlibpath_overrides_runpath=no
10930 save_LDFLAGS=$LDFLAGS
10931 save_libdir=$libdir
10932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936
10937 int
10938 main ()
10939 {
10940
10941 ;
10942 return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10947 lt_cv_shlibpath_overrides_runpath=yes
10948 fi
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10952 LDFLAGS=$save_LDFLAGS
10953 libdir=$save_libdir
10954
10955 fi
10956
10957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10958
10959 # This implies no fast_install, which is unacceptable.
10960 # Some rework will be needed to allow for fast_install
10961 # before this can be enabled.
10962 hardcode_into_libs=yes
10963
10964 # Append ld.so.conf contents to the search path
10965 if test -f /etc/ld.so.conf; then
10966 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' ' '`
10967 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10968 fi
10969
10970 # We used to test for /lib/ld.so.1 and disable shared libraries on
10971 # powerpc, because MkLinux only supported shared libraries with the
10972 # GNU dynamic linker. Since this was broken with cross compilers,
10973 # most powerpc-linux boxes support dynamic linking these days and
10974 # people can always --disable-shared, the test was removed, and we
10975 # assume the GNU/Linux dynamic linker is in use.
10976 dynamic_linker='GNU/Linux ld.so'
10977 ;;
10978
10979 netbsd*)
10980 version_type=sunos
10981 need_lib_prefix=no
10982 need_version=no
10983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10986 dynamic_linker='NetBSD (a.out) ld.so'
10987 else
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 dynamic_linker='NetBSD ld.elf_so'
10991 fi
10992 shlibpath_var=LD_LIBRARY_PATH
10993 shlibpath_overrides_runpath=yes
10994 hardcode_into_libs=yes
10995 ;;
10996
10997 newsos6)
10998 version_type=linux # correct to gnu/linux during the next big refactor
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=yes
11002 ;;
11003
11004 *nto* | *qnx*)
11005 version_type=qnx
11006 need_lib_prefix=no
11007 need_version=no
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=no
11012 hardcode_into_libs=yes
11013 dynamic_linker='ldqnx.so'
11014 ;;
11015
11016 openbsd*)
11017 version_type=sunos
11018 sys_lib_dlsearch_path_spec="/usr/lib"
11019 need_lib_prefix=no
11020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11021 case $host_os in
11022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11023 *) need_version=no ;;
11024 esac
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11029 case $host_os in
11030 openbsd2.[89] | openbsd2.[89].*)
11031 shlibpath_overrides_runpath=no
11032 ;;
11033 *)
11034 shlibpath_overrides_runpath=yes
11035 ;;
11036 esac
11037 else
11038 shlibpath_overrides_runpath=yes
11039 fi
11040 ;;
11041
11042 os2*)
11043 libname_spec='$name'
11044 shrext_cmds=".dll"
11045 need_lib_prefix=no
11046 library_names_spec='$libname${shared_ext} $libname.a'
11047 dynamic_linker='OS/2 ld.exe'
11048 shlibpath_var=LIBPATH
11049 ;;
11050
11051 osf3* | osf4* | osf5*)
11052 version_type=osf
11053 need_lib_prefix=no
11054 need_version=no
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11060 ;;
11061
11062 rdos*)
11063 dynamic_linker=no
11064 ;;
11065
11066 solaris*)
11067 version_type=linux # correct to gnu/linux during the next big refactor
11068 need_lib_prefix=no
11069 need_version=no
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 # ldd complains unless libraries are executable
11076 postinstall_cmds='chmod +x $lib'
11077 ;;
11078
11079 sunos4*)
11080 version_type=sunos
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11085 if test "$with_gnu_ld" = yes; then
11086 need_lib_prefix=no
11087 fi
11088 need_version=yes
11089 ;;
11090
11091 sysv4 | sysv4.3*)
11092 version_type=linux # correct to gnu/linux during the next big refactor
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 case $host_vendor in
11097 sni)
11098 shlibpath_overrides_runpath=no
11099 need_lib_prefix=no
11100 runpath_var=LD_RUN_PATH
11101 ;;
11102 siemens)
11103 need_lib_prefix=no
11104 ;;
11105 motorola)
11106 need_lib_prefix=no
11107 need_version=no
11108 shlibpath_overrides_runpath=no
11109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11110 ;;
11111 esac
11112 ;;
11113
11114 sysv4*MP*)
11115 if test -d /usr/nec ;then
11116 version_type=linux # correct to gnu/linux during the next big refactor
11117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11118 soname_spec='$libname${shared_ext}.$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 fi
11121 ;;
11122
11123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11124 version_type=freebsd-elf
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11132 if test "$with_gnu_ld" = yes; then
11133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11134 else
11135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11136 case $host_os in
11137 sco3.2v5*)
11138 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11139 ;;
11140 esac
11141 fi
11142 sys_lib_dlsearch_path_spec='/usr/lib'
11143 ;;
11144
11145 tpf*)
11146 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 need_lib_prefix=no
11149 need_version=no
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=no
11153 hardcode_into_libs=yes
11154 ;;
11155
11156 uts4*)
11157 version_type=linux # correct to gnu/linux during the next big refactor
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 ;;
11162
11163 *)
11164 dynamic_linker=no
11165 ;;
11166 esac
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11168 $as_echo "$dynamic_linker" >&6; }
11169 test "$dynamic_linker" = no && can_build_shared=no
11170
11171 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11172 if test "$GCC" = yes; then
11173 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11174 fi
11175
11176 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11177 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11178 fi
11179 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11180 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11181 fi
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
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11275 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11276 hardcode_action=
11277 if test -n "$hardcode_libdir_flag_spec" ||
11278 test -n "$runpath_var" ||
11279 test "X$hardcode_automatic" = "Xyes" ; then
11280
11281 # We can hardcode non-existent directories.
11282 if test "$hardcode_direct" != no &&
11283 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11284 # have to relink, otherwise we might link with an installed library
11285 # when we should be linking with a yet-to-be-installed one
11286 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11287 test "$hardcode_minus_L" != no; then
11288 # Linking always hardcodes the temporary library directory.
11289 hardcode_action=relink
11290 else
11291 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11292 hardcode_action=immediate
11293 fi
11294 else
11295 # We cannot hardcode anything, or else we can only hardcode existing
11296 # directories.
11297 hardcode_action=unsupported
11298 fi
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11300 $as_echo "$hardcode_action" >&6; }
11301
11302 if test "$hardcode_action" = relink ||
11303 test "$inherit_rpath" = yes; then
11304 # Fast installation is not supported
11305 enable_fast_install=no
11306 elif test "$shlibpath_overrides_runpath" = yes ||
11307 test "$enable_shared" = no; then
11308 # Fast installation is not necessary
11309 enable_fast_install=needless
11310 fi
11311
11312
11313
11314
11315
11316
11317 if test "x$enable_dlopen" != xyes; then
11318 enable_dlopen=unknown
11319 enable_dlopen_self=unknown
11320 enable_dlopen_self_static=unknown
11321 else
11322 lt_cv_dlopen=no
11323 lt_cv_dlopen_libs=
11324
11325 case $host_os in
11326 beos*)
11327 lt_cv_dlopen="load_add_on"
11328 lt_cv_dlopen_libs=
11329 lt_cv_dlopen_self=yes
11330 ;;
11331
11332 mingw* | pw32* | cegcc*)
11333 lt_cv_dlopen="LoadLibrary"
11334 lt_cv_dlopen_libs=
11335 ;;
11336
11337 cygwin*)
11338 lt_cv_dlopen="dlopen"
11339 lt_cv_dlopen_libs=
11340 ;;
11341
11342 darwin*)
11343 # if libdl is installed we need to link against it
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11346 if ${ac_cv_lib_dl_dlopen+:} false; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 ac_check_lib_save_LIBS=$LIBS
11350 LIBS="-ldl $LIBS"
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11357 #ifdef __cplusplus
11358 extern "C"
11359 #endif
11360 char dlopen ();
11361 int
11362 main ()
11363 {
11364 return dlopen ();
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_lib_dl_dlopen=yes
11371 else
11372 ac_cv_lib_dl_dlopen=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_lib_save_LIBS
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11380 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11382 else
11383
11384 lt_cv_dlopen="dyld"
11385 lt_cv_dlopen_libs=
11386 lt_cv_dlopen_self=yes
11387
11388 fi
11389
11390 ;;
11391
11392 *)
11393 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11394 if test "x$ac_cv_func_shl_load" = xyes; then :
11395 lt_cv_dlopen="shl_load"
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11398 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11399 if ${ac_cv_lib_dld_shl_load+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-ldld $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char shl_load ();
11414 int
11415 main ()
11416 {
11417 return shl_load ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_dld_shl_load=yes
11424 else
11425 ac_cv_lib_dld_shl_load=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11432 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11433 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11434 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11435 else
11436 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11437 if test "x$ac_cv_func_dlopen" = xyes; then :
11438 lt_cv_dlopen="dlopen"
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11441 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11442 if ${ac_cv_lib_dl_dlopen+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-ldl $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char dlopen ();
11457 int
11458 main ()
11459 {
11460 return dlopen ();
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_lib_dl_dlopen=yes
11467 else
11468 ac_cv_lib_dl_dlopen=no
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11475 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11476 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11480 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11481 if ${ac_cv_lib_svld_dlopen+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 ac_check_lib_save_LIBS=$LIBS
11485 LIBS="-lsvld $LIBS"
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11488
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char dlopen ();
11496 int
11497 main ()
11498 {
11499 return dlopen ();
11500 ;
11501 return 0;
11502 }
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 ac_cv_lib_svld_dlopen=yes
11506 else
11507 ac_cv_lib_svld_dlopen=no
11508 fi
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11512 fi
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11514 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11515 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11519 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11520 if ${ac_cv_lib_dld_dld_link+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-ldld $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11527
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char dld_link ();
11535 int
11536 main ()
11537 {
11538 return dld_link ();
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ac_cv_lib_dld_dld_link=yes
11545 else
11546 ac_cv_lib_dld_dld_link=no
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11553 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11554 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11555 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11556 fi
11557
11558
11559 fi
11560
11561
11562 fi
11563
11564
11565 fi
11566
11567
11568 fi
11569
11570
11571 fi
11572
11573 ;;
11574 esac
11575
11576 if test "x$lt_cv_dlopen" != xno; then
11577 enable_dlopen=yes
11578 else
11579 enable_dlopen=no
11580 fi
11581
11582 case $lt_cv_dlopen in
11583 dlopen)
11584 save_CPPFLAGS="$CPPFLAGS"
11585 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11586
11587 save_LDFLAGS="$LDFLAGS"
11588 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11589
11590 save_LIBS="$LIBS"
11591 LIBS="$lt_cv_dlopen_libs $LIBS"
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11594 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11595 if ${lt_cv_dlopen_self+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test "$cross_compiling" = yes; then :
11599 lt_cv_dlopen_self=cross
11600 else
11601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11602 lt_status=$lt_dlunknown
11603 cat > conftest.$ac_ext <<_LT_EOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606
11607 #if HAVE_DLFCN_H
11608 #include <dlfcn.h>
11609 #endif
11610
11611 #include <stdio.h>
11612
11613 #ifdef RTLD_GLOBAL
11614 # define LT_DLGLOBAL RTLD_GLOBAL
11615 #else
11616 # ifdef DL_GLOBAL
11617 # define LT_DLGLOBAL DL_GLOBAL
11618 # else
11619 # define LT_DLGLOBAL 0
11620 # endif
11621 #endif
11622
11623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11624 find out it does not work in some platform. */
11625 #ifndef LT_DLLAZY_OR_NOW
11626 # ifdef RTLD_LAZY
11627 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11628 # else
11629 # ifdef DL_LAZY
11630 # define LT_DLLAZY_OR_NOW DL_LAZY
11631 # else
11632 # ifdef RTLD_NOW
11633 # define LT_DLLAZY_OR_NOW RTLD_NOW
11634 # else
11635 # ifdef DL_NOW
11636 # define LT_DLLAZY_OR_NOW DL_NOW
11637 # else
11638 # define LT_DLLAZY_OR_NOW 0
11639 # endif
11640 # endif
11641 # endif
11642 # endif
11643 #endif
11644
11645 /* When -fvisbility=hidden is used, assume the code has been annotated
11646 correspondingly for the symbols needed. */
11647 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11648 int fnord () __attribute__((visibility("default")));
11649 #endif
11650
11651 int fnord () { return 42; }
11652 int main ()
11653 {
11654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11655 int status = $lt_dlunknown;
11656
11657 if (self)
11658 {
11659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11660 else
11661 {
11662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11663 else puts (dlerror ());
11664 }
11665 /* dlclose (self); */
11666 }
11667 else
11668 puts (dlerror ());
11669
11670 return status;
11671 }
11672 _LT_EOF
11673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11674 (eval $ac_link) 2>&5
11675 ac_status=$?
11676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11678 (./conftest; exit; ) >&5 2>/dev/null
11679 lt_status=$?
11680 case x$lt_status in
11681 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11682 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11683 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11684 esac
11685 else :
11686 # compilation failed
11687 lt_cv_dlopen_self=no
11688 fi
11689 fi
11690 rm -fr conftest*
11691
11692
11693 fi
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11695 $as_echo "$lt_cv_dlopen_self" >&6; }
11696
11697 if test "x$lt_cv_dlopen_self" = xyes; then
11698 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11700 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11701 if ${lt_cv_dlopen_self_static+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 if test "$cross_compiling" = yes; then :
11705 lt_cv_dlopen_self_static=cross
11706 else
11707 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11708 lt_status=$lt_dlunknown
11709 cat > conftest.$ac_ext <<_LT_EOF
11710 #line $LINENO "configure"
11711 #include "confdefs.h"
11712
11713 #if HAVE_DLFCN_H
11714 #include <dlfcn.h>
11715 #endif
11716
11717 #include <stdio.h>
11718
11719 #ifdef RTLD_GLOBAL
11720 # define LT_DLGLOBAL RTLD_GLOBAL
11721 #else
11722 # ifdef DL_GLOBAL
11723 # define LT_DLGLOBAL DL_GLOBAL
11724 # else
11725 # define LT_DLGLOBAL 0
11726 # endif
11727 #endif
11728
11729 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11730 find out it does not work in some platform. */
11731 #ifndef LT_DLLAZY_OR_NOW
11732 # ifdef RTLD_LAZY
11733 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11734 # else
11735 # ifdef DL_LAZY
11736 # define LT_DLLAZY_OR_NOW DL_LAZY
11737 # else
11738 # ifdef RTLD_NOW
11739 # define LT_DLLAZY_OR_NOW RTLD_NOW
11740 # else
11741 # ifdef DL_NOW
11742 # define LT_DLLAZY_OR_NOW DL_NOW
11743 # else
11744 # define LT_DLLAZY_OR_NOW 0
11745 # endif
11746 # endif
11747 # endif
11748 # endif
11749 #endif
11750
11751 /* When -fvisbility=hidden is used, assume the code has been annotated
11752 correspondingly for the symbols needed. */
11753 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11754 int fnord () __attribute__((visibility("default")));
11755 #endif
11756
11757 int fnord () { return 42; }
11758 int main ()
11759 {
11760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11761 int status = $lt_dlunknown;
11762
11763 if (self)
11764 {
11765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11766 else
11767 {
11768 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11769 else puts (dlerror ());
11770 }
11771 /* dlclose (self); */
11772 }
11773 else
11774 puts (dlerror ());
11775
11776 return status;
11777 }
11778 _LT_EOF
11779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11780 (eval $ac_link) 2>&5
11781 ac_status=$?
11782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11783 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11784 (./conftest; exit; ) >&5 2>/dev/null
11785 lt_status=$?
11786 case x$lt_status in
11787 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11788 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11789 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11790 esac
11791 else :
11792 # compilation failed
11793 lt_cv_dlopen_self_static=no
11794 fi
11795 fi
11796 rm -fr conftest*
11797
11798
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11801 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11802 fi
11803
11804 CPPFLAGS="$save_CPPFLAGS"
11805 LDFLAGS="$save_LDFLAGS"
11806 LIBS="$save_LIBS"
11807 ;;
11808 esac
11809
11810 case $lt_cv_dlopen_self in
11811 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11812 *) enable_dlopen_self=unknown ;;
11813 esac
11814
11815 case $lt_cv_dlopen_self_static in
11816 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11817 *) enable_dlopen_self_static=unknown ;;
11818 esac
11819 fi
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837 striplib=
11838 old_striplib=
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11840 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11841 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11843 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845 $as_echo "yes" >&6; }
11846 else
11847 # FIXME - insert some real tests, host_os isn't really good enough
11848 case $host_os in
11849 darwin*)
11850 if test -n "$STRIP" ; then
11851 striplib="$STRIP -x"
11852 old_striplib="$STRIP -S"
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854 $as_echo "yes" >&6; }
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 fi
11859 ;;
11860 *)
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11863 ;;
11864 esac
11865 fi
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878 # Report which library types will actually be built
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11880 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11882 $as_echo "$can_build_shared" >&6; }
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11885 $as_echo_n "checking whether to build shared libraries... " >&6; }
11886 test "$can_build_shared" = "no" && enable_shared=no
11887
11888 # On AIX, shared libraries and static libraries use the same namespace, and
11889 # are all built from PIC.
11890 case $host_os in
11891 aix3*)
11892 test "$enable_shared" = yes && enable_static=no
11893 if test -n "$RANLIB"; then
11894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11895 postinstall_cmds='$RANLIB $lib'
11896 fi
11897 ;;
11898
11899 aix[4-9]*)
11900 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11901 test "$enable_shared" = yes && enable_static=no
11902 fi
11903 ;;
11904 esac
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11906 $as_echo "$enable_shared" >&6; }
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11909 $as_echo_n "checking whether to build static libraries... " >&6; }
11910 # Make sure either enable_shared or enable_static is yes.
11911 test "$enable_shared" = yes || enable_static=yes
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11913 $as_echo "$enable_static" >&6; }
11914
11915
11916
11917
11918 fi
11919 ac_ext=c
11920 ac_cpp='$CPP $CPPFLAGS'
11921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11924
11925 CC="$lt_save_CC"
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 ac_config_commands="$ac_config_commands libtool"
11942
11943
11944
11945
11946 # Only expand once:
11947
11948
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11950 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11951 if ${libltdl_cv_shlibext+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954
11955 module=yes
11956 eval libltdl_cv_shlibext=$shrext_cmds
11957 module=no
11958 eval libltdl_cv_shrext=$shrext_cmds
11959
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11962 $as_echo "$libltdl_cv_shlibext" >&6; }
11963 if test -n "$libltdl_cv_shlibext"; then
11964
11965 cat >>confdefs.h <<_ACEOF
11966 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11967 _ACEOF
11968
11969 fi
11970 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11974 _ACEOF
11975
11976 fi
11977
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11979 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11980 if ${lt_cv_module_path_var+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 lt_cv_module_path_var="$shlibpath_var"
11984 fi
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11986 $as_echo "$lt_cv_module_path_var" >&6; }
11987 if test -n "$lt_cv_module_path_var"; then
11988
11989 cat >>confdefs.h <<_ACEOF
11990 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11991 _ACEOF
11992
11993 fi
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11996 $as_echo_n "checking for the default library search path... " >&6; }
11997 if ${lt_cv_sys_dlsearch_path+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12003 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12004 if test -n "$lt_cv_sys_dlsearch_path"; then
12005 sys_dlsearch_path=
12006 for dir in $lt_cv_sys_dlsearch_path; do
12007 if test -z "$sys_dlsearch_path"; then
12008 sys_dlsearch_path="$dir"
12009 else
12010 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12011 fi
12012 done
12013
12014 cat >>confdefs.h <<_ACEOF
12015 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12016 _ACEOF
12017
12018 fi
12019
12020
12021 LT_DLLOADERS=
12022
12023
12024 ac_ext=c
12025 ac_cpp='$CPP $CPPFLAGS'
12026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029
12030
12031 LIBADD_DLOPEN=
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12033 $as_echo_n "checking for library containing dlopen... " >&6; }
12034 if ${ac_cv_search_dlopen+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 ac_func_search_save_LIBS=$LIBS
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12040
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char dlopen ();
12048 int
12049 main ()
12050 {
12051 return dlopen ();
12052 ;
12053 return 0;
12054 }
12055 _ACEOF
12056 for ac_lib in '' dl; do
12057 if test -z "$ac_lib"; then
12058 ac_res="none required"
12059 else
12060 ac_res=-l$ac_lib
12061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12062 fi
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_search_dlopen=$ac_res
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext
12068 if ${ac_cv_search_dlopen+:} false; then :
12069 break
12070 fi
12071 done
12072 if ${ac_cv_search_dlopen+:} false; then :
12073
12074 else
12075 ac_cv_search_dlopen=no
12076 fi
12077 rm conftest.$ac_ext
12078 LIBS=$ac_func_search_save_LIBS
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12081 $as_echo "$ac_cv_search_dlopen" >&6; }
12082 ac_res=$ac_cv_search_dlopen
12083 if test "$ac_res" != no; then :
12084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12085
12086 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12087
12088 if test "$ac_cv_search_dlopen" != "none required" ; then
12089 LIBADD_DLOPEN="-ldl"
12090 fi
12091 libltdl_cv_lib_dl_dlopen="yes"
12092 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12093 else
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #if HAVE_DLFCN_H
12097 # include <dlfcn.h>
12098 #endif
12099
12100 int
12101 main ()
12102 {
12103 dlopen(0, 0);
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 if ac_fn_c_try_link "$LINENO"; then :
12109
12110 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12111
12112 libltdl_cv_func_dlopen="yes"
12113 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12116 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12117 if ${ac_cv_lib_svld_dlopen+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lsvld $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char dlopen ();
12132 int
12133 main ()
12134 {
12135 return dlopen ();
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_svld_dlopen=yes
12142 else
12143 ac_cv_lib_svld_dlopen=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12150 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12151 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12152
12153 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12154
12155 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12156 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12157 fi
12158
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 fi
12163
12164 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12165 then
12166 lt_save_LIBS="$LIBS"
12167 LIBS="$LIBS $LIBADD_DLOPEN"
12168 for ac_func in dlerror
12169 do :
12170 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12171 if test "x$ac_cv_func_dlerror" = xyes; then :
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_DLERROR 1
12174 _ACEOF
12175
12176 fi
12177 done
12178
12179 LIBS="$lt_save_LIBS"
12180 fi
12181
12182
12183 LIBADD_SHL_LOAD=
12184 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12185 if test "x$ac_cv_func_shl_load" = xyes; then :
12186
12187 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12188
12189 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12192 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12193 if ${ac_cv_lib_dld_shl_load+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 ac_check_lib_save_LIBS=$LIBS
12197 LIBS="-ldld $LIBS"
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char shl_load ();
12208 int
12209 main ()
12210 {
12211 return shl_load ();
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"; then :
12217 ac_cv_lib_dld_shl_load=yes
12218 else
12219 ac_cv_lib_dld_shl_load=no
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12224 fi
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12226 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12227 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12228
12229 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12230
12231 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12232 LIBADD_SHL_LOAD="-ldld"
12233 fi
12234
12235 fi
12236
12237
12238
12239 case $host_os in
12240 darwin[1567].*)
12241 # We only want this for pre-Mac OS X 10.4.
12242 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12243 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12244
12245 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12246
12247 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12248 fi
12249
12250 ;;
12251 beos*)
12252 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12253 ;;
12254 cygwin* | mingw* | os2* | pw32*)
12255 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12256 "
12257 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12258 ac_have_decl=1
12259 else
12260 ac_have_decl=0
12261 fi
12262
12263 cat >>confdefs.h <<_ACEOF
12264 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12265 _ACEOF
12266
12267 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12268 ;;
12269 esac
12270
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12272 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12273 if ${ac_cv_lib_dld_dld_link+:} false; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-ldld $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char dld_link ();
12288 int
12289 main ()
12290 {
12291 return dld_link ();
12292 ;
12293 return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_dld_dld_link=yes
12298 else
12299 ac_cv_lib_dld_dld_link=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12306 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12307 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12308
12309 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12310
12311 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12312 fi
12313
12314
12315
12316
12317 LT_DLPREOPEN=
12318 if test -n "$LT_DLLOADERS"
12319 then
12320 for lt_loader in $LT_DLLOADERS; do
12321 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12322 done
12323
12324 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12325
12326 fi
12327
12328
12329 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12330
12331
12332 ac_ext=c
12333 ac_cpp='$CPP $CPPFLAGS'
12334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12337
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12340 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12341 if ${lt_cv_sys_symbol_underscore+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 lt_cv_sys_symbol_underscore=no
12345 cat > conftest.$ac_ext <<_LT_EOF
12346 void nm_test_func(){}
12347 int main(){nm_test_func;return 0;}
12348 _LT_EOF
12349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12350 (eval $ac_compile) 2>&5
12351 ac_status=$?
12352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12353 test $ac_status = 0; }; then
12354 # Now try to grab the symbols.
12355 ac_nlist=conftest.nm
12356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12357 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12358 ac_status=$?
12359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360 test $ac_status = 0; } && test -s "$ac_nlist"; then
12361 # See whether the symbols have a leading underscore.
12362 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12363 lt_cv_sys_symbol_underscore=yes
12364 else
12365 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12366 :
12367 else
12368 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12369 fi
12370 fi
12371 else
12372 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12373 fi
12374 else
12375 echo "configure: failed program was:" >&5
12376 cat conftest.c >&5
12377 fi
12378 rm -rf conftest*
12379
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12382 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12383 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12384
12385
12386 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12387 if test x"$libltdl_cv_func_dlopen" = xyes ||
12388 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12390 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12391 if ${libltdl_cv_need_uscore+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 libltdl_cv_need_uscore=unknown
12395 save_LIBS="$LIBS"
12396 LIBS="$LIBS $LIBADD_DLOPEN"
12397 if test "$cross_compiling" = yes; then :
12398 libltdl_cv_need_uscore=cross
12399 else
12400 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12401 lt_status=$lt_dlunknown
12402 cat > conftest.$ac_ext <<_LT_EOF
12403 #line $LINENO "configure"
12404 #include "confdefs.h"
12405
12406 #if HAVE_DLFCN_H
12407 #include <dlfcn.h>
12408 #endif
12409
12410 #include <stdio.h>
12411
12412 #ifdef RTLD_GLOBAL
12413 # define LT_DLGLOBAL RTLD_GLOBAL
12414 #else
12415 # ifdef DL_GLOBAL
12416 # define LT_DLGLOBAL DL_GLOBAL
12417 # else
12418 # define LT_DLGLOBAL 0
12419 # endif
12420 #endif
12421
12422 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12423 find out it does not work in some platform. */
12424 #ifndef LT_DLLAZY_OR_NOW
12425 # ifdef RTLD_LAZY
12426 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12427 # else
12428 # ifdef DL_LAZY
12429 # define LT_DLLAZY_OR_NOW DL_LAZY
12430 # else
12431 # ifdef RTLD_NOW
12432 # define LT_DLLAZY_OR_NOW RTLD_NOW
12433 # else
12434 # ifdef DL_NOW
12435 # define LT_DLLAZY_OR_NOW DL_NOW
12436 # else
12437 # define LT_DLLAZY_OR_NOW 0
12438 # endif
12439 # endif
12440 # endif
12441 # endif
12442 #endif
12443
12444 /* When -fvisbility=hidden is used, assume the code has been annotated
12445 correspondingly for the symbols needed. */
12446 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12447 int fnord () __attribute__((visibility("default")));
12448 #endif
12449
12450 int fnord () { return 42; }
12451 int main ()
12452 {
12453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12454 int status = $lt_dlunknown;
12455
12456 if (self)
12457 {
12458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12459 else
12460 {
12461 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12462 else puts (dlerror ());
12463 }
12464 /* dlclose (self); */
12465 }
12466 else
12467 puts (dlerror ());
12468
12469 return status;
12470 }
12471 _LT_EOF
12472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12473 (eval $ac_link) 2>&5
12474 ac_status=$?
12475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12476 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12477 (./conftest; exit; ) >&5 2>/dev/null
12478 lt_status=$?
12479 case x$lt_status in
12480 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12481 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12482 x$lt_dlunknown|x*) ;;
12483 esac
12484 else :
12485 # compilation failed
12486
12487 fi
12488 fi
12489 rm -fr conftest*
12490
12491 LIBS="$save_LIBS"
12492
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12495 $as_echo "$libltdl_cv_need_uscore" >&6; }
12496 fi
12497 fi
12498
12499 if test x"$libltdl_cv_need_uscore" = xyes; then
12500
12501 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12502
12503 fi
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12506 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12507 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 # PORTME does your system automatically load deplibs for dlopen?
12511 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12512 # For now, we just catch OSes we know something about -- in the
12513 # future, we'll try test this programmatically.
12514 lt_cv_sys_dlopen_deplibs=unknown
12515 case $host_os in
12516 aix3*|aix4.1.*|aix4.2.*)
12517 # Unknown whether this is true for these versions of AIX, but
12518 # we want this `case' here to explicitly catch those versions.
12519 lt_cv_sys_dlopen_deplibs=unknown
12520 ;;
12521 aix[4-9]*)
12522 lt_cv_sys_dlopen_deplibs=yes
12523 ;;
12524 amigaos*)
12525 case $host_cpu in
12526 powerpc)
12527 lt_cv_sys_dlopen_deplibs=no
12528 ;;
12529 esac
12530 ;;
12531 darwin*)
12532 # Assuming the user has installed a libdl from somewhere, this is true
12533 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12534 lt_cv_sys_dlopen_deplibs=yes
12535 ;;
12536 freebsd* | dragonfly*)
12537 lt_cv_sys_dlopen_deplibs=yes
12538 ;;
12539 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12540 # GNU and its variants, using gnu ld.so (Glibc)
12541 lt_cv_sys_dlopen_deplibs=yes
12542 ;;
12543 hpux10*|hpux11*)
12544 lt_cv_sys_dlopen_deplibs=yes
12545 ;;
12546 interix*)
12547 lt_cv_sys_dlopen_deplibs=yes
12548 ;;
12549 irix[12345]*|irix6.[01]*)
12550 # Catch all versions of IRIX before 6.2, and indicate that we don't
12551 # know how it worked for any of those versions.
12552 lt_cv_sys_dlopen_deplibs=unknown
12553 ;;
12554 irix*)
12555 # The case above catches anything before 6.2, and it's known that
12556 # at 6.2 and later dlopen does load deplibs.
12557 lt_cv_sys_dlopen_deplibs=yes
12558 ;;
12559 netbsd*)
12560 lt_cv_sys_dlopen_deplibs=yes
12561 ;;
12562 openbsd*)
12563 lt_cv_sys_dlopen_deplibs=yes
12564 ;;
12565 osf[1234]*)
12566 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12567 # it did *not* use an RPATH in a shared library to find objects the
12568 # library depends on, so we explicitly say `no'.
12569 lt_cv_sys_dlopen_deplibs=no
12570 ;;
12571 osf5.0|osf5.0a|osf5.1)
12572 # dlopen *does* load deplibs and with the right loader patch applied
12573 # it even uses RPATH in a shared library to search for shared objects
12574 # that the library depends on, but there's no easy way to know if that
12575 # patch is installed. Since this is the case, all we can really
12576 # say is unknown -- it depends on the patch being installed. If
12577 # it is, this changes to `yes'. Without it, it would be `no'.
12578 lt_cv_sys_dlopen_deplibs=unknown
12579 ;;
12580 osf*)
12581 # the two cases above should catch all versions of osf <= 5.1. Read
12582 # the comments above for what we know about them.
12583 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12584 # is used to find them so we can finally say `yes'.
12585 lt_cv_sys_dlopen_deplibs=yes
12586 ;;
12587 qnx*)
12588 lt_cv_sys_dlopen_deplibs=yes
12589 ;;
12590 solaris*)
12591 lt_cv_sys_dlopen_deplibs=yes
12592 ;;
12593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12594 libltdl_cv_sys_dlopen_deplibs=yes
12595 ;;
12596 esac
12597
12598 fi
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12600 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12601 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12602
12603 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12604
12605 fi
12606
12607 :
12608
12609 for ac_header in argz.h
12610 do :
12611 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12612 "
12613 if test "x$ac_cv_header_argz_h" = xyes; then :
12614 cat >>confdefs.h <<_ACEOF
12615 #define HAVE_ARGZ_H 1
12616 _ACEOF
12617
12618 fi
12619
12620 done
12621
12622
12623 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12624 # include <argz.h>
12625 #endif
12626 "
12627 if test "x$ac_cv_type_error_t" = xyes; then :
12628
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_ERROR_T 1
12631 _ACEOF
12632
12633
12634 else
12635
12636 $as_echo "#define error_t int" >>confdefs.h
12637
12638
12639 $as_echo "#define __error_t_defined 1" >>confdefs.h
12640
12641 fi
12642
12643
12644 ARGZ_H=
12645 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12646 argz_next argz_stringify
12647 do :
12648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12651 cat >>confdefs.h <<_ACEOF
12652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12653 _ACEOF
12654
12655 else
12656 ARGZ_H=argz.h;
12657
12658 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12659
12660 fi
12661 done
12662
12663
12664 if test -z "$ARGZ_H"; then :
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12666 $as_echo_n "checking if argz actually works... " >&6; }
12667 if ${lt_cv_sys_argz_works+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 case $host_os in #(
12671 *cygwin*)
12672 lt_cv_sys_argz_works=no
12673 if test "$cross_compiling" != no; then
12674 lt_cv_sys_argz_works="guessing no"
12675 else
12676 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12677 save_IFS=$IFS
12678 IFS=-.
12679 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12680 IFS=$save_IFS
12681 lt_os_major=${2-0}
12682 lt_os_minor=${3-0}
12683 lt_os_micro=${4-0}
12684 if test "$lt_os_major" -gt 1 \
12685 || { test "$lt_os_major" -eq 1 \
12686 && { test "$lt_os_minor" -gt 5 \
12687 || { test "$lt_os_minor" -eq 5 \
12688 && test "$lt_os_micro" -gt 24; }; }; }; then
12689 lt_cv_sys_argz_works=yes
12690 fi
12691 fi
12692 ;; #(
12693 *) lt_cv_sys_argz_works=yes ;;
12694 esac
12695 fi
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12697 $as_echo "$lt_cv_sys_argz_works" >&6; }
12698 if test "$lt_cv_sys_argz_works" = yes; then :
12699
12700 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12701
12702 else
12703 ARGZ_H=argz.h
12704
12705
12706 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12707
12708 fi
12709 fi
12710
12711
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12714 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12715 if ${libltdl_cv_preloaded_symbols+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12719 libltdl_cv_preloaded_symbols=yes
12720 else
12721 libltdl_cv_preloaded_symbols=no
12722 fi
12723
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12726 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12727 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12728
12729 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12730
12731 fi
12732
12733 # Set options
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745 # Check whether --with-included_ltdl was given.
12746 if test "${with_included_ltdl+set}" = set; then :
12747 withval=$with_included_ltdl;
12748 fi
12749
12750
12751 if test "x$with_included_ltdl" != xyes; then
12752 # We are not being forced to use the included libltdl sources, so
12753 # decide whether there is a useful installed version we can use.
12754 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12755
12756 "
12757 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12758 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12759 #include <ltdl.h>
12760 "
12761 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12763 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12764 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lltdl $LIBS"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12775 #ifdef __cplusplus
12776 extern "C"
12777 #endif
12778 char lt_dladvise_preload ();
12779 int
12780 main ()
12781 {
12782 return lt_dladvise_preload ();
12783 ;
12784 return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12789 else
12790 ac_cv_lib_ltdl_lt_dladvise_preload=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12797 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12798 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12799 with_included_ltdl=no
12800 else
12801 with_included_ltdl=yes
12802 fi
12803
12804 else
12805 with_included_ltdl=yes
12806 fi
12807
12808 else
12809 with_included_ltdl=yes
12810 fi
12811
12812
12813 fi
12814
12815
12816
12817
12818 # Check whether --with-ltdl_include was given.
12819 if test "${with_ltdl_include+set}" = set; then :
12820 withval=$with_ltdl_include;
12821 fi
12822
12823
12824 if test -n "$with_ltdl_include"; then
12825 if test -f "$with_ltdl_include/ltdl.h"; then :
12826 else
12827 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12828 fi
12829 else
12830 with_ltdl_include=no
12831 fi
12832
12833
12834 # Check whether --with-ltdl_lib was given.
12835 if test "${with_ltdl_lib+set}" = set; then :
12836 withval=$with_ltdl_lib;
12837 fi
12838
12839
12840 if test -n "$with_ltdl_lib"; then
12841 if test -f "$with_ltdl_lib/libltdl.la"; then :
12842 else
12843 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12844 fi
12845 else
12846 with_ltdl_lib=no
12847 fi
12848
12849 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12850 ,yes,no,no,)
12851 case $enable_ltdl_convenience in
12852 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12853 "") enable_ltdl_convenience=yes
12854 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12855 esac
12856 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12857 LTDLDEPS=$LIBLTDL
12858 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12859
12860
12861
12862
12863
12864 # For backwards non-gettext consistent compatibility...
12865 INCLTDL="$LTDLINCL"
12866
12867
12868 ;;
12869 ,no,no,no,)
12870 # If the included ltdl is not to be used, then use the
12871 # preinstalled libltdl we found.
12872
12873 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12874
12875 LIBLTDL=-lltdl
12876 LTDLDEPS=
12877 LTDLINCL=
12878 ;;
12879 ,no*,no,*)
12880 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12881 ;;
12882 *) with_included_ltdl=no
12883 LIBLTDL="-L$with_ltdl_lib -lltdl"
12884 LTDLDEPS=
12885 LTDLINCL="-I$with_ltdl_include"
12886 ;;
12887 esac
12888 INCLTDL="$LTDLINCL"
12889
12890 # Report our decision...
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12892 $as_echo_n "checking where to find libltdl headers... " >&6; }
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12894 $as_echo "$LTDLINCL" >&6; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12896 $as_echo_n "checking where to find libltdl library... " >&6; }
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12898 $as_echo "$LIBLTDL" >&6; }
12899
12900
12901
12902 # Check whether --enable-ltdl-install was given.
12903 if test "${enable_ltdl_install+set}" = set; then :
12904 enableval=$enable_ltdl_install;
12905 fi
12906
12907
12908 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12909 *yes*) ;;
12910 *) enable_ltdl_convenience=yes ;;
12911 esac
12912
12913 if test x"${enable_ltdl_install-no}" != xno; then
12914 INSTALL_LTDL_TRUE=
12915 INSTALL_LTDL_FALSE='#'
12916 else
12917 INSTALL_LTDL_TRUE='#'
12918 INSTALL_LTDL_FALSE=
12919 fi
12920
12921 if test x"${enable_ltdl_convenience-no}" != xno; then
12922 CONVENIENCE_LTDL_TRUE=
12923 CONVENIENCE_LTDL_FALSE='#'
12924 else
12925 CONVENIENCE_LTDL_TRUE='#'
12926 CONVENIENCE_LTDL_FALSE=
12927 fi
12928
12929
12930
12931
12932
12933
12934 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12935 # the user used. This is so that ltdl.h can pick up the parent projects
12936 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12937 # definitions required by ltdl.c.
12938 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12939
12940
12941
12942 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12943 do :
12944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12945 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12946 "
12947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12948 cat >>confdefs.h <<_ACEOF
12949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12950 _ACEOF
12951
12952 fi
12953
12954 done
12955
12956
12957 for ac_func in closedir opendir readdir
12958 do :
12959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12962 cat >>confdefs.h <<_ACEOF
12963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12964 _ACEOF
12965
12966 else
12967
12968
12969 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12970
12971 fi
12972 done
12973
12974 for ac_func in strlcat strlcpy
12975 do :
12976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12979 cat >>confdefs.h <<_ACEOF
12980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12981 _ACEOF
12982
12983 else
12984
12985
12986 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12987
12988 fi
12989 done
12990
12991
12992
12993 cat >>confdefs.h <<_ACEOF
12994 #define LT_LIBEXT "$libext"
12995 _ACEOF
12996
12997
12998 name=
12999 eval "lt_libprefix=\"$libname_spec\""
13000
13001 cat >>confdefs.h <<_ACEOF
13002 #define LT_LIBPREFIX "$lt_libprefix"
13003 _ACEOF
13004
13005
13006 name=ltdl
13007 eval "LTDLOPEN=\"$libname_spec\""
13008
13009
13010
13011
13012
13013
13014
13015
13016 # Only expand once:
13017
13018
13019 LIBTOOL="$LIBTOOL --silent"
13020
13021 # Checks for libraries.
13022
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13024 $as_echo_n "checking for library containing socket... " >&6; }
13025 if ${ac_cv_search_socket+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 ac_func_search_save_LIBS=$LIBS
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char socket ();
13039 int
13040 main ()
13041 {
13042 return socket ();
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 for ac_lib in '' socket; do
13048 if test -z "$ac_lib"; then
13049 ac_res="none required"
13050 else
13051 ac_res=-l$ac_lib
13052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13053 fi
13054 if ac_fn_c_try_link "$LINENO"; then :
13055 ac_cv_search_socket=$ac_res
13056 fi
13057 rm -f core conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext
13059 if ${ac_cv_search_socket+:} false; then :
13060 break
13061 fi
13062 done
13063 if ${ac_cv_search_socket+:} false; then :
13064
13065 else
13066 ac_cv_search_socket=no
13067 fi
13068 rm conftest.$ac_ext
13069 LIBS=$ac_func_search_save_LIBS
13070 fi
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13072 $as_echo "$ac_cv_search_socket" >&6; }
13073 ac_res=$ac_cv_search_socket
13074 if test "$ac_res" != no; then :
13075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13076
13077 else
13078 as_fn_error $? "socket library not found" "$LINENO" 5
13079 fi
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13082 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13083 if ${ac_cv_search_inet_ntoa+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 ac_func_search_save_LIBS=$LIBS
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 char inet_ntoa ();
13097 int
13098 main ()
13099 {
13100 return inet_ntoa ();
13101 ;
13102 return 0;
13103 }
13104 _ACEOF
13105 for ac_lib in '' nsl; do
13106 if test -z "$ac_lib"; then
13107 ac_res="none required"
13108 else
13109 ac_res=-l$ac_lib
13110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13111 fi
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 ac_cv_search_inet_ntoa=$ac_res
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext
13117 if ${ac_cv_search_inet_ntoa+:} false; then :
13118 break
13119 fi
13120 done
13121 if ${ac_cv_search_inet_ntoa+:} false; then :
13122
13123 else
13124 ac_cv_search_inet_ntoa=no
13125 fi
13126 rm conftest.$ac_ext
13127 LIBS=$ac_func_search_save_LIBS
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13130 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13131 ac_res=$ac_cv_search_inet_ntoa
13132 if test "$ac_res" != no; then :
13133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13134
13135 fi
13136
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13138 $as_echo_n "checking for library containing inet_aton... " >&6; }
13139 if ${ac_cv_search_inet_aton+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 ac_func_search_save_LIBS=$LIBS
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char inet_aton ();
13153 int
13154 main ()
13155 {
13156 return inet_aton ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 for ac_lib in '' resolv; do
13162 if test -z "$ac_lib"; then
13163 ac_res="none required"
13164 else
13165 ac_res=-l$ac_lib
13166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13167 fi
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 ac_cv_search_inet_aton=$ac_res
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext
13173 if ${ac_cv_search_inet_aton+:} false; then :
13174 break
13175 fi
13176 done
13177 if ${ac_cv_search_inet_aton+:} false; then :
13178
13179 else
13180 ac_cv_search_inet_aton=no
13181 fi
13182 rm conftest.$ac_ext
13183 LIBS=$ac_func_search_save_LIBS
13184 fi
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13186 $as_echo "$ac_cv_search_inet_aton" >&6; }
13187 ac_res=$ac_cv_search_inet_aton
13188 if test "$ac_res" != no; then :
13189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13190
13191 fi
13192
13193 for ac_func in inet_aton inet_ntop inet_pton
13194 do :
13195 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13196 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13197 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13198 cat >>confdefs.h <<_ACEOF
13199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13200 _ACEOF
13201
13202 fi
13203 done
13204
13205 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13206 #include <sys/socket.h>
13207 #include <netdb.h>
13208
13209 "
13210 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13211
13212 cat >>confdefs.h <<_ACEOF
13213 #define HAVE_STRUCT_SOCKADDR_IN 1
13214 _ACEOF
13215
13216
13217 fi
13218 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13219 #include <sys/socket.h>
13220 #include <netdb.h>
13221
13222 "
13223 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13224
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13227 _ACEOF
13228
13229
13230 fi
13231 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13232 #include <sys/socket.h>
13233 #include <netdb.h>
13234
13235 "
13236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13237
13238 cat >>confdefs.h <<_ACEOF
13239 #define HAVE_STRUCT_ADDRINFO 1
13240 _ACEOF
13241
13242
13243 fi
13244
13245 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13246 <sys/socket.h>
13247 "
13248 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13249
13250 cat >>confdefs.h <<_ACEOF
13251 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13252 _ACEOF
13253
13254
13255 fi
13256
13257
13258
13259 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13260 "
13261 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13262
13263 $as_echo "#define IPV6 1" >>confdefs.h
13264
13265 fi
13266
13267
13268
13269 # Checks for typedefs, structures, and compiler characteristics.
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13271 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13272 if ${ac_cv_c_bigendian+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 ac_cv_c_bigendian=unknown
13276 # See if we're dealing with a universal compiler.
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #ifndef __APPLE_CC__
13280 not a universal capable compiler
13281 #endif
13282 typedef int dummy;
13283
13284 _ACEOF
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286
13287 # Check for potential -arch flags. It is not universal unless
13288 # there are at least two -arch flags with different values.
13289 ac_arch=
13290 ac_prev=
13291 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13292 if test -n "$ac_prev"; then
13293 case $ac_word in
13294 i?86 | x86_64 | ppc | ppc64)
13295 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13296 ac_arch=$ac_word
13297 else
13298 ac_cv_c_bigendian=universal
13299 break
13300 fi
13301 ;;
13302 esac
13303 ac_prev=
13304 elif test "x$ac_word" = "x-arch"; then
13305 ac_prev=arch
13306 fi
13307 done
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13310 if test $ac_cv_c_bigendian = unknown; then
13311 # See if sys/param.h defines the BYTE_ORDER macro.
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 #include <sys/types.h>
13315 #include <sys/param.h>
13316
13317 int
13318 main ()
13319 {
13320 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13321 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13322 && LITTLE_ENDIAN)
13323 bogus endian macros
13324 #endif
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 # It does; now see whether it defined to BIG_ENDIAN or not.
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 #include <sys/types.h>
13335 #include <sys/param.h>
13336
13337 int
13338 main ()
13339 {
13340 #if BYTE_ORDER != BIG_ENDIAN
13341 not big endian
13342 #endif
13343
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349 ac_cv_c_bigendian=yes
13350 else
13351 ac_cv_c_bigendian=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 fi
13357 if test $ac_cv_c_bigendian = unknown; then
13358 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 #include <limits.h>
13362
13363 int
13364 main ()
13365 {
13366 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13367 bogus endian macros
13368 #endif
13369
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_compile "$LINENO"; then :
13375 # It does; now see whether it defined to _BIG_ENDIAN or not.
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 #include <limits.h>
13379
13380 int
13381 main ()
13382 {
13383 #ifndef _BIG_ENDIAN
13384 not big endian
13385 #endif
13386
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"; then :
13392 ac_cv_c_bigendian=yes
13393 else
13394 ac_cv_c_bigendian=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 if test $ac_cv_c_bigendian = unknown; then
13401 # Compile a test program.
13402 if test "$cross_compiling" = yes; then :
13403 # Try to guess by grepping values from an object file.
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13406 short int ascii_mm[] =
13407 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13408 short int ascii_ii[] =
13409 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13410 int use_ascii (int i) {
13411 return ascii_mm[i] + ascii_ii[i];
13412 }
13413 short int ebcdic_ii[] =
13414 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13415 short int ebcdic_mm[] =
13416 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13417 int use_ebcdic (int i) {
13418 return ebcdic_mm[i] + ebcdic_ii[i];
13419 }
13420 extern int foo;
13421
13422 int
13423 main ()
13424 {
13425 return use_ascii (foo) == use_ebcdic (foo);
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 if ac_fn_c_try_compile "$LINENO"; then :
13431 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13432 ac_cv_c_bigendian=yes
13433 fi
13434 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13435 if test "$ac_cv_c_bigendian" = unknown; then
13436 ac_cv_c_bigendian=no
13437 else
13438 # finding both strings is unlikely to happen, but who knows?
13439 ac_cv_c_bigendian=unknown
13440 fi
13441 fi
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13444 else
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 $ac_includes_default
13448 int
13449 main ()
13450 {
13451
13452 /* Are we little or big endian? From Harbison&Steele. */
13453 union
13454 {
13455 long int l;
13456 char c[sizeof (long int)];
13457 } u;
13458 u.l = 1;
13459 return u.c[sizeof (long int) - 1] == 1;
13460
13461 ;
13462 return 0;
13463 }
13464 _ACEOF
13465 if ac_fn_c_try_run "$LINENO"; then :
13466 ac_cv_c_bigendian=no
13467 else
13468 ac_cv_c_bigendian=yes
13469 fi
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13471 conftest.$ac_objext conftest.beam conftest.$ac_ext
13472 fi
13473
13474 fi
13475 fi
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13477 $as_echo "$ac_cv_c_bigendian" >&6; }
13478 case $ac_cv_c_bigendian in #(
13479 yes)
13480 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13481 ;; #(
13482 no)
13483 ;; #(
13484 universal)
13485
13486 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13487
13488 ;; #(
13489 *)
13490 as_fn_error $? "unknown endianness
13491 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13492 esac
13493
13494
13495 # Checks for library functions.
13496
13497
13498
13499 for ac_func in $ac_func_list
13500 do :
13501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13504 cat >>confdefs.h <<_ACEOF
13505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13506 _ACEOF
13507
13508 fi
13509 done
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525 # Checks for header files.
13526
13527
13528
13529 for ac_header in $ac_header_list
13530 do :
13531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13532 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13533 "
13534 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13535 cat >>confdefs.h <<_ACEOF
13536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13537 _ACEOF
13538
13539 fi
13540
13541 done
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569 # check for /dev/null so we can use it to hold evil fd's
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13571 $as_echo_n "checking for /dev/null... " >&6; }
13572 if test -c /dev/null; then :
13573
13574
13575 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13578 $as_echo "yes" >&6; }
13579 else
13580
13581
13582 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13583
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13585 $as_echo "no - using devnull.log" >&6; }
13586 fi
13587
13588
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13590 $as_echo_n "checking for library containing crypt... " >&6; }
13591 if ${ac_cv_search_crypt+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 ac_func_search_save_LIBS=$LIBS
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13597
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13601 #ifdef __cplusplus
13602 extern "C"
13603 #endif
13604 char crypt ();
13605 int
13606 main ()
13607 {
13608 return crypt ();
13609 ;
13610 return 0;
13611 }
13612 _ACEOF
13613 for ac_lib in '' crypt; do
13614 if test -z "$ac_lib"; then
13615 ac_res="none required"
13616 else
13617 ac_res=-l$ac_lib
13618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13619 fi
13620 if ac_fn_c_try_link "$LINENO"; then :
13621 ac_cv_search_crypt=$ac_res
13622 fi
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext
13625 if ${ac_cv_search_crypt+:} false; then :
13626 break
13627 fi
13628 done
13629 if ${ac_cv_search_crypt+:} false; then :
13630
13631 else
13632 ac_cv_search_crypt=no
13633 fi
13634 rm conftest.$ac_ext
13635 LIBS=$ac_func_search_save_LIBS
13636 fi
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13638 $as_echo "$ac_cv_search_crypt" >&6; }
13639 ac_res=$ac_cv_search_crypt
13640 if test "$ac_res" != no; then :
13641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13642
13643 fi
13644
13645
13646
13647
13648 # Check whether --with-zlib-path was given.
13649 if test "${with_zlib_path+set}" = set; then :
13650 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
13651 fi
13652
13653
13654 # Check whether --enable-zlib was given.
13655 if test "${enable_zlib+set}" = set; then :
13656 enableval=$enable_zlib; zlib=$enableval
13657 else
13658 zlib=yes
13659 fi
13660
13661
13662 if test "$zlib" = "yes"; then :
13663
13664 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13665 if test "x$ac_cv_header_zlib_h" = xyes; then :
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13667 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13668 if ${ac_cv_lib_z_zlibVersion+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lz $LIBS"
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char zlibVersion ();
13683 int
13684 main ()
13685 {
13686 return zlibVersion ();
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 ac_cv_lib_z_zlibVersion=yes
13693 else
13694 ac_cv_lib_z_zlibVersion=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698 LIBS=$ac_check_lib_save_LIBS
13699 fi
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13701 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13702 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13703
13704 LIBS="-lz $LIBS"
13705
13706 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13707
13708
13709 else
13710 zlib=no
13711 fi
13712
13713
13714 else
13715 zlib=no
13716 fi
13717
13718
13719
13720 fi
13721
13722
13723 # Check whether --with-libpcre-path was given.
13724 if test "${with_libpcre_path+set}" = set; then :
13725 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
13726 fi
13727
13728
13729 # Check whether --enable-libpcre was given.
13730 if test "${enable_libpcre+set}" = set; then :
13731 enableval=$enable_libpcre; libpcre=$enableval
13732 else
13733 libpcre=yes
13734 fi
13735
13736
13737 if test "$libpcre" = "yes"; then :
13738
13739 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13740 if test "x$ac_cv_header_pcre_h" = xyes; then :
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
13742 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
13743 if ${ac_cv_lib_pcre_pcre_study+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lpcre $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750
13751 /* Override any GCC internal prototype to avoid an error.
13752 Use char because int might match the return type of a GCC
13753 builtin and then its argument prototype would still apply. */
13754 #ifdef __cplusplus
13755 extern "C"
13756 #endif
13757 char pcre_study ();
13758 int
13759 main ()
13760 {
13761 return pcre_study ();
13762 ;
13763 return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_link "$LINENO"; then :
13767 ac_cv_lib_pcre_pcre_study=yes
13768 else
13769 ac_cv_lib_pcre_pcre_study=no
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_check_lib_save_LIBS
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13776 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13777 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
13778
13779 LIBS="-lpcre $LIBS"
13780
13781 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13782
13783
13784 else
13785 libpcre=no
13786 fi
13787
13788
13789 else
13790 libpcre=no
13791 fi
13792
13793
13794
13795 fi
13796 if test "$libpcre" = yes; then
13797 ENABLE_PCRE_TRUE=
13798 ENABLE_PCRE_FALSE='#'
13799 else
13800 ENABLE_PCRE_TRUE='#'
13801 ENABLE_PCRE_FALSE=
13802 fi
13803
13804
13805
13806 # Check whether --enable-openssl was given.
13807 if test "${enable_openssl+set}" = set; then :
13808 enableval=$enable_openssl; cf_enable_openssl=$enableval
13809 else
13810 cf_enable_openssl="auto"
13811 fi
13812
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13814 $as_echo_n "checking for OpenSSL... " >&6; }
13815 if test "$cf_enable_openssl" != "no"; then
13816 cf_openssl_basedir=""
13817 if test "$cf_enable_openssl" != "auto" &&
13818 test "$cf_enable_openssl" != "yes"; then
13819 cf_openssl_basedir="${cf_enable_openssl}"
13820 else
13821 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13822 /opt /opt/openssl /usr/local/openssl; do
13823 if test -f "${dirs}/include/openssl/opensslv.h"; then
13824 cf_openssl_basedir="${dirs}"
13825 break
13826 fi
13827 done
13828 unset dirs
13829 fi
13830
13831 if test ! -z "$cf_openssl_basedir"; then
13832 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13833 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13834 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13835 else
13836 cf_openssl_basedir=""
13837 fi
13838 else
13839 if test -f "/usr/include/openssl/opensslv.h"; then
13840 cf_openssl_basedir="/usr"
13841 fi
13842 fi
13843
13844 if test ! -z "$cf_openssl_basedir"; then
13845 LIBS="-lcrypto -lssl $LIBS"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13847 $as_echo "$cf_openssl_basedir" >&6; }
13848 cf_enable_openssl="yes"
13849
13850 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13851
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13854 $as_echo "not found. Please check your path." >&6; }
13855 cf_enable_openssl="no"
13856 fi
13857 unset cf_openssl_basedir
13858 else
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13860 $as_echo "disabled" >&6; }
13861 fi
13862
13863 if test "$cf_enable_openssl" != "no"; then :
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13865 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13866 if test "$cross_compiling" = yes; then :
13867 cf_openssl_version_ok=no
13868 else
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871
13872
13873 #include <openssl/opensslv.h>
13874 #include <stdlib.h>
13875 int
13876 main ()
13877 {
13878 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
13879 ;
13880 return 0;
13881 }
13882 _ACEOF
13883 if ac_fn_c_try_run "$LINENO"; then :
13884 cf_openssl_version_ok=yes
13885 else
13886 cf_openssl_version_ok=no
13887 fi
13888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13889 conftest.$ac_objext conftest.beam conftest.$ac_ext
13890 fi
13891
13892
13893 if test "$cf_openssl_version_ok" = "yes"; then :
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13895 $as_echo "found" >&6; }
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13898 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13899 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lcrypto $LIBS"
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char RSA_free ();
13914 int
13915 main ()
13916 {
13917 return RSA_free ();
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 ac_cv_lib_crypto_RSA_free=yes
13924 else
13925 ac_cv_lib_crypto_RSA_free=no
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13932 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13933 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13934 cat >>confdefs.h <<_ACEOF
13935 #define HAVE_LIBCRYPTO 1
13936 _ACEOF
13937
13938 LIBS="-lcrypto $LIBS"
13939
13940 fi
13941
13942 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13943 for ac_func in EVP_bf_cfb \
13944 EVP_cast5_cfb \
13945 EVP_idea_cfb \
13946 EVP_rc5_32_12_16_cfb \
13947 EVP_des_ede3_cfb \
13948 EVP_des_cfb
13949 do :
13950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13953 cat >>confdefs.h <<_ACEOF
13954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13955 _ACEOF
13956
13957 fi
13958 done
13959
13960 fi
13961
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13964 $as_echo "no - OpenSSL support disabled" >&6; }
13965 cf_enable_openssl="no"
13966 fi
13967 fi
13968
13969 if test "$cf_enable_openssl" = yes; then
13970 ENABLE_SSL_TRUE=
13971 ENABLE_SSL_FALSE='#'
13972 else
13973 ENABLE_SSL_TRUE='#'
13974 ENABLE_SSL_FALSE=
13975 fi
13976
13977
13978
13979 # Check whether --enable-assert was given.
13980 if test "${enable_assert+set}" = set; then :
13981 enableval=$enable_assert; assert=$enableval
13982 else
13983 assert=no
13984 fi
13985
13986
13987 if test "$assert" = "no"; then :
13988
13989 $as_echo "#define NDEBUG 1" >>confdefs.h
13990
13991 fi
13992
13993
13994 # Check whether --enable-small-net was given.
13995 if test "${enable_small_net+set}" = set; then :
13996 enableval=$enable_small_net; small_net=$enableval
13997 else
13998 small_net=no
13999 fi
14000
14001
14002 if test "$small_net" = "yes"; then :
14003
14004
14005 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
14006
14007
14008 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
14009
14010
14011 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
14012
14013
14014 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
14015
14016
14017 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
14018
14019
14020 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
14021
14022
14023 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
14024
14025
14026 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
14027
14028
14029 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
14030
14031
14032 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
14033
14034 else
14035
14036
14037
14038 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
14039
14040
14041 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
14042
14043
14044 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
14045
14046
14047 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
14048
14049
14050 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
14051
14052
14053 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
14054
14055
14056 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
14057
14058
14059 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
14060
14061
14062 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
14063
14064
14065 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
14066
14067 fi
14068
14069
14070 # Argument processing.
14071
14072 desired_iopoll_mechanism="none"
14073 # Check whether --enable-kqueue was given.
14074 if test "${enable_kqueue+set}" = set; then :
14075 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14076 fi
14077
14078 # Check whether --enable-epoll was given.
14079 if test "${enable_epoll+set}" = set; then :
14080 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14081 fi
14082
14083 # Check whether --enable-devpoll was given.
14084 if test "${enable_devpoll+set}" = set; then :
14085 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14086 fi
14087
14088 # Check whether --enable-rtsigio was given.
14089 if test "${enable_rtsigio+set}" = set; then :
14090 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14091 fi
14092
14093 # Check whether --enable-poll was given.
14094 if test "${enable_poll+set}" = set; then :
14095 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14096 fi
14097
14098 # Check whether --enable-select was given.
14099 if test "${enable_select+set}" = set; then :
14100 enableval=$enable_select; desired_iopoll_mechanism="select"
14101 fi
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14104 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14105 iopoll_mechanism_none=0
14106
14107 cat >>confdefs.h <<_ACEOF
14108 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14109 _ACEOF
14110
14111 iopoll_mechanism_kqueue=1
14112
14113 cat >>confdefs.h <<_ACEOF
14114 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14115 _ACEOF
14116
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14119 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14121 #define kevent innocuous_kevent
14122
14123 /* System header to define __stub macros and hopefully few prototypes,
14124 which can conflict with char kevent (); below.
14125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14126 <limits.h> exists even on freestanding compilers. */
14127
14128 #ifdef __STDC__
14129 # include <limits.h>
14130 #else
14131 # include <assert.h>
14132 #endif
14133
14134 #undef kevent
14135
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14139 #ifdef __cplusplus
14140 extern "C"
14141 #endif
14142 char kevent ();
14143 /* The GNU C library defines this for functions which it implements
14144 to always fail with ENOSYS. Some functions are actually named
14145 something starting with __ and the normal name is an alias. */
14146 #if defined __stub_kevent || defined __stub___kevent
14147 choke me
14148 #endif
14149
14150 int
14151 main ()
14152 {
14153 return kevent ();
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 is_kqueue_mechanism_available="yes"
14160 else
14161 is_kqueue_mechanism_available="no"
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 iopoll_mechanism_epoll=2
14166
14167 cat >>confdefs.h <<_ACEOF
14168 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14169 _ACEOF
14170
14171 if test "$cross_compiling" = yes; then :
14172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14174 as_fn_error $? "cannot run test program while cross compiling
14175 See \`config.log' for more details" "$LINENO" 5; }
14176 else
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179
14180 #include <sys/epoll.h>
14181 #include <sys/syscall.h>
14182 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14183 #if !defined(__NR_epoll_create)
14184 #if defined(__ia64__)
14185 #define __NR_epoll_create 1243
14186 #elif defined(__x86_64__)
14187 #define __NR_epoll_create 214
14188 #elif defined(__sparc64__) || defined(__sparc__)
14189 #define __NR_epoll_create 193
14190 #elif defined(__s390__) || defined(__m68k__)
14191 #define __NR_epoll_create 249
14192 #elif defined(__ppc64__) || defined(__ppc__)
14193 #define __NR_epoll_create 236
14194 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14195 #define __NR_epoll_create 224
14196 #elif defined(__alpha__)
14197 #define __NR_epoll_create 407
14198 #elif defined(__sh64__)
14199 #define __NR_epoll_create 282
14200 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14201 #define __NR_epoll_create 254
14202 #else
14203 #error No system call numbers defined for epoll family.
14204 #endif
14205 #endif
14206 _syscall1(int, epoll_create, int, size)
14207 #endif
14208
14209 int
14210 main ()
14211 {
14212 return epoll_create(256) == -1 ? 1 : 0
14213 ;
14214 return 0;
14215 }
14216 _ACEOF
14217 if ac_fn_c_try_run "$LINENO"; then :
14218 is_epoll_mechanism_available="yes"
14219 else
14220 is_epoll_mechanism_available="no"
14221 fi
14222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14223 conftest.$ac_objext conftest.beam conftest.$ac_ext
14224 fi
14225
14226 iopoll_mechanism_devpoll=3
14227
14228 cat >>confdefs.h <<_ACEOF
14229 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14230 _ACEOF
14231
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14234 #include <devpoll.h>
14235 int
14236 main ()
14237 {
14238
14239 ;
14240 return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_c_try_compile "$LINENO"; then :
14244 is_devpoll_mechanism_available="yes"
14245 else
14246 is_devpoll_mechanism_available="no"
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 if test "$is_devpoll_mechanism_available" = "yes" ; then
14250
14251 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14252
14253 fi
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <sys/devpoll.h>
14257 int
14258 main ()
14259 {
14260
14261 ;
14262 return 0;
14263 }
14264 _ACEOF
14265 if ac_fn_c_try_compile "$LINENO"; then :
14266 is_devpoll_mechanism_available="yes"
14267 else
14268 is_devpoll_mechanism_available="no"
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 if test "$is_devpoll_mechanism_available" = "yes" ; then
14272
14273 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14274
14275 fi
14276 iopoll_mechanism_rtsigio=4
14277
14278 cat >>confdefs.h <<_ACEOF
14279 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14280 _ACEOF
14281
14282 if test "$cross_compiling" = yes; then :
14283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14285 as_fn_error $? "cannot run test program while cross compiling
14286 See \`config.log' for more details" "$LINENO" 5; }
14287 else
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 #define _GNU_SOURCE
14292 #include <fcntl.h>
14293 static unsigned int have_f_setsig = 0;
14294
14295 int
14296 main ()
14297 {
14298
14299 #ifdef F_SETSIG
14300 have_f_setsig = 1;
14301 #endif
14302 return have_f_setsig == 0;
14303
14304 ;
14305 return 0;
14306 }
14307 _ACEOF
14308 if ac_fn_c_try_run "$LINENO"; then :
14309 is_rtsigio_mechanism_available="yes"
14310 else
14311 is_rtsigio_mechanism_available="no"
14312 fi
14313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14314 conftest.$ac_objext conftest.beam conftest.$ac_ext
14315 fi
14316
14317 iopoll_mechanism_poll=5
14318
14319 cat >>confdefs.h <<_ACEOF
14320 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14321 _ACEOF
14322
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14327 #define poll innocuous_poll
14328
14329 /* System header to define __stub macros and hopefully few prototypes,
14330 which can conflict with char poll (); below.
14331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14332 <limits.h> exists even on freestanding compilers. */
14333
14334 #ifdef __STDC__
14335 # include <limits.h>
14336 #else
14337 # include <assert.h>
14338 #endif
14339
14340 #undef poll
14341
14342 /* Override any GCC internal prototype to avoid an error.
14343 Use char because int might match the return type of a GCC
14344 builtin and then its argument prototype would still apply. */
14345 #ifdef __cplusplus
14346 extern "C"
14347 #endif
14348 char poll ();
14349 /* The GNU C library defines this for functions which it implements
14350 to always fail with ENOSYS. Some functions are actually named
14351 something starting with __ and the normal name is an alias. */
14352 #if defined __stub_poll || defined __stub___poll
14353 choke me
14354 #endif
14355
14356 int
14357 main ()
14358 {
14359 return poll ();
14360 ;
14361 return 0;
14362 }
14363 _ACEOF
14364 if ac_fn_c_try_link "$LINENO"; then :
14365 is_poll_mechanism_available="yes"
14366 else
14367 is_poll_mechanism_available="no"
14368 fi
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 iopoll_mechanism_select=6
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14375 _ACEOF
14376
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 /* Define select to an innocuous variant, in case <limits.h> declares select.
14380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14381 #define select innocuous_select
14382
14383 /* System header to define __stub macros and hopefully few prototypes,
14384 which can conflict with char select (); below.
14385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14386 <limits.h> exists even on freestanding compilers. */
14387
14388 #ifdef __STDC__
14389 # include <limits.h>
14390 #else
14391 # include <assert.h>
14392 #endif
14393
14394 #undef select
14395
14396 /* Override any GCC internal prototype to avoid an error.
14397 Use char because int might match the return type of a GCC
14398 builtin and then its argument prototype would still apply. */
14399 #ifdef __cplusplus
14400 extern "C"
14401 #endif
14402 char select ();
14403 /* The GNU C library defines this for functions which it implements
14404 to always fail with ENOSYS. Some functions are actually named
14405 something starting with __ and the normal name is an alias. */
14406 #if defined __stub_select || defined __stub___select
14407 choke me
14408 #endif
14409
14410 int
14411 main ()
14412 {
14413 return select ();
14414 ;
14415 return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_link "$LINENO"; then :
14419 is_select_mechanism_available="yes"
14420 else
14421 is_select_mechanism_available="no"
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext \
14424 conftest$ac_exeext conftest.$ac_ext
14425 optimal_iopoll_mechanism="none"
14426 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14427 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14428 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14429 optimal_iopoll_mechanism="$mechanism"
14430 break
14431 fi
14432 done
14433 if test "$desired_iopoll_mechanism" = "none" ; then
14434 if test "$optimal_iopoll_mechanism" = "none" ; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14436 $as_echo "none" >&6; }
14437 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14438 else
14439 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14441 $as_echo "$selected_iopoll_mechanism" >&6; }
14442 fi
14443 else
14444 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14445 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14446 selected_iopoll_mechanism=$desired_iopoll_mechanism
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14448 $as_echo "$selected_iopoll_mechanism" >&6; }
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14451 $as_echo "none" >&6; }
14452 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14453 fi
14454 fi
14455 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14456
14457 cat >>confdefs.h <<_ACEOF
14458 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14459 _ACEOF
14460
14461
14462
14463
14464 # Check whether --with-nicklen was given.
14465 if test "${with_nicklen+set}" = set; then :
14466 withval=$with_nicklen; nicklen="$withval"
14467 else
14468 nicklen="9"
14469 fi
14470
14471
14472 cat >>confdefs.h <<_ACEOF
14473 #define NICKLEN ($nicklen+1)
14474 _ACEOF
14475
14476
14477
14478
14479 # Check whether --with-topiclen was given.
14480 if test "${with_topiclen+set}" = set; then :
14481 withval=$with_topiclen; topiclen="$withval"
14482 else
14483 topiclen="160"
14484 fi
14485
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define TOPICLEN ($topiclen)
14489 _ACEOF
14490
14491
14492
14493
14494 # Check whether --with-syslog-facility was given.
14495 if test "${with_syslog_facility+set}" = set; then :
14496 withval=$with_syslog_facility; syslog_facility="$withval"
14497 else
14498 syslog_facility="LOG_LOCAL4"
14499 fi
14500
14501
14502 cat >>confdefs.h <<_ACEOF
14503 #define LOG_FACILITY $syslog_facility
14504 _ACEOF
14505
14506
14507
14508 # Check whether --enable-efnet was given.
14509 if test "${enable_efnet+set}" = set; then :
14510 enableval=$enable_efnet; efnet="$enableval"
14511 else
14512 efnet="no"
14513 fi
14514
14515 if test "$efnet" = "yes" ; then
14516 use_efnet="yes"
14517
14518 $as_echo "#define EFNET 1" >>confdefs.h
14519
14520 else
14521 use_efnet="no"
14522 fi
14523 if test "$use_efnet" = "yes"; then
14524 EFNET_TRUE=
14525 EFNET_FALSE='#'
14526 else
14527 EFNET_TRUE='#'
14528 EFNET_FALSE=
14529 fi
14530
14531
14532
14533 # Check whether --enable-halfops was given.
14534 if test "${enable_halfops+set}" = set; then :
14535 enableval=$enable_halfops; halfops="$enableval"
14536 else
14537 halfops="no"
14538 fi
14539
14540 if test "$halfops" = "yes" ; then
14541
14542 $as_echo "#define HALFOPS 1" >>confdefs.h
14543
14544 fi
14545
14546
14547 # Check whether --enable-debugging was given.
14548 if test "${enable_debugging+set}" = set; then :
14549 enableval=$enable_debugging; debugging="$enableval"
14550 else
14551 debugging="no"
14552 fi
14553
14554 if test "$debugging" = "yes" ; then
14555
14556 $as_echo "#define DEBUG 1" >>confdefs.h
14557
14558 CFLAGS="-Wall -g -O0"
14559 else
14560
14561 $as_echo "#define NDEBUG 1" >>confdefs.h
14562
14563 fi
14564
14565
14566 # Check whether --enable-warnings was given.
14567 if test "${enable_warnings+set}" = set; then :
14568 enableval=$enable_warnings; warnings="$enableval"
14569 else
14570 warnings="no"
14571 fi
14572
14573 if test "$warnings" = "yes" ; then
14574 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14575 fi
14576
14577
14578 for ac_header in syslog.h sys/syslog.h
14579 do :
14580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14581 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14583 cat >>confdefs.h <<_ACEOF
14584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14585 _ACEOF
14586
14587 fi
14588
14589 done
14590
14591 # Check whether --enable-syslog was given.
14592 if test "${enable_syslog+set}" = set; then :
14593 enableval=$enable_syslog; syslog="$enableval"
14594 else
14595 syslog="no"
14596 fi
14597
14598 if test "$enableval" != "no" ; then
14599 for option in $enableval ; do
14600 case "$option" in
14601 users)
14602 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
14603 ;;
14604 oper)
14605 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
14606 ;;
14607 yes) : ;;
14608 *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
14609 esac
14610 done
14611
14612 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
14613
14614 fi
14615
14616
14617
14618 prefix_NONE=
14619 exec_prefix_NONE=
14620 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14621 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14622 eval ac_define_dir="\"$prefix\""
14623 eval ac_define_dir="\"$ac_define_dir\""
14624 PREFIX="$ac_define_dir"
14625
14626
14627 cat >>confdefs.h <<_ACEOF
14628 #define PREFIX "$ac_define_dir"
14629 _ACEOF
14630
14631 test "$prefix_NONE" && prefix=NONE
14632 test "$exec_prefix_NONE" && exec_prefix=NONE
14633
14634
14635 prefix_NONE=
14636 exec_prefix_NONE=
14637 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14638 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14639 eval ac_define_dir="\"$sysconfdir\""
14640 eval ac_define_dir="\"$ac_define_dir\""
14641 SYSCONFDIR="$ac_define_dir"
14642
14643
14644 cat >>confdefs.h <<_ACEOF
14645 #define SYSCONFDIR "$ac_define_dir"
14646 _ACEOF
14647
14648 test "$prefix_NONE" && prefix=NONE
14649 test "$exec_prefix_NONE" && exec_prefix=NONE
14650
14651
14652 prefix_NONE=
14653 exec_prefix_NONE=
14654 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14655 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14656 eval ac_define_dir="\"$libdir\""
14657 eval ac_define_dir="\"$ac_define_dir\""
14658 LIBDIR="$ac_define_dir"
14659
14660
14661 cat >>confdefs.h <<_ACEOF
14662 #define LIBDIR "$ac_define_dir"
14663 _ACEOF
14664
14665 test "$prefix_NONE" && prefix=NONE
14666 test "$exec_prefix_NONE" && exec_prefix=NONE
14667
14668
14669 prefix_NONE=
14670 exec_prefix_NONE=
14671 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14672 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14673 eval ac_define_dir="\"$datadir\""
14674 eval ac_define_dir="\"$ac_define_dir\""
14675 DATADIR="$ac_define_dir"
14676
14677
14678 cat >>confdefs.h <<_ACEOF
14679 #define DATADIR "$ac_define_dir"
14680 _ACEOF
14681
14682 test "$prefix_NONE" && prefix=NONE
14683 test "$exec_prefix_NONE" && exec_prefix=NONE
14684
14685
14686 prefix_NONE=
14687 exec_prefix_NONE=
14688 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14689 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14690 eval ac_define_dir="\"$localstatedir\""
14691 eval ac_define_dir="\"$ac_define_dir\""
14692 LOCALSTATEDIR="$ac_define_dir"
14693
14694
14695 cat >>confdefs.h <<_ACEOF
14696 #define LOCALSTATEDIR "$ac_define_dir"
14697 _ACEOF
14698
14699 test "$prefix_NONE" && prefix=NONE
14700 test "$exec_prefix_NONE" && exec_prefix=NONE
14701
14702
14703 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14704
14705
14706 cat >confcache <<\_ACEOF
14707 # This file is a shell script that caches the results of configure
14708 # tests run on this system so they can be shared between configure
14709 # scripts and configure runs, see configure's option --config-cache.
14710 # It is not useful on other systems. If it contains results you don't
14711 # want to keep, you may remove or edit it.
14712 #
14713 # config.status only pays attention to the cache file if you give it
14714 # the --recheck option to rerun configure.
14715 #
14716 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14717 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14718 # following values.
14719
14720 _ACEOF
14721
14722 # The following way of writing the cache mishandles newlines in values,
14723 # but we know of no workaround that is simple, portable, and efficient.
14724 # So, we kill variables containing newlines.
14725 # Ultrix sh set writes to stderr and can't be redirected directly,
14726 # and sets the high bit in the cache file unless we assign to the vars.
14727 (
14728 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14729 eval ac_val=\$$ac_var
14730 case $ac_val in #(
14731 *${as_nl}*)
14732 case $ac_var in #(
14733 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14734 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14735 esac
14736 case $ac_var in #(
14737 _ | IFS | as_nl) ;; #(
14738 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14739 *) { eval $ac_var=; unset $ac_var;} ;;
14740 esac ;;
14741 esac
14742 done
14743
14744 (set) 2>&1 |
14745 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14746 *${as_nl}ac_space=\ *)
14747 # `set' does not quote correctly, so add quotes: double-quote
14748 # substitution turns \\\\ into \\, and sed turns \\ into \.
14749 sed -n \
14750 "s/'/'\\\\''/g;
14751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14752 ;; #(
14753 *)
14754 # `set' quotes correctly as required by POSIX, so do not add quotes.
14755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14756 ;;
14757 esac |
14758 sort
14759 ) |
14760 sed '
14761 /^ac_cv_env_/b end
14762 t clear
14763 :clear
14764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14765 t end
14766 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14767 :end' >>confcache
14768 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14769 if test -w "$cache_file"; then
14770 if test "x$cache_file" != "x/dev/null"; then
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14772 $as_echo "$as_me: updating cache $cache_file" >&6;}
14773 if test ! -f "$cache_file" || test -h "$cache_file"; then
14774 cat confcache >"$cache_file"
14775 else
14776 case $cache_file in #(
14777 */* | ?:*)
14778 mv -f confcache "$cache_file"$$ &&
14779 mv -f "$cache_file"$$ "$cache_file" ;; #(
14780 *)
14781 mv -f confcache "$cache_file" ;;
14782 esac
14783 fi
14784 fi
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14787 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14788 fi
14789 fi
14790 rm -f confcache
14791
14792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14793 # Let make expand exec_prefix.
14794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14795
14796 DEFS=-DHAVE_CONFIG_H
14797
14798 ac_libobjs=
14799 ac_ltlibobjs=
14800 U=
14801 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14802 # 1. Remove the extension, and $U if already installed.
14803 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14804 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14805 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14806 # will be set to the directory where LIBOBJS objects are built.
14807 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14808 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14809 done
14810 LIBOBJS=$ac_libobjs
14811
14812 LTLIBOBJS=$ac_ltlibobjs
14813
14814
14815 if test -n "$EXEEXT"; then
14816 am__EXEEXT_TRUE=
14817 am__EXEEXT_FALSE='#'
14818 else
14819 am__EXEEXT_TRUE='#'
14820 am__EXEEXT_FALSE=
14821 fi
14822
14823 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14824 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14826 fi
14827 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14828 as_fn_error $? "conditional \"AMDEP\" was never defined.
14829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14830 fi
14831 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14832 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14834 fi
14835 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14836 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14838 fi
14839 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14840 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14842 fi
14843 LT_CONFIG_H=config.h
14844
14845 _ltdl_libobjs=
14846 _ltdl_ltlibobjs=
14847 if test -n "$_LT_LIBOBJS"; then
14848 # Remove the extension.
14849 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14850 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14851 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14852 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14853 done
14854 fi
14855 ltdl_LIBOBJS=$_ltdl_libobjs
14856
14857 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14858
14859
14860
14861 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14862 as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14864 fi
14865 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14866 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14868 fi
14869 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14870 as_fn_error $? "conditional \"EFNET\" was never defined.
14871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14872 fi
14873
14874 : "${CONFIG_STATUS=./config.status}"
14875 ac_write_fail=0
14876 ac_clean_files_save=$ac_clean_files
14877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14879 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14880 as_write_fail=0
14881 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14882 #! $SHELL
14883 # Generated by $as_me.
14884 # Run this file to recreate the current configuration.
14885 # Compiler output produced by configure, useful for debugging
14886 # configure, is in config.log if it exists.
14887
14888 debug=false
14889 ac_cs_recheck=false
14890 ac_cs_silent=false
14891
14892 SHELL=\${CONFIG_SHELL-$SHELL}
14893 export SHELL
14894 _ASEOF
14895 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14896 ## -------------------- ##
14897 ## M4sh Initialization. ##
14898 ## -------------------- ##
14899
14900 # Be more Bourne compatible
14901 DUALCASE=1; export DUALCASE # for MKS sh
14902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14903 emulate sh
14904 NULLCMD=:
14905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14906 # is contrary to our usage. Disable this feature.
14907 alias -g '${1+"$@"}'='"$@"'
14908 setopt NO_GLOB_SUBST
14909 else
14910 case `(set -o) 2>/dev/null` in #(
14911 *posix*) :
14912 set -o posix ;; #(
14913 *) :
14914 ;;
14915 esac
14916 fi
14917
14918
14919 as_nl='
14920 '
14921 export as_nl
14922 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14923 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14926 # Prefer a ksh shell builtin over an external printf program on Solaris,
14927 # but without wasting forks for bash or zsh.
14928 if test -z "$BASH_VERSION$ZSH_VERSION" \
14929 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14930 as_echo='print -r --'
14931 as_echo_n='print -rn --'
14932 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14933 as_echo='printf %s\n'
14934 as_echo_n='printf %s'
14935 else
14936 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14937 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14938 as_echo_n='/usr/ucb/echo -n'
14939 else
14940 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14941 as_echo_n_body='eval
14942 arg=$1;
14943 case $arg in #(
14944 *"$as_nl"*)
14945 expr "X$arg" : "X\\(.*\\)$as_nl";
14946 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14947 esac;
14948 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14949 '
14950 export as_echo_n_body
14951 as_echo_n='sh -c $as_echo_n_body as_echo'
14952 fi
14953 export as_echo_body
14954 as_echo='sh -c $as_echo_body as_echo'
14955 fi
14956
14957 # The user is always right.
14958 if test "${PATH_SEPARATOR+set}" != set; then
14959 PATH_SEPARATOR=:
14960 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14961 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14962 PATH_SEPARATOR=';'
14963 }
14964 fi
14965
14966
14967 # IFS
14968 # We need space, tab and new line, in precisely that order. Quoting is
14969 # there to prevent editors from complaining about space-tab.
14970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14971 # splitting by setting IFS to empty value.)
14972 IFS=" "" $as_nl"
14973
14974 # Find who we are. Look in the path if we contain no directory separator.
14975 as_myself=
14976 case $0 in #((
14977 *[\\/]* ) as_myself=$0 ;;
14978 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14980 do
14981 IFS=$as_save_IFS
14982 test -z "$as_dir" && as_dir=.
14983 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14984 done
14985 IFS=$as_save_IFS
14986
14987 ;;
14988 esac
14989 # We did not find ourselves, most probably we were run as `sh COMMAND'
14990 # in which case we are not to be found in the path.
14991 if test "x$as_myself" = x; then
14992 as_myself=$0
14993 fi
14994 if test ! -f "$as_myself"; then
14995 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14996 exit 1
14997 fi
14998
14999 # Unset variables that we do not need and which cause bugs (e.g. in
15000 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15001 # suppresses any "Segmentation fault" message there. '((' could
15002 # trigger a bug in pdksh 5.2.14.
15003 for as_var in BASH_ENV ENV MAIL MAILPATH
15004 do eval test x\${$as_var+set} = xset \
15005 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15006 done
15007 PS1='$ '
15008 PS2='> '
15009 PS4='+ '
15010
15011 # NLS nuisances.
15012 LC_ALL=C
15013 export LC_ALL
15014 LANGUAGE=C
15015 export LANGUAGE
15016
15017 # CDPATH.
15018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15019
15020
15021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15022 # ----------------------------------------
15023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15025 # script with STATUS, using 1 if that was 0.
15026 as_fn_error ()
15027 {
15028 as_status=$1; test $as_status -eq 0 && as_status=1
15029 if test "$4"; then
15030 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15031 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15032 fi
15033 $as_echo "$as_me: error: $2" >&2
15034 as_fn_exit $as_status
15035 } # as_fn_error
15036
15037
15038 # as_fn_set_status STATUS
15039 # -----------------------
15040 # Set $? to STATUS, without forking.
15041 as_fn_set_status ()
15042 {
15043 return $1
15044 } # as_fn_set_status
15045
15046 # as_fn_exit STATUS
15047 # -----------------
15048 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15049 as_fn_exit ()
15050 {
15051 set +e
15052 as_fn_set_status $1
15053 exit $1
15054 } # as_fn_exit
15055
15056 # as_fn_unset VAR
15057 # ---------------
15058 # Portably unset VAR.
15059 as_fn_unset ()
15060 {
15061 { eval $1=; unset $1;}
15062 }
15063 as_unset=as_fn_unset
15064 # as_fn_append VAR VALUE
15065 # ----------------------
15066 # Append the text in VALUE to the end of the definition contained in VAR. Take
15067 # advantage of any shell optimizations that allow amortized linear growth over
15068 # repeated appends, instead of the typical quadratic growth present in naive
15069 # implementations.
15070 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15071 eval 'as_fn_append ()
15072 {
15073 eval $1+=\$2
15074 }'
15075 else
15076 as_fn_append ()
15077 {
15078 eval $1=\$$1\$2
15079 }
15080 fi # as_fn_append
15081
15082 # as_fn_arith ARG...
15083 # ------------------
15084 # Perform arithmetic evaluation on the ARGs, and store the result in the
15085 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15086 # must be portable across $(()) and expr.
15087 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15088 eval 'as_fn_arith ()
15089 {
15090 as_val=$(( $* ))
15091 }'
15092 else
15093 as_fn_arith ()
15094 {
15095 as_val=`expr "$@" || test $? -eq 1`
15096 }
15097 fi # as_fn_arith
15098
15099
15100 if expr a : '\(a\)' >/dev/null 2>&1 &&
15101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15102 as_expr=expr
15103 else
15104 as_expr=false
15105 fi
15106
15107 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15108 as_basename=basename
15109 else
15110 as_basename=false
15111 fi
15112
15113 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15114 as_dirname=dirname
15115 else
15116 as_dirname=false
15117 fi
15118
15119 as_me=`$as_basename -- "$0" ||
15120 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15121 X"$0" : 'X\(//\)$' \| \
15122 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15123 $as_echo X/"$0" |
15124 sed '/^.*\/\([^/][^/]*\)\/*$/{
15125 s//\1/
15126 q
15127 }
15128 /^X\/\(\/\/\)$/{
15129 s//\1/
15130 q
15131 }
15132 /^X\/\(\/\).*/{
15133 s//\1/
15134 q
15135 }
15136 s/.*/./; q'`
15137
15138 # Avoid depending upon Character Ranges.
15139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15142 as_cr_digits='0123456789'
15143 as_cr_alnum=$as_cr_Letters$as_cr_digits
15144
15145 ECHO_C= ECHO_N= ECHO_T=
15146 case `echo -n x` in #(((((
15147 -n*)
15148 case `echo 'xy\c'` in
15149 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15150 xy) ECHO_C='\c';;
15151 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15152 ECHO_T=' ';;
15153 esac;;
15154 *)
15155 ECHO_N='-n';;
15156 esac
15157
15158 rm -f conf$$ conf$$.exe conf$$.file
15159 if test -d conf$$.dir; then
15160 rm -f conf$$.dir/conf$$.file
15161 else
15162 rm -f conf$$.dir
15163 mkdir conf$$.dir 2>/dev/null
15164 fi
15165 if (echo >conf$$.file) 2>/dev/null; then
15166 if ln -s conf$$.file conf$$ 2>/dev/null; then
15167 as_ln_s='ln -s'
15168 # ... but there are two gotchas:
15169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15171 # In both cases, we have to default to `cp -p'.
15172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15173 as_ln_s='cp -p'
15174 elif ln conf$$.file conf$$ 2>/dev/null; then
15175 as_ln_s=ln
15176 else
15177 as_ln_s='cp -p'
15178 fi
15179 else
15180 as_ln_s='cp -p'
15181 fi
15182 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15183 rmdir conf$$.dir 2>/dev/null
15184
15185
15186 # as_fn_mkdir_p
15187 # -------------
15188 # Create "$as_dir" as a directory, including parents if necessary.
15189 as_fn_mkdir_p ()
15190 {
15191
15192 case $as_dir in #(
15193 -*) as_dir=./$as_dir;;
15194 esac
15195 test -d "$as_dir" || eval $as_mkdir_p || {
15196 as_dirs=
15197 while :; do
15198 case $as_dir in #(
15199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15200 *) as_qdir=$as_dir;;
15201 esac
15202 as_dirs="'$as_qdir' $as_dirs"
15203 as_dir=`$as_dirname -- "$as_dir" ||
15204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15205 X"$as_dir" : 'X\(//\)[^/]' \| \
15206 X"$as_dir" : 'X\(//\)$' \| \
15207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15208 $as_echo X"$as_dir" |
15209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15210 s//\1/
15211 q
15212 }
15213 /^X\(\/\/\)[^/].*/{
15214 s//\1/
15215 q
15216 }
15217 /^X\(\/\/\)$/{
15218 s//\1/
15219 q
15220 }
15221 /^X\(\/\).*/{
15222 s//\1/
15223 q
15224 }
15225 s/.*/./; q'`
15226 test -d "$as_dir" && break
15227 done
15228 test -z "$as_dirs" || eval "mkdir $as_dirs"
15229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15230
15231
15232 } # as_fn_mkdir_p
15233 if mkdir -p . 2>/dev/null; then
15234 as_mkdir_p='mkdir -p "$as_dir"'
15235 else
15236 test -d ./-p && rmdir ./-p
15237 as_mkdir_p=false
15238 fi
15239
15240 if test -x / >/dev/null 2>&1; then
15241 as_test_x='test -x'
15242 else
15243 if ls -dL / >/dev/null 2>&1; then
15244 as_ls_L_option=L
15245 else
15246 as_ls_L_option=
15247 fi
15248 as_test_x='
15249 eval sh -c '\''
15250 if test -d "$1"; then
15251 test -d "$1/.";
15252 else
15253 case $1 in #(
15254 -*)set "./$1";;
15255 esac;
15256 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15257 ???[sx]*):;;*)false;;esac;fi
15258 '\'' sh
15259 '
15260 fi
15261 as_executable_p=$as_test_x
15262
15263 # Sed expression to map a string onto a valid CPP name.
15264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15265
15266 # Sed expression to map a string onto a valid variable name.
15267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15268
15269
15270 exec 6>&1
15271 ## ----------------------------------- ##
15272 ## Main body of $CONFIG_STATUS script. ##
15273 ## ----------------------------------- ##
15274 _ASEOF
15275 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15276
15277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278 # Save the log message, to keep $0 and so on meaningful, and to
15279 # report actual input values of CONFIG_FILES etc. instead of their
15280 # values after options handling.
15281 ac_log="
15282 This file was extended by ircd-hybrid $as_me 8beta1, which was
15283 generated by GNU Autoconf 2.68. Invocation command line was
15284
15285 CONFIG_FILES = $CONFIG_FILES
15286 CONFIG_HEADERS = $CONFIG_HEADERS
15287 CONFIG_LINKS = $CONFIG_LINKS
15288 CONFIG_COMMANDS = $CONFIG_COMMANDS
15289 $ $0 $@
15290
15291 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15292 "
15293
15294 _ACEOF
15295
15296 case $ac_config_files in *"
15297 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15298 esac
15299
15300 case $ac_config_headers in *"
15301 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15302 esac
15303
15304
15305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15306 # Files that config.status was made for.
15307 config_files="$ac_config_files"
15308 config_headers="$ac_config_headers"
15309 config_commands="$ac_config_commands"
15310
15311 _ACEOF
15312
15313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15314 ac_cs_usage="\
15315 \`$as_me' instantiates files and other configuration actions
15316 from templates according to the current configuration. Unless the files
15317 and actions are specified as TAGs, all are instantiated by default.
15318
15319 Usage: $0 [OPTION]... [TAG]...
15320
15321 -h, --help print this help, then exit
15322 -V, --version print version number and configuration settings, then exit
15323 --config print configuration, then exit
15324 -q, --quiet, --silent
15325 do not print progress messages
15326 -d, --debug don't remove temporary files
15327 --recheck update $as_me by reconfiguring in the same conditions
15328 --file=FILE[:TEMPLATE]
15329 instantiate the configuration file FILE
15330 --header=FILE[:TEMPLATE]
15331 instantiate the configuration header FILE
15332
15333 Configuration files:
15334 $config_files
15335
15336 Configuration headers:
15337 $config_headers
15338
15339 Configuration commands:
15340 $config_commands
15341
15342 Report bugs to <bugs@ircd-hybrid.org>."
15343
15344 _ACEOF
15345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15347 ac_cs_version="\\
15348 ircd-hybrid config.status 8beta1
15349 configured by $0, generated by GNU Autoconf 2.68,
15350 with options \\"\$ac_cs_config\\"
15351
15352 Copyright (C) 2010 Free Software Foundation, Inc.
15353 This config.status script is free software; the Free Software Foundation
15354 gives unlimited permission to copy, distribute and modify it."
15355
15356 ac_pwd='$ac_pwd'
15357 srcdir='$srcdir'
15358 INSTALL='$INSTALL'
15359 MKDIR_P='$MKDIR_P'
15360 AWK='$AWK'
15361 test -n "\$AWK" || AWK=awk
15362 _ACEOF
15363
15364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15365 # The default lists apply if the user does not specify any file.
15366 ac_need_defaults=:
15367 while test $# != 0
15368 do
15369 case $1 in
15370 --*=?*)
15371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15373 ac_shift=:
15374 ;;
15375 --*=)
15376 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15377 ac_optarg=
15378 ac_shift=:
15379 ;;
15380 *)
15381 ac_option=$1
15382 ac_optarg=$2
15383 ac_shift=shift
15384 ;;
15385 esac
15386
15387 case $ac_option in
15388 # Handling of the options.
15389 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15390 ac_cs_recheck=: ;;
15391 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15392 $as_echo "$ac_cs_version"; exit ;;
15393 --config | --confi | --conf | --con | --co | --c )
15394 $as_echo "$ac_cs_config"; exit ;;
15395 --debug | --debu | --deb | --de | --d | -d )
15396 debug=: ;;
15397 --file | --fil | --fi | --f )
15398 $ac_shift
15399 case $ac_optarg in
15400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15401 '') as_fn_error $? "missing file argument" ;;
15402 esac
15403 as_fn_append CONFIG_FILES " '$ac_optarg'"
15404 ac_need_defaults=false;;
15405 --header | --heade | --head | --hea )
15406 $ac_shift
15407 case $ac_optarg in
15408 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15409 esac
15410 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15411 ac_need_defaults=false;;
15412 --he | --h)
15413 # Conflict between --help and --header
15414 as_fn_error $? "ambiguous option: \`$1'
15415 Try \`$0 --help' for more information.";;
15416 --help | --hel | -h )
15417 $as_echo "$ac_cs_usage"; exit ;;
15418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15419 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15420 ac_cs_silent=: ;;
15421
15422 # This is an error.
15423 -*) as_fn_error $? "unrecognized option: \`$1'
15424 Try \`$0 --help' for more information." ;;
15425
15426 *) as_fn_append ac_config_targets " $1"
15427 ac_need_defaults=false ;;
15428
15429 esac
15430 shift
15431 done
15432
15433 ac_configure_extra_args=
15434
15435 if $ac_cs_silent; then
15436 exec 6>/dev/null
15437 ac_configure_extra_args="$ac_configure_extra_args --silent"
15438 fi
15439
15440 _ACEOF
15441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 if \$ac_cs_recheck; then
15443 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15444 shift
15445 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15446 CONFIG_SHELL='$SHELL'
15447 export CONFIG_SHELL
15448 exec "\$@"
15449 fi
15450
15451 _ACEOF
15452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15453 exec 5>>config.log
15454 {
15455 echo
15456 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15457 ## Running $as_me. ##
15458 _ASBOX
15459 $as_echo "$ac_log"
15460 } >&5
15461
15462 _ACEOF
15463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15464 #
15465 # INIT-COMMANDS
15466 #
15467 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15468
15469
15470 # The HP-UX ksh and POSIX shell print the target directory to stdout
15471 # if CDPATH is set.
15472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15473
15474 sed_quote_subst='$sed_quote_subst'
15475 double_quote_subst='$double_quote_subst'
15476 delay_variable_subst='$delay_variable_subst'
15477 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15478 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15479 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15480 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15481 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15482 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15483 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15484 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15485 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15486 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15487 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15488 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15489 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15490 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15491 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15492 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15493 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15494 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15495 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15496 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15497 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15498 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15499 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15500 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15501 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15502 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15503 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15504 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15505 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15506 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15507 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15508 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15509 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15510 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15511 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15512 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15513 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15514 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15515 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15516 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15517 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15518 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15519 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15520 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15521 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15522 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15523 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15524 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15525 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15526 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15527 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15528 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15529 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15530 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15531 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15532 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15533 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"`'
15534 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15535 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15536 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15537 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15538 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15539 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15540 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15541 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15542 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15543 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15544 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15545 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15546 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15547 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15548 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15549 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15550 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15551 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15552 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15553 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15554 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15555 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15556 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15557 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15558 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15559 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15560 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15561 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15562 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15563 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15564 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15565 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15566 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15567 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15568 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15569 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15570 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15571 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15572 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15573 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15574 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15575 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15576 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15577 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15578 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15579 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15580 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15581 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15582 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15583 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15584 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15585 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15586 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15587 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15588 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15589 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15590 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15591 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15592 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15593 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15594 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15595 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15596 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15597 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15598 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15599 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15600 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15601 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15602 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15603 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15604 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15605 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15606 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15607
15608 LTCC='$LTCC'
15609 LTCFLAGS='$LTCFLAGS'
15610 compiler='$compiler_DEFAULT'
15611
15612 # A function that is used when there is no print builtin or printf.
15613 func_fallback_echo ()
15614 {
15615 eval 'cat <<_LTECHO_EOF
15616 \$1
15617 _LTECHO_EOF'
15618 }
15619
15620 # Quote evaled strings.
15621 for var in SHELL \
15622 ECHO \
15623 PATH_SEPARATOR \
15624 SED \
15625 GREP \
15626 EGREP \
15627 FGREP \
15628 LD \
15629 NM \
15630 LN_S \
15631 lt_SP2NL \
15632 lt_NL2SP \
15633 reload_flag \
15634 OBJDUMP \
15635 deplibs_check_method \
15636 file_magic_cmd \
15637 file_magic_glob \
15638 want_nocaseglob \
15639 DLLTOOL \
15640 sharedlib_from_linklib_cmd \
15641 AR \
15642 AR_FLAGS \
15643 archiver_list_spec \
15644 STRIP \
15645 RANLIB \
15646 CC \
15647 CFLAGS \
15648 compiler \
15649 lt_cv_sys_global_symbol_pipe \
15650 lt_cv_sys_global_symbol_to_cdecl \
15651 lt_cv_sys_global_symbol_to_c_name_address \
15652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15653 nm_file_list_spec \
15654 lt_prog_compiler_no_builtin_flag \
15655 lt_prog_compiler_pic \
15656 lt_prog_compiler_wl \
15657 lt_prog_compiler_static \
15658 lt_cv_prog_compiler_c_o \
15659 need_locks \
15660 MANIFEST_TOOL \
15661 DSYMUTIL \
15662 NMEDIT \
15663 LIPO \
15664 OTOOL \
15665 OTOOL64 \
15666 shrext_cmds \
15667 export_dynamic_flag_spec \
15668 whole_archive_flag_spec \
15669 compiler_needs_object \
15670 with_gnu_ld \
15671 allow_undefined_flag \
15672 no_undefined_flag \
15673 hardcode_libdir_flag_spec \
15674 hardcode_libdir_separator \
15675 exclude_expsyms \
15676 include_expsyms \
15677 file_list_spec \
15678 variables_saved_for_relink \
15679 libname_spec \
15680 library_names_spec \
15681 soname_spec \
15682 install_override_mode \
15683 finish_eval \
15684 old_striplib \
15685 striplib; do
15686 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15687 *[\\\\\\\`\\"\\\$]*)
15688 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15689 ;;
15690 *)
15691 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15692 ;;
15693 esac
15694 done
15695
15696 # Double-quote double-evaled strings.
15697 for var in reload_cmds \
15698 old_postinstall_cmds \
15699 old_postuninstall_cmds \
15700 old_archive_cmds \
15701 extract_expsyms_cmds \
15702 old_archive_from_new_cmds \
15703 old_archive_from_expsyms_cmds \
15704 archive_cmds \
15705 archive_expsym_cmds \
15706 module_cmds \
15707 module_expsym_cmds \
15708 export_symbols_cmds \
15709 prelink_cmds \
15710 postlink_cmds \
15711 postinstall_cmds \
15712 postuninstall_cmds \
15713 finish_cmds \
15714 sys_lib_search_path_spec \
15715 sys_lib_dlsearch_path_spec; do
15716 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15717 *[\\\\\\\`\\"\\\$]*)
15718 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15719 ;;
15720 *)
15721 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15722 ;;
15723 esac
15724 done
15725
15726 ac_aux_dir='$ac_aux_dir'
15727 xsi_shell='$xsi_shell'
15728 lt_shell_append='$lt_shell_append'
15729
15730 # See if we are running on zsh, and set the options which allow our
15731 # commands through without removal of \ escapes INIT.
15732 if test -n "\${ZSH_VERSION+set}" ; then
15733 setopt NO_GLOB_SUBST
15734 fi
15735
15736
15737 PACKAGE='$PACKAGE'
15738 VERSION='$VERSION'
15739 TIMESTAMP='$TIMESTAMP'
15740 RM='$RM'
15741 ofile='$ofile'
15742
15743
15744
15745
15746 _ACEOF
15747
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15749
15750 # Handling of arguments.
15751 for ac_config_target in $ac_config_targets
15752 do
15753 case $ac_config_target in
15754 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15755 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15756 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15758 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15759 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
15760 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15761 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15762 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15763 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15764 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15765 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15766 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15767 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15768 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15769 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15770 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15771 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15772
15773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15774 esac
15775 done
15776
15777
15778 # If the user did not use the arguments to specify the items to instantiate,
15779 # then the envvar interface is used. Set only those that are not.
15780 # We use the long form for the default assignment because of an extremely
15781 # bizarre bug on SunOS 4.1.3.
15782 if $ac_need_defaults; then
15783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15786 fi
15787
15788 # Have a temporary directory for convenience. Make it in the build tree
15789 # simply because there is no reason against having it here, and in addition,
15790 # creating and moving files from /tmp can sometimes cause problems.
15791 # Hook for its removal unless debugging.
15792 # Note that there is a small window in which the directory will not be cleaned:
15793 # after its creation but before its name has been assigned to `$tmp'.
15794 $debug ||
15795 {
15796 tmp= ac_tmp=
15797 trap 'exit_status=$?
15798 : "${ac_tmp:=$tmp}"
15799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15800 ' 0
15801 trap 'as_fn_exit 1' 1 2 13 15
15802 }
15803 # Create a (secure) tmp directory for tmp files.
15804
15805 {
15806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15807 test -d "$tmp"
15808 } ||
15809 {
15810 tmp=./conf$$-$RANDOM
15811 (umask 077 && mkdir "$tmp")
15812 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15813 ac_tmp=$tmp
15814
15815 # Set up the scripts for CONFIG_FILES section.
15816 # No need to generate them if there are no CONFIG_FILES.
15817 # This happens for instance with `./config.status config.h'.
15818 if test -n "$CONFIG_FILES"; then
15819
15820
15821 ac_cr=`echo X | tr X '\015'`
15822 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15823 # But we know of no other shell where ac_cr would be empty at this
15824 # point, so we can use a bashism as a fallback.
15825 if test "x$ac_cr" = x; then
15826 eval ac_cr=\$\'\\r\'
15827 fi
15828 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15829 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15830 ac_cs_awk_cr='\\r'
15831 else
15832 ac_cs_awk_cr=$ac_cr
15833 fi
15834
15835 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15836 _ACEOF
15837
15838
15839 {
15840 echo "cat >conf$$subs.awk <<_ACEOF" &&
15841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15842 echo "_ACEOF"
15843 } >conf$$subs.sh ||
15844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15845 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15846 ac_delim='%!_!# '
15847 for ac_last_try in false false false false false :; do
15848 . ./conf$$subs.sh ||
15849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15850
15851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15852 if test $ac_delim_n = $ac_delim_num; then
15853 break
15854 elif $ac_last_try; then
15855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15856 else
15857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15858 fi
15859 done
15860 rm -f conf$$subs.sh
15861
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15864 _ACEOF
15865 sed -n '
15866 h
15867 s/^/S["/; s/!.*/"]=/
15868 p
15869 g
15870 s/^[^!]*!//
15871 :repl
15872 t repl
15873 s/'"$ac_delim"'$//
15874 t delim
15875 :nl
15876 h
15877 s/\(.\{148\}\)..*/\1/
15878 t more1
15879 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15880 p
15881 n
15882 b repl
15883 :more1
15884 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15885 p
15886 g
15887 s/.\{148\}//
15888 t nl
15889 :delim
15890 h
15891 s/\(.\{148\}\)..*/\1/
15892 t more2
15893 s/["\\]/\\&/g; s/^/"/; s/$/"/
15894 p
15895 b
15896 :more2
15897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15898 p
15899 g
15900 s/.\{148\}//
15901 t delim
15902 ' <conf$$subs.awk | sed '
15903 /^[^""]/{
15904 N
15905 s/\n//
15906 }
15907 ' >>$CONFIG_STATUS || ac_write_fail=1
15908 rm -f conf$$subs.awk
15909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15910 _ACAWK
15911 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15912 for (key in S) S_is_set[key] = 1
15913 FS = ""
15914
15915 }
15916 {
15917 line = $ 0
15918 nfields = split(line, field, "@")
15919 substed = 0
15920 len = length(field[1])
15921 for (i = 2; i < nfields; i++) {
15922 key = field[i]
15923 keylen = length(key)
15924 if (S_is_set[key]) {
15925 value = S[key]
15926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15927 len += length(value) + length(field[++i])
15928 substed = 1
15929 } else
15930 len += 1 + keylen
15931 }
15932
15933 print line
15934 }
15935
15936 _ACAWK
15937 _ACEOF
15938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15939 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15941 else
15942 cat
15943 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15945 _ACEOF
15946
15947 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15948 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15949 # trailing colons and then remove the whole line if VPATH becomes empty
15950 # (actually we leave an empty line to preserve line numbers).
15951 if test "x$srcdir" = x.; then
15952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15953 h
15954 s///
15955 s/^/:/
15956 s/[ ]*$/:/
15957 s/:\$(srcdir):/:/g
15958 s/:\${srcdir}:/:/g
15959 s/:@srcdir@:/:/g
15960 s/^:*//
15961 s/:*$//
15962 x
15963 s/\(=[ ]*\).*/\1/
15964 G
15965 s/\n//
15966 s/^[^=]*=[ ]*$//
15967 }'
15968 fi
15969
15970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15971 fi # test -n "$CONFIG_FILES"
15972
15973 # Set up the scripts for CONFIG_HEADERS section.
15974 # No need to generate them if there are no CONFIG_HEADERS.
15975 # This happens for instance with `./config.status Makefile'.
15976 if test -n "$CONFIG_HEADERS"; then
15977 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15978 BEGIN {
15979 _ACEOF
15980
15981 # Transform confdefs.h into an awk script `defines.awk', embedded as
15982 # here-document in config.status, that substitutes the proper values into
15983 # config.h.in to produce config.h.
15984
15985 # Create a delimiter string that does not exist in confdefs.h, to ease
15986 # handling of long lines.
15987 ac_delim='%!_!# '
15988 for ac_last_try in false false :; do
15989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15990 if test -z "$ac_tt"; then
15991 break
15992 elif $ac_last_try; then
15993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15994 else
15995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15996 fi
15997 done
15998
15999 # For the awk script, D is an array of macro values keyed by name,
16000 # likewise P contains macro parameters if any. Preserve backslash
16001 # newline sequences.
16002
16003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16004 sed -n '
16005 s/.\{148\}/&'"$ac_delim"'/g
16006 t rset
16007 :rset
16008 s/^[ ]*#[ ]*define[ ][ ]*/ /
16009 t def
16010 d
16011 :def
16012 s/\\$//
16013 t bsnl
16014 s/["\\]/\\&/g
16015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16016 D["\1"]=" \3"/p
16017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16018 d
16019 :bsnl
16020 s/["\\]/\\&/g
16021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16022 D["\1"]=" \3\\\\\\n"\\/p
16023 t cont
16024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16025 t cont
16026 d
16027 :cont
16028 n
16029 s/.\{148\}/&'"$ac_delim"'/g
16030 t clear
16031 :clear
16032 s/\\$//
16033 t bsnlc
16034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16035 d
16036 :bsnlc
16037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16038 b cont
16039 ' <confdefs.h | sed '
16040 s/'"$ac_delim"'/"\\\
16041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16042
16043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16044 for (key in D) D_is_set[key] = 1
16045 FS = ""
16046 }
16047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16048 line = \$ 0
16049 split(line, arg, " ")
16050 if (arg[1] == "#") {
16051 defundef = arg[2]
16052 mac1 = arg[3]
16053 } else {
16054 defundef = substr(arg[1], 2)
16055 mac1 = arg[2]
16056 }
16057 split(mac1, mac2, "(") #)
16058 macro = mac2[1]
16059 prefix = substr(line, 1, index(line, defundef) - 1)
16060 if (D_is_set[macro]) {
16061 # Preserve the white space surrounding the "#".
16062 print prefix "define", macro P[macro] D[macro]
16063 next
16064 } else {
16065 # Replace #undef with comments. This is necessary, for example,
16066 # in the case of _POSIX_SOURCE, which is predefined and required
16067 # on some systems where configure will not decide to define it.
16068 if (defundef == "undef") {
16069 print "/*", prefix defundef, macro, "*/"
16070 next
16071 }
16072 }
16073 }
16074 { print }
16075 _ACAWK
16076 _ACEOF
16077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16079 fi # test -n "$CONFIG_HEADERS"
16080
16081
16082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16083 shift
16084 for ac_tag
16085 do
16086 case $ac_tag in
16087 :[FHLC]) ac_mode=$ac_tag; continue;;
16088 esac
16089 case $ac_mode$ac_tag in
16090 :[FHL]*:*);;
16091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16092 :[FH]-) ac_tag=-:-;;
16093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16094 esac
16095 ac_save_IFS=$IFS
16096 IFS=:
16097 set x $ac_tag
16098 IFS=$ac_save_IFS
16099 shift
16100 ac_file=$1
16101 shift
16102
16103 case $ac_mode in
16104 :L) ac_source=$1;;
16105 :[FH])
16106 ac_file_inputs=
16107 for ac_f
16108 do
16109 case $ac_f in
16110 -) ac_f="$ac_tmp/stdin";;
16111 *) # Look for the file first in the build tree, then in the source tree
16112 # (if the path is not absolute). The absolute path cannot be DOS-style,
16113 # because $ac_f cannot contain `:'.
16114 test -f "$ac_f" ||
16115 case $ac_f in
16116 [\\/$]*) false;;
16117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16118 esac ||
16119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16120 esac
16121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16122 as_fn_append ac_file_inputs " '$ac_f'"
16123 done
16124
16125 # Let's still pretend it is `configure' which instantiates (i.e., don't
16126 # use $as_me), people would be surprised to read:
16127 # /* config.h. Generated by config.status. */
16128 configure_input='Generated from '`
16129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16130 `' by configure.'
16131 if test x"$ac_file" != x-; then
16132 configure_input="$ac_file. $configure_input"
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16134 $as_echo "$as_me: creating $ac_file" >&6;}
16135 fi
16136 # Neutralize special characters interpreted by sed in replacement strings.
16137 case $configure_input in #(
16138 *\&* | *\|* | *\\* )
16139 ac_sed_conf_input=`$as_echo "$configure_input" |
16140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16141 *) ac_sed_conf_input=$configure_input;;
16142 esac
16143
16144 case $ac_tag in
16145 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16147 esac
16148 ;;
16149 esac
16150
16151 ac_dir=`$as_dirname -- "$ac_file" ||
16152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16153 X"$ac_file" : 'X\(//\)[^/]' \| \
16154 X"$ac_file" : 'X\(//\)$' \| \
16155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16156 $as_echo X"$ac_file" |
16157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)[^/].*/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\/\)$/{
16166 s//\1/
16167 q
16168 }
16169 /^X\(\/\).*/{
16170 s//\1/
16171 q
16172 }
16173 s/.*/./; q'`
16174 as_dir="$ac_dir"; as_fn_mkdir_p
16175 ac_builddir=.
16176
16177 case "$ac_dir" in
16178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16179 *)
16180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16181 # A ".." for each directory in $ac_dir_suffix.
16182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16183 case $ac_top_builddir_sub in
16184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16186 esac ;;
16187 esac
16188 ac_abs_top_builddir=$ac_pwd
16189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16190 # for backward compatibility:
16191 ac_top_builddir=$ac_top_build_prefix
16192
16193 case $srcdir in
16194 .) # We are building in place.
16195 ac_srcdir=.
16196 ac_top_srcdir=$ac_top_builddir_sub
16197 ac_abs_top_srcdir=$ac_pwd ;;
16198 [\\/]* | ?:[\\/]* ) # Absolute name.
16199 ac_srcdir=$srcdir$ac_dir_suffix;
16200 ac_top_srcdir=$srcdir
16201 ac_abs_top_srcdir=$srcdir ;;
16202 *) # Relative name.
16203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16204 ac_top_srcdir=$ac_top_build_prefix$srcdir
16205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16206 esac
16207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16208
16209
16210 case $ac_mode in
16211 :F)
16212 #
16213 # CONFIG_FILE
16214 #
16215
16216 case $INSTALL in
16217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16219 esac
16220 ac_MKDIR_P=$MKDIR_P
16221 case $MKDIR_P in
16222 [\\/$]* | ?:[\\/]* ) ;;
16223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16224 esac
16225 _ACEOF
16226
16227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16228 # If the template does not know about datarootdir, expand it.
16229 # FIXME: This hack should be removed a few years after 2.60.
16230 ac_datarootdir_hack=; ac_datarootdir_seen=
16231 ac_sed_dataroot='
16232 /datarootdir/ {
16233 p
16234 q
16235 }
16236 /@datadir@/p
16237 /@docdir@/p
16238 /@infodir@/p
16239 /@localedir@/p
16240 /@mandir@/p'
16241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16242 *datarootdir*) ac_datarootdir_seen=yes;;
16243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16246 _ACEOF
16247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16248 ac_datarootdir_hack='
16249 s&@datadir@&$datadir&g
16250 s&@docdir@&$docdir&g
16251 s&@infodir@&$infodir&g
16252 s&@localedir@&$localedir&g
16253 s&@mandir@&$mandir&g
16254 s&\\\${datarootdir}&$datarootdir&g' ;;
16255 esac
16256 _ACEOF
16257
16258 # Neutralize VPATH when `$srcdir' = `.'.
16259 # Shell code in configure.ac might set extrasub.
16260 # FIXME: do we really want to maintain this feature?
16261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16262 ac_sed_extra="$ac_vpsub
16263 $extrasub
16264 _ACEOF
16265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266 :t
16267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16268 s|@configure_input@|$ac_sed_conf_input|;t t
16269 s&@top_builddir@&$ac_top_builddir_sub&;t t
16270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16271 s&@srcdir@&$ac_srcdir&;t t
16272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16273 s&@top_srcdir@&$ac_top_srcdir&;t t
16274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16275 s&@builddir@&$ac_builddir&;t t
16276 s&@abs_builddir@&$ac_abs_builddir&;t t
16277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16278 s&@INSTALL@&$ac_INSTALL&;t t
16279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16280 $ac_datarootdir_hack
16281 "
16282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16284
16285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16288 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16290 which seems to be undefined. Please make sure it is defined" >&5
16291 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16292 which seems to be undefined. Please make sure it is defined" >&2;}
16293
16294 rm -f "$ac_tmp/stdin"
16295 case $ac_file in
16296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16298 esac \
16299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16300 ;;
16301 :H)
16302 #
16303 # CONFIG_HEADER
16304 #
16305 if test x"$ac_file" != x-; then
16306 {
16307 $as_echo "/* $configure_input */" \
16308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16309 } >"$ac_tmp/config.h" \
16310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16314 else
16315 rm -f "$ac_file"
16316 mv "$ac_tmp/config.h" "$ac_file" \
16317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16318 fi
16319 else
16320 $as_echo "/* $configure_input */" \
16321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16322 || as_fn_error $? "could not create -" "$LINENO" 5
16323 fi
16324 # Compute "$ac_file"'s index in $config_headers.
16325 _am_arg="$ac_file"
16326 _am_stamp_count=1
16327 for _am_header in $config_headers :; do
16328 case $_am_header in
16329 $_am_arg | $_am_arg:* )
16330 break ;;
16331 * )
16332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16333 esac
16334 done
16335 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16336 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16337 X"$_am_arg" : 'X\(//\)[^/]' \| \
16338 X"$_am_arg" : 'X\(//\)$' \| \
16339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16340 $as_echo X"$_am_arg" |
16341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16342 s//\1/
16343 q
16344 }
16345 /^X\(\/\/\)[^/].*/{
16346 s//\1/
16347 q
16348 }
16349 /^X\(\/\/\)$/{
16350 s//\1/
16351 q
16352 }
16353 /^X\(\/\).*/{
16354 s//\1/
16355 q
16356 }
16357 s/.*/./; q'`/stamp-h$_am_stamp_count
16358 ;;
16359
16360 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16361 $as_echo "$as_me: executing $ac_file commands" >&6;}
16362 ;;
16363 esac
16364
16365
16366 case $ac_file$ac_mode in
16367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16368 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16369 # are listed without --file. Let's play safe and only enable the eval
16370 # if we detect the quoting.
16371 case $CONFIG_FILES in
16372 *\'*) eval set x "$CONFIG_FILES" ;;
16373 *) set x $CONFIG_FILES ;;
16374 esac
16375 shift
16376 for mf
16377 do
16378 # Strip MF so we end up with the name of the file.
16379 mf=`echo "$mf" | sed -e 's/:.*$//'`
16380 # Check whether this is an Automake generated Makefile or not.
16381 # We used to match only the files named `Makefile.in', but
16382 # some people rename them; so instead we look at the file content.
16383 # Grep'ing the first line is not enough: some people post-process
16384 # each Makefile.in and add a new line on top of each file to say so.
16385 # Grep'ing the whole file is not good either: AIX grep has a line
16386 # limit of 2048, but all sed's we know have understand at least 4000.
16387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16388 dirpart=`$as_dirname -- "$mf" ||
16389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16390 X"$mf" : 'X\(//\)[^/]' \| \
16391 X"$mf" : 'X\(//\)$' \| \
16392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16393 $as_echo X"$mf" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16395 s//\1/
16396 q
16397 }
16398 /^X\(\/\/\)[^/].*/{
16399 s//\1/
16400 q
16401 }
16402 /^X\(\/\/\)$/{
16403 s//\1/
16404 q
16405 }
16406 /^X\(\/\).*/{
16407 s//\1/
16408 q
16409 }
16410 s/.*/./; q'`
16411 else
16412 continue
16413 fi
16414 # Extract the definition of DEPDIR, am__include, and am__quote
16415 # from the Makefile without running `make'.
16416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16417 test -z "$DEPDIR" && continue
16418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16419 test -z "am__include" && continue
16420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16421 # When using ansi2knr, U may be empty or an underscore; expand it
16422 U=`sed -n 's/^U = //p' < "$mf"`
16423 # Find all dependency output files, they are included files with
16424 # $(DEPDIR) in their names. We invoke sed twice because it is the
16425 # simplest approach to changing $(DEPDIR) to its actual value in the
16426 # expansion.
16427 for file in `sed -n "
16428 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16430 # Make sure the directory exists.
16431 test -f "$dirpart/$file" && continue
16432 fdir=`$as_dirname -- "$file" ||
16433 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16434 X"$file" : 'X\(//\)[^/]' \| \
16435 X"$file" : 'X\(//\)$' \| \
16436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16437 $as_echo X"$file" |
16438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16439 s//\1/
16440 q
16441 }
16442 /^X\(\/\/\)[^/].*/{
16443 s//\1/
16444 q
16445 }
16446 /^X\(\/\/\)$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\).*/{
16451 s//\1/
16452 q
16453 }
16454 s/.*/./; q'`
16455 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16456 # echo "creating $dirpart/$file"
16457 echo '# dummy' > "$dirpart/$file"
16458 done
16459 done
16460 }
16461 ;;
16462 "libtool":C)
16463
16464 # See if we are running on zsh, and set the options which allow our
16465 # commands through without removal of \ escapes.
16466 if test -n "${ZSH_VERSION+set}" ; then
16467 setopt NO_GLOB_SUBST
16468 fi
16469
16470 cfgfile="${ofile}T"
16471 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16472 $RM "$cfgfile"
16473
16474 cat <<_LT_EOF >> "$cfgfile"
16475 #! $SHELL
16476
16477 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16478 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16479 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16481 #
16482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16483 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16484 # Foundation, Inc.
16485 # Written by Gordon Matzigkeit, 1996
16486 #
16487 # This file is part of GNU Libtool.
16488 #
16489 # GNU Libtool is free software; you can redistribute it and/or
16490 # modify it under the terms of the GNU General Public License as
16491 # published by the Free Software Foundation; either version 2 of
16492 # the License, or (at your option) any later version.
16493 #
16494 # As a special exception to the GNU General Public License,
16495 # if you distribute this file as part of a program or library that
16496 # is built using GNU Libtool, you may include this file under the
16497 # same distribution terms that you use for the rest of that program.
16498 #
16499 # GNU Libtool is distributed in the hope that it will be useful,
16500 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16501 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16502 # GNU General Public License for more details.
16503 #
16504 # You should have received a copy of the GNU General Public License
16505 # along with GNU Libtool; see the file COPYING. If not, a copy
16506 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16507 # obtained by writing to the Free Software Foundation, Inc.,
16508 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16509
16510
16511 # The names of the tagged configurations supported by this script.
16512 available_tags=""
16513
16514 # ### BEGIN LIBTOOL CONFIG
16515
16516 # Which release of libtool.m4 was used?
16517 macro_version=$macro_version
16518 macro_revision=$macro_revision
16519
16520 # Whether or not to build static libraries.
16521 build_old_libs=$enable_static
16522
16523 # Whether or not to build shared libraries.
16524 build_libtool_libs=$enable_shared
16525
16526 # What type of objects to build.
16527 pic_mode=$pic_mode
16528
16529 # Whether or not to optimize for fast installation.
16530 fast_install=$enable_fast_install
16531
16532 # Shell to use when invoking shell scripts.
16533 SHELL=$lt_SHELL
16534
16535 # An echo program that protects backslashes.
16536 ECHO=$lt_ECHO
16537
16538 # The PATH separator for the build system.
16539 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16540
16541 # The host system.
16542 host_alias=$host_alias
16543 host=$host
16544 host_os=$host_os
16545
16546 # The build system.
16547 build_alias=$build_alias
16548 build=$build
16549 build_os=$build_os
16550
16551 # A sed program that does not truncate output.
16552 SED=$lt_SED
16553
16554 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16555 Xsed="\$SED -e 1s/^X//"
16556
16557 # A grep program that handles long lines.
16558 GREP=$lt_GREP
16559
16560 # An ERE matcher.
16561 EGREP=$lt_EGREP
16562
16563 # A literal string matcher.
16564 FGREP=$lt_FGREP
16565
16566 # A BSD- or MS-compatible name lister.
16567 NM=$lt_NM
16568
16569 # Whether we need soft or hard links.
16570 LN_S=$lt_LN_S
16571
16572 # What is the maximum length of a command?
16573 max_cmd_len=$max_cmd_len
16574
16575 # Object file suffix (normally "o").
16576 objext=$ac_objext
16577
16578 # Executable file suffix (normally "").
16579 exeext=$exeext
16580
16581 # whether the shell understands "unset".
16582 lt_unset=$lt_unset
16583
16584 # turn spaces into newlines.
16585 SP2NL=$lt_lt_SP2NL
16586
16587 # turn newlines into spaces.
16588 NL2SP=$lt_lt_NL2SP
16589
16590 # convert \$build file names to \$host format.
16591 to_host_file_cmd=$lt_cv_to_host_file_cmd
16592
16593 # convert \$build files to toolchain format.
16594 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16595
16596 # An object symbol dumper.
16597 OBJDUMP=$lt_OBJDUMP
16598
16599 # Method to check whether dependent libraries are shared objects.
16600 deplibs_check_method=$lt_deplibs_check_method
16601
16602 # Command to use when deplibs_check_method = "file_magic".
16603 file_magic_cmd=$lt_file_magic_cmd
16604
16605 # How to find potential files when deplibs_check_method = "file_magic".
16606 file_magic_glob=$lt_file_magic_glob
16607
16608 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16609 want_nocaseglob=$lt_want_nocaseglob
16610
16611 # DLL creation program.
16612 DLLTOOL=$lt_DLLTOOL
16613
16614 # Command to associate shared and link libraries.
16615 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16616
16617 # The archiver.
16618 AR=$lt_AR
16619
16620 # Flags to create an archive.
16621 AR_FLAGS=$lt_AR_FLAGS
16622
16623 # How to feed a file listing to the archiver.
16624 archiver_list_spec=$lt_archiver_list_spec
16625
16626 # A symbol stripping program.
16627 STRIP=$lt_STRIP
16628
16629 # Commands used to install an old-style archive.
16630 RANLIB=$lt_RANLIB
16631 old_postinstall_cmds=$lt_old_postinstall_cmds
16632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16633
16634 # Whether to use a lock for old archive extraction.
16635 lock_old_archive_extraction=$lock_old_archive_extraction
16636
16637 # A C compiler.
16638 LTCC=$lt_CC
16639
16640 # LTCC compiler flags.
16641 LTCFLAGS=$lt_CFLAGS
16642
16643 # Take the output of nm and produce a listing of raw symbols and C names.
16644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16645
16646 # Transform the output of nm in a proper C declaration.
16647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16648
16649 # Transform the output of nm in a C name address pair.
16650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16651
16652 # Transform the output of nm in a C name address pair when lib prefix is needed.
16653 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16654
16655 # Specify filename containing input files for \$NM.
16656 nm_file_list_spec=$lt_nm_file_list_spec
16657
16658 # The root where to search for dependent libraries,and in which our libraries should be installed.
16659 lt_sysroot=$lt_sysroot
16660
16661 # The name of the directory that contains temporary libtool files.
16662 objdir=$objdir
16663
16664 # Used to examine libraries when file_magic_cmd begins with "file".
16665 MAGIC_CMD=$MAGIC_CMD
16666
16667 # Must we lock files when doing compilation?
16668 need_locks=$lt_need_locks
16669
16670 # Manifest tool.
16671 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16672
16673 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16674 DSYMUTIL=$lt_DSYMUTIL
16675
16676 # Tool to change global to local symbols on Mac OS X.
16677 NMEDIT=$lt_NMEDIT
16678
16679 # Tool to manipulate fat objects and archives on Mac OS X.
16680 LIPO=$lt_LIPO
16681
16682 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16683 OTOOL=$lt_OTOOL
16684
16685 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16686 OTOOL64=$lt_OTOOL64
16687
16688 # Old archive suffix (normally "a").
16689 libext=$libext
16690
16691 # Shared library suffix (normally ".so").
16692 shrext_cmds=$lt_shrext_cmds
16693
16694 # The commands to extract the exported symbol list from a shared archive.
16695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16696
16697 # Variables whose values should be saved in libtool wrapper scripts and
16698 # restored at link time.
16699 variables_saved_for_relink=$lt_variables_saved_for_relink
16700
16701 # Do we need the "lib" prefix for modules?
16702 need_lib_prefix=$need_lib_prefix
16703
16704 # Do we need a version for libraries?
16705 need_version=$need_version
16706
16707 # Library versioning type.
16708 version_type=$version_type
16709
16710 # Shared library runtime path variable.
16711 runpath_var=$runpath_var
16712
16713 # Shared library path variable.
16714 shlibpath_var=$shlibpath_var
16715
16716 # Is shlibpath searched before the hard-coded library search path?
16717 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16718
16719 # Format of library name prefix.
16720 libname_spec=$lt_libname_spec
16721
16722 # List of archive names. First name is the real one, the rest are links.
16723 # The last name is the one that the linker finds with -lNAME
16724 library_names_spec=$lt_library_names_spec
16725
16726 # The coded name of the library, if different from the real name.
16727 soname_spec=$lt_soname_spec
16728
16729 # Permission mode override for installation of shared libraries.
16730 install_override_mode=$lt_install_override_mode
16731
16732 # Command to use after installation of a shared archive.
16733 postinstall_cmds=$lt_postinstall_cmds
16734
16735 # Command to use after uninstallation of a shared archive.
16736 postuninstall_cmds=$lt_postuninstall_cmds
16737
16738 # Commands used to finish a libtool library installation in a directory.
16739 finish_cmds=$lt_finish_cmds
16740
16741 # As "finish_cmds", except a single script fragment to be evaled but
16742 # not shown.
16743 finish_eval=$lt_finish_eval
16744
16745 # Whether we should hardcode library paths into libraries.
16746 hardcode_into_libs=$hardcode_into_libs
16747
16748 # Compile-time system search path for libraries.
16749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16750
16751 # Run-time system search path for libraries.
16752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16753
16754 # Whether dlopen is supported.
16755 dlopen_support=$enable_dlopen
16756
16757 # Whether dlopen of programs is supported.
16758 dlopen_self=$enable_dlopen_self
16759
16760 # Whether dlopen of statically linked programs is supported.
16761 dlopen_self_static=$enable_dlopen_self_static
16762
16763 # Commands to strip libraries.
16764 old_striplib=$lt_old_striplib
16765 striplib=$lt_striplib
16766
16767
16768 # The linker used to build libraries.
16769 LD=$lt_LD
16770
16771 # How to create reloadable object files.
16772 reload_flag=$lt_reload_flag
16773 reload_cmds=$lt_reload_cmds
16774
16775 # Commands used to build an old-style archive.
16776 old_archive_cmds=$lt_old_archive_cmds
16777
16778 # A language specific compiler.
16779 CC=$lt_compiler
16780
16781 # Is the compiler the GNU compiler?
16782 with_gcc=$GCC
16783
16784 # Compiler flag to turn off builtin functions.
16785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16786
16787 # Additional compiler flags for building library objects.
16788 pic_flag=$lt_lt_prog_compiler_pic
16789
16790 # How to pass a linker flag through the compiler.
16791 wl=$lt_lt_prog_compiler_wl
16792
16793 # Compiler flag to prevent dynamic linking.
16794 link_static_flag=$lt_lt_prog_compiler_static
16795
16796 # Does compiler simultaneously support -c and -o options?
16797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16798
16799 # Whether or not to add -lc for building shared libraries.
16800 build_libtool_need_lc=$archive_cmds_need_lc
16801
16802 # Whether or not to disallow shared libs when runtime libs are static.
16803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16804
16805 # Compiler flag to allow reflexive dlopens.
16806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16807
16808 # Compiler flag to generate shared objects directly from archives.
16809 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16810
16811 # Whether the compiler copes with passing no objects directly.
16812 compiler_needs_object=$lt_compiler_needs_object
16813
16814 # Create an old-style archive from a shared archive.
16815 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16816
16817 # Create a temporary old-style archive to link instead of a shared archive.
16818 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16819
16820 # Commands used to build a shared archive.
16821 archive_cmds=$lt_archive_cmds
16822 archive_expsym_cmds=$lt_archive_expsym_cmds
16823
16824 # Commands used to build a loadable module if different from building
16825 # a shared archive.
16826 module_cmds=$lt_module_cmds
16827 module_expsym_cmds=$lt_module_expsym_cmds
16828
16829 # Whether we are building with GNU ld or not.
16830 with_gnu_ld=$lt_with_gnu_ld
16831
16832 # Flag that allows shared libraries with undefined symbols to be built.
16833 allow_undefined_flag=$lt_allow_undefined_flag
16834
16835 # Flag that enforces no undefined symbols.
16836 no_undefined_flag=$lt_no_undefined_flag
16837
16838 # Flag to hardcode \$libdir into a binary during linking.
16839 # This must work even if \$libdir does not exist
16840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16841
16842 # Whether we need a single "-rpath" flag with a separated argument.
16843 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16844
16845 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16846 # DIR into the resulting binary.
16847 hardcode_direct=$hardcode_direct
16848
16849 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16850 # DIR into the resulting binary and the resulting library dependency is
16851 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16852 # library is relocated.
16853 hardcode_direct_absolute=$hardcode_direct_absolute
16854
16855 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16856 # into the resulting binary.
16857 hardcode_minus_L=$hardcode_minus_L
16858
16859 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16860 # into the resulting binary.
16861 hardcode_shlibpath_var=$hardcode_shlibpath_var
16862
16863 # Set to "yes" if building a shared library automatically hardcodes DIR
16864 # into the library and all subsequent libraries and executables linked
16865 # against it.
16866 hardcode_automatic=$hardcode_automatic
16867
16868 # Set to yes if linker adds runtime paths of dependent libraries
16869 # to runtime path list.
16870 inherit_rpath=$inherit_rpath
16871
16872 # Whether libtool must link a program against all its dependency libraries.
16873 link_all_deplibs=$link_all_deplibs
16874
16875 # Set to "yes" if exported symbols are required.
16876 always_export_symbols=$always_export_symbols
16877
16878 # The commands to list exported symbols.
16879 export_symbols_cmds=$lt_export_symbols_cmds
16880
16881 # Symbols that should not be listed in the preloaded symbols.
16882 exclude_expsyms=$lt_exclude_expsyms
16883
16884 # Symbols that must always be exported.
16885 include_expsyms=$lt_include_expsyms
16886
16887 # Commands necessary for linking programs (against libraries) with templates.
16888 prelink_cmds=$lt_prelink_cmds
16889
16890 # Commands necessary for finishing linking programs.
16891 postlink_cmds=$lt_postlink_cmds
16892
16893 # Specify filename containing input files.
16894 file_list_spec=$lt_file_list_spec
16895
16896 # How to hardcode a shared library path into an executable.
16897 hardcode_action=$hardcode_action
16898
16899 # ### END LIBTOOL CONFIG
16900
16901 _LT_EOF
16902
16903 case $host_os in
16904 aix3*)
16905 cat <<\_LT_EOF >> "$cfgfile"
16906 # AIX sometimes has problems with the GCC collect2 program. For some
16907 # reason, if we set the COLLECT_NAMES environment variable, the problems
16908 # vanish in a puff of smoke.
16909 if test "X${COLLECT_NAMES+set}" != Xset; then
16910 COLLECT_NAMES=
16911 export COLLECT_NAMES
16912 fi
16913 _LT_EOF
16914 ;;
16915 esac
16916
16917
16918 ltmain="$ac_aux_dir/ltmain.sh"
16919
16920
16921 # We use sed instead of cat because bash on DJGPP gets confused if
16922 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16923 # text mode, it properly converts lines to CR/LF. This bash problem
16924 # is reportedly fixed, but why not run on old versions too?
16925 sed '$q' "$ltmain" >> "$cfgfile" \
16926 || (rm -f "$cfgfile"; exit 1)
16927
16928 if test x"$xsi_shell" = xyes; then
16929 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16930 func_dirname ()\
16931 {\
16932 \ case ${1} in\
16933 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16934 \ * ) func_dirname_result="${3}" ;;\
16935 \ esac\
16936 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16937 && mv -f "$cfgfile.tmp" "$cfgfile" \
16938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16939 test 0 -eq $? || _lt_function_replace_fail=:
16940
16941
16942 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16943 func_basename ()\
16944 {\
16945 \ func_basename_result="${1##*/}"\
16946 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16947 && mv -f "$cfgfile.tmp" "$cfgfile" \
16948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16949 test 0 -eq $? || _lt_function_replace_fail=:
16950
16951
16952 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16953 func_dirname_and_basename ()\
16954 {\
16955 \ case ${1} in\
16956 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16957 \ * ) func_dirname_result="${3}" ;;\
16958 \ esac\
16959 \ func_basename_result="${1##*/}"\
16960 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16961 && mv -f "$cfgfile.tmp" "$cfgfile" \
16962 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16963 test 0 -eq $? || _lt_function_replace_fail=:
16964
16965
16966 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16967 func_stripname ()\
16968 {\
16969 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16970 \ # positional parameters, so assign one to ordinary parameter first.\
16971 \ func_stripname_result=${3}\
16972 \ func_stripname_result=${func_stripname_result#"${1}"}\
16973 \ func_stripname_result=${func_stripname_result%"${2}"}\
16974 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16975 && mv -f "$cfgfile.tmp" "$cfgfile" \
16976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16977 test 0 -eq $? || _lt_function_replace_fail=:
16978
16979
16980 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16981 func_split_long_opt ()\
16982 {\
16983 \ func_split_long_opt_name=${1%%=*}\
16984 \ func_split_long_opt_arg=${1#*=}\
16985 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16986 && mv -f "$cfgfile.tmp" "$cfgfile" \
16987 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16988 test 0 -eq $? || _lt_function_replace_fail=:
16989
16990
16991 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16992 func_split_short_opt ()\
16993 {\
16994 \ func_split_short_opt_arg=${1#??}\
16995 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16996 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16997 && mv -f "$cfgfile.tmp" "$cfgfile" \
16998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16999 test 0 -eq $? || _lt_function_replace_fail=:
17000
17001
17002 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17003 func_lo2o ()\
17004 {\
17005 \ case ${1} in\
17006 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17007 \ *) func_lo2o_result=${1} ;;\
17008 \ esac\
17009 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17010 && mv -f "$cfgfile.tmp" "$cfgfile" \
17011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17012 test 0 -eq $? || _lt_function_replace_fail=:
17013
17014
17015 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17016 func_xform ()\
17017 {\
17018 func_xform_result=${1%.*}.lo\
17019 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17020 && mv -f "$cfgfile.tmp" "$cfgfile" \
17021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17022 test 0 -eq $? || _lt_function_replace_fail=:
17023
17024
17025 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17026 func_arith ()\
17027 {\
17028 func_arith_result=$(( $* ))\
17029 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17030 && mv -f "$cfgfile.tmp" "$cfgfile" \
17031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17032 test 0 -eq $? || _lt_function_replace_fail=:
17033
17034
17035 sed -e '/^func_len ()$/,/^} # func_len /c\
17036 func_len ()\
17037 {\
17038 func_len_result=${#1}\
17039 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17040 && mv -f "$cfgfile.tmp" "$cfgfile" \
17041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17042 test 0 -eq $? || _lt_function_replace_fail=:
17043
17044 fi
17045
17046 if test x"$lt_shell_append" = xyes; then
17047 sed -e '/^func_append ()$/,/^} # func_append /c\
17048 func_append ()\
17049 {\
17050 eval "${1}+=\\${2}"\
17051 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17052 && mv -f "$cfgfile.tmp" "$cfgfile" \
17053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17054 test 0 -eq $? || _lt_function_replace_fail=:
17055
17056
17057 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17058 func_append_quoted ()\
17059 {\
17060 \ func_quote_for_eval "${2}"\
17061 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17062 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17063 && mv -f "$cfgfile.tmp" "$cfgfile" \
17064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17065 test 0 -eq $? || _lt_function_replace_fail=:
17066
17067
17068 # Save a `func_append' function call where possible by direct use of '+='
17069 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17070 && mv -f "$cfgfile.tmp" "$cfgfile" \
17071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17072 test 0 -eq $? || _lt_function_replace_fail=:
17073 else
17074 # Save a `func_append' function call even when '+=' is not available
17075 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17076 && mv -f "$cfgfile.tmp" "$cfgfile" \
17077 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17078 test 0 -eq $? || _lt_function_replace_fail=:
17079 fi
17080
17081 if test x"$_lt_function_replace_fail" = x":"; then
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17083 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17084 fi
17085
17086
17087 mv -f "$cfgfile" "$ofile" ||
17088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17089 chmod +x "$ofile"
17090
17091 ;;
17092
17093 esac
17094 done # for ac_tag
17095
17096
17097 as_fn_exit 0
17098 _ACEOF
17099 ac_clean_files=$ac_clean_files_save
17100
17101 test $ac_write_fail = 0 ||
17102 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17103
17104
17105 # configure is writing to config.log, and then calls config.status.
17106 # config.status does its own redirection, appending to config.log.
17107 # Unfortunately, on DOS this fails, as config.log is still kept open
17108 # by configure, so config.status won't be able to write to it; its
17109 # output is simply discarded. So we exec the FD to /dev/null,
17110 # effectively closing config.log, so it can be properly (re)opened and
17111 # appended to by config.status. When coming back to configure, we
17112 # need to make the FD available again.
17113 if test "$no_create" != yes; then
17114 ac_cs_success=:
17115 ac_config_status_args=
17116 test "$silent" = yes &&
17117 ac_config_status_args="$ac_config_status_args --quiet"
17118 exec 5>/dev/null
17119 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17120 exec 5>>config.log
17121 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17122 # would make configure fail if this is the last instruction.
17123 $ac_cs_success || as_fn_exit 1
17124 fi
17125 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17127 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17128 fi
17129

Properties

Name Value
svn:executable *